7.4 Gini Index, Lorenz Curves & ROC Curves
Key Takeaways
The insurance Lorenz curve orders policies in ascending order of model-predicted pure premium, plotting cumulative percentage of earned exposure on the x-axis against cumulative percentage of actual losses on the y-axis.
The Gini coefficient quantifies risk discrimination as twice the area between the Lorenz curve and the 45-degree diagonal line of equality: Gini = 2 * Area(A) = 1 - 2 * Area(B), ranging from 0.0 (no separation) to 1.0 (extreme separation).
Because insurance losses are subject to intrinsic process risk (claim randomness), raw Gini cannot attain 1.0; actuaries compute Normalized Gini (Gini / Gini_max) against an oracle sort of actual losses to evaluate achieved discrimination relative to the theoretical upper bound.
For binary claim occurrence (claim vs. zero-claim), the Receiver Operating Characteristic (ROC) curve plots True Positive Rate vs. False Positive Rate; Area Under the Curve (AUC) equals the Concordance statistic C and relates to Gini via Gini = 2 * AUC - 1.
Discrimination metrics (Gini, AUC) evaluate only the rank order of predicted risks and are invariant under any strictly positive scalar multiplication or monotonic transformation; they provide zero indication of dollar calibration or rate adequacy.
Discrimination vs. Calibration in Actuarial Predictive Modeling
When evaluating a property and casualty (P&C) predictive model—whether a frequency-severity Generalized Linear Model (GLM), a Tweedie compound Poisson-Gamma regression, or a logistic large-loss model—actuaries must assess model performance across two distinct, complementary dimensions:
- Discrimination (Risk Separation / Rank Ordering): The model's ability to differentiate low-risk policyholders from high-risk policyholders. A highly discriminatory model successfully concentrates actual incurred losses into the highest predicted risk percentiles.
- Calibration (Scale / Absolute Dollar Adequacy): The model's ability to predict the true expected dollar loss cost. A well-calibrated model produces fitted values whose aggregate sum matches observed losses both across the entire portfolio and within specific rating segments.
In competitive insurance markets, discrimination is the primary weapon against adverse selection. If a competitor segments risks more granularly than your company, they will discount low-risk insureds and leave you with overpriced, unprofitable risks. However, evaluating discrimination requires specialized statistical metrics that are sensitive to policy exposure and severe claim skewness.
The Lorenz Curve for Insurance Pure Premium
The Lorenz curve, originally introduced by Max Lorenz in 1905 to depict economic income inequality, was adapted to casualty actuarial science by Frees, Meyers, and Cummings (2011, 2014). In economics, the curve plots the cumulative share of population against the cumulative share of income. In P&C ratemaking, the Lorenz curve assesses how effectively a predictive model concentrates actual claim dollars by ordering policies according to predicted pure premium.
LORENZ CURVE CONSTRUCTION
Cumulative % of
Actual Losses (y)
100% ┼───────────────────────────────────────────────────────────────┐
│ . ╱│
│ . ╱ │
│ . ╱ │
│ . ╱ │
│ . ╱ │
│ . ╱ Area A │
│ 45° Line of . ╱ (Between Line │
│ Perfect Equality . ╱ & Curve) │
│ (Gini = 0) . ╱ │
│ . ╱ │
│ . ╱ Empirical Lorenz Curve │
│ . ╱ L(u) [Sorted by mu_hat] │
│ . ╱ ───────────────────────── │
│ . ╱ ╱ │
│ . ╱ ╱ Area B │
│ . ╱ ╱ (Under Empirical │
│ . ╱ ╱ Curve) │
│ . ╱ ╱ │
│ . ╱ ╱ │
│ . ╱ ╱ │
0% ┼──┴───────────────────────────┴────────────────────────────────┤
0% 100%
Cumulative % of Earned Exposure (u)
The 3-Step Construction Protocol
To construct an insurance Lorenz curve from a validation dataset containing policies, follow this three-step protocol:
Step 1: Sort Policies by Model-Predicted Pure Premium
Order all policies in strictly ascending order of their model-predicted pure premium (or predicted loss cost per unit of exposure), :
Where represents the index of the policy in the ordered sequence. Let denote the earned exposure (e.g., car-years, house-years) and denote the actual observed aggregate loss dollars incurred by policy .
Step 2: Plot Cumulative Percentage of Earned Exposure on the X-Axis
For any policy cutoff , calculate the cumulative fraction of total portfolio earned exposure:
The horizontal axis represents , spanning from to of earned exposure.
Step 3: Plot Cumulative Percentage of Actual Losses on the Y-Axis
For the same policy cutoff , calculate the cumulative fraction of total actual observed losses:
The vertical axis represents , spanning from to of actual incurred loss dollars.
Interpreting the Geometry of the Lorenz Curve
- The 45-Degree Diagonal Line of Perfect Equality (): If a pricing model has zero discriminatory capability—such as assigning the exact same flat average loss cost to every policyholder or predicting random numbers—the policies are ordered randomly with respect to risk. Under this uninformative baseline, the bottom of exposure accounts for of losses, the bottom of exposure accounts for of losses, and across the entire domain.
- The Empirical Lorenz Curve (): Because the policies are sorted from lowest predicted risk to highest, an effective model places policyholders with near-zero claim likelihood at the beginning. Consequently, the empirical curve initially hugs the horizontal axis (e.g., the bottom of exposure might incur only of actual losses). As the curve accumulates higher-risk policies, its slope increases monotonically, rising steeply toward .
- Curvature and Model Strength: The greater the downward sag (bowing) of the Lorenz curve away from the 45-degree diagonal, the superior the model's ability to separate low-risk from high-risk insureds.
Derivation of the Gini Coefficient
The Gini coefficient () summarizes the discriminatory strength of the Lorenz curve into a single scalar statistic between and . Geometrically, it is defined as the ratio of the area between the 45-degree diagonal line of equality and the empirical Lorenz curve (Area ) to the total area under the 45-degree diagonal:
Because the diagonal bisects the unit square with vertices , the total area under the diagonal is:
Substituting this into the definition:
Let denote the area strictly underneath the empirical Lorenz curve from to :
Because the sum of Area and Area equals the area of the lower triangle:
Substituting into the Gini formula gives the classical actuarial derivation:
Discrete Calculation via Trapezoidal Rule
In practical actuarial applications, policyholder data is evaluated across discrete ordered observations (or sorted quantiles, such as percentiles or ventiles). Let be the cumulative exposure points, with corresponding cumulative actual loss fractions .
Using the trapezoidal approximation for numerical integration:
Substituting into the Gini equation:
When evaluating over equal-exposure bins (such as 10 deciles where ):
Benchmark Gini Ranges in P&C Insurance
| Gini Range | Discrimination Quality | Actuarial Context & Business Interpretation |
|---|---|---|
| Poor / Weak | Model provides marginal separation. Risk classification variables fail to segment loss propensity effectively. | |
| Moderate / Typical | Standard range for personal auto physical damage (collision/comprehensive) and homeowners property where frequency is low and process risk dominates. | |
| Strong / High | Highly competitive rating plan. Typical of sophisticated personal auto books incorporating telematics driving scores, credit-based insurance scores, and territory-vehicle interaction terms. | |
| Exceptional / Specialized | Rare in standard personal lines. Observed in commercial casualty books with extreme risk heterogeneity (e.g., hazardous fleet trucking vs. local delivery). |
The Normalized Gini: Benchmarking Against Inherent Process Risk
A critical conceptual trap on the CAS PCPA exam is assuming that an ideal insurance pricing model should achieve a Gini coefficient near .
In economics, if one individual earned all income in an economy, the Lorenz curve would follow the bottom axis and right vertical edge, yielding . However, in property and casualty insurance, claims are stochastic realizations governed by severe process risk (pure claim randomness).
The Problem of Inherent Process Risk
Consider an omniscient actuary who knows the exact hypothetical true loss cost for every policyholder in the portfolio (the theoretical "Bayes optimal" or "Oracle" model):
- A high-risk commercial driver with a annual claim probability still has a probability of experiencing zero claims in any single policy year.
- A pristine driver with a annual claim probability can still suffer a catastrophic multi-car collision due to severe icy weather.
Because actual observed losses contain irreducible random process noise, even the true generating model cannot order individual realized claims perfectly. Realized losses will never align monotonically with expected risk, which bounds the empirical Gini well below .
Constructing the Oracle (Maximum) Lorenz Curve
To establish the realistic upper ceiling of discrimination for a specific portfolio, actuaries calculate the theoretical maximum Gini, denoted :
- Sort the validation policies in ascending order of actual observed losses, (or actual empirical pure premium ).
- All policyholders with zero claims () are placed first. These zero-claim policies account for a massive fraction of exposure (often to in personal auto).
- Policyholders with claims are then sorted from smallest dollar severity to largest dollar severity.
- Calculate the resulting empirical Lorenz curve, , and its associated Gini coefficient, .
The curve remains flat along the horizontal axis () until all zero-claim exposures are exhausted, after which it rises steeply to as the shock losses are accumulated.
MAXIMUM GINI (G_max) VS. MODEL GINI
Cumulative % of
Actual Losses (y)
100% ┼───────────────────────────────────────────────────────────────┐
│ . ╱ ││
│ . ╱ ││
│ . ╱ ││
│ . ╱ .││
│ . ╱ . ││
│ . ╱ . ││
│ . ╱ Model L(u) ││
│ . ╱ ........... ││
│ . ╱ .. ││
│ . ╱ .. ││
│ . ╱ .. ││
│ . ╱ .. ││
│ . ╱ .. ││
│ . ╱ .. ││
│ . ╱ .. ││
│ . ╱ .. ││
│ . ╱.. ││
│ . ╱.. ││
│ . ╱. ││
0% ┼──┴───────────────────────────────────────────────────────────┴┤
0% 88% 100%
Cumulative % of Earned Exposure (u)
├─────────────────── Zero-Loss Policies ───────────────────────┤▲ Loss-Incurring
│ (L_max hugs x-axis = 0) │ Policies (L_max
rockets to 1)
The Normalized Gini Formula
The Normalized Gini coefficient (also known as the Gini index ratio) scales the model's achieved discrimination relative to this empirical maximum:
Actuarial Interpretation
- If a commercial auto collision model achieves , an executive might mistakenly judge the model as ineffective because .
- However, if the portfolio's maximum achievable Gini given claim frequency and process variance is , the normalized Gini is:
- This demonstrates that the predictive model successfully captures of all theoretically extractable risk discrimination present in the empirical data.
An actuarial analyst is constructing an insurance Lorenz curve to evaluate a newly calibrated Tweedie pure premium GLM on an out-of-time validation dataset. Which procedure correctly establishes the axes and plotting coordinates for the empirical curve?
Sort policies in ascending order of model-predicted pure premium; plot cumulative percentage of earned exposure on the x-axis and cumulative percentage of actual losses on the y-axis.
Sort policies in descending order of actual incurred claim severity; plot cumulative policy count on the x-axis and cumulative predicted losses on the y-axis.
Sort policies in ascending order of earned exposure; plot cumulative predicted pure premium on the x-axis and cumulative actual claim frequency on the y-axis.
Sort policies in descending order of model deviance residuals; plot cumulative percentage of actual losses on the x-axis and cumulative percentage of exposure on the y-axis.
Receiver Operating Characteristic (ROC) & AUC for Claim Occurrence
While the Lorenz curve and Gini coefficient evaluate continuous pure premium or aggregate loss models, casualty actuaries frequently build classification models to predict binary risk events. The primary application is claim occurrence:
Binary claim probability models (such as logistic regression or probit GLMs) output a predicted claim occurrence probability .
Confusion Matrix Across Decision Thresholds
Converting a continuous probability prediction into a binary prediction requires selecting a decision threshold : predict if , and if .
| Actual \ Predicted | Predicted Claim () | Predicted No Claim () | Total |
|---|---|---|---|
| Actual Claim () | True Positive (TP) | False Negative (FN) | Actual Positives () |
| Actual No Claim () | False Positive (FP) | True Negative (TN) | Actual Negatives () |
From this 2x2 matrix, two core operating rates are defined as functions of the cutoff :
- True Positive Rate (TPR / Sensitivity / Hit Rate):
- False Positive Rate (FPR / / False Alarm Rate):
Constructing the ROC Curve
The Receiver Operating Characteristic (ROC) curve plots on the y-axis against on the x-axis for all possible classification thresholds :
- When : and (point at ).
- When : and (point at ).
- As sweeps continuously from down to , the ROC curve traces a path from to .
RECEIVER OPERATING CHARACTERISTIC (ROC) CURVE
True Positive Rate (TPR)
[Sensitivity]
1.0 ┼───────────────────────────────────────────────────────────────┐
│ . ╱ │
│ . . . ╱ │
│ . . ╱ │
│ . ╱ │
│ . ╱ │
│ . ╱ │
│ . ╱ │
│ . ╱ Empirical Model ROC │
│ . ╱ (AUC = 0.76) │
│ . ╱ │
│ . ╱ │
│ . ╱ │
│ . ╱ 45° Random Guess Baseline │
│ . ╱ (AUC = 0.50) │
0.0 ┼───────────────────────────────────────────────────────────────┤
0.0 1.0
False Positive Rate (FPR) [1 - Specificity]
Area Under the ROC Curve (AUC) & Concordance Statistic Equivalence
The overall discriminatory power across all possible cutoffs is quantified by the Area Under the ROC Curve (AUC):
- : Represents a completely uninformative model (the diagonal line). Predictions are no better than flipping an unbiased coin.
- : Perfect separation; all claim policies are assigned higher predicted probabilities than all non-claim policies.
The Concordance Statistic (-statistic)
A fundamental theorem of mathematical statistics establishes that the AUC is identically equal to the Concordance statistic ():
In words: If an actuary randomly selects one policyholder who experienced a claim () and one policyholder who experienced zero claims (), the AUC is the exact mathematical probability that the model assigns a higher predicted probability of loss to the claim-incurring policyholder.
Mathematical Equivalence: Binary Gini vs. AUC
In binary classification settings, the Gini coefficient derived from the ROC curve (often termed the Accuracy Ratio) maps directly to the AUC through a linear transformation:
Verification of Boundary Values:
- If (random guessing): (zero discrimination).
- If (perfect separation): (perfect discrimination).
- If a personal auto frequency model achieves , its equivalent binary Gini coefficient is .
The Fundamental Distinction: Discrimination vs. Calibration
The single most critical actuarial insight regarding Gini and AUC is that they evaluate relative risk ordering, NOT rate level calibration, dollar scale, or profit adequacy.
Mathematical Proof of Scale Invariance
Let denote a vector of model loss cost predictions. Consider any strictly increasing monotonic transformation such that . The most obvious example is scalar multiplication by a positive constant :
Because is strictly monotonic:
The policy ordering is 100% identical under both sets of predictions. Consequently:
- The cumulative exposure coordinates are unchanged.
- The cumulative actual loss coordinates are unchanged.
- The empirical Lorenz curve is mathematically identical.
- The Gini coefficient is mathematically identical: .
- For classification, ROC thresholds simply scale by , leaving the ROC curve and AUC identical: .
THE ILLUSION OF HIGH DISCRIMINATION WITHOUT CALIBRATION
Policy Index (Sorted) : Policy 1 Policy 2 Policy 3 Policy 4
Actual Loss Cost : $100 $200 $500 $1,000
──────────────────────────────────────────────────────────────────────────
Model A (Well-Calibrated): $105 $195 $510 $990 --> Gini = 0.38, A/E = 1.00
Model B (10x Scaled) : $1,050 $1,950 $5,100 $9,900 --> Gini = 0.38, A/E = 0.10
Model C (0.1x Scaled) : $10.50 $19.50 $51.00 $99.00 --> Gini = 0.38, A/E = 10.0
──────────────────────────────────────────────────────────────────────────
Conclusion: All three models produce IDENTICAL Lorenz curves and IDENTICAL Gini coefficients,
yet Model B creates catastrophic commercial overpricing and Model C guarantees corporate insolvency!
Real-World Actuarial Consequences
An actuarial team that relies exclusively on Gini or AUC when reviewing a rate filing risks severe financial damage:
- The Overpricing Blunder (Under-calibration): If an algorithm multiplies all loss costs by , its Gini coefficient remains stellar. However, when deployed, the company charges double the required premium. Close ratios plummet, high-retention policies lapse, and the company is driven out of the market.
- The Insolvency Blunder (Over-calibration): If an algorithm divides all loss costs by , Gini remains equally high. The company experiences explosive sales growth because its rates are half the market level. However, actual losses will be double the collected premium, producing a catastrophic combined ratio exceeding and rapid surplus exhaustion.
Discrimination metrics confirm that you have correctly identified who is riskier than whom. Calibration diagnostics (Section 7.1) confirm that you are charging the right amount of money.
Comparison of Discrimination Metrics
| Evaluation Metric | Target Variable Type | Underlying Visual Curve | Theoretical Range | Invariant to Scale Multiplication? | Primary Actuarial Use Case |
|---|---|---|---|---|---|
| Lorenz Gini () | Continuous Loss Cost / Pure Premium | Insurance Lorenz Curve ( vs. ) | Yes (Strictly Scale Invariant) | Evaluating pure premium GLMs, Tweedie models, and loss cost relativities. | |
| Normalized Gini () | Continuous Loss Cost / Pure Premium | Model Lorenz vs. Oracle Actual Loss Lorenz | Yes (Strictly Scale Invariant) | Benchmarking model sorting efficiency relative to inherent process randomness. | |
| AUC / -statistic | Binary Claim Occurrence () | ROC Curve (TPR vs. FPR) | Yes (Strictly Scale Invariant) | Evaluating claim frequency models, zero-claim classifiers, and underwriting fraud filters. | |
| Binary Gini () | Binary Claim Occurrence () | Accuracy Ratio / ROC | Yes (Strictly Scale Invariant) | Executive communication of binary classification power on a standard 0 to 1 scale. | |
| Global A/E Ratio | Dollar Aggregate Losses | Total Actual / Total Expected | No (Directly Measures Scale) | Portfolio-wide rate level adequacy and aggregate dollar calibration. |
Actuarial Exam Traps & Pitfalls
Warning
Trap 1: Sorting by Actual Losses Instead of Predicted Loss Cost When computing the model's Lorenz curve, policies must always be sorted by model-predicted pure premium . Sorting policies by actual observed losses calculates the theoretical maximum curve , NOT the model's curve. Confusing the two yields an artificially inflated Gini that reflects hindsight sorting rather than model predictive power.
Warning
Trap 2: Believing a High Gini Guarantees Rate Adequacy Exam questions frequently present a model with a high Gini coefficient () and ask whether the actuary can immediately file the indicated base rates. The answer is NO. Gini measures only risk ranking. If the base rate is uncalibrated, the model can produce a combined ratio of despite having the highest Gini in the state.
Warning
Trap 3: Omitting Earned Exposure Weighting on the Lorenz X-Axis Plotting cumulative policy count on the horizontal axis instead of cumulative earned exposure violates actuarial principles. A fleet policy with vehicle-years has times the exposure of a 1-vehicle policy. The x-axis must strictly represent cumulative earned exposure .
Warning
Trap 4: Confusing Binary ROC Gini with Continuous Pure Premium Gini For binary claim occurrence, . However, this relationship does not hold for continuous loss costs or pure premiums where severity varies. Candidates must verify whether the exam question asks for a binary occurrence metric or a continuous aggregate loss cost Gini.
A casualty pricing team calibrates two competing personal auto rating models on a holdout validation set: Model 1 outputs predicted loss costs mu_hat. Model 2 was generated by an analyst who inadvertently multiplied all of Model 1's loss cost predictions by exactly 3.0 (mu_hat_2 = 3.0 * mu_hat_1). How do the Gini coefficient and global Actual-to-Expected (A/E) ratio of Model 2 compare to Model 1?
Model 2 has a Gini coefficient three times larger than Model 1, but its global A/E ratio is identical to Model 1.
Model 2 has a significantly lower Gini coefficient due to severe overdispersion, and its global A/E ratio is reduced by two-thirds.
Model 2 has the exact same Gini coefficient as Model 1, but its global A/E ratio is exactly one-third that of Model 1.
Model 2 has both the exact same Gini coefficient and the exact same global A/E ratio because linear scaling cancels out in actuarial validation.
In personal lines predictive analytics, an actuary fits a logistic regression model to predict the probability of policyholder claim occurrence (Y = 1 if at least one claim, 0 otherwise). The model achieves an Area Under the ROC Curve (AUC) of 0.74 on out-of-time test data. What is the correct actuarial and statistical interpretation of this result?
The model successfully explains 74% of the deviance reduction relative to an intercept-only null model.
The probability that the model assigns a higher predicted claim probability to a randomly chosen claim-incurring policy than to a randomly chosen claim-free policy is exactly 0.74, and its corresponding binary Gini is 0.48.
The model achieves a 74% True Positive Rate when the decision cutoff is fixed at the portfolio historical claim frequency.
The model's cumulative loss cost Lorenz curve encompasses an area of 0.74 underneath the 45-degree diagonal line of equality.
Sections you finish are checked off in the contents.