Skip to content

gianlucaciaccio/financial-risk-measurement

Repository files navigation

financial-risk-measurement

This repo contains the source code where I implement the topics of the Risk Econometrics exam that I studied during my academic experience at the University of Bologna.

The textbook from which I studied the theory is "Elements of Financial Risk Management", and the implementation was conducted in R, using the rugarch, rmgarch and quarks packages.

Goal

The goal of the project is to measure the portfolio risk using Value at Risk and the Expected Shortfall, comparing the different methods for their calculation and modeling the conditional volatility of log returns.

The methods used are applied separately considering both a univariate and a multivariate portfolio.

Univariate analysis

In the first part of the project, univariate-financial-risk-measurement, is considered a portfolio with a single asset, the SP500 from January 1st 2001 to December 31st 2010.

The methods used are:

Case with unconditional (static) volatility over time:

VaR and ES are calculated both on the entire portfolio and using rolling windows of 250 and 1000 trading days.

Case with conditional (dynamic) volatility over time:

Different methods for modeling conditional volatility are compared:

  • The RiskMetrics EWMA model
  • Different specifications of GARCH (Standard GARCH, Integrated-GARH, GJR-GARCH, Nonlinear-GARCH and Exponential-GARCH).

For each of these models, different distributional assumptions of returns have been evaluated:

The best specification was chosen using backtesting.

Multivariate analysis

In the second part of the project, multivariate-financial-risk-measurement, is considered a portfolio with two assets, one equity (SP500) and one bond (U.S. 10 Year Treasury Note).

By maintaining a similar scheme of the univariate analysis, the focus is only on modeling portfolio volatility and covariance/correlation between assets over time using Dynamic Conditional Correlation models (DCC-EWMA and DCC-GARCH).

About

Finacial risk measurement

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages