Build a credit scorecard from your data

Drop in past applications with their outcomes to get a scorecard with points and its Gini in a minute. The page bins each characteristic by weight of evidence, fits a logistic regression, turns it into points and checks it on applications held out.

Applications file

Of 1,000 applications, 300 are bad and 700 are good. The 0 with no known outcome are left out.

The file is read and the scorecard is built in this browser, and nothing is uploaded.

These are 1,000 real credit applications from a bank in a public data set. Of these, 300 are bad, and all 20 characteristics are offered to the scorecard.

Scorecard settings

The scorecard is fitted on the other applications. Trust the Gini on these held-out applications.

Bins smaller than this are joined to a neighbour. Bins for numbers are joined until the bad rate runs one way.

The strongest characteristics go in first. A characteristic that moves with a stronger one is left out. After fitting, one with the wrong sign or a high p-value is left out, and the next one is tried.

These three settings change how the points read, not how well the scorecard ranks.

Gini on held-out applications

0.503
Fitted Gini0.684
Held-out KS0.403
Characteristics10

The scorecard keeps 10 characteristics, fitted on 696 applications. Its Gini is 0.684 on them and 0.503 on the 304 it never saw, the figure to judge it by.

ROC curve

Held outFitted

Bad rate by score

The bad rate should fall as the score rises, band after band.

Scorecard points

The file contains the scorecard in the form Decisimo reads, with points for every bin and an empty value scored in its own bin. Each characteristic reads the applicant's value with the same name, so the scorecard can run in a credit decision flow and be tested on past applications before it goes live.

checking_status

BinApplicationsBad rateWOEPoints
Missing · No applications, neutral points0–0.000051
... < 0 DM18652.7%0.899428
... >= 200 DM / salary assignments for at least 1 year4526.7%-0.219857
0 <= ... < 200 DM19139.8%0.377641
no checking account27411.3%-1.267384
Other values · No applications, neutral points0–0.000051

credit_history

BinApplicationsBad rateWOEPoints
Missing · No applications, neutral points0–0.000051
all credits at this bank paid back duly3860.5%1.219224
critical account/ other credits existing (not at this bank)19317.6%-0.750768
delay in paying off in the past6033.3%0.098749
existing credits paid back duly till now37532.0%0.038050
Other values3066.7%1.485018

duration

BinApplicationsBad rateWOEPoints
Missing · No applications, neutral points0–0.000051
≤ 66113.1%-1.099089
(6, 10]6118.0%-0.722376
(10, 15]18425.0%-0.306862
(15, 30]27532.7%0.071349
(30, 36]6149.2%0.759025
> 365459.3%1.166511

purpose

BinApplicationsBad rateWOEPoints
Missing · No applications, neutral points0–0.000051
business7238.9%0.339840
car (new)15440.9%0.424137
car (used)7919.0%-0.659073
education3644.4%0.568733
furniture/equipment12733.1%0.086848
radio/television19621.9%-0.477467
Other values3231.3%0.003351

savings

BinApplicationsBad rateWOEPoints
Missing · No applications, neutral points0–0.000051
... < 100 DM42836.2%0.225846
100 <= ... < 500 DM7136.6%0.243246
500 <= ... < 1000 DM4320.9%-0.537363
unknown/ no savings account12118.2%-0.712367
Other values3315.2%-0.931072

employment

BinApplicationsBad rateWOEPoints
Missing · No applications, neutral points0–0.000051
.. >= 7 years16625.3%-0.290857
... < 1 year12343.1%0.513640
1 <= ... < 4 years24632.1%0.043350
4 <= ... < 7 years12022.5%-0.445060
unemployed4139.0%0.345544
Other values · No applications, neutral points0–0.000051

age

BinApplicationsBad rateWOEPoints
Missing · No applications, neutral points0–0.000051
≤ 2410743.9%0.547638
(24, 26]7034.3%0.141248
(26, 34]21430.4%-0.037852
(34, 58]27027.0%-0.200956
> 583522.9%-0.424661

personal_status

BinApplicationsBad rateWOEPoints
Missing · No applications, neutral points0–0.000051
female : divorced/separated/married22834.6%0.157346
male : divorced/separated3748.6%0.737729
male : married/widowed5527.3%-0.189057
male : single37627.9%-0.156456
Other values · No applications, neutral points0–0.000051

other_debtors

BinApplicationsBad rateWOEPoints
Missing · No applications, neutral points0–0.000051
guarantor3716.2%-0.850486
none63431.4%0.009851
Other values2548.0%0.711822

installment_rate

