Validate a credit scoring model
Drop in one file of scored applications or loans with their outcomes. The tool runs the validation tests in your browser, gives each a status and prints one report.
Scored file
1,000 applications read, including 300 bad, and 0 rows left out because the score or outcome could not be read.
The file is read and every test runs in this browser, and nothing is uploaded.
More columns
With a PD column, the model’s PDs are tested by grade. Without one, a PD is fitted from the score.
With a grade column, calibration and concentration use the model’s grades. Without one, the score is cut into ten bands.
With a date or sample column, the reference is compared with the current period, and tests across periods and stability run.
With a segment column, Gini and calibration are shown per segment.
With a group column, approval rates at the cut-off are compared between groups.
With an ID and dates, moves between grades from one period to the next are counted.
Only the score and outcome are needed. With no PD, the page fits one from the score on the reference sample, and with no grade it cuts the score into ten bands. The page also checks the stability of every other column.
The demo uses 1,000 real credit applications, scored by a scorecard. The development sample has 696 applications, and the validation sample has 304.
| Test date | 2026-11-30 |
|---|---|
| File | german-credit-scored.csv |
| Columns used | Score column: score · Outcome column: outcome · Date or sample: sample · Segment: housing · Comparison group: age · Customer or loan ID: application |
| Reference sample | development (696) |
| Current sample | All periods after reference (304) |
| Status levels | PSI 0.1 / 0.25 · p 0.05 / 0.01 · Approval ratio 0.8 |
Overall status
Tests run 8, red 3, amber 1. The 304 applications outside the reference (development, 696 applications) are tested against it.
Test results
| Test | Result | Status |
|---|---|---|
| Discrimination | Gini 0.503 against 0.684 at reference, drop p-value 0.0017 | Fails levels |
| Calibration | Bad rate 27.3% against mean PD 30.6%, Jeffreys p-value 0.8967 | Passes levels |
| Grade calibration | 0 of 10 grades have low PDs, Hosmer-Lemeshow p-value 0.0023 | Fails levels |
| Score stability | Score PSI 0.022, p-value 0.8646 | Passes levels |
| Column stability | 0 of 20 columns moved beyond chance | Passes levels |
| Grade concentration | Herfindahl index 0.102, grades in effect 9.8 | For information |
| Approval by group | Lowest approval ratio 0.649 | Worth a look |
| Where the scorecard breaks | 1 segments rank weaker and 0 are off their PDs out of 1,129 tested | Fails levels |
ROC curve
Score ranking
The current-sample Gini is 0.503, with a 95% interval of 0.383 to 0.624, against 0.684 at reference, a drop of 0.180. The chance of a drop this size if the score ranked as well as before is 0.0017, and KS is 0.403.
Gini by period
A period whose interval sits wholly below the reference Gini ranks worse than the score did when it was built.
| Period | Applications | Bads | Bad rate | Mean PD | Gini | 95% interval | KS | Score PSI | Status |
|---|---|---|---|---|---|---|---|---|---|
| development · Reference | 696 | 217 | 31.2% | 31.2% | 0.684 | 0.622 – 0.746 | 0.554 | – | – |
| validation | 304 | 83 | 27.3% | 30.6% | 0.503 | 0.383 – 0.624 | 0.403 | 0.022 | Fails levels |
PD calibration
The file has no PD column, so the PD was fitted from the score on the reference sample. Then 83 bads were observed against 93 predicted, with a bad rate of 27.3% and mean PD of 30.6%, a Jeffreys p-value of 0.8967, and 0 grades with PDs too low.
Bad rate and PD by grade
The bar is the observed bad rate with its 95% interval, and the line across it is the PD. A line below the interval means the PD is too low.
| Grade | Applications | Bads | Predicted PD | Observed bad rate | Jeffreys p-value | Binomial p-value | Status |
|---|---|---|---|---|---|---|---|
| Band 1, scores … to 457 | 27 | 16 | 86.0% | 59.3% | 0.9997 | 0.9999 | Cautious |
| Band 2, scores 457 to 478 | 34 | 18 | 67.4% | 52.9% | 0.9613 | 0.9737 | Passes levels |
| Band 3, scores 478 to 494 | 25 | 11 | 51.8% | 44.0% | 0.7815 | 0.8358 | Passes levels |
| Band 4, scores 494 to 507 | 25 | 9 | 39.2% | 36.0% | 0.6215 | 0.6973 | Passes levels |
| Band 5, scores 507 to 523 | 35 | 8 | 28.2% | 22.9% | 0.7540 | 0.8117 | Passes levels |
| Band 6, scores 523 to 536 | 27 | 6 | 19.6% | 22.2% | 0.3495 | 0.4402 | Passes levels |
| Band 7, scores 536 to 550 | 29 | 5 | 13.1% | 17.2% | 0.2411 | 0.3277 | Passes levels |
| Band 8, scores 550 to 568 | 38 | 6 | 8.2% | 15.8% | 0.0547 | 0.0874 | Passes levels |
| Band 9, scores 568 to 587 | 32 | 2 | 4.8% | 6.3% | 0.3145 | 0.4619 | Passes levels |
| Band 10, scores 587 to … | 32 | 2 | 1.9% | 6.3% | 0.0554 | 0.1241 | Passes levels |
Population stability
The score PSI against the reference is 0.022, with a p-value of 0.8646. 0 of the 20 other columns moved beyond chance. A move this small is within what chance gives a sample this size, so it does not count.
Grade shares by sample
Other columns
Each column is cut at the reference’s deciles, or by its values for text. Its PSI counts only when a chi-square test says the move is beyond chance.
| Column | PSI | Chi-square p-value | Move | Status |
|---|---|---|---|---|
| age | 0.064 | 0.1554 | Within chance | Passes levels |
| purpose | 0.064 | 0.1124 | Within chance | Passes levels |
| duration | 0.047 | 0.1862 | Within chance | Passes levels |
| personal_status | 0.033 | 0.0662 | Within chance | Passes levels |
| credit_history | 0.021 | 0.3596 | Within chance | Passes levels |
| employment | 0.019 | 0.4068 | Within chance | Passes levels |
| credit_amount | 0.018 | 0.9282 | Within chance | Passes levels |
| other_installment_plans | 0.015 | 0.2291 | Within chance | Passes levels |
| telephone | 0.014 | 0.0878 | Within chance | Passes levels |
| foreign_worker | 0.013 | 0.0835 | Within chance | Passes levels |
| job | 0.013 | 0.4370 | Within chance | Passes levels |
| installment_rate | 0.010 | 0.5587 | Within chance | Passes levels |
| residence_since | 0.009 | 0.6181 | Within chance | Passes levels |
| savings | 0.008 | 0.7942 | Within chance | Passes levels |
| existing_credits | 0.007 | 0.6649 | Within chance | Passes levels |
| other_debtors | 0.007 | 0.4631 | Within chance | Passes levels |
| checking_status | 0.003 | 0.8656 | Within chance | Passes levels |
| property | 0.003 | 0.9014 | Within chance | Passes levels |
| housing | 0.002 | 0.8182 | Within chance | Passes levels |
| people_liable | 0.001 | 0.7210 | Within chance | Passes levels |
Grade concentration
These grades are ten score bands cut at the reference’s deciles, so their spread shows only how far the book moved. A grade column gives the real concentration.
Tests by segment
| Segment | Applications | Bads | Bad rate | Mean PD | Gini | 95% interval | Jeffreys p-value | Status |
|---|---|---|---|---|---|---|---|---|
| own | 219 | 55 | 25.1% | 28.3% | 0.466 | 0.317 – 0.615 | 0.8556 | Passes levels |
| rent | 51 | 18 | 35.3% | 35.8% | 0.591 | 0.325 – 0.857 | 0.5229 | Passes levels |
| for free | 34 | 10 | 29.4% | 37.6% | 0.550 | 0.195 – 0.905 | 0.8391 | Passes levels |
Where the scorecard breaks
The search tested 1,129 segments from 20 columns of the file on 1,000 applications, each against the rest of the book. P-values are adjusted for the number tested.
Fails levels In credit_amount ≥ 4736 and savings = unknown/ no savings account the score separates goods from bads much less than in the rest of the book, so a separate scorecard or a characteristic built for it is worth testing.
Segments where the score ranks weaker
The strength is the score’s slope fitted on the segment alone, relative to the slope for the whole book. A strength of 1 means the score ranks as in the rest of the book, and 0 means it does not rank at all. A segment cut on a characteristic the score already uses keeps its strength, even if its Gini drops.
Score strength by segment
| Segment | Applications | Bads | Bad rate | Mean PD | Score strength | 95% interval | Gini | Adjusted p-value | Status |
|---|---|---|---|---|---|---|---|---|---|
| credit_amount ≥ 4736 and savings = unknown/ no savings account | 54 | 13 | 24.1% | 23.8% | 0.14 | -0.31 – 0.58 | 0.154 | 0.0079 | Fails levels |
| personal_status = male : single and other_installment_plans = bank | 82 | 32 | 39.0% | 33.3% | 0.45 | 0.08 – 0.82 | 0.313 | 0.3233 | Passes levels |
| 30 ≤ age < 36 and existing_credits = 2 | 81 | 18 | 22.2% | 22.7% | 0.44 | 0.04 – 0.84 | 0.363 | 0.3233 | Passes levels |
| other_installment_plans = bank and foreign_worker = yes | 134 | 55 | 41.0% | 34.6% | 0.58 | 0.28 – 0.89 | 0.398 | 0.3233 | Passes levels |
| other_installment_plans = bank | 139 | 57 | 41.0% | 34.9% | 0.60 | 0.29 – 0.90 | 0.399 | 0.3233 | Passes levels |
| savings = unknown/ no savings account and telephone = yes, registered under the customers name | 91 | 15 | 16.5% | 17.5% | 0.43 | 0.01 – 0.85 | 0.385 | 0.3233 | Passes levels |
| savings = unknown/ no savings account and personal_status = male : single | 116 | 15 | 12.9% | 16.3% | 0.46 | 0.06 – 0.86 | 0.388 | 0.3233 | Passes levels |
| 15 ≤ duration < 24 and residence_since = 4 | 87 | 21 | 24.1% | 30.0% | 0.43 | 0.00 – 0.85 | 0.293 | 0.3233 | Passes levels |
| checking_status = ... >= 200 DM / salary assignments for at least 1 year and foreign_worker = yes | 59 | 14 | 23.7% | 25.6% | 0.24 | -0.34 – 0.83 | 0.186 | 0.3233 | Passes levels |
| checking_status = ... >= 200 DM / salary assignments for at least 1 year and other_debtors = none | 60 | 13 | 21.7% | 24.1% | 0.27 | -0.31 – 0.85 | 0.208 | 0.3233 | Passes levels |
Segments off their PDs
The ratio is observed bads over the bads predicted by the PDs. Each segment is compared with the rest of the book, so a book whose PDs are all off by the same amount flags no segment.
Bads over predicted by segment
| Segment | Applications | Bads | Predicted bads | Bads over predicted | 95% interval | Adjusted p-value | Status |
|---|---|---|---|---|---|---|---|
| installment_rate = 4 and residence_since = 1 | 59 | 15 | 25.8 | 0.58 | 0.36 – 0.86 | 0.6148 | Passes levels |
| other_installment_plans = none and housing = own | 576 | 133 | 153.4 | 0.87 | 0.74 – 1.00 | 0.6148 | Passes levels |
| employment = .. >= 7 years and people_liable = 2 | 52 | 18 | 10.7 | 1.67 | 1.10 – 2.33 | 0.6148 | Passes levels |
| 2859 ≤ credit_amount < 4736 | 200 | 52 | 69.0 | 0.75 | 0.59 – 0.94 | 0.6148 | Passes levels |
| other_installment_plans = bank and telephone = none | 81 | 36 | 27.4 | 1.32 | 1.01 – 1.64 | 0.6148 | Passes levels |
| credit_amount < 1262 and telephone = none | 149 | 54 | 43.2 | 1.25 | 0.99 – 1.52 | 0.6148 | Passes levels |
| residence_since = 1 and housing = own | 114 | 28 | 40.8 | 0.69 | 0.49 – 0.92 | 0.6148 | Passes levels |
| employment = .. >= 7 years and property = unknown / no property | 65 | 28 | 20.7 | 1.35 | 0.99 – 1.73 | 0.6148 | Passes levels |
| people_liable = 2 and telephone = none | 95 | 35 | 26.3 | 1.33 | 1.00 – 1.69 | 0.6148 | Passes levels |
| installment_rate = 4 and residence_since = 2 | 138 | 53 | 43.0 | 1.23 | 0.98 – 1.50 | 0.6148 | Passes levels |
Grade movement
Each customer’s grade in one period is compared with their grade in the next period they appear in. Up means a move to a less risky grade.
Approval rates by group
At a cut-off of 494, the least approved group is approved 0.649 times as often as the most approved group. Below 0.8, its ratio is worth a look, and the bad rates beside it show whether the score has reason.
Share approved by group
| Group | Applications | Share approved | Approval ratio | Bad rate approved | Bad rate | Mean PD | Gini | Status |
|---|---|---|---|---|---|---|---|---|
| From 20 to under 28 | 74 | 54.1% | 0.649 | 22.5% | 36.5% | 41.8% | 0.461 | Worth a look |
| From 28 to under 34 | 69 | 65.2% | 0.783 | 26.7% | 34.8% | 34.3% | 0.336 | Worth a look |
| From 34 to under 44 | 84 | 83.3% | 1.000 | 12.9% | 20.2% | 24.1% | 0.598 | Passes levels |
| From 44 to 68 | 77 | 81.8% | 0.982 | 12.7% | 19.5% | 23.7% | 0.530 | Passes levels |
Source: Statlog (German Credit Data), Hans Hofmann, UCI Machine Learning Repository (CC BY 4.0).
Credit model validation tests
A credit model validation checks how well a score ranks applications and whether predicted PDs match observed bads. It also checks changes in the population, concentration across grades and approval rates by group.
A lender uses these results to review its scorecard or PD model and decide what needs attention. Add a scored file with outcomes to see each test’s result and status in one report.
Common questions
How do you validate a credit scoring model?
Use scored applications with known outcomes to check ranking, calibration and stability. This tool also checks concentration and approval rates by group, then gives each test a status in one report.
What goes in a credit model validation report?
A report can show how well the score ranks, whether PDs match observed bads and whether the population moved. This tool reports the result and status of each test it runs.
How do you back-test a PD model by grade?
Compare each grade’s mean PD with its observed bad rate. The tool reports Jeffreys and binomial p-values by grade and checks calibration across grades with Hosmer-Lemeshow.
What does a model monitoring report show?
It compares a reference sample with a current sample to show changes in ranking and the population. This tool reports Gini, PSI and the status of its period comparison tests.
What tests does a credit model validation include?
The tests cover discrimination, calibration, stability and concentration, with segment and approval-rate comparisons when those columns are supplied. The results depend on the columns in the file.