6.3.16.1.2. statsmodels.sandbox.distributions.try_pot.mean_residual_life

statsmodels.sandbox.distributions.try_pot.mean_residual_life(x, frac=None, alpha=0.05)[source]

emprirical mean residual life or expected shortfall

Parameters:

todo: check formula for std of mean

doesn’t include case for all observations

last observations std is zero

vectorize loop using cumsum

frac doesn’t work yet