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.

Cut-off and levels

Left empty, the cut-off approves 70% of the reference sample. It is used only to compare approval rates between groups.

These levels are a starting point. Set them to the levels in the lender’s own model risk policy.

Model details

These details appear on the printed report and stay in this browser.

Test date2026-11-30
Filegerman-credit-scored.csv
Columns usedScore column: score · Outcome column: outcome · Date or sample: sample · Segment: housing · Comparison group: age · Customer or loan ID: application
Reference sampledevelopment (696)
Current sampleAll periods after reference (304)
Status levelsPSI 0.1 / 0.25 · p 0.05 / 0.01 · Approval ratio 0.8

Overall status

Fails levels
Current Gini0.503
Reference Gini0.684
Bad rate27.3%

Tests run 8, red 3, amber 1. The 304 applications outside the reference (development, 696 applications) are tested against it.

Test results

TestResultStatus
DiscriminationGini 0.503 against 0.684 at reference, drop p-value 0.0017Fails levels
CalibrationBad rate 27.3% against mean PD 30.6%, Jeffreys p-value 0.8967Passes levels
Grade calibration0 of 10 grades have low PDs, Hosmer-Lemeshow p-value 0.0023Fails levels
Score stabilityScore PSI 0.022, p-value 0.8646Passes levels
Column stability0 of 20 columns moved beyond chancePasses levels
Grade concentrationHerfindahl index 0.102, grades in effect 9.8For information
Approval by groupLowest approval ratio 0.649Worth a look
Where the scorecard breaks1 segments rank weaker and 0 are off their PDs out of 1,129 testedFails levels

ROC curve

CurrentReference

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.

PeriodApplicationsBadsBad rateMean PDGini95% intervalKSScore PSIStatus
development · Reference69621731.2%31.2%0.6840.622 – 0.7460.554––
validation3048327.3%30.6%0.5030.383 – 0.6240.4030.022Fails 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.

Book Jeffreys p-value0.8967
Hosmer-Lemeshow p-value0.0023
Brier score0.1774

Bad rate and PD by grade

Observed bad ratePredicted PD

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.

GradeApplicationsBadsPredicted PDObserved bad rateJeffreys p-valueBinomial p-valueStatus
Band 1, scores … to 457271686.0%59.3%0.99970.9999Cautious
Band 2, scores 457 to 478341867.4%52.9%0.96130.9737Passes levels
Band 3, scores 478 to 494251151.8%44.0%0.78150.8358Passes levels
Band 4, scores 494 to 50725939.2%36.0%0.62150.6973Passes levels
Band 5, scores 507 to 52335828.2%22.9%0.75400.8117Passes levels
Band 6, scores 523 to 53627619.6%22.2%0.34950.4402Passes levels
Band 7, scores 536 to 55029513.1%17.2%0.24110.3277Passes levels
Band 8, scores 550 to 5683868.2%15.8%0.05470.0874Passes levels
Band 9, scores 568 to 5873224.8%6.3%0.31450.4619Passes levels
Band 10, scores 587 to …3221.9%6.3%0.05540.1241Passes 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

ReferenceCurrent

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.

ColumnPSIChi-square p-valueMoveStatus
age0.0640.1554Within chancePasses levels
purpose0.0640.1124Within chancePasses levels
duration0.0470.1862Within chancePasses levels
personal_status0.0330.0662Within chancePasses levels
credit_history0.0210.3596Within chancePasses levels
employment0.0190.4068Within chancePasses levels
credit_amount0.0180.9282Within chancePasses levels
other_installment_plans0.0150.2291Within chancePasses levels
telephone0.0140.0878Within chancePasses levels
foreign_worker0.0130.0835Within chancePasses levels
job0.0130.4370Within chancePasses levels
installment_rate0.0100.5587Within chancePasses levels
residence_since0.0090.6181Within chancePasses levels
savings0.0080.7942Within chancePasses levels
existing_credits0.0070.6649Within chancePasses levels
other_debtors0.0070.4631Within chancePasses levels
checking_status0.0030.8656Within chancePasses levels
property0.0030.9014Within chancePasses levels
housing0.0020.8182Within chancePasses levels
people_liable0.0010.7210Within chancePasses levels

Grade concentration

Herfindahl0.102
Grades in effect9.8
Largest grade share12.5%

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.

In Decisimo, the score runs in the credit decision, and each decision and outcome is recorded in the lender’s own data, so the lender can run this validation each month from its data with no one assembling a file. Start your trial

Test methods
Gini = 2 × AUC − 1      KS = max (% Bads − % Goods)
AUC drop test: S = (AUC Reference − AUC Current) ÷ SE Current,   p = 1 − Φ(S)   (DeLong)
Jeffreys p = Beta(PD;  D + ½,  N − D + ½)
Hosmer–Lemeshow = Σ (D − N × PD)² ÷ (N × PD × (1 − PD)),   χ², Degrees of freedom
PSI = Σ (% Current − % Reference) × ln(% Current ÷ % Reference),   χ² p ≤ 0.01
HHI = Σ Grade share²
Approval ratio = Share approved ÷ max Share approved
logit P(bad) = a + b × η + c × g + d × g × η,   η = logit PD,   g = 1 in the segment;   c, d: C(α) / score test,   Benjamini–Hochberg
PD = 1 ÷ (1 + exp(−(16.7626 + -0.034392 × Score)))
Fails levels: p < 0.01,  PSI > 0.25    Worth a look: p < 0.05,  PSI > 0.1,  HHI > 0.2,  Approval ratio < 0.8

The Gini interval and drop test use DeLong’s standard error. The Jeffreys test compares each grade’s bads with its PD through the Beta distribution, and Hosmer-Lemeshow adds the gaps across grades. A PSI counts only when a chi-square test says the move is beyond chance, since a small period’s PSI can pass 0.1 by chance. Statuses follow the starting levels in the settings, and the tests assume applications default independently, so defaults moving together in a downturn can make them reject more often than their level.

Each segment’s level and slope are tested against the rest of the book with a score test on the PDs’ log-odds. The Benjamini-Hochberg method adjusts p-values and holds the share of false finds among flagged segments at the stated level. A flagged segment is a place to look, not proof of a cause.

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.