This project implements a rolling-window parametric VaR model for an equity portfolio using historical returns and a normal distribution assumption. The model is evaluated through backtesting and exception analysis.
- Apple (AAPL)
- Microsoft (MSFT)
- Google (GOOGL)
- Daily log returns are computed from adjusted prices
- Portfolio returns are calculated using fixed weights
- Mean and volatility are estimated using a rolling window
- VaR is computed at a specified confidence level
- Backtesting is performed by counting VaR exceptions
- Rolling VaR vs realized returns
- Return distribution with VaR and Expected Shortfall
- QQ plot to assess normality assumptions
- Install dependencies: pip install -r requirements.txt
- Open the notebook: dynamic_parametric_var.ipynb
- Run all cells sequentially
- Rolling VaR closely tracks changes in portfolio volatility
- Backtesting shows a small number of VaR breaches
- Exception rate is slightly above the theoretical level, reflecting fat-tailed equity returns
- QQ plot indicates deviations from normality in the tails
- Assumes normally distributed returns
- Does not model volatility clustering
- Not intended for regulatory capital calculations
- GARCH-based volatility
- Historical and Monte Carlo VaR