Value-at-Risk and Expected Shortfall
Value-at-Risk and Expected Shortfall
Quantitative Finance
Lecture 8, Value-at-Risk and Expected Shortfall
Adam Farago
2019
Value-at-Risk
Introduction
Value-at-Risk
Introduction
Value-at-Risk
Introduction
Value-at-Risk
Formalization
Consider a fixed time period [t, t + ∆t] , where ∆t can be e.g 1 day, 10
days, one month, one year, etc.
We can define the following objects:
The change in the value of the portfolio during the period [t, t + ∆t] is
∆V ≡ Vt+∆t − Vt
The return on the portfolio during the period [t, t + ∆t] is
∆V
RV ≡
Vt
The loss of the portfolio during the period [t, t + ∆t] is
L ≡ −∆V = − (Vt+∆t − Vt )
The relative loss of the portfolio during the period [t, t + ∆t] is
L
RL ≡ = −RV
Vt
Quantitative Finance, Lecture 8 4 / 56
Value-at-Risk Normal VaR Approximate - Normal VaR t VaR Coherent risk measures Expected shortfall
Value-at-Risk
Formalization
It is defined as
FL (x) = P (L ≤ x)
Value-at-Risk
Defintion
“What loss level is such that we are X% confident it will not be
exceeded in N business days?”
Value-at-Risk (VaR)
Given the loss L and a confidence level α ∈ (0, 1), VaRα (L) is given by the
smallest number x such that the probability that the loss exceeds x is not
larger than 1 − α. That is,
Note that
VaRα (L) = inf {x ∈ R : 1 − P (L ≤ x) ≤ 1 − α}
= inf {x ∈ R : P (L ≤ x) ≥ α}
= inf {x ∈ R : FL (x) ≥ α}
probability
so VaR (L)0.99 = 6000 0.3
0.2 0.2
0.2
If α = 0.97, then
{x ∈ R : FL (x) ≥ 0.97} = [4000, ∞[ 0.1 0.06 0.06
0.03
so VaR (L)0.97 = 4000
0
1
If α = 0.95, then
0.8
{x ∈ R : FL (x) ≥ 0.95} = [4000, ∞[
so VaR (L)0.95 = 4000 0.6
cdf
0.4
If α = 0.9, then
{x ∈ R : FL (x) ≥ 0.9} = [2000, ∞[ 0.2
so VaR (L)0.9 = 2000
0
-6000 -4000 -2000 0 2000 4000 6000
L (loss)
pdf
random variable is continuous 1
0.2
That, is the VaR is a quantile of
the distribution. 0
-6000 -4000 -2000 0 2000 4000 6000
L (loss)
Comments
Comments
VaR at different horizons
Proof:
Let us calculate the 5-day VaR and ES with α = 0.95 using the
assumption that the return on the five assets follow a multivariate
normal distribution.
Let us assume that the five return series follow a multivariate normal
distribution
R ∼ N(µ, Σ)
where µ is the mean vector from the above table and Σ is the
variance-covariance matrix based on the above descriptives.
Quantitative Finance, Lecture 8 15 / 56
Value-at-Risk Normal VaR Approximate - Normal VaR t VaR Coherent risk measures Expected shortfall
with
µp = w 0 µ = 0.0033
√
σp = w 0 Σw = 0.027
where w 0 = [0.2 0.2 0.2 0.2 0.2].
The loss is L = −RV Vt (with Vt = 50000), so
L ∼ N −µp Vt , σp2 Vt2
Therefore,
VaRα (L)
VaRα (L) = −µp Vt + σp Vt Φ−1 (0.95) = 2057.1 and = 4.11%
Vt
Quantitative Finance, Lecture 8 16 / 56
Value-at-Risk Normal VaR Approximate - Normal VaR t VaR Coherent risk measures Expected shortfall
Approximate-analytical solutions
Example
Continuing from the previous lecture
Consider a portfolio with three assets:
S&P 500 index (you can think of a well-diversified US stock portfolio)
Call option on the S&P 500 (strike price: 2900, maturity: 6 months)
Put option on the S&P 500 (strike price: 2750, maturity: 6 months)
Note: The volatility of the S&P 500 is assumed to be 20%, while the risk-free rate is 2%
(both yearly).
Quantitative Finance, Lecture 8 18 / 56
Value-at-Risk Normal VaR Approximate - Normal VaR t VaR Coherent risk measures Expected shortfall
Delta-Normal VaR
∂V
L = −∆V = − ∆S = −δV · ∆S
∂S
Assume that stock returns are normally distributed
∆S
∼ N µS , σS2 ⇔ ∆S ∼ N St µS , St2 σS2
St
Then, VaRα (∆S) can be calculated using the formula from the previous
lecture, and
VaRα (L) = −δV VaRα (∆S)
BUT be careful with the sign of δV !!
Delta-Normal VaR
δV < 0 δV > 0
200 200
100 100
0 0
L
L
-100 -100
-200 -200
S
S
pdf of
pdf of
Delta-Normal VaR
We need (
St µS + St σS Φ−1 (1 − α) if δV ≥ 0
St µS + St σS Φ−1 (α) if δV < 0
The Delta-Normal VaR is
(
−δV St µS − δV St σS Φ−1 (1 − α) if δV ≥ 0
VaRα (L) =
−δV St µS − δV St σS Φ−1 (α) if δV < 0
Delta-Normal VaR
(
−δV St µS + δV St σS Φ−1 (α) if δV ≥ 0
VaRα (L) =
−δV St µS − δV St σS Φ−1 (α) if δV < 0
Quantitative Finance, Lecture 8 21 / 56
Value-at-Risk Normal VaR Approximate - Normal VaR t VaR Coherent risk measures Expected shortfall
Delta-Normal VaR
Special cases
∆S
∼ N 0, σS2 , then
If St
(
δV St σS Φ−1 (α) if δV ≥ 0
VaRα (L) = −1
−δV St σS Φ (α) if δV < 0
If ∆S 2
St ∼ N 0, σS and you have only one stock in your portfolio
(implying δV = 1), then
VaRα (L)
VaRα (L) = St σS Φ−1 (α) or = σS Φ−1 (α)
St
If ∆S 2
St ∼ N 0, σS and you have n stocks in your portfolio (implying
δV = n), then
VaRα (L)
VaRα (L) = nSt σS Φ−1 (α) = Vt σS Φ−1 (α) or = σS Φ−1 (α)
Vt
Quantitative Finance, Lecture 8 22 / 56
Value-at-Risk Normal VaR Approximate - Normal VaR t VaR Coherent risk measures Expected shortfall
Horizon
Delta-Normal VaR
Example
Delta-Normal VaR
Example
In our example, the 5-day VaR with α = 0.95 can be calculated as (note
that δV > 0)
VaR0.95 (∆S) = St · σS · Φ−1 (0.05)
= 2800 · 0.0283 · (−1.645) = −130.3
and
VaR0.95 (L) = −δV VaR0.95 (∆S)
= (−63.8) · (−130.3) = 8307.2
Equivalently
VaR0.95 (L) = δV St σS Φ−1 (0.95)
= 63.8 · 2800 · 0.0283 · 1.645 = 8307.2
VaR0.95 (L)
This also means Vt = 2.73%
Quantitative Finance, Lecture 8 25 / 56
Value-at-Risk Normal VaR Approximate - Normal VaR t VaR Coherent risk measures Expected shortfall
Delta-Normal VaR
Example
10000
8307.2
V 5000
-5000
S
pdf of
Delta-Normal VaR
When is it a good approximation?
Delta-Normal VaR
When is it a good approximation?
10000
5000
3715.1
V
-5000
S
pdf of
Delta-Normal VaR
When is it a good approximation?
Linear assets (e.g., the portfolio contains only the S&P 500).
Then the delta-approximation is exact.
Delta-Gamma-Normal VaR
Delta-Gamma-Normal VaR
First, calculate the VaR for the stock price changes, but again you have
to be careful, which tail of the distribution you look at:
VaR0.95 (L)
= 2.18%
Vt
Delta-Gamma-Normal VaR
10000
6645.5
5000
V
-5000
S
pdf of
Full-Valuation-Normal VaR
Full-Valuation-Normal VaR
10000
6601.8
5000
V
-5000
S
pdf of
t-distribution
How reasonable is the assumption of normally distributed returns?
Many financial data series have excess kurtosis or fat tails:
The empirical distribution is more peaked than the normal distribution.
The empirical distribution has heavier tails than the normal distribution.
This means that small changes and large changes are more likely than the
normal distribution would suggest.
t-distribution
How reasonable is the assumption of normally distributed returns?
Many financial data series have excess kurtosis or fat tails:
The empirical distribution is more peaked than the normal distribution.
The empirical distribution has heavier tails than the normal distribution.
This means that small changes and large changes are more likely than the
normal distribution would suggest.
Example: S&P 500 from 2010 to 2017
38.4%
t-distribution
How reasonable is the assumption of normally distributed returns?
Many financial data series have excess kurtosis or fat tails:
The empirical distribution is more peaked than the normal distribution.
The empirical distribution has heavier tails than the normal distribution.
This means that small changes and large changes are more likely than the
normal distribution would suggest.
Example: S&P 500 from 2010 to 2017
t-distribution
Characteristics:
Symmetric and bell-shaped (like the normal distribution).
Has heavier tails: i.e., it is more prone to producing values that fall far from
its mean.
ν
Has a mean of zero and ν−2 variance (the variance is only defined if ν > 2).
Described by one parameter: ν, the degrees of freedom:
Fat tails increase when degrees of freedom decreases.
When degrees of freedom go to infinity, t-distribution converges to normal
distribution.
t-distribution
L = µ + ωT , with T ∼ t (ν)
t-distribution
Have a look at the S&P 500 example again.
Consider a t-distributed
q variable, L, with
ν = 3, µ, and ω = σ 2 ν−2
ν
Note that this implies E (L) = µ, and Var (L) = σ 2
t-distribution
Have a look at the S&P 500 example again.
Consider a t-distributed
q variable, L, with
ν = 3, µ, and ω = σ 2 ν−2
ν
Note that this implies E (L) = µ, and Var (L) = σ 2
Value-at-Risk
Let us assume that the Loss distribution can be described as
L = µ + ωT , with T ∼ t (ν)
The Value-at-Risk at confidence level α is
VaRα (L) = µ + ωtν−1 (α)
where tν−1 (x) denotes the inverse of the distribution function of T . Values
can be obtained from using, e.g., Matlab (write icdf(’t’,x,ν)).
Some values with ν = 3:
α tν−1 (α)
0.999 10.215
0.995 5.841
0.99 4.541
0.95 2.353
0.9 1.638
Quantitative Finance, Lecture 8 39 / 56
Value-at-Risk Normal VaR Approximate - Normal VaR t VaR Coherent risk measures Expected shortfall
Delta-t VaR
Delta-t VaR
Delta-t VaR
(
−δV St µS + δV St ωS tν−1 (α) if δV ≥ 0
VaRα (L) =
−δV St µS − δV St ωS tν−1 (α) if δV < 0
The special cases we considered for the Delta-Normal VaR apply here
similarly.
Example
The Delta-Gamma and Full Valuation approaches can be done similarly
as in case of the normal distribution.
In our example q
5
Normal distribution: µS = 0 and σS = 0.2 250
q
t distribution: µS = 0, ωS = σS ν−2
ν , and ν = 3
Normal t
α = 0.95
Delta 8307.2 2.73% 6862.1 2.25%
Delta-Gamma 6645.5 2.18% 5728.2 1.88%
Full Valuation 6601.8 2.17% 5702.2 1.87%
α = 0.99
Delta 11749.0 3.86% 13240.0 4.35%
Delta-Gamma 8425.1 2.77% 9019.0 2.96%
Full Valuation 8319.1 2.73% 8878.5 2.92%
Quantitative Finance, Lecture 8 42 / 56
Value-at-Risk Normal VaR Approximate - Normal VaR t VaR Coherent risk measures Expected shortfall
Monotonicty
If hthere are
i two portfolios with loss distributions L and L̃ such that
P L ≤ L̃ = 1, then
VaRα (L) ≤ VaRα L̃
If one portfolio always produces a bigger loss than another its risk measure
should be greater. In other words, if one portfolio always performs worse
than another portfolio, it clearly should be viewed as more risky.
Lineraity
Let a ∈ R and b > 0 constants. Then,
Subadditivity
Consider two portfolios with loss distributions L and L̃. The risk measure
RM satisfies subadditivity if
RM L + L̃ ≤ RM (L) + RM L̃
This captures a diversification effect, saying that the riskiness should not
increase when merging two portfolios.
VaR as a risk measure does not fulfill subadditivity, i.e., we can find
examples when
VaRα L + L̃ > VaRα (L) + VaRα L̃
VaR satisfies the first three conditions but not the fourth one, i.e.,
it is not a coherent risk measure.
Expected Shortfall
Formalization
φ x−µ
σ
E [L | L > x] = µ + σ
1 − Φ x−µ
σ
We also know that
ESα (L) = E [L | L ≥ VaRα (L)]
So, x = VaRα (L) = µ + σΦ−1 (α), implying
φ Φ−1 (α)
ESα (L) = µ + σ
1 − Φ (Φ−1 (α))
φ Φ−1 (α)
=µ+σ
1−α
where φ (x) is the probability density function of the standard normal
distribution.
Quantitative Finance, Lecture 8 49 / 56
Value-at-Risk Normal VaR Approximate - Normal VaR t VaR Coherent risk measures Expected shortfall
The φ (x) values can be obtained from tables or in any software such as
Matlab, Excel, Stata, etc. (in Matlab, write normpdf(x)).
Some helpful values:
φ(Φ−1 (α))
α 1−α
0.999 3.367
0.995 2.892
0.99 2.665
0.95 2.063
0.9 1.755
Delta-Normal ES
∂V
L = −∆V = − ∆S = −δV · ∆S
∂S
Assume that stock returns are normally distributed
∆S
∼ N µS , σS2 ⇔ ∆S ∼ N St µS , St2 σS2
St
Then, ESα (∆S) can be calculated analytically and then
Delta-Normal ES
δV < 0 δV > 0
200 200
100 100
0 0
L
L
-100 -100
-200 -200
S
S
pdf of
pdf of
Delta-Normal ES
Without going into the details of the derivation here
Delta-Normal ES
−δ S µ + δ S σ φ(Φ−1 (α)) if δV ≥ 0
V t S V t S 1−α
ESα (L) =
−δ S µ − δ S σ φ(Φ−1 (α)) if δV < 0
V t S V t S 1−α
You can easily derive the special cases we considered for the
Delta-Normal VaR.
In our example:
α = 0.95 α = 0.99
VaR 8307.2 11749.0
ES 10417.5 13460.4
Comments
If you assume ∆S 2
St ∼ N 0, σS , as we did today, then the delta-normal
method gives
VaRα (L) = δV St σS Φ−1 (α)
φ(Φ−1 (α))
ESα (L) = δV St σS 1−α
The VaR and the ES are tightly linked, so the ES does not provide too
much additional information. This is due to the normality assumption. If
you have more general models, the ES can provide useful extra
information.
Similarly, you can derive an analytical formula for ES, when returns
follow a t-distribution (we will not do it now).
Introducing VaR
Basic concepts and notation: Slides 4-5
Know and understand the definition of VaR: Slides 6, 8-10
Linearity of VaR (be able to provide the proof also): Slide 11
Coherent risk measures (know the properties that define a coherent RM,
be able to give an economic interpretation of them): Slides 43-46, 48
Expected Shortfall
Definition of ES (know and understand): Slide 47
ES when L is normally distributed (know the formula and be able to apply
it): Slide 49-50
Delta-Normal ES (be able to derive the formula and apply it): Slides 51-54