Fit a polynomial to 30 noisy points: how flexible should f̂ be?
true f(x) = sin(2πx) + x/2f̂ from this training setf̂ from other training sets

Training error, test error, and where the test error comes from (2,000 training sets per degree)

k-nearest neighbours: one knob from very flexible (K = 1) to rigid (K = 150)

decision regions (200 training points)

error against K (average of 20 training sets)

class 0class 1Bayes boundarytest errortraining errorBayes error rate (dashed)

Past the interpolation threshold: test error of a linear model on the first p of 400 features (n = 40)