← Back to Study Guide

Bias-Variance Tradeoff

Visualize how model complexity affects underfitting and overfitting

Chapter 5 — The Bias-Complexity Tradeoff

About This Simulator

Generate noisy data from a sine wave and fit polynomial models of varying degree. Low-degree polynomials underfit (high bias), while high-degree polynomials overfit (high variance). Watch the training error decrease as complexity grows, while the test error first drops then rises — the classic U-shaped bias-variance curve.

Controls

Polynomial Fit Visualization

Training MSE --
Test MSE --
Complexity --
Diagnosis --

Activity Log