BinApplicationsBad rateWOEPoints
Missing · No applications, neutral points0–0.000051
19826.5%-0.226862
215527.7%-0.165559
310528.6%-0.124557
433834.9%0.168943
Other values · No applications, neutral points0–0.000051

Bad rate by score

ScoresApplicationsBadsBad rateShare approvedApproved bad rate
401–456967578.1%100.0%30.0%
457–4771005656.0%90.4%24.9%
478–4941025452.9%80.4%21.0%
495–507973839.2%70.2%16.4%
508–5231032524.3%60.5%12.7%
524–5371021918.6%50.2%10.4%
538–550971515.5%40.0%8.3%
551–5679888.2%30.3%5.9%
568–58610165.9%20.5%4.9%
587+10443.8%10.4%3.8%

Characteristics

Every column is considered for the scorecard, and the page picks which ones to use. Untick Use to leave one out. Tick Force in to keep one in regardless of its information value or coefficient.

UseForce inNameTypeInformation valueStabilityResultCoefficientP-value
Text0.747StableIn scorecard · Check whether it is only known after the outcome0.8877<0.0001
Number0.320Too few applicationsIn scorecard1.1905<0.0001
Text0.330Too few applicationsIn scorecard0.7808<0.0001
Text0.175Too few applicationsIn scorecard1.1321<0.0001
Number0.166Too few applicationsP-value too high––
Text0.163Too few applicationsIn scorecard0.76860.0033
Text0.109Too few applicationsIn scorecard0.73050.0189
Text0.029Too few applicationsIn scorecard1.66380.0049
Text0.056Too few applicationsIn scorecard1.05090.0115
Text0.052StableIn scorecard1.40660.0017
Text0.007Too few applicationsInformation value too low––
Text0.118StableP-value too high––
Number0.076Too few applicationsIn scorecard0.79750.0311
Text0.065StableP-value too high––
Text0.114StableP-value too high––
Text0.001StableInformation value too low––
Text0.014StableInformation value too low––
Text0.003StableInformation value too low––
Text0.002StableInformation value too low––
Text0.045StableP-value too high––

–

Click a characteristic's name above to see its bins, how stable they are and change them.

Saved versions

Each version stores its settings and selected characteristics in this browser, and the file is never saved.

VersionFileCharacteristicsHeld-out GiniFitted GiniHeld-out KS

In Decisimo, this scorecard runs in the credit decision. Every change is tested on past applications first, and its Gini is watched on new applications. Start your trial

How it is built
WOE = ln(% bads / % goods)
IV = Σ (% bads − % goods) × WOE
Factor = 20 / ln 2 = 28.8539
Offset = 600 − 28.8539 × ln 50 = 487.1229
Intercept = -0.8202
Equal share = (487.1229 − 28.8539 × -0.8202) / 10 = 51.0790
Points = Equal share − 28.8539 × β × WOE

Numbers are split into up to 20 bins of about equal size, then neighbouring bins are joined until each is big enough and the bad rate runs one way. Text values keep their own bin when big enough, and the rest are grouped together. Logistic regression is fitted on WOE, and points use each characteristic's equal share of the offset and intercept, less the factor times its coefficient and WOE. Decisimo uses the same method to fit a scorecard from a lender's decisions.

Source: Statlog (German Credit Data), Hans Hofmann, UCI Machine Learning Repository (CC BY 4.0).

Credit scorecard development

A credit scorecard groups applicant characteristics into bins and assigns points based on how each bin relates to good and bad outcomes. This tool uses a CSV of past applications and fits logistic regression on each bin’s weight of evidence.

The held-out results show how the scorecard performed on applications the fit did not use. Review Gini, KS, the score bands and the points table, then download the scorecard file.

Scorecard development questions

What are the steps to develop a credit scorecard?

A scorecard groups characteristic values into bins, calculates WOE, fits logistic regression and assigns points. This tool checks the scorecard on applications held out from fitting.

How many characteristics should a scorecard include?

The tool ranks characteristics by information value and leaves out one that moves closely with a stronger characteristic. You can set the maximum, and the fit can remove a characteristic before trying the next.

How do I choose characteristics for a scorecard?

The tool ranks characteristics by information value and leaves out one whose WOE correlates closely with a characteristic already selected. After fitting, it checks coefficient signs and p-values, then tries the next characteristic if one is removed.

Can I build a scorecard in Excel or Python?

This tool runs in your browser and reads a CSV of past applications and outcomes. It builds and checks the scorecard from that file.

What is a logistic regression scorecard?

It uses logistic regression to estimate how the characteristics relate to bad outcomes, using WOE for each bin. The fitted results become points, and a higher score indicates lower risk.