RollingRegressionTransformer<T>
Models & Types · AiDotNet.Preprocessing.TimeSeries
Computes rolling regression features for financial time series analysis.
Inheritance: TimeSeriesTransformerBase<T> → RollingRegressionTransformer<T>
For Beginners
This transformer helps you understand how an asset (like a stock) performs relative to a benchmark (like the S&P 500 market index).
Key features:
- Beta: How much the asset moves when the market moves (sensitivity)
- Alpha: Extra return the asset provides beyond what market exposure explains
- R²: How much of the asset’s movement is explained by the market
- Sharpe Ratio: Return earned per unit of total risk taken
- Sortino Ratio: Like Sharpe but only penalizes downside risk
These rolling calculations show how these relationships change over time.
How It Works
This transformer calculates rolling statistics that measure the relationship between an asset and a benchmark, including alpha, beta, R², Sharpe ratio, and Sortino ratio.
Constructors
| Constructor | Summary |
|---|---|
RollingRegressionTransformer(TimeSeriesFeatureOptions options) |
Creates a new rolling regression transformer with the specified options. |
Properties
| Property | Summary |
|---|---|
bool SupportsIncrementalTransform { get; } |
Gets whether this transformer supports incremental transformation. |
bool SupportsInverseTransform { get; } |