variance#
API documentation for pandas_ta.statistics.variance Python function.
- variance(close, length=None, ddof=None, talib=None, offset=None, **kwargs)[source]#
Rolling Variance
Sources:
- Calculation:
- Default Inputs:
length=30
VARIANCE = close.rolling(length).var()
- Args:
close (pd.Series): Series of ‘close’s length (int): It’s period. Default: 30 ddof (int): Delta Degrees of Freedom.
The divisor used in calculations is N - ddof, where N represents the number of elements. Default: 0
- talib (bool): If TA Lib is installed and talib is True, Returns the TA Lib
version. Default: True
offset (int): How many periods to offset the result. Default: 0
- Kwargs:
fillna (value, optional): pd.DataFrame.fillna(value) fill_method (value, optional): Type of fill method
- Returns:
pd.Series: New feature generated.