Lecture Notes On Value at Risk & Risk Management
Lecture Notes On Value at Risk & Risk Management
1. Credit risk
2. Market risk
3. Operational risk
• easier to understand
A formal definition:
• a long position:
• a short position:
p = F`(xp)
1. the probability p.
3. data frequency.
2
Why use log returns?
log returns ≈ percentage changes.
VaR = Value × (VaR of log return).
1. RiskMetrics
2. Econometric modeling
3. Empirical quantile
σt2 = ασt−1
2 2
+ (1 − α)rt−1 , 1 > α > 0.
3
• VaR = 1.65σt if p = 0.05.
√
• k-horizon: VaR[k] = kVaR
The square root of time rule
rt = at, at = σtt,
2
σt2 = 0.9396σt−1 + (1 − 0.9396)a2t−1
2
Because r9190 = −0.0128 and σ̂9190 = 0.0003472,
2
σ̂9190 (1) = 0.000336.
√
For p = 0.05, VaR of rt = −1.65 × 0.000336 = −0.03025
Econometric models
• rt = µt + at given Ft−1
4
• Pros: sound theory
If p = 0.05, then
√
0.00071 − 1.6449 × 0.0003211 = −0.02877.
VaR = $409,738.
Case 2: Student-t5
VaR = $475,943.
Discussion:
Empirical quantile
Sample of log returns: {rt|t = 1, · · · , n}.
Order statistics:
6
r(1) ≤ r(2) ≤ · · · ≤ r(n)
VaR is $365,709.
7
Extreme value theory: Focus on the tail behavior of rt.
Review of extreme value theory
A properly normalized r(1) assumes a special distribution:
1 − exp[−(1 + kx)1/k ] if k 6= 0
F∗(x) =
1 − exp[− exp(x)] if k = 0
8
where −∞ < x < ∞ for k = 0, x < −1/k for k < 0 and x > −1/k
for k > 0.
n: size of subgroup
Idea: find the minimum of each subgroup. These minima are the
data used to estimate the three parameters.
Several estimation methods available. We use maximum likelihood
estimates.
IBM data:
9
n g Scale αn Location βn Shape Par. kn
(a) Minimal returns
21 437 0.823(0.035) −1.902(0.044) −0.197(0.036)
63 145 0.945(0.077) −2.583(0.090) −0.335(0.076)
126 72 1.147(0.131) −3.141(0.153) −0.330(0.101)
252 36 1.542(0.242) −3.761(0.285) −0.322(0.127)
(b) Maximal returns
21 437 0.931(0.039) 2.184(0.050) −0.168(0.036)
63 145 1.157(0.087) 3.012(0.108) −0.217(0.066)
126 72 1.292(0.158) 3.471(0.181) −0.349(0.130)
252 36 1.624(0.271) 4.475(0.325) −0.264(0.186)
VaR is $304,969.
10
If p = 0.05, then VaR is $166,641.
For n = 21, the results are:
VaR = $340,013 for p = 0.01;
VaR = $184,127 for p = 0.05.
Discussion:
p = 0.01, then
11
2. $409,738 for an AR(2)-GARCH(1,1) model,
If p = 0.001, then
12
New approach to VaR
Based on Exceedances over a high threshold
Idea: frequency of big returns and their magnitudes are important.
Statistical theory:
Two-dimensional Poisson process
Two possible cases:
Homogeneous: parameters are fixed over time
Non-homogeneous case: parameters are time-varying, according to
some explanatory variables.
IBM data: homogeneous model
13
where T = 252, the number trading days in a year.
IBM data: VaR of 5% & 1%
• Case I: original returns
Non-homogeneous case:
(* pgev, dgev, qgev and rgev are commands for CDF, pdf, quantile and rando
generalized extreme value distribution *)
(* For example, to obtain the 95th quantile, use below *)
15
> qgev(0.95,xi=0.5,mu=0,sigma=1) % obtain quantile
[1] 6.830793
> library(evir)
> da=read.table("d-ibmln98.dat")
> ibm=da[,1]
> plot(ibm,type=’l’)
> qqnorm(ibm) % normal probability plot
$par.ests
xi sigma mu
0.1956199 0.8239793 1.9031998
$par.ses
xi sigma mu
16
0.03554473 0.03476737 0.04413629
$varcov
[,1] [,2] [,3]
[1,] 1.263428e-03 -2.782725e-05 -0.0004338483
[2,] -2.782725e-05 1.208770e-03 0.0008475859
[3,] -4.338483e-04 8.475859e-04 0.0019480124
$converged
[1] 0
$nllh.final
[1] 654.3337
attr(,"class")
[1] "gev"
> names(m1)
[1] "n.all" "n" "data" "block" "par.ests"
[6] "par.ses" "varcov" "converged" "nllh.final"
17
1: plot: Scatterplot of Residuals
2: plot: QQplot of Residuals
Selection: 1
> 1-pgev(max(ymax),xi=.196,mu=1.90,sigma=.824)
[1] 5.857486e-05 % Prob. that the drop will exceed the maximum.
> m2=gpd(nibm,threshold=2.5)
> names(m2)
[1] "n" "data" "threshold" "p.less.thresh"
[5] "n.exceed" "method" "par.ests" "par.ses"
[9] "varcov" "information" "converged" "nllh.final"
18
> m2$threshold
[1] 2.5
> m2$n.exceed
[1] 310
$threshold
[1] 2.5
$p.less.thresh
[1] 0.9662677
$n.exceed
[1] 310
$method
[1] "ml"
$par.ests
xi beta
0.2641593 0.7786761
$par.ses
xi beta
0.06659234 0.06714131
19
$varcov
[,1] [,2]
[1,] 0.004434540 -0.002614442
[2,] -0.002614442 0.004507955
$information
[1] "observed"
$converged
[1] 0
$nllh.final
[1] 314.375
attr(,"class")
[1] "gpd"
20
Selection: 0
Nη i=1 i
where Nη is the number of returns that exceed η and rti are the
values of the corresponding returns.
The scatterplot eT (η) versus η is called the mean excess plot, which
should be linear for η > ηo.
In R or S-Plus, the command is meplot.
Expected Shortfall (ES): the expected loss given that the VaR
is exceeded. Specifically,
23
For GPD, it turns out that
VaRq ψ(η) + kη
ESq = + .
1+k 1+k
In evir, the command is riskmeasures.
t=1
= 1 − [P (rt ≤ Q)]n (because of same distribution)
P (rt ≤ Q) = 1 − p
Therefore,
24
This means that Q is the (1 − p)n-th quantile of the generalized
extreme value distribution.
Credit Risk:
Reference: Credit Risk Measurement: New Approaches to Value
at Risk and Other Paradigms, 2nd Edition, by Anthony Saunders
and Linda Allen, Wiley, 2002.
Some techniques for credit risk measurement
25
2. Credit quality over time (transition)
26
CreditMetrics: developed by J.P. Morgan and other sponsors in
1997.
Simply put, CreditMetrics addresses the question:
“How much will one lose on his loans and loan portfolios next year
for a given confidence level?”
From the assessment of market risk, the current market value and
its volatility of a financial position play an imporant role in VaR
calculation. Application of VaR methodology to nontrabable loans
encounters some immediate problems:
2. The probability that the rating will change over the next year
(the rating transition matrix)
27
Note: The numerical numbers used in this example are from Chap-
ter 6 of the reference book cited above.
Rating migration: One-year transition probabilities for BBB-
rated borrower
AAA AA A BBB BB B CCC Defaulty
0.02 0.33 5.95 86.93 5.30 1.17 0.12 0.18
Valuation Rating change (upgrades and downgrades) will affect
the required credit risk spreads or premiums on the loan’s remaining
cash flows and, hence, the implied market value of the loan.
Downgrade → credit spread premium rises → present value of the
loan should fall.
Upgrade has the opposite effect.
return to the example. (after one-year and a credit rating change)
6 6 6 106
P = 6+ + 2
+ 3
+ ,
1 + r1,1 + s1 (1 + r1,2 + s2) (1 + r1,3 + s3) (1 + r1,4 + s4)4
where r1,i are the risk-free rates on zero-coupon U.S. Treasury bonds
expected to exist one year into the future and si is the annual credit
spread on loans of a particular rating class of 1-year, 2-year, 3-year
and 4-year maturities (derived from observed spreads in the corporate
bond market over Treasuries).
One-year forward zero curves plus credit spreads by credit rating
category:
28
Category Year 1 Year 2 Year 3 Year 4
AAA 3.60 4.17 4.73 5.12
AA 3.65 4.22 4.78 5.17
A 3.72 4.32 4.93 5.32
BBB 4.10 4.67 5.25 5.63
BB 5.55 6.02 6.78 7.27
B 6.05 7.02 8.03 8.52
CCC 15.05 15.02 14.03 13.52
Suppose that, during the first year, the borrower gets upgraded from
BBB to A. The present value of the loan is
6 6 6 106
P =6+ + + + = $108.66.
1.0372 (1.0432)2 (1.0493)3 (1.0532)4
Value of the loan at the end of Year 1, under different rating changes
(including first-year coupon):
Calculation of VaR
29
New Loan Difference
Value Plus Probability of Value Probability
Year-end Probability Coupon Weighted from Weighted
Rating of State(%) (millions) Value($) Mean ($) Diff. Squared
AAA 0.02 109.37 0.02 2.28 0.0010
AA 0.33 109.19 0.36 2.10 0.0146
A 5.95 108.66 6.47 1.57 0.1474
BBB 86.93 107.55 93.49 0.46 0.1853
BB 5.30 102.02 5.41 (5.06) 1.3592
B 1.17 98.10 1.15 (8.99) 0.9446
CCC 0.12 83.64 1.10 (23.45) 0.6598
Default 0.18 51.13 0.09 (55.96) 5.6358
Form the table, the mean value of the loan is $107.09 (sum of the
4-th column). The variance of the value is 8.9477 (sum of the last
column).
√
Consequently, the standard deviation is σ = 8.9477 = 2.99.
30
• 1.47% VaR: $107.09-98.10 = $8.99
31