03 VaR
03 VaR
1 / 37
Outline
Backtesting VaR.
2 / 37
Value at Risk (VaR)
3 / 37
VaRα = F −1(α)
4 / 37
VaR for Normal Random Variables
Proof (easy!)
Note we can write L = µ + σZ for Z ∼ N(0, 1).
5 / 37
VaR From Data (again)
6 / 37
Proof of VaRα (Fne ) = `(dnαe)
7 / 37
VaR for Portfolio Losses
We can use VaR for normal and empirical dist’s to
obtain portfolio loss VaR in a wide range of models.
Recall: Lt+∆ = −(Vt+∆ − Vt ) is the portfolio loss.
Goal: estimate VaRα (Lt+∆ ) at time t.
9 / 37
Historical Example: Stock Portfolio
10 / 37
MC Example: Apple Call Option
Sell a call option (K , T ), delta-hedge with stock.
BS model, constant hedging position over [t, t + ∆].
Lt+∆ = − ht (St+∆ − St ) − C BS (t + ∆, St+∆ ) − C BS (t, St ) .
11 / 37
Analytical Method
F
Assumes Xt+∆ ∼t F and computes VaR off F .
F
E.g.: equities, log returns Xt+∆ ∼t N (µt+∆ , Σt+∆ ).
(i)
Pd (i) Xt+∆
Lt+∆ = − i=1 θt e − 1 = −θtT e Xt+∆ − 1 .
Pd (i) (i)
Llin
t+∆ = − i=1 θt Xt+∆ = −θtT Xt+∆
(i) (i) (i)
θt = λt St : dollar position.
12 / 37
Equity Example Continued
VaR for full losses estimated via simulation:
For m = 1, . . . , M:
m F
Sample Xt+∆ ∼t N(µt+∆ , Σt+∆ ).
m
Set `m = Lm T
t+∆ = −θt e
Xt+∆
−1 .
13 / 37
VaR and Time Aggregation
14 / 37
Time-Aggregation
What do we do?
15 / 37
Square Root of Time
Industry convention:
√
J day VaRα = J× one day VaRα .
F
Next, assume {Xt+j∆ }Jj=1 i.i.d. ∼t N(0, Σ).
PJ F
This implies j=1 Xt+j∆ ∼t N (0, JΣ).
16 / 37
Square Root of Time
Ft
Thus, Llin
t+J∆ ∼ J 0, Nθt
T
Σθt .
q T
VaRα Llin
t+J∆ = Jθt Σθt N −1 (α);
√ q
= J × θtT Σθt N −1 (α);
√
= J × VaRα Llin
t+∆ .
17 / 37
Square root of Time Rule
18 / 37
Time Aggregation: MC
We can avoid such approximations using MC.
Idea: if Vt = f (t, Zt ) then
Lt+J∆ = − f t + J∆, zt + Jj=1 Xt+k∆ − f (t, zt )
P
P
J J
= l[t] j=1 Xt+j∆
J
l[t] (x) = − (f (t + J∆, zt + x) − f (t, zt )).
Method:
Postulate a model for the process {Xt+j∆ }Jj=1 .
For m = 1, . . . , M
n oJ
m
Sample Xt+j∆ .
j=1
P
J J m
Compute `m = l[t] j=1 t+j∆ .
X
J
How do we obtain the loss operator l[t] (x)?
Issue: for J >> 1 we must allow for position changes.
20 / 37
MC and Time Aggregation
Telescoping sum.
PJ (i)
(i) (i) (i) (i) j=1 XTj
Pd (i)
Pd
Lt+J∆ = − i=1 λ STJ − St = − i=1 λ St e − 1 .
21 / 37
MC Example: Hedged Call Option
L1 = −(VT1 − VT0 ).
22 / 37
Hedged Call Option
For j = 2, ..., J consider [Tj−1 , Tj ].
“Yesterday’s closing” dollar positions (end of [Tj−2 , Tj−1 ])
(stock): hTj−2 STj−1 .
(bank): YTj−1 .
“Today’s opening” dollar positions (beginning of [Tj−1 , Tj ])
(stock): hTj−1 STj−1 where hTj−1 = ∂S C BS (Tj−1 , STj−1 ).
(bank) : YTnew
j−1
= YTj−1 + hTj−2 − hTj−1 STj−1 .
Simulation inputs.
1
T − t = .292, ∆ = 252
, J = 10, κ = 170.
VaR
\ .95 ’s (100 calls)
24 / 37
Backtesting VaR
25 / 37
Backtesting VaR: Theory
F
=⇒ It+∆ ∼t B(1 − α).
P [It+∆ ≤ τ1 , Is+∆ ≤ τ2 ] = P It+∆ ≤ τ1 P Is+∆ ≤ τ2 Ft
= Gα (τ2 )P [It+∆ ≤ τ1 ]
= Gα (τ1 )Gα (τ2 ).
27 / 37
Backtesting VaR: Theory
Ft
By construction, NtJ0 ∼0 B(J, 1 − α).
Binomial r.v. with J trials (periods), 1 − α probability of
success (exceedance).
28 / 37
Backtesting VaR: Practice
Basic idea:
29 / 37
Backtesting VaR: Practice
The test
30 / 37
Backtesting VaR: Practice
PJ
As such, for large J (recall NtJ0 = j=1 It0 +j∆ )
J
N̂ −J(1−α)
If Zb := √t0 then Zb ≈ N(0, 1) in dist..
Jα(1−α)
31 / 37
Backtesting VaR: Practice
To test the null hypothesis:
We take in the VaR confidence α, # of sample days J, CI
confidence 1 − β.
We then
Count the number of exceedances N̂tJ0 over [T0 , TJ ].
If this number lies outside the 1 − β CI we reject the null
hypothesis at the 100(1 − β)% confidence.
32 / 37
Backtesting Example
Hypothetical portfolio:
t
Produce the estimates VaR
\α two ways.
33 / 37
Backtesting Example
M
Use past returns to obtain `tm = l[t] (xt−(m−1)∆ ) m=1
.
t
t
Estimate VaR
\ α = `(dMαe) .
34 / 37
Backtesting Example
F 2
Explicit full loss VaR formula when Xt+∆ ∼t N(µ̂t+∆ , σ̂t+∆ ) is
one-dimensional.
Make sure you can derive this!
35 / 37
Backtesting Example
Exceedances
Empirical: 44.
EWMA: 79.
36 / 37
Backtesting Example
37 / 37