Quantitative Risk Management in R: Value-At-Risk and Expected Shortfall
Quantitative Risk Management in R: Value-At-Risk and Expected Shortfall
Quantitative Risk Management in R: Value-At-Risk and Expected Shortfall
Value-at-risk and
expected shortfall
Quantitative Risk Management in R
Value-at-risk (VaR)
● Consider the distribution of losses over a fixed time
period (day, week, etc.)
95% ES = 3.3
0.20
probability density
0.10 0.15
0.05
5% probability
0.0
-10 -5 0 5 10
Quantitative Risk Management in R
95% ES illustrated
Loss Distribution
Mean loss = -2.4
0.25
95% ES = 3.3
0.20
probability density
0.10 0.15
0.05
5% probability
0.0
-10 -5 0 5 10
QUANTITATIVE RISK MANAGEMENT IN R
Let’s practice!
QUANTITATIVE RISK MANAGEMENT IN R
International equity
portfolio example
Quantitative Risk Management in R
> riskfactors <- merge(FTSE, SP500, SMI, USD_GBP, CHF_GBP, all = FALSE)
["/2012-12-31", ]
Quantitative Risk Management in R
Historical simulation
● Simple method that is widely used in financial industry
● Resample historical risk-factor returns and examine their
effect on current portfolio
● Loss operator shows effect of different risk-factor returns
on the portfolio
● Loss operator functions will be provided in the exercises
Quantitative Risk Management in R
Let’s practice!
QUANTITATIVE RISK MANAGEMENT IN R
Let’s practice!
QUANTITATIVE RISK MANAGEMENT IN R
Historical simulation
for the option example
Quantitative Risk Management in R
Historical simulation
● Portfolio: single European call option on equity index
● Consider losses and profits over one day
Let’s practice!
QUANTITATIVE RISK MANAGEMENT IN R
Wrap up
Quantitative Risk Management in R