IVolatilityModel<T>
Interfaces · AiDotNet.Finance.Interfaces
Interface for volatility models that forecast price variability.
Implements: IFinancialModel<T>
Known implementations: ClassicalVolatilityModelBase<T>, NeuralGARCH<T>, RealizedVolatilityTransformer<T>
For Beginners
Volatility measures how “bouncy” prices are.
Why Volatility Matters:
- Options pricing: Higher volatility = more expensive options
- Risk management: Volatile assets need more capital buffer
- Portfolio construction: Helps balance risk across assets
Types of Volatility:
- Historical: What happened in the past
- Implied: What the market expects (from option prices)
- Realized: What actually occurred over a period
- Forecast: Our prediction for the future
How It Works
Volatility models predict how much prices will fluctuate, essential for option pricing, risk management, and portfolio construction.
Methods
| Method | Summary |
|---|---|
Dictionary<string, T> GetVolatilityMetrics() |
Gets volatility-specific metrics. |
Tensor<T> CalculateRealizedVolatility(Tensor<T> highFrequencyReturns) |
Calculates realized volatility from high-frequency data. |
Tensor<T> ComputeCorrelationMatrix(Tensor<T> returns) |
Computes the correlation matrix from returns data. |
Tensor<T> ComputeCovarianceMatrix(Tensor<T> returns) |
Computes the covariance matrix from returns data. |
Tensor<T> EstimateCurrentVolatility(Tensor<T> recentReturns) |
Estimates the current volatility state. |
Tensor<T> ForecastVolatility(Tensor<T> historicalReturns, int horizon) |
Forecasts future volatility. |