Lecture 02
Lecture 02
Alexander Herbertsson
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 1 / 29
Content of lecture
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 2 / 29
Recap of the mixed binomial model
Consider a homogeneous credit portfolio model with m obligors, and where each
obligor can default up to fixed time point, say T . Each obligor have identical
credit loss at a default, say ℓ. Here ℓ is a constant.
Let Xi be a random variable such that
1 if obligor i defaults before time T
Xi = (1)
0 otherwise, i.e. if obligor i survives up to time T
Let Z be a random variable, discrete or continuous, that represents some
common background variable affecting all obligors in the portfolio.
Since we consider a homogeneous credit portfolio, X1 , X2 , . . . Xm are
identically distributed. Furthermore, we assume the following:
Conditional on Z , the random variables X1 , X2 , . . . Xm are independent and
each Xi have default probability p(Z ) ∈ [0, 1], that is
P [ Xi = 1 | Z ] = p(Z ) (2)
so that P [Xi = 1] = p̄ for each obligor i where p̄ is given by
p̄ = E [Xi ] = E [E [ Xi | Z ]] = E [p(Z )] (3)
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 3 / 29
Recap of the mixed binomial model, cont.
Recall that we want to find the loss distribution in the homogeneous credit
portfolio specified on the previous slide.
The total credit loss in the portfolio at time T , called Lm , is
m
X m
X m
X
Lm = ℓXi = ℓ Xi = ℓNm where Nm = Xi
i =1 i =1 i =1
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 4 / 29
The mixed binomial model, cont.
Hence, we have
m
P [Nm = k] = E [P [ Nm = k | Z ]] = E p(Z )k (1 − p(Z ))k (5)
k
which holds regardless if Z is a discrete or continuous random variable.
We want to find the loss distribution FLm (x) = P [Lm ≤ x] for x ∈ [0, ∞), or
in fact for x ∈ [0, ℓ · m] (why ?)
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 5 / 29
The loss distribution in a mixed binomial model
Note that for any positive x we have that
h xi h j x ki
FLm (x) = P [Lm ≤ x] = P [ℓNm ≤ x] = P Nm ≤ = P Nm ≤ (7)
ℓ ℓ
where ⌊y ⌋ is the integer part of y rounded downwards, e.g ⌊3.14⌋ = 3.
Pn
For n = 0, 1 . . . , m then P [Nm ≤ n] = k=0 P [Nm = k] which in (7) yields
⌊ ℓx ⌋
X
FLm (x) = P [Nm = k] (8)
k=0
Note that FLm (x) in (8) or (9) will be piece-wise constant (i.e. flat) on each
interval [0, ℓ[, [ℓ, 2ℓ[. . . [(m − 1)ℓ, mℓ[, [mℓ, ∞[ (why ?)
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 6 / 29
The loss distribution in a mixed binomial model, cont.
Note the formula for the loss distribution in (8) or (9) is rather tedious and
will fail for large values of m (why ?)
Recall that F (x) is the distrib. function of p(Z ), i.e F (x) = P [p(Z ) ≤ x]
and from last lecture we know that for any x ∈ [0, 1] it holds that
Nm
P ≤ x → F (x) = P [p(Z ) ≤ x] as m → ∞ (10)
m
We also have that
Nm x
FLm (x) = P [Lm ≤ x] = P [ℓNm ≤ x] = P ≤
m ℓm
and this in (10) then implies that
x
FLm (x) → F as m → ∞
ℓm
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 7 / 29
The loss distribution in a mixed binomial model, cont.
x
So if m is ”large” we can approximate FLm (x) = P [Lm ≤ x] with F ℓm
instead of numerically compute the involved expression in the RHS of (9)
This will be very useful when computing different risk measures for credit
portfolios, such as Value-at-Risk and expected shortfall
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 8 / 29
Value-at-Risk
We now define/recap the risk measure Value-at-Risk, abbreviated VaR and
the below definition holds for any type of loss L (loss for equity risk, loss for
credit risk, loss operational risk etc etc)
Definition of Value-at-Risk
Given a loss L and a confidence level α ∈ (0, 1), then VaRα (L) is given by the
smallest number y such that the probability that the loss L exceeds y is no larger
than 1 − α, that is
Density of L
α = P [L ≤ VaRα (L)]
VaRα (L)
In market risk, typically the underlying period studied for the loss is 1 day or
10 days.
In credit risk and in operational risk, one typically consider VaRα (L) for the
loss over one year.
Note that VaR, by definition, does not give any information about ”how bad
things can get”, i.e. the severity of the loss L which may occur with
probabilitiy 1 − α
We will later shortly discuss the expected shortfall which is a measure that
captures the severity of the loss L, given that L > VaRα (L).
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 11 / 29
Value-at-Risk, cont.
However, we should keep in mind that this sentence can be very misleading
for several reasons.
One major reason is that VaRα (L) is computed under an assumption of how
the loss will be distributed, i.e. we use a specific model for L, and this
naturally leads to model risk
One typical example of model risk when computing VaRα (L) is that
FL (x) = P [L ≤ x] is assumed to have a distribution, which maybe (most
likely) not will match the ”true” distribution of L, which obviously is difficult
to know for sure.
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 12 / 29
Inverse and generalized inverse functions
Recall that a function f (x) is strictly monotonic if it is strictly increasing or
strictly decreasing
Recall from your first year calculus course, that a strictly monotonic function
f (x) has a unique and well defined inverse f −1 (x) such that
1. f −1 (f (x)) = x , for all x in f-s domain
−1
1. f (f (y )) = y , for all y in f-s range
If the function f (x) is monotonic (i.e. not strictly monotonic) then the
concept of a inverse function has to be readjusted
Since F (x) is nondecreasing, it may be ”flat” for some regions in its domain
(see e.g. example on bottom on slide 6)
This means that in these ”flat” regions we can no longer find a unique
inverse function to F (x), so the concept of an inverse function must here be
redefined. Let us do this.
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 13 / 29
Inverse and generalized inverse functions, cont
with the convention that inf of the empty set is ∞, i.e inf ∅ = ∞.
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 14 / 29
Generalized inverse, α-quantile and VaR
In the case when FL (x) = P [L ≤ x] is continuous, and thus strictly increasing (i.e.
the loss L is a continuous random variable), FL (x) will not have any ”flat”
regions, so that FL← will be the usual inverse function FL−1 , and we then have that
Hence, if we can find an analytical expression for the inverse function FL−1 (y ), we
can then due to (16) also find an analytical expression for the risk-measure
Value-at-Risk VaRα (L)
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 15 / 29
Value-at-Risk when L is a continuous random variable
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 16 / 29
Example of Value-at-Risk when L is continuous r.v.
1
α
Rx
FL (x) = f (y )dy
−∞ L
VaRα (L)
Consider mixed binomial model with m obligors and individual credit loss ℓ.
By linearity of VaR, see Equation (12), we can w.l.o.g assume that the size
of each loan is one monetary unit and that the loss ℓ is in %
Let F (x) = P [p(Z ) ≤ x] where p(Z ) is the mixing distribution where Z can
be a discrete or continuous random variable
If we use the exact loss distribution FLm (x) in (8) or (9) we compute VaR
via the generalized inverse of FLm (x)
However, if m is ”large” and Z is a continuous random variable so that F (x)
and F −1 (x) are continuous, we combine Equation (11) and (16) to get
VaRα (L) ≈ ℓ · m · F −1 (α) (21)
Hence, for the same static credit portfolio as on the two previous slides, when m
is large we have the following approximation formula for ESα (L)
1
ℓ·m
Z
ESα (L) ≈ F −1 (u)du
1−α α
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 19 / 29
Mixed binomial models: the beta distribution
One example of a mixing binomial model is to let p(Z ) = Z where Z is a
beta distribution, Z ∼ Beta(a, b), which can generate heavy tails.
We say that a random variable Z has beta distribution, Z ∼ Beta(a, b), with
parameters a and b, if it’s density fZ (z) is given by
1
fZ (z) = z a−1 (1 − z)b−1 a, b > 0, 0<z <1 (23)
β(a, b)
where
1
Γ(a)Γ(b)
Z
β(a, b) = z a−1 (1 − z)b−1 dz = . (24)
0 Γ(a + b)
Here Γ(y ) is the Gamma function defined as
Z ∞
Γ(y ) = t y−1 e −t dt (25)
0
which satisfies the relation
Γ(y + 1) = y Γ(y ) (26)
for any y .
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 20 / 29
Mixed binomial models: the beta distribution, cont.
By using Equation (24) and (26) one can show that β(a, b) satisfies the
recursive relation
a
β(a + 1, b) = β(a, b).
a+b
Also note that (23) implies that P [0 ≤ Z ≤ 1] = 1, that is Z ∈ [0, 1] with
probability one.
If Z has beta distribution with parameters a and b, then by using Equation
(24) and (26) one can show that
a a(a + 1)
and E Z 2 =
E [Z ] =
a+b (a + b)(a + b + 1)
so the above equations together with definition of Var(Z ) implies that
Var(Z ) = (a+b)2ab
(a+b+1) .
By varying the parameters a and b, the density fZ (z) can take on quite
different shapes (see next slide). Recall that fZ (z) is given by
1
fZ (z) = z a−1 (1 − z)b−1 a, b > 0, 0<z <1
β(a, b)
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 21 / 29
Mixed binomial models: the beta distribution, cont.
a=1,b=9
12 a=10,b=90
10
8
density
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8
x
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 22 / 29
Mixed binomial models: the beta distribution, cont.
Consider a mixed binomial model where p(Z ) = Z has beta distribution with
parameters a and b. Then, by using (6) one can show that
m β(a + k, b + m − k)
P [Nm = k] = . (27)
k β(a, b)
and for large m we use (28) instead of the exact method via (27).
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 23 / 29
Mixed binomial models: the beta distribution, cont.
The portfolio credit loss distribution in the standar and mixed binomial model
0.2
0.16
0.14
0.12
probability
0.1
0.08
0.06
0.04
0.02
0
0 5 10 15 20 25 30
number of defaults
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 24 / 29
Mixed binomial models: logit-normal distribution
Another possibility for mixing distribution p(Z ) is to let p(Z ) be a
logit-normal distribution. This means that
1
p(Z ) =
1 + exp (−(µ + σZ ))
where σ > 0 and Z ∼ N(0, 1), that is Z is a standard normal random
variable. Note that p(Z ) ∈ [0, 1].
Furthermore, if x ∈ (0, 1) then p −1 (x) is well defined and given by
1 x
p −1 (x) = ln −µ . (29)
σ 1−x
The mixing distribution F (x) = P [p(Z ) ≤ x] = P Z ≤ p −1 (x) for a
logit-normal distribution is then given by
Z p−1 (x)
1 z2
F (x) = P Z ≤ p −1 (x) = √ e − 2 dz = N(p −1 (x))
−∞ 2π
where p −1 (x) is given as in Equation (29) and N(x) is the distribution
function of a standard normal distribution.
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 25 / 29
Mixed binomial models: logit-normal distribution, cont.
Next lecture we will study a third mixed binomial model inspired by the
Merton model.
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 26 / 29
Correlations in mixed binomial models
We are interested in finding Corr (Xi , Xj ) for two pairs i, j in the portfolio
(by the homogeneous-portfolio assumption this quantity is the same for any
pair i, j in the portfolio where i 6= j).
Below, we will therefore for notational convenience simply write ρX for the
correlation Corr (Xi , Xj ).
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 27 / 29
Correlations in mixed binomial models, cont.
Cov(Xi , Xj ) = E p(Z )2 − p̄ 2
and Var(Xi ) = p̄(1 − p̄) (31)
E p(Z )2 − p̄ 2
ρX = (32)
p̄(1 − p̄)
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 28 / 29
Thank you for your attention!
Alexander Herbertsson (Univ. of Gothenburg) Financial Risk: Credit Risk, Lecture 2 April 27, 2017 29 / 29