Gini coefficient and AUC (discriminatory power)
Measures of a model's ability to rank risks from best to worst, regardless of the level of its predictions, used to compare pricing models or fraud scores.
In 2017, Porto Seguro, the Brazilian auto insurer, ran a Kaggle competition to predict which drivers would file a claim within a year, and scored the entries by normalized Gini. The metric asked one thing: were the riskier drivers ranked above the safer ones? That is discriminatory power, and the AUC and the Gini coefficient measure it.
For a binary outcome, claim or no claim, fraud or genuine, the ROC curve plots the true positive rate against the false positive rate as the cutoff on the score moves. Its area, the AUC, has a plain reading given by Hanley and McNeil (1982). It is the probability that a randomly drawn positive scores higher than a randomly drawn negative, ties counting half, which makes it the Mann-Whitney U statistic divided by n₁ × n₀. A random ranking gives 0.5, a perfect one 1. The Gini coefficient is then Gini = 2 × AUC − 1, what credit scorers call the accuracy ratio or Somers' D. The name goes back to Corrado Gini's Variabilità e mutabilità (1912) on income concentration, and the geometry is the same Lorenz curve.
Pricing actuaries work with amounts rather than yes or no. Frees, Meyers and Cummings (Journal of the American Statistical Association, 2011) defined an insurance Gini on the ordered Lorenz curve. Sort policies by the ratio of a candidate premium to the current premium, plot the cumulative share of premium against the cumulative share of losses, and take twice the area between that curve and the diagonal. A positive value says the new score finds losses the current tariff misprices, the question a double lift chart answers in bands.
The limit is built in. Both measures depend only on the order of the scores, so any increasing transformation leaves them unchanged. Halve every predicted premium and the Gini does not move. A model can rank well and be wrong on level, so a calibration check goes alongside, observed against predicted by band, or a Brier score for probabilities. On rare events, such as fraud on a small share of claims, a high AUC can still go with mostly false alerts; precision at the alert volume the claims team can handle says more. And a Gini only compares models on the same data and the same target. A value of 0.30 on one portfolio says nothing about 0.30 on another.
Take ten claims scored by a fraud model, four confirmed frauds scored 0.9, 0.8, 0.6 and 0.3, and six genuine claims scored 0.7, 0.5, 0.4, 0.2, 0.15 and 0.1. There are 4 × 6 = 24 fraud and genuine pairs. The fraud at 0.9 outscores all six genuine claims, the one at 0.8 also six, the one at 0.6 five, the one at 0.3 three, so 20 pairs are ranked correctly. AUC = 20 ÷ 24 = 0.833 and Gini = 2 × 0.833 − 1 = 0.667. Divide every score by ten and both figures stay put, although a model that says 9% where the truth is 90% is badly calibrated.
- C. Gini, Variabilità e mutabilità, Bologna, 1912
- J. A. Hanley and B. J. McNeil, "The Meaning and Use of the Area under a Receiver Operating Characteristic (ROC) Curve," Radiology, vol. 143, no. 1, 1982, pp. 29-36
- E. W. Frees, G. Meyers and A. D. Cummings, "Summarizing Insurance Scores Using a Gini Index," Journal of the American Statistical Association, vol. 106, 2011
AUC, ROC curve, normalized Gini, Gini coefficient insurance
Follow the research
One letter a week. First, the week's underwriting note when one is published, with its dated, reasoned decision. Then what the observatory published on cyber, artificial intelligence, insurance and reinsurance. No account, no tracking.
No spam, one-click unsubscribe, no data ever sold.