Bias-Variance Tradeoff
Study guides: Exam SRM, Exam PA, Exam MAS-I, Exam MAS-II, Exam PCPA
The Bias-Variance Tradeoff is the decomposition of a model's expected prediction error into three pieces — squared Bias, variance, and irreducible noise — and the fact that model complexity moves the first two in opposite directions. It is the reason the best-fitting model is almost never the best-predicting one.
E\!\left[(y_0 - \hat{f}(x_0))^{2}\right] = \left[\text{Bias}(\hat{f}(x_0))\right]^{2} + \text{Var}(\hat{f}(x_0)) + \sigma^{2}
- Bias is error from the model being too rigid to represent the truth (a straight line through a curved relationship); variance is how much the fit would move if it were refitted on a different sample
- Adding terms, interactions, or levels lowers bias and raises variance. Removing them does the reverse. The total is U-shaped, and the minimum is the right complexity
\sigma^2is irreducible: no model, however good, predicts better than the noise in the response allows- Underfitting = high bias, low variance: training and test error are both high and close together. Overfitting = low bias, high variance: training error is tiny and test error is much larger
- Training error is not a guide — it falls monotonically with complexity. Estimate test error with Cross-Validation, or penalize complexity with AIC / BIC
- More data lowers variance without touching bias, so a complex model that overfits at
n = 500may be exactly right atn = 50{,}000— the practical reason large books support finer classification plans - Credibility weighting is this trade-off in actuarial dress: shrinking a volatile class estimate toward the overall mean accepts bias to cut variance, and lowers Mean Square Error
Decomposing Prediction Error At a point
x_0, a model has bias-3, variance16, and the response has irreducible variance25. Compare its expected squared prediction error with a simpler model having bias-6and variance4.Answer
\text{Model A} = (-3)^2 + 16 + 25 = 9 + 16 + 25 = 50\text{Model B} = (-6)^2 + 4 + 25 = 36 + 4 + 25 = 65Model A predicts better despite being the more complex one. Note that both are floored at25— even a perfect model cannot beat the noise.
Diagnosing Overfitting in a Rating Model A frequency model with territory banded into
8groups has training deviance2{,}400and holdout deviance2{,}510. Refitting with all220postal codes as separate levels gives training deviance1{,}950and holdout deviance2{,}890. What happened?Answer The
220-level model has far lower training error and much worse holdout error — the signature of high variance. Most postal codes carry too little exposure to estimate their own relativity, so each coefficient is chasing a handful of claims. The8-band model accepts some bias (real differences within a band are averaged away) for a large reduction in variance, and predicts better.