# staircase.Stairs.var¶

Stairs.var(lower=-inf, upper=inf)

Calculates the variance of the step function.

Parameters: lower (int, float or pandas.Timestamp) – lower bound of the interval on which to perform the calculation upper (int, float or pandas.Timestamp) – upper bound of the interval on which to perform the calculation The variance of the step function float

Examples

>>> s1.plot()
>>> s1.var()
0.6875
>>> s1.var(lower=0, upper=6)
0.4722222222222224