stdev
Calculate the rolling standard deviation of a target column within a given window size.
Standard deviation is a measure of the amount of variation or dispersion of a set of values. It is widely used to assess the risk and volatility of financial returns or other time series data over a specified rolling window. It is the square root of the variance.
Parameters
- standard
data
: list[openbb_core.provider.abstract.data.Data]
The time series data as a list of data points.
• Optional: False
target
: str
The name of the column for which to calculate standard deviation.
• Optional: False
window
: int
The number of observations used for calculating the rolling measure.
• Default: 21
• Optional: True
index
: str
The name of the index column, default is 'date'.
• Default: date
• Optional: True
Returns
results
: list[Data]
Serializable results.
provider
: None
Provider name.
warnings
: Optional[list[Warning_]]
list of warnings.
chart
: Optional[Chart]
Chart object.
extra
: dict[str, Any]
Extra info.