Lesson 8.2: Population stability and characteristic stability
Measure whether applicants have changed with the population and characteristic stability indices: formula, thresholds, noise floor and how to act on them.
By the end of this lesson you will be able to compute the population stability index, or PSI, from two tables of shares, read it against the usual thresholds, trace a shift in the score distribution back to the characteristics that caused it with the characteristic stability index, or CSI, work out the noise floor that a stable population would produce by chance, and decide what a high PSI does and does not tell you about a model. You should have read Lessons 6.2 and 8.1, which built the scorecard and set out how it is validated. The arithmetic is shares, logarithms and sums, and the examples use a monitoring scenario built on the synthetic data of Modules 6 and 7.
A model learns from a population: the applicants of the development period. It is then asked to score the applicants of every later period. If those applicants differ from the development population, in their income, their credit use, the channels they come from or the products they ask for, the model is being used beyond the experience it was built on. Lenders watch for this with two simple measures of how much a distribution has moved. They are quick to compute, need no outcomes (so they work immediately, not a year later) and are in every monitoring report.
The idea: compare two distributions
Take the scores of the development sample and group them into bands. The share of applicants in each band is the expected distribution, the picture of the world the model was built on. Do the same for a recent group of applicants: the actual distribution. If the population is stable, the two sets of shares are nearly equal. If it has shifted, they differ.
For the scorecard of Module 6, with scores grouped into nine bands, the development shares (from the 7,000 development loans) are:
Score band · Development sharebelow 530 · 4.6%
530–539 · 5.1%
540–549 · 8.0%
550–559 · 11.6%
560–569 · 13.5%
570–579 · 13.2%
580–589 · 14.0%
590–599 · 13.1%
600 and above · 16.9%
The shares add to 100 per cent. A recent cohort of applicants is scored and grouped the same way, and the two columns are compared.
The population stability index
The population stability index, PSI, gives one number for the gap between the two distributions. For each band, take the difference between the actual and expected share and multiply it by the natural logarithm of their ratio. Then add up over the bands.
> PSI = sum over bands of ( actual share − expected share ) × ln( actual share ÷ expected share )
This formula should look familiar: it is the same shape as the information value of Lesson 5.3. Each term is positive. When the actual share is above the expected, both factors are positive, and when below, both are negative, so the product is positive. A band whose share is unchanged contributes nothing. The more the bands differ, the larger the PSI.
A small example. Suppose a score is cut into five bands, with an expected share of 20 per cent in each, and a new cohort has shares of 10, 15, 20, 25 and 30 per cent. The contributions are:
Band · Expected · Actual · Difference · ln(actual ÷ expected) · Contribution1 · 20% · 10% · −0.10 · −0.693 · 0.0693
2 · 20% · 15% · −0.05 · −0.288 · 0.0144
3 · 20% · 20% · 0.00 · 0.000 · 0.0000
4 · 20% · 25% · +0.05 · +0.223 · 0.0112
5 · 20% · 30% · +0.10 · +0.405 · 0.0405
PSI · · · · · 0.1354
The PSI is 0.135. The calculation for the first band is (0.10 − 0.20) × ln(0.10 ÷ 0.20) = (−0.10) × (−0.693) = 0.0693.
Reading the number
Lenders use rules of thumb to turn a PSI into an action. They are conventions, and each lender sets its own, but the pattern is widespread.
PSI · Usual reading · ActionBelow 0.10 · No significant change · Continue to monitor
0.10 to 0.25 · Moderate shift · Investigate the cause
Above 0.25 · Major shift · Investigate urgently, consider whether the model is still suitable
The small example, at 0.135, falls in the moderate range. A shift as large as 10 to 30 per cent in the shares of the five bands is a visible change, and the PSI says so. The scale is not linear. A PSI of 0.25 is not twice as bad as 0.125. It is a convenient signal, nothing more.
A monitoring scenario: six months of drift
To see PSI at work, take the scorecard and six monthly cohorts of 3,000 applicants. In the first month the population matches the development sample. In each later month, the applicants become progressively riskier in two characteristics, utilisation and credit enquiries: more of them use a large share of their limits and make many recent enquiries. (The cohorts are built by resampling the holdout loans with weights that tilt towards riskier profiles, so the numbers are synthetic and show the pattern.)
Month · PSI of the score · Mean score · Share approved at 570 or above1 · 0.002 · 574.2 · 56.6%
2 · 0.025 · 570.7 · 52.0%
3 · 0.091 · 567.2 · 46.2%
4 · 0.195 · 563.3 · 38.9%
5 · 0.327 · 560.4 · 33.9%
6 · 0.448 · 558.4 · 30.2%
The path of the PSI is a typical picture of a gradual drift: small at first (0.002, 0.025), then rising faster. A monthly report would show green in months 1 to 3 (below 0.10), amber in month 4 (0.195) and red from month 5 (0.327). The mean score falls from 574 to 558 and the share approved at the fixed cut-off of 570 falls from 56.6 to 30.2 per cent, which has direct business consequences: nearly half of the volume that the lender expected has vanished.
Where is the shift? Score bands and CSI
A high PSI says that the population has moved. It does not say where. Two follow-up tables answer that.
The band-by-band view
The contribution of each band to the PSI shows where the distribution has changed. For month 6:
Score band · Development share · Month 6 share · Contribution to PSIbelow 530 · 4.6% · 9.3% · 0.033
530–539 · 5.1% · 11.4% · 0.051
540–549 · 8.0% · 13.8% · 0.031
550–559 · 11.6% · 17.5% · 0.025
560–569 · 13.5% · 17.8% · 0.012
570–579 · 13.2% · 13.1% · 0.000
580–589 · 14.0% · 8.3% · 0.030
590–599 · 13.1% · 4.9% · 0.081
600 and above · 16.9% · 4.0% · 0.185
PSI · · · 0.448
The shares in each column add to 100 per cent, and the contributions add to 0.448. The pattern is clear: the safest band (600 and above) has fallen from 16.9 to 4.0 per cent and accounts for 0.185 of the PSI alone, while the riskiest bands below 560 have roughly doubled. Reading the contributions shows that the shift is a loss of the best applicants and a gain of the weaker ones, which is a different story from, for example, a shift to the middle of the range.
The characteristic stability index
The next step is to find which characteristics moved. The characteristic stability index, CSI, applies exactly the same formula to the bins of a single input variable instead of the score bands. For each characteristic, compare the share of applicants in each of its bins with the development share.
For month 6, the shares in the bins of utilisation are:
Utilisation bin · Development share · Month 6 share0–20% · 20.2% · 3.7%
20–40% · 19.8% · 7.8%
40–60% · 20.0% · 14.1%
60–80% · 20.1% · 27.4%
80% and above · 19.9% · 47.0%
In development the five bins held about 20 per cent each, by design. In month 6, almost half of applicants are in the highest-utilisation bin. The CSI is 0.664. For enquiries, the share in the highest band (the most enquiries) has risen from 25.3 to 54.8 per cent and the CSI is 0.624. For home ownership the shares barely moved (39.2 to 37.2 per cent owners), and the CSI is 0.002. Income and credit history are also at about 0.001 or 0.000.
The CSI table turns "the score distribution has changed" into "applicants are using much more of their credit limits and making many more enquiries, while the other characteristics are unchanged". That is a statement that a business can act on: perhaps a marketing campaign has attracted a more stretched segment, or a competitor has withdrawn from it, or an economic shock has hit household finances. The next question is a business question, and the monitoring has pointed to where to look.
The CSI is read against the same thresholds as the PSI. Its monthly pattern for the two shifting characteristics follows that of the score.
Month · CSI, utilisation · CSI, enquiries1 · 0.000 · 0.003
2 · 0.026 · 0.027
3 · 0.118 · 0.108
4 · 0.262 · 0.257
5 · 0.440 · 0.427
6 · 0.664 · 0.624
Both cross the amber line in month 3 and the red line in month 4, a month earlier than the score PSI reached its red line in month 5. That is typical: because the score combines five characteristics, the effect of a shift in two of them is diluted, so CSIs on single characteristics can warn earlier than the PSI of the score.
The noise floor: how much PSI does chance produce?
Even a stable population produces a small positive PSI, because two samples of finite size are never identical. The size of that noise depends on the number of bands and the sample sizes.
> Expected PSI in a stable population ≈ (number of bands − 1) × (1 ÷ development sample size + 1 ÷ new sample size)
For nine bands, a development sample of 7,000 and a monthly cohort of 3,000: 8 × (1 ÷ 7,000 + 1 ÷ 3,000) = 8 × (0.000143 + 0.000333) = 0.0038. Month 1, with no deliberate drift, has a PSI of 0.002, in line with that. A PSI of 0.004 or 0.002 is nothing. The calculation shows when the thresholds are safe: with samples this large, the noise floor is far below 0.10. With a monthly cohort of 150 loans and ten bands, it would be 9 × (1 ÷ 7,000 + 1 ÷ 150) = 0.061, close to the amber line, and the PSI would give false alarms. In small portfolios the bands must be fewer or the cohorts larger, such as a quarterly one.
What PSI does not say
The PSI measures how much the inputs have changed. It does not measure whether the model has stopped working. Look at the other statistics of the six-month scenario, which are also from the simulation.
Month · PSI · Overall bad rate · Average predicted PD · Observed ÷ predicted · AUC · Bad rate among approved1 · 0.002 · 10.90% · 9.85% · 1.11 · 0.669 · 7.13%
2 · 0.025 · 11.30% · 10.82% · 1.04 · 0.689 · 6.15%
3 · 0.091 · 11.57% · 11.81% · 0.98 · 0.685 · 5.70%
4 · 0.195 · 12.87% · 13.03% · 0.99 · 0.706 · 5.83%
5 · 0.327 · 15.07% · 13.98% · 1.08 · 0.692 · 6.19%
6 · 0.448 · 14.97% · 14.52% · 1.03 · 0.698 · 6.28%
Over six months the PSI climbs from 0.002 to 0.448, yet the model's predicted PD (9.9 to 14.5 per cent) tracks the observed bad rate (10.9 to 15.0 per cent) closely: the observed-to-predicted ratio stays between 0.98 and 1.11, and the AUC stays near 0.69 (monthly values wander by about 0.02, which is noise at this sample size). The bad rate among approved loans stays around 6 per cent because the cut-off is rejecting the riskier applicants.
The model is working as designed: it sees a riskier population and scores it as riskier. The PSI is high because the inputs have shifted, and not because the model is wrong. This is a covariate shift: the relationship between characteristics and default is unchanged, and the mix of characteristics has moved. Compare it with Lesson 7.5, where the ranking held and the calibration failed because the relationship itself shifted. The two cases need different responses.
PSI · Performance (calibration and ranking) · Likely meaning · ActionLow · Good · Everything normal · Continue
High · Good · The applicants have changed but the model handles them · Find the business cause. Review volumes, cut-off and pricing. No rebuild needed yet
Low · Poor · The relationship between inputs and default has changed · Recalibrate or rebuild
High · Poor · Both have moved · Investigate urgently, probably rebuild
The high PSI with good performance in this lesson is the second row. Its consequences are mainly commercial: the approval rate fell from 56.6 to 30.2 per cent, so the lender's volume is shrinking, and a lender with a fixed volume target would need to loosen its cut-off, which has costs (Lesson 7.4), or find better applicants. A secondary risk is that the model is now scoring many applicants in the riskier bins where it had the fewest development examples, so its accuracy there should be checked.
PSI and CSI in Python
Both measures are the same function applied to different binned variables.
python
import numpy as np
import pandas as pd
def psi(expected, actual, eps=1e-4):
"""expected and actual: arrays of shares that sum to 1 over the same bins."""
e = np.clip(np.asarray(expected, float), eps, None)
a = np.clip(np.asarray(actual, float), eps, None)
return float(np.sum((a - e) np.log(a / e)))
edges = [0, 530, 540, 550, 560, 570, 580, 590, 600, 1000]
dev = pd.readcsv("developmentscores.csv")["score"]
new = pd.readcsv("month6scores.csv")["score"]
e = pd.cut(dev, edges, right=False).valuecounts(normalize=True, sort=False)
a = pd.cut(new, edges, right=False).valuecounts(normalize=True, sort=False)
print("PSI", round(psi(e, a), 3))
print(pd.DataFrame({"dev": e, "new": a, "contribution": (a - e) np.log(a / e)}).round(3))
CSI for each characteristic, using the bins from the scorecard
for var in ["utilbin", "enqbin", "homebin", "incomebin", "historybin"]:
ev = devchars[var].valuecounts(normalize=True).sortindex()
av = newchars[var].valuecounts(normalize=True).reindex(ev.index).fillna(0)
print(var, round(psi(ev, av), 3))
noise floor for a stable population
bands, ndev, nnew = 9, 7000, 3000
print("noise floor", round((bands - 1) (1 / ndev + 1 / nnew), 4))
Two practical points. Fix the band edges from the development sample and use them every month, since new edges each month would hide the drift. And handle empty bins with a small floor, as the function does, because the logarithm of zero is undefined.
A worked example: a PSI alert on Monday morning
The monthly report shows a PSI of 0.18 for the personal loan score, amber for the first time. The analyst follows a routine.
1. Check the noise floor. The cohort has 4,000 loans, the development sample 7,000 and there are nine bands: the floor is 8 × (1 ÷ 7,000 + 1 ÷ 4,000) = 0.003. The 0.18 is real.
2. Find the bands. The contribution table shows most of the PSI comes from the loss of the top two bands (600 and above, and 590 to 599) and a rise in the bands below 550.
3. Find the characteristics. CSIs: utilisation 0.31, enquiries 0.05, others below 0.01. Utilisation is the driver.
4. Find the cause. She asks marketing. A new partnership with a payments app started six weeks ago, and the new customers have much higher revolving balances. The shift is confined to one channel.
5. Check performance. Observed defaults are not yet available for the new channel, so she looks at early indicators: the share of first-payment defaults and the 30-day delinquency rate at one month. They are 1.4 times those of other channels.
6. Decide. The model is scoring the new customers as riskier, which is right. She recommends monitoring the channel separately, reviewing its cut-off and pricing and notifying the validation team that the channel is outside the development population.
The alert did not require a rebuild. It required a conversation, a split of the monitoring by channel and a close watch on early outcomes, which is the most common result of a PSI alert.
Common mistakes
Changing the band edges each month. Fix them from the development sample.
Reading a high PSI as proof that the model is broken. It signals a changed population. Check performance separately.
Ignoring a low PSI when performance is poor. The relationship between inputs and default can change without the inputs moving.
Monitoring only the score. CSIs find the cause and can warn earlier.
Using too many bands for a small portfolio. The noise floor rises and gives false alarms.
Forgetting empty bins. A bin with no applicants breaks the logarithm, so apply a floor.
Treating the thresholds as laws. They are conventions. Set them for the portfolio and use judgement.
Not recording the cause. An alert resolved without an explanation teaches nothing next time.
Key takeaways
The PSI measures how far the distribution of a score has moved from the development distribution: the sum of (actual − expected) × ln(actual ÷ expected) over bands.
Usual thresholds are below 0.10 (stable), 0.10 to 0.25 (moderate shift) and above 0.25 (major shift).
The CSI applies the same formula to the bins of one characteristic and finds the cause of a shift. In the six-month scenario utilisation (0.664) and enquiries (0.624) drove the PSI of 0.448, while home ownership, income and history were at 0.002 or less.
CSIs on single characteristics can warn earlier than the score PSI, because the score dilutes the effect of a shift in a few inputs.
A stable population still produces a small PSI by chance, about (bands − 1) × (1 ÷ ndev + 1 ÷ nnew), here 0.004.
A high PSI means the applicants have changed, not that the model has failed. In the scenario, calibration (observed ÷ predicted between 0.98 and 1.11) and AUC (about 0.69) held while the approval rate fell from 56.6 to 30.2 per cent.
Diagnose PSI and performance together: they point to different actions.
Check yourself
1. A band's expected share is 25 per cent and its actual share is 40 per cent. What is its contribution to the PSI?
(0.40 − 0.25) × ln(0.40 ÷ 0.25) = 0.15 × 0.470 = 0.0705.
2. A stable portfolio has 10 bands, a development sample of 10,000 and a monthly cohort of 500. What PSI would chance alone produce?
9 × (1 ÷ 10,000 + 1 ÷ 500) = 9 × 0.0021 = 0.019.
3. The score PSI is 0.30 and the CSIs are 0.02 for four variables and 0.55 for the fifth. What does this tell you?
The shift is almost entirely in the fifth characteristic. Investigate why applicants have changed on that variable.
4. PSI is 0.40, but the observed-to-predicted default ratio is 1.02 and the AUC is unchanged. Should the model be rebuilt?
Not on this evidence. The population has shifted but the model is still scoring it correctly. Investigate the business cause and the effect on volumes and the cut-off.
5. Why should the band edges for a PSI be fixed from the development data?
Edges that move each period make the comparison inconsistent and can hide a real drift.
Try this
Build a stability report for a scorecard of your own. Set aside forty to fifty minutes.
1. Use the development sample and scorecard from Module 6, or invent a score for 5,000 loans. Cut the score into eight to ten bands and record the development shares.
2. Create a "new" cohort in which the applicants are riskier, for example by resampling with more weight on high-utilisation loans. Record its shares in the same bands.
3. Compute the PSI by hand for at least three bands, then for all. Draw the two distributions on one chart.
4. List the contribution of each band and say in one sentence where the shift is.
5. Compute the CSI for each characteristic. Rank them and name the drivers.
6. Compute the noise floor for your sample sizes and compare it with the PSI of an undrifted cohort. Use the simulator pattern to check one PSI.
7. Write a five-sentence monitoring note: the PSI and its band, the characteristics responsible, whether you would expect the model to remain accurate, what you would check next and what would trigger a rebuild.
A good result is a PSI with a band table, a CSI ranking that names the cause, a noise floor that shows the result is real and a note that separates a changed population from a failed model. Lesson 8.3 puts PSI together with the other metrics into a full monitoring routine.
Tags: Credit Risk Analytics Population Stability Index PSI CSI Model Monitoring