scipy.stats.rv_continuous.expect

rv_continuous.expect(func=None, args=(), loc=0, scale=1, lb=None, ub=None, conditional=False, **kwds)

calculate expected value of a function with respect to the distribution

location and scale only tested on a few examples

Parameters :

all parameters are keyword parameters :

func : function (default: identity mapping)

Function for which integral is calculated. Takes only one argument.

args : tuple

argument (parameters) of the distribution

lb, ub : numbers

lower and upper bound for integration, default is set to the support of the distribution

conditional : boolean (False)

If true then the integral is corrected by the conditional probability of the integration interval. The return value is the expectation of the function, conditional on being in the given interval.

Additional keyword arguments are passed to the integration routine. :

Returns :

expected value : float

Notes

This function has not been checked for it’s behavior when the integral is not finite. The integration behavior is inherited from integrate.quad.

Previous topic

scipy.stats.rv_continuous.fit

Next topic

scipy.stats.rv_continuous.median

This Page