Calculate expected value of a function with respect to the distribution.
The expected value of a function f(x) with respect to a distribution dist is defined as:
ubound
E[x] = Integral(f(x) * dist.pdf(x))
lbound
Parameters: | func : callable, optional
args : tuple, optional
lb, ub : scalar, optional
conditional : bool, optional
Additional keyword arguments are passed to the integration routine. |
---|---|
Returns: | expect : float
|
Notes
The integration behavior of this function is inherited from integrate.quad.