Why Use a Random Holdout?
A model can fit the data used to estimate it well and still predict poorly for new policies. A random holdout provides a separate set of policy observations for checking predictive performance: the model is developed using the training sample, then its predictions are evaluated against outcomes that were not used to fit or adjust it. This is useful only when the split respects the intended prediction unit and the holdout remains genuinely separate during model development.
Here, the observation unit is an independent policy record. A random split assigns each such record to one sample or the other. The method assumes that records are independent at this unit and that the random assignment does not depend on their outcomes or predictors. If multiple records belong to the same underlying risk, splitting them independently can put related records in both samples; the independent-policy setup in this tutorial does not cover that situation.
Make the Split at the Policy Level
First specify the observation unit, the randomization method, and the intended holdout size. For example, a fixed-size split can be made by randomly ordering the policy records and assigning the first specified number to the holdout. A random-number generator seed can be recorded so the assignment can be reproduced. The seed makes the process repeatable; it does not make a poor split representative.
The holdout proportion is often described as a fraction of policy records. But policies can have different exposure, so the fraction of policies assigned to holdout need not equal the fraction of exposure assigned there. For a frequency model, exposure is the time or amount of risk represented by a policy record. It matters because a policy with three policy-years contributes more opportunity for claims than one with half a policy-year.
Worked Example: Checking a Realized Random Split
A hypothetical insurer has six independent policy records. A random ordering assigns policies B and E to holdout; the other four go to training. Their exposures in policy-years are A: 0.5, B: 1, C: 1, D: 2, E: 0.5, and F: 3. Check the policy-count and exposure shares in the realized split.
Step 1: Count policies. There are 6 records, of which 2 are in holdout. The holdout policy share is \(2/6=0.3333\), or 33.33% to two decimal places.
Step 2: Add holdout exposure. Policies B and E contribute \(1+0.5=1.5\) policy-years.
Step 3: Add total exposure. The portfolio exposure is \(0.5+1+1+2+0.5+3=8\) policy-years. Training exposure is \(8-1.5=6.5\) policy-years.
Step 4: Calculate the exposure share. Holdout contains \(1.5/8=0.1875\), or 18.75% of total exposure. Thus, this realized split has 33.33% of the policies but only 18.75% of exposure.
This difference does not by itself show that the random assignment was wrong. It does show why policy count alone is not enough to describe the validation sample. The split should be examined for material exposure imbalance and important differences in the mix of risks. Any decision to alter the split should be made without using claim outcomes to create a favorable validation result.
Fit on Training Data and Predict the Holdout
For a standard frequency GLM, let \(N_i\) be the claim count for policy \(i\), \(e_i>0\) its exposure, and \(x_i\) its rating variables. Under a log-link Poisson frequency model, the conditional mean claim count is \(e_i\lambda_i\), where \(\lambda_i\) is the modeled claim rate per unit of exposure. The logarithm of exposure enters as an offset:
The model parameters in \(\eta(x_i)\) are estimated using training observations only. Apply those fitted parameters to the holdout predictors to obtain \(\hat{\lambda}_i\), a predicted rate. The corresponding predicted claim count for a holdout policy is \(e_i\hat{\lambda}_i\). A zero-exposure record cannot have an observed rate \(N_i/e_i\), so it is not included in frequency summaries defined per unit of exposure.
The Poisson assumption specifies a conditional count distribution and mean. Some applications use a different response distribution or allow overdispersion; the details of fitting those models are not needed for the split itself. In any case, the essential validation rule is the same: do not estimate model parameters using holdout outcomes before scoring that holdout.
Exposure-Weighted Validation Summaries
For a holdout of \(m\) policies, the observed aggregate frequency is total claims divided by total exposure. The predicted aggregate frequency is the predicted claim count across the holdout divided by total exposure. These are exposure-weighted summaries; an unweighted average of policy rates would give a half-year policy the same influence as a three-year policy.
A simple aggregate comparison is the difference \(\hat{\lambda}_{\mathrm{obs}}-\hat{\lambda}_{\mathrm{pred}}\). The ratio of total observed claims to total predicted claims is another compact summary, provided predicted total claims are positive. These summaries describe aggregate agreement; they do not show whether predictions are accurate for each policy or risk segment.
An exposure-weighted mean absolute frequency error compares each policy’s observed rate \(N_i/e_i\) with its predicted rate. It gives the absolute rate discrepancy for each policy a weight proportional to its exposure:
This quantity is a descriptive summary, not a complete measure of model quality. In particular, an individual policy’s observed claim frequency can be highly variable, especially at low exposure. The chosen summary should match the validation question, and its definition should be fixed before examining holdout results.
Why the Exposure Weight Appears
The exposure-weighted predicted frequency follows directly from predicted counts. Under the model, policy \(i\) has expected count \(e_i\hat{\lambda}_i\). Adding those expected counts gives \(\sum_i e_i\hat{\lambda}_i\). Dividing by the total exposure converts predicted claims back to a rate per unit of exposure. Equivalently, this is a weighted average of the policy-level predicted rates with weights \(e_i/\sum_j e_j\):
The same reasoning gives the observed aggregate frequency: total observed claims divided by total exposure. It is generally not equal to the ordinary average of the policy-level observed rates, because policies can have different exposures.
Worked Example: Comparing Observed and Predicted Frequency
A hypothetical holdout contains two independent policies. Policy 1 has exposure \(e_1=1\), claim count \(N_1=0\), and a fixed prediction \(\hat{\lambda}_1=0.2\). Policy 2 has exposure \(e_2=3\), claim count \(N_2=2\), and a fixed prediction \(\hat{\lambda}_2=0.5\). The predictions were produced by a model fitted on training data. Calculate observed and predicted aggregate frequencies and the exposure-weighted mean absolute frequency error.
Method. Use exposure-weighted rates for the aggregate summaries and the stated policy-level formula for the absolute error. No model fitting is performed on these two holdout records.
Step 1: Total exposure and claims. Total exposure is \(1+3=4\) policy-years, and total observed claims are \(0+2=2\). Thus the observed aggregate frequency is \(2/4=0.5\) claims per policy-year.
Step 2: Predicted claims. Policy 1 contributes \(1(0.2)=0.2\) predicted claims. Policy 2 contributes \(3(0.5)=1.5\) predicted claims. Total predicted claims are \(0.2+1.5=1.7\), so predicted aggregate frequency is \(1.7/4=0.425\) claims per policy-year.
Step 3: Aggregate comparison. The observed-minus-predicted frequency difference is \(0.5-0.425=0.075\) claims per policy-year. The observed-to-predicted total claim ratio is \(2/1.7=1.1765\), to four decimal places.
Step 4: Individual absolute errors. The first observed rate is \(0/1=0\), giving absolute error \(|0-0.2|=0.2\). The second observed rate is \(2/3\), giving absolute error \(|2/3-0.5|=|1/6|=1/6\). Weighting by exposure gives \(1(0.2)=0.2\) and \(3(1/6)=0.5\). Their sum is \(0.7\), and \(0.7/4=0.1750\) claims per policy-year.
Check. The exposure-weighted error is \((0.2+0.5)/4=0.1750\), as calculated. A tempting but incorrect answer is 0.2250; it does not equal the displayed weighted sum divided by 4. The error here is 0.1750, to four decimal places.
Keep the Holdout Out of Model Development
A holdout provides a useful assessment only if its outcomes remain separate from model development. Fit coefficients, choose variables, revise rating factors, and set any tuning choices using training data. Then generate holdout predictions once the modeling decisions are fixed, and calculate the prespecified validation summaries. The earlier material on preventing information leakage explains why information derived from holdout outcomes must not flow back into fitting.
If the analyst examines holdout performance, changes the model in response, and reports the performance of that revised model on the same holdout as if it were untouched, the assessment is no longer an independent check. The holdout has become part of model selection. Also, a good aggregate comparison does not establish that every subgroup is well predicted; interpretation should account for sample size, exposure, and the purpose of the evaluation.
Worked Example: Computing Holdout Summaries Without Refitting
A hypothetical model fitted on training data produces these predictions for three holdout policies: \((e_i,N_i,\hat{\lambda}_i)=(0.5,0,0.4)\), \((1,1,0.6)\), and \((2,1,0.8)\). Calculate the observed and predicted aggregate frequencies, their difference, the observed-to-predicted claim ratio, and the exposure-weighted mean absolute frequency error. Treat all predictions as fixed.
Step 1: Totals. Total exposure is \(0.5+1+2=3.5\) policy-years. Total observed claims are \(0+1+1=2\).
Step 2: Observed frequency. The observed aggregate frequency is \(2/3.5=0.5714286\) claims per policy-year.
Step 3: Predicted count and frequency. The predicted counts are \(0.5(0.4)=0.2\), \(1(0.6)=0.6\), and \(2(0.8)=1.6\). Total predicted claims are \(0.2+0.6+1.6=2.4\). Predicted aggregate frequency is \(2.4/3.5=0.6857143\).
Step 4: Aggregate difference and ratio. Observed minus predicted frequency is \(0.5714286-0.6857143=-0.1142857\), or \(-0.1143\) to four decimal places. The observed-to-predicted claim ratio is \(2/2.4=0.8333\) to four decimal places.
Step 5: Exposure-weighted absolute error. The observed rates are \(0/0.5=0\), \(1/1=1\), and \(1/2=0.5\). The weighted absolute errors are \(0.5|0-0.4|=0.2\), \(1|1-0.6|=0.4\), and \(2|0.5-0.8|=0.6\). Their sum is \(1.2\), so the error is \(1.2/3.5=0.3428571\), or \(0.3429\) to four decimal places.
Check and interpretation. Predicted total claims exceed observed claims by \(2.4-2=0.4\); dividing by \(3.5\) gives the same frequency difference in magnitude, \(0.4/3.5=0.1142857\). The negative observed-minus-predicted difference is therefore consistent. These are holdout summaries of the fixed predictions, not results from refitting the model.
Common Mistakes
- Reporting only the fraction of policies. A holdout with 20% of records may contain much less or much more than 20% of total exposure. Report or inspect both quantities.
- Averaging policy frequencies without exposure weights. The rate \(N_i/e_i\) from a short-exposure record should not automatically receive the same weight as the rate from a long-exposure record when calculating an aggregate frequency.
- Using holdout outcomes to revise the model. Doing so makes that holdout part of development rather than a clean assessment of the final model.
- Confusing aggregate agreement with individual accuracy. Similar total observed and predicted claims can coexist with substantial errors that offset across policies.
- Ignoring the observation unit. Randomly splitting records is appropriate here only under the independent-policy setup. Related records can undermine the intended separation if treated as independent units.
Check Your Understanding
Use the stated predictions as fixed outputs from models fitted on training data. Round rates and ratios to four decimal places where needed.
- A random split places 12 of 50 policies in holdout. Total exposure is 18 policy-years in holdout and 82 in training. What are the holdout policy share and exposure share? (Answer: 24.00% of policies and 18.00% of exposure.)
- A holdout has two policies: \((e,N,\hat{\lambda})=(2,1,0.3)\) and \((1,0,0.6)\). Calculate the observed and predicted aggregate frequencies. (Answer: observed \(1/3=0.3333\); predicted \((2(0.3)+1(0.6))/3=0.4000\) claims per policy-year.)
- A holdout has \(4\) observed claims and \(5\) predicted claims over \(10\) policy-years. Find observed frequency, predicted frequency, and observed-to-predicted claim ratio. (Answer: \(0.4000\), \(0.5000\) claims per policy-year, and \(4/5=0.8000\).)
- For two policies, \((e,N,\hat{\lambda})=(2,0,0.2)\) and \((2,2,0.7)\), calculate the exposure-weighted mean absolute frequency error. (Answer: \([2|0-0.2|+2|2/2-0.7|]/4=(0.4+0.6)/4=0.2500\) claims per policy-year.)
- An analyst fits a model on training data, scores a holdout, changes a rating factor after inspecting the holdout error, then reports the revised model’s error on that same holdout. Is this still an untouched validation assessment? State the issue. (Answer: No. Holdout results influenced model development, so the holdout has been used for tuning and no longer provides an untouched assessment of the revised model.)