Formula
Gini = 2 × AUC − 1
AUC is the area under the ROC curve: the probability that a randomly chosen bad customer gets a worse score than a randomly chosen good one. An AUC of 0.75 is a Gini of 0.50. The Gini is also known as the accuracy ratio, the area between the model's cumulative accuracy profile (CAP) and the random line, relative to a perfect model.
Worked example (illustrative figures)
A score split into five bands, from the riskiest to the safest, over 1,000 bads and 9,000 goods:
| Band (worst first) | Bads | Goods | Bad rate | Cum. % bads | Cum. % goods |
|---|---|---|---|---|---|
| 1 | 400 | 900 | 30.8% | 40.0% | 10.0% |
| 2 | 250 | 1,500 | 14.3% | 65.0% | 26.7% |
| 3 | 180 | 1,900 | 8.7% | 83.0% | 47.8% |
| 4 | 110 | 2,200 | 4.8% | 94.0% | 72.2% |
| 5 | 60 | 2,500 | 2.3% | 100.0% | 100.0% |
The riskiest band holds 40% of the bads but only 10% of the goods. Plotting cumulative bads against cumulative goods gives an AUC of 0.75, so the Gini is 0.50. The same table gives a KS of 38.3 (see KS statistic).
What is a good Gini?
| Gini (application scorecard) | Usual reading |
|---|---|
| Below 0.30 | Weak ranking |
| 0.30 to 0.45 | Acceptable |
| 0.45 to 0.60 | Good |
| Above 0.60 | Very good: check there is no leakage |
The right level depends on the product and the data: behavioral and collections models usually reach higher values than application models, and thin-file segments lower ones. Compare models on the same population and period, and look at the Gini on recent, out-of-time data.
What Gini does not tell you
- Whether probabilities are calibrated: a model can rank well and still predict too many or too few defaults.
- The result at your cutoff: two models with a similar Gini can differ where you actually approve.
- The economic impact: that comes from the decision at each cutoff.
How Thorcast.AI helps
- MJÖ trains and compares several algorithms and presents the champion with Gini, KS and ROC on test data.
- Model Monitoring compares observed Gini, AUC and KS with the modeling values, so you see when ranking power falls.
- Champion–Challenger compares the Gini of your current score and a new model on the same records, and decision layers show the economic impact at every cutoff.
Frequently asked questions
How do I convert AUC to Gini?
Gini = 2 × AUC − 1. An AUC of 0.80 is a Gini of 0.60; an AUC of 0.50, a random model, is a Gini of 0.
Is the Gini in credit scoring the same as the Gini index of income inequality?
They share the name and the idea of an area under a Lorenz-type curve, but they measure different things. In credit scoring it measures how well a score separates goods from bads.
Why did my Gini fall in production?
Usually because the population changed (check the PSI), the outcome definition differs, or the model learned from information that is not available at decision time.