Up nextNext guide
The Explainability vs Accuracy Tradeoff
Fundamentals
Fundamentals GUIDE
The bias-variance tradeoff explains why a model can fail by being too simple or too complex.
Listen to this guideAI-narrated · ~2 min
It's the central tension behind underfitting versus overfitting, and getting it right determines whether your model generalizes to new data.
Every prediction error a model makes can be split into three parts: bias, variance, and irreducible noise. Bias is error from wrong assumptions — a model too simple to capture the real pattern, like fitting a straight line to a curve (underfitting). Variance is error from sensitivity to the specific training sample — a model so flexible it memorizes quirks and noise (overfitting). The catch is that lowering one tends to raise the other. A high-degree polynomial slashes bias but its predictions swing wildly with each new dataset. The goal isn't to eliminate either error but to find the sweet spot where their sum — total expected error on unseen data — is smallest.
Choosing the depth of a decision tree: a shallow tree underfits (high bias), a very deep tree memorizes training rows (high variance), so you tune depth via validation error.
Setting the regularization strength (lambda) in ridge or lasso regression to trade a small increase in bias for a large drop in variance and better test accuracy.
Using random forests, which average many de-correlated high-variance trees to reduce overall variance without inflating bias much.
Picking the number of neighbors k in k-NN: k=1 has high variance and follows noise, while a very large k oversmooths and adds bias.
Deep learning has complicated the classic story. Researchers observed 'double descent,' where test error first rises, then falls again as massively over-parameterized networks grow past the interpolation threshold — seemingly defying the U-curve. Understanding why huge models generalize despite near-zero training error is an active research frontier, tied to implicit regularization from optimizers like SGD. Practitioners increasingly rely on empirical tuning, scaling laws, and validation curves rather than the textbook tradeoff alone.
Free newsletter
Three verified AI stories every weekday morning, written in plain English. Free forever, no ads.
One email each weekday. Unsubscribe in one click. We never sell or share your address.
Test yourself
Instant feedback on every answer, and a shareable certificate with a verifiable ID once you pass a course.
Support free AI education. AI Understanding is a 501(c)(3) nonprofit — no ads, no paywall, ever. Make a donation
The bias-variance tradeoff explains why a model can fail by being too simple or too complex. It's the central tension behind underfitting versus overfitting, and getting it right determines whether your model generalizes to new data.
High variance shows up as a large gap between excellent training performance and poor test performance — the model memorized the training data.
In the classic account, greater flexibility can reduce bias while increasing sensitivity to the sample. The guide also describes double descent, so this is not a universal monotonic law.
The supplied bias term is already squared. Add the three components: 2 + 3 + 1 = 6.
The guide describes averaging high-variance, de-correlated trees as a way to reduce ensemble variance.
Keep learning
More guides picked for this topic
Up nextNext guide
The Explainability vs Accuracy Tradeoff
Fundamentals