Underfit
Low capacity cannot follow the curve, so both errors remain high.
Bias, variance, and everything between
Shape a dataset, vary model capacity, and watch the gap between training performance and holdout performance reveal underfitting and overfitting.
Blue points train the polynomial. Green diamonds are withheld from fitting and measure how well the curve generalizes. Click empty plot space to add a training point, or drag any point to reshape the problem.
Training error usually falls as flexibility rises. Holdout error often falls first, then rises when the model starts fitting noise instead of structure.
Low capacity cannot follow the curve, so both errors remain high.
The model captures the durable shape without chasing every noisy point.
Training error is tiny, but the holdout gap exposes fragile behavior.
Every choice gives immediate feedback. Try another answer at any time to compare the reasoning.
Choose an answer.
Choose an answer.
Choose an answer.
Polynomial fitting is a small laboratory for model selection ideas that recur across machine learning.
A sufficiently flexible model can memorize the training samples. Holdout data tests whether the learned pattern survives beyond those samples.
It controls model capacity. Higher degrees allow more bends and local variation, which can represent richer patterns but also amplify noise.
At first, added flexibility reduces systematic error. After useful structure is captured, further flexibility starts increasing sensitivity to sampling noise.
No. The useful degree depends on the generating process, sample size, noise, split, and regularization. This dataset happens to contain a cubic backbone.