Overfitting vs Underfitting
The gap between training and test error, diagnosed from learning curves.
A model's goal is to perform well on new data, not just the data it was trained on. As complexity increases, the generalisation gap emerges.
Underfitting
When a model is too simple, it has high bias. It fails to capture the underlying pattern of the data entirely.
Overfitting
When a model is too complex, it has high variance. It threads every point, memorising noise and failing to generalise.
Learning Curves
Plotting error over time or complexity reveals the diagnosis. High bias shows converging high errors; high variance shows a large gap.
Where It Breaks
If your model is underfitting, adding more data will not help. You must increase model complexity first.
The Quick Version
- Generalisation: Models must work on unseen data.
- Underfit: Too simple to learn the pattern.
- Overfit: Too complex, memorises the noise.
- Diagnosis: Learning curves reveal the issue.
- Failure: More data only fixes variance, not bias.