This project analyses market risk using NIFTY 50, India VIX, and US VIX data. It examines historical returns, volatility patterns, downside risk, and the relationship between market volatility and NIFTY 50 returns.
- Analyse NIFTY 50 daily returns and market volatility.
- Calculate historical Value at Risk (VaR) and Expected Shortfall (ES).
- Evaluate VaR using out-of-sample backtesting.
- Compare returns across normal- and high-volatility regimes.
- Estimate regression-based stress scenarios using India VIX and US VIX.
- Evaluate regression performance on a chronological test dataset.
- Data cleaning and date alignment.
- Daily log-return and volatility-change calculations.
- Descriptive statistics and visualisation.
- Historical and parametric VaR and Expected Shortfall.
- Rolling historical VaR backtesting.
- Volatility-regime comparison and statistical tests.
- Regression modelling and out-of-sample evaluation.
- Scenario-based market stress testing.
- Python
- Jupyter Notebook
- Pandas
- NumPy
- Matplotlib
- SciPy
Untitled10.ipynb— analysis notebookfigures/— exported graphsresults/— result tables and CSV filesdata/— cleaned data or data-source instructions
The regression and stress-testing results are exploratory and depend on the quality of the input data and model assumptions. Stress scenarios are hypothetical, not guaranteed forecasts. The relationship between volatility indices and NIFTY returns should not be interpreted as causal without further analysis.
Open the notebook in JupyterLab, ensure the required libraries and input datasets are available, and run the cells in order.
Valathappan G
Academic project in market risk measurement and stress testing.