A credit score model’s training score distribution across four equal-frequency bins is [0.25,0.25,0.25,0.25], while live production traffic shifts to [0.10,0.20,0.30,0.40]. What is the population stability index (PSI), how severe is the drift under standard thresholds, and why should rising PSI trigger investigation rather than automatic blind retraining?

ML systems and evaluation, Monitoring
Level L2 Elementary. Length Medium. Nature Th+Mat Both.

What's being asked

Whether you can compute PSI to quantify distribution shift and reason carefully about operational responses to drift.

Key idea

PSI=∑b(pbprod−pbtrain)ln⁡pbprodpbtrain (where pbprod and pbtrain are the production and training proportions in bin b) is the symmetric KL divergence (Jeffreys divergence) between production and reference bin proportions; rules of thumb flag <0.10 as negligible, 0.10–0.25 as moderate, and >0.25 as major shift.

Steps

  1. Compute each bin’s term (pbprod−pbtrain)ln⁡(pbprod/pbtrain): Bin 1 gives (0.10−0.25)ln⁡(0.4)≈(−0.15)(−0.9163)≈0.1374; Bin 2 gives (−0.05)ln⁡(0.8)≈(−0.05)(−0.2231)≈0.0112.
  2. Compute Bins 3 and 4: Bin 3 gives (0.05)ln⁡(1.2)≈(0.05)(0.1823)≈0.0091; Bin 4 gives (0.15)ln⁡(1.6)≈(0.15)(0.4700)≈0.0705.
  3. Sum all terms: PSI=0.1374+0.0112+0.0091+0.0705=0.2282.
  4. Interpret: since 0.10≤0.2282≤0.25, this is a moderate-to-borderline-major shift toward higher-score bins.
  5. Explain why not to retrain blindly: first rule out pipeline bugs or training–serving skew; second, if the input distribution p(x) shifted only in regions where p(y∣x) (target y given features x) is unchanged and the model is already accurate, retraining on recent biased or unverified labels (before delayed chargeback labels arrive) can actually degrade calibration and performance.

Common mistakes

How long your answer should be

Four bin calculations, total PSI, and 3–4 sentences on actionability; 4–5 minutes.

Last checked on 4 December 2026.

Read this

Previous in ML systems and evaluation: A loan classifier is evaluated on two demographic groups of 100 applicants each: Group A has TP=48,FN=12,FP=12,TN=28 and Group B has TP=24,FN=6,FP=21,TN=49. What are the positive prediction rate, TPR, FPR and PPV for each group, and which fairness criteria are satisfied or violated?
Next in ML systems and evaluation: A classifier gets 340 of 400 test examples right. Give an approximate 95% confidence interval for its true accuracy. How large must the test set be to estimate accuracy to within ±2 percentage points at 95% confidence, if you have no prior idea of the accuracy?