Skip to main content

variance

Calculate the variance of a target column.

Variance measures the dispersion of a set of data points around their mean. It is a key metric for assessing the volatility and stability of financial returns or other time series data.

obb.quantitative.stats.variance(data: Union[list, dict, pd.DataFrame, List[pd.DataFrame], pd.Series, List[pd.Series], numpy.ndarray, Data, List[Data]], target: str)

Parameters​

NameTypeDescriptionDefaultOptional
dataList[Data]The time series data as a list of data points.NoneFalse
targetstrThe name of the column for which to calculate variance.NoneFalse

Returns​

An object containing the rolling variance values.

On this page