You built a generalized linear model (GLM) that scores 50,000 auto policies for renewal lapse. The boss asks: "Is it any good?" Accuracy alone hides everything that matters. Lift, Gini, and AUROC answer the real question.
Why these metrics exist. A predictive model returns a score for each observation. To use it for a decision (renew / non-renew, fraud / not fraud), you pick a threshold and classify positive when . Accuracy at one threshold tells you little; the metrics below summarize discrimination across all thresholds or rank-order quality.
For threshold , classify each observation and count:
Key rates:
- Sensitivity (true positive rate, recall) = .
- Specificity (true negative rate) = .
- False positive rate = .
- Precision = .
- Accuracy = .
TRAP: In an imbalanced book (say 2% fraud), a classifier that predicts "no fraud" always has 98% accuracy and zero sensitivity. Always look past accuracy for imbalanced targets.
Vary the threshold from down to . At each , plot the point (FPR, TPR). The curve sweeps from at to at .
Common mistakes
- Reporting Gini AUROC. They are not equal. With AUROC 0.84, Gini is 0.68, not 0.84. The factor of 2 minus 1 is the whole point.
- Using accuracy on an imbalanced target. A 2% fraud rate gives 98% accuracy to the always-negative model. Always report AUROC, lift, or Gini alongside.
- Forgetting tie credit in AUROC. Ties count for 0.5, not 0 or 1. Skipping the tie term overstates a tree model's AUROC when many records share a leaf score.
Bottom line
- AUROC is the probability that a random positive scores higher than a random negative. Range ; 0.5 is random, 1.0 is perfect, 0.7 to 0.8 is the typical insurance band.
- Gini coefficient for a binary classifier. Range ; also defined geometrically as twice the area between the Lorenz curve and the equality line.
- Lift at the top decile . Lift means the model concentrates positives in the top scores.
- Cumulative gains at depth is the fraction of all positives captured in the top of scored records. The gains curve plots cumulative gains vs. .
Exam shortcut
If the question gives AUROC and asks for Gini (or vice versa), just apply ; do not rebuild the ROC. If the question gives a small confusion-matrix-style scoring table with no ties, count concordant positive-negative pairs and divide by ; that is AUROC without drawing a curve.
The full lesson (about 2,087 words, 14 min read) adds 2 worked examples, all 6 common mistakes, a self-check, free in the app.
Learning objectives
- C10
Browse all free MAS-II lessons or jump into free MAS-II practice questions.