Skip to content
Lambdian

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:

E[(y−f^(x))2]=Bias2+Variance+σ2\mathbb{E}[(y-\hat f(x))^2] = \text{Bias}^2 + \text{Variance} + \sigma^2

where σ2\sigma^2 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