The bias-variance tradeoff is the formal framework underlying both underfitting and overfitting โ it decomposes a model's total error into two competing sources, and explains precisely why reducing one often increases the other.
Definitions
| Term | Meaning | Associated With |
|---|---|---|
| Bias | Error from a model being too simple to capture the true underlying pattern โ systematic, consistent error regardless of which specific training data was used | Underfitting |
| Variance | Error from a model being overly sensitive to the specific training data it happened to see โ the model's predictions would change a lot if trained on a different sample from the same distribution | Overfitting |
The Formal Decomposition
"Irreducible error" is noise inherent to the problem itself โ no model, however good, can eliminate it (e.g. genuine randomness in the true relationship being modeled). Bias and variance, by contrast, are directly influenced by model choices.
Why It's a Tradeoff, Not Two Independent Knobs
Increasing model complexity reduces bias but increases variance โ total error is minimized at some intermediate complexity, not at either extreme.
A very simple model (e.g. linear regression on a genuinely non-linear problem) has high bias โ it's consistently wrong in the same systematic way, regardless of training data โ but low variance, since a simple model doesn't change much across different training samples. A very complex model (many parameters, high capacity) has low bias โ it can fit almost any pattern โ but high variance, since it's sensitive enough to fit each specific training sample's particular noise differently.
Numerical Intuition
Imagine training the same architecture on 5 different random samples from the same true distribution. A high-bias model's predictions would be consistently off in the same direction across all 5 samples (systematic error). A high-variance model's predictions would vary wildly across the 5 samples โ sometimes overshooting, sometimes undershooting, depending on each sample's specific noise โ even though the average prediction across all 5 might be reasonably close to correct.
Where Deep Learning Complicates This Classical Picture
Modern deep networks, with vastly more parameters than training examples, sometimes still generalize surprisingly well despite classical bias-variance theory predicting they should overfit badly โ an active area of ongoing research (sometimes discussed under "double descent"). In practice, though, the classical intuition still holds directionally and remains a useful mental model for diagnosing whether a specific model needs more capacity/less regularization (address bias) or less capacity/more regularization (address variance).
Common Mistakes
- Treating bias and variance as if they can both be minimized simultaneously without any tradeoff โ in the classical framework, reducing one by increasing model complexity typically increases the other; the goal is finding a good balance for your specific data size and problem, not eliminating both.
- Confusing this "bias" (a statistical/error-decomposition concept) with a neuron's "bias" term (the additive parameter \(b\) from Weights and Bias) โ same word, completely unrelated concepts.
Interview Relevance
Q: "Explain the bias-variance tradeoff and how it relates to underfitting and overfitting." Total expected error decomposes into bias (systematic error from a model too simple to capture the true pattern โ associated with underfitting) and variance (error from a model being overly sensitive to the specific training sample it saw โ associated with overfitting), plus irreducible noise. Increasing model complexity generally reduces bias but increases variance, so total error is typically minimized at some intermediate complexity, not at either extreme.
Practice Question
Would adding more training data (holding model architecture fixed) primarily help reduce bias, variance, or both? Explain your reasoning.