Module 10 — The bias-variance trade-off, shown on an example
Here is the module where the whole course converges. Overfitting and underfitting, described intuitively in the introductory course, find here their exact mathematical explanation: a model's error decomposes into two antagonistic terms, bias and variance, and knowing how to learn is knowing how to balance them.
Decomposing the error
The error a model makes on new data splits into three parts:
- Bias measures the error from overly simple assumptions: the model is too rigid to capture the true structure of the data.
- Variance measures the model's sensitivity to the specific training data: change the sample slightly, and the model changes a lot.
- Irreducible noise is the randomness inherent in the data, which no model can remove.
We can act only on the first two — and, this is the whole point, they pull in opposite directions.