Lesson 10.4: Building ECL models with scenarios
Build the models behind expected credit loss: point-in-time PDs, lifetime curves, a macro link, scenario ECLs and weights, and LGD and EAD paths.
By the end of this lesson you will be able to describe the pieces of an expected credit loss model and how they fit together, turn a through-the-cycle PD into a point-in-time PD, build a lifetime PD curve, link default rates to macroeconomic variables with a simple regression, run the ECL of a loan under a base, an upside and a downside scenario, weight the results correctly, see why scenario weights and the shape of the macro link matter, and list the checks a model of this kind must pass before it is used for provisioning. You should have read Lessons 4.2 (lifetime default probabilities), 7.5 (calibration), 10.2 (IFRS 9 stages and ECL) and 10.3 (the RBI framework). The arithmetic is regression, weighting and discounting, and every figure is worked out. The macroeconomic series used here is synthetic, built for this course, and not real data.
Lesson 10.2 showed what an ECL provision is. Lesson 10.3 showed the rules in India. This lesson shows how the numbers are produced. A provision under IFRS 9 or a similar framework rests on a set of models that must be accurate, explainable, forward-looking and governed. The challenge is that they need inputs that the risk department does not hold, such as economic forecasts, and must produce numbers that auditors, supervisors and boards will rely on.
The ECL machine
The model pieces fit together in a chain.
1. Segmentation. Group loans by product, risk and behaviour, so that each group has a common PD pattern.
2. PD. For each group and each future period, the marginal probability of default, conditional on the economic scenario.
3. LGD. The share lost on default, by period and scenario, reflecting collateral values and recovery patterns.
4. EAD. The balance at default in each period, from amortisation, prepayment and drawing behaviour.
5. Discounting. At the effective interest rate.
6. Staging. Each loan in Stage 1, 2 or 3 (Lesson 10.2), which decides the horizon.
7. Scenarios and weights. Several economic paths, each with its probability.
8. Aggregation and overlays. Add up across loans, apply any documented adjustments and report.
9. Validation and governance. Back-test, compare, challenge and document.
The rest of the lesson takes the main pieces in order and works a three-year loan through all of them.
Piece 1: Point-in-time PD
Lesson 10.1 said that capital uses a through-the-cycle PD, a long-run average. An ECL provision needs the opposite, a point-in-time PD that reflects today's conditions and the expected path of the economy. A bank whose borrowers have a long-run PD of 3 per cent should provide more than 3 per cent in a recession and less in a boom.
The simplest way to link the two comes from the same model as the Basel formula, the single-factor model of Lesson 10.1. In it, the economy is summarised by one systematic factor Z, a number on a standard normal scale: zero is a typical year, negative values are bad years and positive values are good ones. The PD of a borrower in a year with factor Z is:
> PIT PD = N( [ G(TTC PD) − √ρ × Z ] ÷ √(1 − ρ) )
where N is the standard normal distribution function, G is its inverse and ρ is the asset correlation. Take a through-the-cycle PD of 3 per cent and a correlation of ρ = 0.08 (illustrative). Then:
State of the economy (Z) · Point-in-time PD−2.0 (severe downturn) · 8.52%
−1.5 · 6.44%
−1.0 (bad year) · 4.79%
−0.5 · 3.49%
0 (typical year) · 2.49%
+0.5 · 1.75%
+1.0 (good year) · 1.20%
+1.5 · 0.81%
Notice that a typical year (Z = 0) gives a PD of 2.49 per cent, below the through-the-cycle 3 per cent. The long-run average of 3 per cent is the average over all years, and bad years raise the PD by more than good years lower it. The relationship is convex: the curve is steeper on the downside. This convexity has an important consequence, shown below.
Piece 2: The lifetime PD curve
A Stage 2 loan needs PDs for each future period, not just the next year. A lifetime PD curve gives, for each year to maturity, the marginal probability of default. There are three main ways to build one.
From a transition matrix. Multiply the one-year migration matrix by itself (Lesson 4.2), starting from the loan's current grade. This captures migration to worse grades.
From a survival or hazard model. Fit the probability of default in each period as a function of the loan's age, its characteristics and the economy, using loan-level data (Lesson 4.3 on vintage and seasoning).
From a scaling of the one-year PD. A simple term structure that raises or lowers the one-year PD by a factor for each year, based on the product's seasoning pattern.
For the worked example in this lesson, the neutral (base-economy) marginal PDs of a three-year loan are 2.0 per cent in year 1, 3.0 per cent in year 2 and 3.5 per cent in year 3, as in Lesson 10.2. The shape reflects seasoning: risk rises as a loan matures and then eases. Each of these numbers is then adjusted for the economic scenario.
Piece 3: Linking defaults to the economy
To make PDs forward-looking, the model needs a link between macroeconomic variables and default rates. The standard approach is a regression of the observed default rate (or the systematic factor Z) on a few macroeconomic variables, such as GDP growth, unemployment, inflation, interest rates or a sector indicator.
Here is a deliberately simple illustration with a synthetic history of 12 years, in which the default rate of a retail portfolio depends on GDP growth. The data below are generated for this course and are not real.
Year · GDP growth (%) · Default rate (%)1 · 6.8 · 2.81
2 · 7.2 · 2.15
3 · 6.5 · 2.43
4 · 5.9 · 2.97
5 · 3.8 · 3.62
6 · −5.8 · 6.36
7 · 8.9 · 1.90
8 · 7.0 · 2.74
9 · 6.2 · 2.93
10 · 5.5 · 3.26
11 · 7.4 · 2.05
12 · 6.6 · 2.66
A straight-line regression of the default rate on GDP growth gives:
> Default rate = 4.678 − 0.307 × GDP growth
The slope of −0.307 (standard error 0.018) says that each extra point of GDP growth lowers the default rate by about 0.31 percentage points. R-squared is 0.97, which is unrealistically tidy: real relationships are noisier and rest on short, lumpy histories. With only 12 observations, one of which (year 6) is extreme and drives much of the fit, a validator would be cautious. Using the equation, the default rates for several GDP growth rates are:
GDP growth · Predicted default rate7.5% · 2.38%
6.5% · 2.68%
5.0% · 3.14%
3.0% · 3.76%
1.0% · 4.37%
−2.0% · 5.29%
What goes wrong in practice. Several well-known traps apply to this kind of model.
Few observations. A credit cycle is long, and a bank may have only a decade or two of consistent data, so the number of independent downturns is tiny.
Spurious fit. Many macro series trend upwards over time, and two trending series correlate even when unrelated. Use growth rates or changes, and test the residuals.
Lags. Defaults often follow an economic downturn with a delay of several quarters, so lagged variables belong in the model.
Multiple variables. Several drivers matter, and they are correlated with each other. Keep the model parsimonious and the signs sensible.
Extrapolation. A model fitted over a normal range may not hold in an extreme scenario.
Structural change. A new regulation, a new product or a change in lending policy can break the relationship.
Out-of-sample testing. Check the equation on years that were not used to fit it.
Where bank data are short, lenders use external data on defaults from rating agencies or industry, transform them to the bank's portfolio and document the assumptions.
Piece 4: Scenarios
IFRS 9 asks for a probability-weighted estimate over a range of outcomes, so the lender needs at least three scenarios. A typical set, for the illustration here, and with GDP growth over the next three years:
Scenario · Weight · GDP growth, years 1 to 3 (%) · Predicted default rate, years 1 to 3 (%)Base · 55% · 6.5, 6.5, 6.5 · 2.68, 2.68, 2.68
Upside · 15% · 7.5, 7.5, 7.0 · 2.38, 2.38, 2.53
Downside · 30% · 3.0, 4.0, 5.5 · 3.76, 3.45, 2.99
The base case is usually the lender's central forecast, based on consensus or in-house economists. The scenarios and weights are the lender's judgement, and regulators expect them to be documented, reviewed and challenged. The choice of weights is the subject of long discussion. A downside weight of 30 per cent against 15 per cent for the upside reflects the view that bad outcomes are more likely, or at least more costly, than good ones. A bank with persistently optimistic weights will under-provide, as Lesson 10.3 warned.
From default rates to PD multipliers. Divide each scenario's predicted default rate by the base case's to get a multiplier for the neutral marginal PDs:
Scenario · Multiplier year 1 · Multiplier year 2 · Multiplier year 3Base · 1.000 · 1.000 · 1.000
Upside · 0.886 · 0.886 · 0.943
Downside · 1.400 · 1.286 · 1.114
Notice that the downside multiplier fades from 1.40 to 1.11 as the economy in the downside scenario recovers. After the end of the forecast horizon, PDs are normally assumed to revert to the long-run average. The scenario PDs of the three-year loan are the neutral PDs times the multipliers:
Scenario · Marginal PD, year 1 · Year 2 · Year 3 · Cumulative PD over 3 yearsBase · 2.00% · 3.00% · 3.50% · 8.27%
Upside · 1.77% · 2.66% · 3.30% · 7.54%
Downside · 2.80% · 3.86% · 3.90% · 10.19%
## Piece 5: LGD and EAD by scenario
PD is only one of three inputs. In a forward-looking model, LGD and EAD also respond to the scenario.
LGD. For secured loans, LGD depends on collateral values, which depend on the economy. A simple structure: LGD = the larger of a floor and one minus the recovery divided by the exposure, where recovery = collateral value × (1 − forced-sale discount − costs). Take a loan with EAD of ₹50 lakh secured on a property valued at ₹60 lakh, with an assumed 15 per cent combined discount and costs on a sale. In the base case, recoveries are 0.85 × 60 = ₹51 lakh, above the exposure, so LGD is at its floor, say 5 per cent. In a downside scenario in which property prices fall by 20 per cent, the collateral is worth ₹48 lakh and recoveries are 0.85 × 48 = ₹40.8 lakh. The loss is 50 − 40.8 = ₹9.2 lakh, so LGD is 9.2 ÷ 50 = 18.4 per cent. A fall of 20 per cent in collateral values has raised the LGD by more than a factor of three, from 5 to 18.4 per cent, since the collateral stops covering the loan. This asymmetry (large LGD effects once collateral cover is lost) is why LGD scenarios can matter more than PD scenarios for secured books.
EAD. Exposure changes with the contractual amortisation, with prepayments (which fall in a downturn, as borrowers have less ability to prepay) and, for revolving products, with drawing behaviour (Lesson 6.4). In a downside, undrawn limits may be drawn more heavily. The worked example here uses the contractual schedule only.
The three-year example, scenario by scenario
Return to the ₹10 lakh loan of Lesson 10.2: three equal principal instalments, an effective rate of 12 per cent, a neutral PD pattern of 2.0, 3.0 and 3.5 per cent, and an LGD of 55 per cent (kept constant here for clarity). Using the scenario PDs above, the ECL of each scenario is:
Scenario · Year 1 ECL (₹) · Lifetime ECL (₹) · WeightBase · 9,821 · 23,158 · 55%
Upside · 8,699 · 20,772 · 15%
Downside · 13,751 · 30,115 · 30%
The probability-weighted ECLs are:
Stage 1 (12 months): 0.55 × 9,821 + 0.15 × 8,699 + 0.30 × 13,751 = 5,402 + 1,305 + 4,125 = ₹10,832, which is 10.3 per cent more than the base case alone (₹9,821).
Stage 2 (lifetime): 0.55 × 23,158 + 0.15 × 20,772 + 0.30 × 30,115 = 12,737 + 3,116 + 9,035 = ₹24,887, which is 7.5 per cent more than the base case (₹23,158).
The result shows what the scenario process does: it lifts the provision above what a base-case-only model would give, because the lender has more weight on bad outcomes than on good ones. A base-case-only model would have understated the ECL by 7 per cent.
Predict first: a lender changes its weights from 55, 15 and 30 per cent to 45, 15 and 40 per cent, moving ten points from the base to the downside. By roughly how much will the weighted lifetime ECL rise: about 1 per cent, 3 per cent or 10 per cent? Think about the gap between the downside and base ECLs before reading on.
The weighted ECL becomes 0.45 × 23,158 + 0.15 × 20,772 + 0.40 × 30,115 = 10,421 + 3,116 + 12,046 = ₹25,583, up from ₹24,887, a rise of 2.8 per cent. The change in the weights was 10 points, and the gap between downside and base is ₹6,957, so the result moves by 0.10 × 6,957 = ₹696. A modest-looking change in the weights has a visible effect on provisions, which is why supervisors and auditors scrutinise them.
A trap: weight the outputs, not the inputs
A common shortcut is to weight the economic forecasts first (compute a single, average GDP path) and then run one ECL on it. In the example above, with a linear link between GDP and the default rate, the shortcut happens to give the same answer: the weighted GDP path is 5.60, 5.90 and 6.28 per cent, and the ECL on that path is again ₹24,887.
That equality depends on the linearity of the macro link. With the more realistic nonlinear link of the point-in-time model, it fails. Take the three scenarios as values of the systematic factor Z: upside +0.8, base 0 and downside −1.2, with weights 15, 55 and 30 per cent, and a through-the-cycle PD of 3 per cent.
PIT PDs: 1.40 per cent (upside), 2.50 per cent (base) and 5.40 per cent (downside).
Weighted PD (weight the outputs): 0.15 × 1.40 + 0.55 × 2.50 + 0.30 × 5.40 = 0.21 + 1.375 + 1.62 = 3.20 per cent.
PD at the weighted Z (weight the inputs): the weighted Z is −0.24, which gives a PD of 2.94 per cent.
The two differ by 9 per cent, and the shortcut understates the PD. The reason is the convexity noted earlier: because the PD rises faster on the downside than it falls on the upside, averaging the scenarios gives more than the PD at the average economy. The rule of practice is therefore: run the model for each scenario, then weight the resulting ECLs. Weighted outputs capture the nonlinearity, and weighted inputs do not.
Putting the engine in code
A compact version of the engine applies the steps above to one loan and several scenarios.
python
import numpy as np
import pandas as pd
1) the macro link: regress default rate on GDP growth
gdp = np.array([6.8, 7.2, 6.5, 5.9, 3.8, -5.8, 8.9, 7.0, 6.2, 5.5, 7.4, 6.6]) # synthetic
dr = np.array([2.81, 2.15, 2.43, 2.97, 3.62, 6.36, 1.90, 2.74, 2.93, 3.26, 2.05, 2.66])
slope, intercept = np.polyfit(gdp, dr, 1)
print("slope", round(slope, 3), "intercept", round(intercept, 3))
rate = lambda g: intercept + slope g
2) scenarios: GDP paths over three years and weights
scen = {
"Base": {"w": 0.55, "gdp": [6.5, 6.5, 6.5]},
"Upside": {"w": 0.15, "gdp": [7.5, 7.5, 7.0]},
"Downside": {"w": 0.30, "gdp": [3.0, 4.0, 5.5]},
}
neutralmpd = np.array([0.02, 0.03, 0.035])
baserate = rate(6.5)
3) the loan
balance = np.array([1000000, 666667, 333333])
lgd, eir = 0.55, 0.12
disc = 1 / (1 + eir) np.arange(1, 4)
rows = []
for name, s in scen.items():
mult = np.array([rate(g) / baserate for g in s["gdp"]])
mpd = neutralmpd mult
eclyear = mpd lgd balance disc
rows.append({"scenario": name, "weight": s["w"], "ecl12m": eclyear[0], "ecllifetime": eclyear.sum()})
res = pd.DataFrame(rows)
print(res.round(0))
print("weighted 12m:", round((res.weight res.ecl12m).sum()), " weighted lifetime:", round((res.weight res.ecllifetime).sum()))
4) sensitivity of the weighted lifetime ECL to the downside weight (upside fixed at 15 per cent)
for wd in (0.20, 0.30, 0.40, 0.50):
w = {"Upside": 0.15, "Downside": wd, "Base": 1 - 0.15 - wd}
e = sum(w[r.scenario] r.ecllifetime for r in res.itertuples())
print("downside weight", wd, "-> weighted lifetime ECL", round(e))
The loop at the end is the sensitivity analysis an auditor will ask for: how much does the provision move if the weights change? Keep scenario definitions, weights and the regression coefficients in a configuration file under version control, so that every reporting date has a reproducible record.
Overlays and judgement
Models will not cover everything. A new risk, such as a regulatory change, a natural disaster or a sector shock, may not be in the data. Lenders then apply overlays, also called post-model adjustments: documented additions or reductions to the model's ECL. A sound overlay has a stated reason, an estimate with a method, an owner, an approval, and an expiry or review date, and it is reported separately so that the model's output and the judgement can be distinguished. Overlays that persist for years without being built into the model are a warning sign.
Validating ECL models
The checks of Modules 7 and 8 apply, with some additions.
PD back-testing. Compare predicted point-in-time PDs with realised default rates by segment (Lesson 7.5).
Staging performance. Do loans moved to Stage 2 default at higher rates than those left in Stage 1? If the stage 2 loans do not default more, the SICR test is not working.
LGD and EAD back-testing. Compare predicted with realised recoveries and drawing.
Macro model checks. Sign and size of coefficients, stability, out-of-sample fit, residual tests.
Scenario review. Are the scenarios consistent with each other and with external forecasts, and are the weights reasoned?
Sensitivity. The effect on ECL of changes in key parameters: PD scaling, LGD, weights.
Reconciliation and data quality. Do loans, balances and rates reconcile to the ledger?
Governance. Independent validation, model inventory, approved changes and overlay controls (Lesson 8.4).
A worked example: reporting the sensitivity to a committee
The finance committee asks for the impact of a gloomier outlook on the three-year loan's provision. The analyst presents a short table.
Case · Stage 1 ECL (₹) · Stage 2 ECL (₹)Base only · 9,821 · 23,158
Weighted, current weights (55/15/30) · 10,832 · 24,887
Weighted, gloomier weights (45/15/40) · 11,225 · 25,583
Downside only · 13,751 · 30,115
The gloomier weights (45/15/40) give a 12-month figure of 0.45 × 9,821 + 0.15 × 8,699 + 0.40 × 13,751 = 4,419 + 1,305 + 5,500 = ₹11,225, which is 14 per cent above the base case and 3.6 per cent above the figure under the current weights. The lifetime figure rises by 2.8 per cent, to ₹25,583. She also points out how the stages compare: moving a loan from Stage 1 to Stage 2 under the current weights raises its provision from ₹10,832 to ₹24,887, a factor of 2.3, so the staging rule matters far more to the total provision than the choice of weights. The committee therefore asks for the staging criteria to be reviewed first, and for the weights to be set by an independent scenario committee.
A habit worth keeping: tables of provisions are arithmetic, and a second person should re-compute each line before they reach a committee.
Common mistakes
Using a through-the-cycle PD in an ECL model. Provisions need point-in-time, forward-looking PDs.
Fitting the macro link on too few observations without caution. A dozen annual points, with one crisis year, give a fragile equation.
Using trending series in levels. Use growth rates or changes, and test for spurious fit.
Weighting inputs instead of outputs. Run each scenario, then weight the ECLs.
Setting scenario weights to hit a number. Weights are judgements to be documented and reviewed.
Ignoring LGD and EAD in scenarios. Collateral values and drawing change with the economy.
Letting overlays become permanent. Overlays need an owner and an end date.
Skipping the arithmetic check. Provision tables must be re-computed by someone else.
Key takeaways
An ECL model chains segmentation, PD, LGD, EAD, discounting, staging, scenarios, aggregation and validation.
A point-in-time PD adjusts a through-the-cycle PD for the state of the economy. With a correlation of 0.08, a 3 per cent TTC PD becomes 4.79 per cent in a bad year (Z = −1) and 1.20 per cent in a good one (Z = +1), and the relationship is convex.
A lifetime PD curve comes from a transition matrix, a hazard model or a scaling of the one-year PD. Beyond the forecast horizon, PDs revert to the long-run average.
The macro link is usually a regression of default rates on variables such as GDP growth. On the synthetic data, the slope was −0.31 percentage points of default rate per point of growth. Few observations, spurious fit and structural change are the main dangers.
On the three-year loan, scenario ECLs were ₹20,772 (upside), ₹23,158 (base) and ₹30,115 (downside), and the weighted ECL of ₹24,887 was 7.5 per cent above the base case. Shifting ten points of weight from base to downside added 2.8 per cent.
Weight the ECLs of the scenarios and not the inputs. With a nonlinear link, the weighted PD was 3.20 per cent against 2.94 per cent at the weighted economy.
LGD and EAD respond to scenarios too. A 20 per cent fall in collateral values lifted an example LGD from 5 to 18.4 per cent.
Validate every piece, document overlays and control the weights.
Check yourself
1. A through-the-cycle PD is 2 per cent. What is the point-in-time PD in a bad year, given that the PIT formula gives a multiple of about 1.6 for Z = −1?
About 2 × 1.6 = 3.2 per cent. The exact figure comes from the single-factor formula with the chosen correlation.
2. Scenario ECLs are ₹8,000, ₹10,000 and ₹16,000 with weights of 20, 50 and 30 per cent. What is the weighted ECL?
0.20 × 8,000 + 0.50 × 10,000 + 0.30 × 16,000 = 1,600 + 5,000 + 4,800 = ₹11,400.
3. Why is a regression of default rates on GDP from 12 annual points fragile?
There are few independent observations and often only one or two downturns, so the fit is dominated by a few years and may not hold in a new situation.
4. A property worth ₹40 lakh secures a ₹30 lakh loan. Recoveries are 85 per cent of the value. What is the LGD, and what is it if prices fall 25 per cent?
At ₹40 lakh, recoveries are ₹34 lakh, above the loan, so LGD is at its floor. After a 25 per cent fall, the collateral is worth ₹30 lakh, recoveries are ₹25.5 lakh and LGD = (30 − 25.5) ÷ 30 = 15 per cent.
5. Why should scenario ECLs be weighted rather than the scenario inputs?
The link from inputs to PD is nonlinear, so the PD at the average economy differs from the average PD. Weighting outputs captures the convexity.
Try this
Build a small scenario ECL for a loan of your own. Set aside fifty to sixty minutes.
1. Invent a 12-year series of GDP growth and default rates for a portfolio, with one weak year. Fit a straight line and record the slope, intercept and R-squared. Write two caveats about using it.
2. Define a base, an upside and a downside scenario with GDP paths for three years, and weights. Compute the predicted default rate for each year and the multiplier against the base.
3. Take a three-year amortising loan with an effective rate, an LGD and neutral marginal PDs. Compute the 12-month and lifetime ECL for each scenario.
4. Compute the weighted ECLs. Use the simulator to check them, and then change the weights by ten points and note the percentage change.
5. Using the point-in-time formula (or the table of this lesson), compute the PIT PD for three values of Z with a TTC PD you choose, and show that the weighted PD differs from the PD at the weighted Z.
6. Compute an LGD for a secured loan in the base and the downside with a fall in collateral values.
7. Write a five-sentence note for a finance committee: the macro link and its weakness, the scenario weights and their reason, the weighted ECL against the base, its sensitivity to the weights and one overlay you would consider.
A good result is a scenario table that adds up, a weighted ECL with a sensitivity, a demonstration of the weighting trap and a note that is honest about the macro model's fragility. Lesson 10.5 closes the module and the course's regulatory section with stress testing: how banks and supervisors ask whether capital would survive a severe but plausible shock.
Tags: Credit Risk Analytics Expected Credit Loss Point-in-time PD Macroeconomic Scenarios Provisioning