Actuarial Notes

Predictive Accuracy

Study guides: ATPA, Exam MAS-II, Exam ACIA-CAPSTONE

Predictive Accuracy is how well a model's predictions agree with outcomes it was not fitted to, measured on a holdout sample or by cross-validation. It is judged on three separate questions:

  1. Calibration: are the predicted levels right?
  2. Discrimination: does the model rank low risks below high risks?
  3. Classification: for a classifier, how often is it right at a chosen threshold?

Every measure is computed on holdout data, since on training data the more flexible model always wins, and two models are compared on the same data.

Overall error

For a numeric response, the overall error is the test MSE (or the holdout deviance):

\text{Test MSE} = \frac{1}{m}\sum_{i \in \text{holdout}}\left(y_i - \hat{f}(x_i)\right)^{2}

  • m is the number of holdout observations.

For a classifier it is the test error rate. Each is one number that mixes calibration and ranking.

A model predicts 2, 4 and 7 for three holdout observations whose responses are 3, 4 and 5. What is its test MSE?

  • The errors are 1, 0 and -2.
  • The test MSE is (1 + 0 + 4)/3 = 1.67.

Measures of discrimination

Lift, the AUROC and the Gini index depend only on the order of the predictions, so multiplying every prediction by a constant leaves them unchanged. The normalized Gini is the model's Gini index divided by that of a perfect model, and it gives the AUROC:

\text{AUROC} = 0.5 \times \text{normalized Gini} + 0.5

The two are therefore not separate validation measures.

A fraud model scores three fraudulent holdout claims 0.92, 0.74 and 0.48, and seven legitimate ones 0.81, 0.55, 0.40, 0.33, 0.21, 0.15 and 0.08. What are its AUROC and normalized Gini?

  • The AUROC is the share of fraudulent–legitimate pairs in which the fraudulent claim scores higher.
  • 0.92 beats all 7 legitimate claims, 0.74 beats 6 and 0.48 beats 5, so the AUROC is 18/21 = 0.857.
  • The normalized Gini is 2(0.857) - 1 = 0.714.

Classification at a threshold

A threshold turns predicted probabilities into classes, and the confusion matrix counts the results. Accuracy, sensitivity, specificity and precision are read from it, and moving the threshold moves all of them. The ROC curve traces every threshold at once.

At a threshold of 0.5, what are the sensitivity, specificity and precision of the fraud model above?

  • Four claims score above 0.5: two fraudulent and two legitimate, so TP = 2, FP = 2, FN = 1 and TN = 5.
  • Sensitivity is 2/3 = 66.7\% and specificity is 5/7 = 71.4\%.
  • Precision is 2/4 = 50\%, so half the claims sent for investigation are legitimate, even though the model ranks well.

Measures of calibration

The quantile plot sorts holdout data by predicted value into equal-exposure buckets and compares actual with predicted, so it shows ranking and calibration together. The double lift chart sorts on the ratio of two models' predictions, showing which model is right where they disagree. Ranking matters for underwriting selection or fraud triage, and calibration for setting a rate level.

Model B's predictions are 1.10 times Model A's. In four equal-exposure buckets of a holdout set, actual pure premiums are 200, 300, 450 and 650, and Model A predicts 220, 310, 430 and 640. How do the models compare?

  • Model B predicts 242, 341, 473 and 704, in the same order as A, so the two have identical Gini and lift.
  • Model A's actual-to-predicted ratios are 0.91, 0.97, 1.05 and 1.02, averaging 1.00.
  • Model B's are 0.83, 0.88, 0.95 and 0.92, averaging 0.91.
  • B over-predicts by about 10% everywhere, which only the quantile plot shows. For setting the rate level, B would overcharge the whole book.

Practice questions

Actuarial Notes