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)BadsGoodsBad rateCum. % badsCum. % goods
140090030.8%40.0%10.0%
22501,50014.3%65.0%26.7%
31801,9008.7%83.0%47.8%
41102,2004.8%94.0%72.2%
5602,5002.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.30Weak ranking
0.30 to 0.45Acceptable
0.45 to 0.60Good
Above 0.60Very 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

How Thorcast.AI helps

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.

Related terms and guides