MST0052 · Lecture 6 · Fall 2026
90 minutes · one idea · seven figures
01
Misses real structure — underfitting.
Chases noise in this sample — overfitting.
02
Systematic — the model is too simple.
Instability — sensitive to the sample.
Irreducible — the floor.
03
Learning curves · error vs training-set size
Both curves converge to a high error. The model is the bottleneck.
A large train–validation gap that closes as data grows.
Reference — screenshot this
04
k = 1 bends to every neighbour. k = 50 blurs everything.
Deep memorises the sample. Shallow misses the structure.
λ = 0 is raw OLS. λ → ∞ shrinks everything flat.
Your project · the minimum bar
05
Step 1 · Synthetic data
Step 2 · The model
Step 3 · Underfit
Would more data help? No — the model is the bottleneck.
Step 4 · Overfit
Would more data help? Yes — it constrains the wiggles.
Step 5 · Degrees 1–15
Step 5 · The result
Step 6 · Learning curve at degree 15
06
For the curious · not on the exam
The full derivation, with each step justified: the optional L6 supplement deck.
k-NN sweep · breast cancer
Beyond this course
Two diagnostics · often confused
Terminology