Skip to content
atlas

Bias-variance trade-off

Also known as: bias-variance tradeoff, bias-variance dilemma

The tension between a model too simple to catch the real pattern and one so flexible that it chases chance details in its examples.

Draft - this entry has not been reviewed yet.

Formal

The error a model makes on new data splits into a part from wrong fixed assumptions, a part from how much its fit would change with a different sample of training data, and noise nothing can remove; lowering one of the first two usually raises the other.

In plain English

Like drawing a line through dots on a page. A ruler misses the curve that is really there, while a hand that passes through every single dot draws a wild shape that says little about where the next dot will land.

In practice

A bank's team predicting loan defaults tries models of growing size, checks each against a validation set, and picks the one where the error on held-back cases is lowest, not the one that fits past loans best.

Why it matters

It explains why a model that looks perfect on the cases it learned from can still fail in real use, and why choosing model size and limits is a balance rather than a race to the biggest model.

Technical deep dive

For squared-error loss, the expected error of a learned predictor at a point x, averaged over training sets drawn from the same distribution, decomposes exactly into bias squared (how far the average prediction is from the true function), variance (how much individual predictions scatter around that average), and the irreducible noise variance of the target. Geman, Bienenstock and Doursat (1992) brought this decomposition into neural network research as the bias/variance dilemma: a flexible, nonparametric estimator has low bias but needs very large samples to keep its variance down, while a constrained one has low variance but may be systematically wrong. For other losses, such as 0-1 classification loss, there is no single clean additive decomposition, and several competing definitions exist.

In classical practice the trade-off is steered through model capacity: polynomial degree, tree depth, number of neighbours in k-nearest neighbours, or the strength of a regularization penalty. Plotting test error against capacity gives the textbook U-shaped curve, with underfitting on the left, overfitting on the right, and the best model at the bottom, found with a validation set or cross-validation. Ensembles act on the variance term directly: bagging and random forests average many high-variance trees, while boosting mainly reduces bias by adding weak learners in sequence.

Belkin, Hsu, Ma and Mandal (2019) showed that the U-curve is only the first part of a longer picture they called double descent. Test error peaks near the interpolation threshold, where the model has just enough capacity to fit the training data exactly, and then falls again as capacity keeps growing, often below the classical minimum. The effect appears for random-feature models, decision-tree ensembles and neural networks, and helps explain why heavily overparameterised deep networks that reach zero training error can still generalise. The decomposition itself remains true; what changes is the assumption that variance must rise monotonically with parameter count, since implicit regularisation from the training procedure (for example stochastic gradient descent finding minimum-norm solutions) keeps variance in check.

What to learn first

Everything this builds on, foundations first.

  1. Training data
  2. →Machine learning
  3. →Model training
  4. →Loss function
  5. →Overfitting
  6. →Underfitting
  7. →Bias-variance trade-off

Relationships

Sources & further reading

Where this data comes from

This entry was drafted by an AI from the sources above and has not yet been checked by a person. Treat it as a starting point, and check anything important against the sources.

See the review queueSuggest a correction on GitHubThis term as JSON

Check yourself

Loading…

Atlas is in beta.