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
- Standard
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| data | List[Data] | The time series data as a list of data points. | None | False |
| target | str | The name of the column for which to calculate variance. | None | False |
Returns
An object containing the rolling variance values.