Bias–variance trade-off
The balance between a model that is too simple (high bias) and one that is too sensitive to its training data (high variance).
Imagine retraining the same kind of model on many random training sets. Bias is how far its average prediction is from the truth; variance is how much its predictions jump around between training sets. For squared error the expected test error splits exactly into three parts:
where is noise no model can remove. Making a model more flexible lowers bias and raises variance; regularisation and more data lower variance. The best model sits in between, and cross-validation is how you find it.
See it in action
- Bias, variance and cross-validationWhy models fail to generalise, the error decomposition, and how cross-validation chooses complexity.
- Polynomial regression and model capacityFit curves by expanding features, and learn to pick the complexity that generalises.
- Bagging and random forestsAverage many deep, decorrelated trees to keep their low bias and cancel their high variance.