Professional Documents
Culture Documents
Financial Econometrics II Credit Risk. Part 2: Zuzanna Wośko SGH Warsaw School of Economics
Financial Econometrics II Credit Risk. Part 2: Zuzanna Wośko SGH Warsaw School of Economics
Zuzanna Wośko
SGH Warsaw School of Economics
1
Transition matricies
2
General information on transition matricies
3
General information on transition matricies
Source: Moody’s
4
General information on transition matricies
Source: Moody’s
5
General idea of transition matrix
• Transition matrices measure the probability of moving from one credit state to
another.
• The probability of transitioning from a non-defaulted category into a default
category is the PD.
• Matrices can be constructed with chosen periodicity – for example, a quarterly
transition matrix can be created.
• The cumulative PD for the loan is the product of matrix math.
– For example, multiply a quarterly matrix 9 times to get a 9 quarter loss estimate.
– Several firms use dimensionality reducing techniques for computational reasons.
• Transition rates are not constant over time. The directionality and rate of change
varies with economic cycles.
• With sufficient data, these changes in the transitions can be measured. Instead of
having one generic transition matrix, institution can create either a series of
transition matrices or a conditional matrix in which the speed and direction of
each cell in the matrix changes with macro conditioning variables.
6
General idea of transition matrix
Absorbing states
• Default is an absorbing state, meaning that loans that transition into default do
not transition out.
• However, we have seen cases where a non-default cell has such a high transition
percentage (e.g. 99.5%), that it essentially becomes another absorbing state and
thus nothing transitions to default, artificially reducing loss estimates.
7
Cohort approach
Let:
, - the numer of obligors in category i at the beginning of the period t (it is the size
of the cohort i,t)
- the numer of obligors from the cohort ij that have obtained grade j at the end
,
of the period t.
The transition frequencies in period t are computed as:
,
̂ , (1)
,
8
Cohort approach
9
Cohort approach
Exercise:
02_transition_matrix.R
Assuming that „1” is the best rating and „6” is the worst,
describe the results and answer:
• Which states are absorbing?
• What values of diagonal elements mean?
• How transition matrix changes with the economic cycle?
• Calculate transition matrix after 8 quarters. What is the
assumption of such approach?
10
Calibrating to ratings
11
Ways of calibration to ratings
1. Calculate historical default rates, DRj, for each rating See example code:
category, j=1,2,…,J, where 1 is the best credit quality 02_mapping2ratings.R
and J is the worst.
2. For each exposure, i:
a) Calculate PDi based on PD model
b) If PDi<DR1 assign rating class 1.
c) If Pdi>DRJ assign rating class J.
d) Else:
i. Find two rating classes such that DRj < PDi < DRj+1
ii. Calculate cutoff cj,j+1 = C(DRj, DRj+1) with one of the
3 methods.
iii. If PDi < cj,j+1 assign rating j; otherwise assign rating
j+1.
13
LGD models
14
Prediction of LGD
15
Example specification:
, _ , _ !, " ,
Where:
- LGD on instrument j of firm i, observed in year t.
_ , - average LGD of instruments with the same time as j, computed
with data ending in t-1
_ !, - default rate that was observed in year t-1 for the industry to which
borrower i belongs
, - i firm leverage in t-1
As model deals with instrument-level data, one firm can contribute several
observations to a data set. For example company can enter with senior
unsecured bond and subordinated bond. This likely can lead to correlations in
error terms. In the presence of of such correlations grouped in clusters, OLS
coefficient estimates are still reliable but the standard errors are no longer to.
16
Portfolio approach
17
Use of VaR
18
Berkowitz (2001) test
The basic idea behind the Berkowitz test is to evaluate the entire distribution.
The test involves a double transformation of observed losses, with the two
transformations as follows:
1. Replace Lt by the predicted probability of observing this loss or a smaller
one – insert loss into CDF:
!# $
2. Transform pt by applying Φ #&$, the inverse standard normal CDF:
' Φ # $
19
Berkowitz (2001) test
20
Berkowitz (2001) test
2
1
( ) .& /#' / 0 /#2- $$
3
2,-
2
6 6 ' /0
ln ( / 72, / ln - / 8
2 2 2-
3
ML estimators:
2
1
09: 8'
6
3
2
1
-9: 8 ' / 09:
6
3
21
Berkowitz (2001) test
Test statistics:
C 2 ln ( 0 09: , - -9: / ln ( #0 0, - 1$
22
Stress test models
23
General economic rules of stress test model
construction
• 2 types of stress test models (approaches):
- top-down (1)
- bottom-up (2)
24
Stress scenarios
25
Example of top-down stress testing model:
LLP (Loan Loss Provisions)
Panel model:
yTU V TU ′ X α ε
where t=1,2,...,T and i=1,2,...,N, [xit]1xK , [β]Kx1 , [ ~]] #0, -^ $
i – bank’s number, t - quarter.
26
Example of top-down stress testing model:
LLP (Loan Loss Provisions)
Przykładowe zmienne objaśniające:
• gdp – wzrost r/r,
• real_wib3m – WIBOR 3M, wielkość urealniona CPI,
• D4_unempl – stopa bezrobocia r/r,
• dm_car – CAR (capital adequacy ratio)- współczynnik adekwatności kapitałowej – odchylenie od
mediany w sektorze,
• b_hous_ln_share – udział kredytów mieszkaniowych w kredytach dla GD w danym banku,
• b_hh_ln_share – udział kredytów GD w kredytach dla sektora niefinansowego,
• dm_ln_nf_gr_qq_all – wzrost kredytów w danym banku, odchylenie od średniej w sektorze,
• zmienne zerojedynkowe klasyfikujące bank do grup strategicznych, zmienne interakcyjne.
27
Example of bottom-up stress testing model:
PD model (PD calculated from CDS data)
PD can be calculated not only from internal data on defaults or auxiliary
external databases with history of defaults in other institution, but also
market CDS data can be used.
We use the information on Credit Default Contracts (CDS) quotations. The
CDS spreads translate into PD by applying the hazard rate model:
b c b c
1 / .& 1 / .&
1 / d.efg.hi
See: 02_stressmodel.R
(use „quasibinomial” option)
Exercise:
Change the last quarters of time series in macrovariables.xls according to
your own stress scenario. Compare the results with the baseline scenario.
How large deviations from baseline PD did you observe?
29
Model validation
30
Model validation issues
31
Model validation issues
32
Example of backtesting procedures:
Bootstrapping confidence intervals
Steps of estimation of a confidence interval for the AUC through bootstrapping:
1. From the N observations on ratings and default, draw N Times with
replacement (draw pairs of ratings and defaults, to be precise)
2. Compute the AUC with the data re-sampled in step 1.
3. Repeat steps 1, to 2 M-Times.
4. To construct a 1-α confidence interval for the AUC, determine the α/2 and
the 1-α/2 percentile of the bootstrapped AUCs.
See:
02_bootstrapping.R
33