Mathematics · core

Bias, Variance & Overfitting

Underfitting vs memorizing noise; why in-sample greatness lies.

mathematicsstatistics

Mental model

Bias is systematic error from too-simple a model; variance is sensitivity to which sample you drew. Overfitting is low bias + high variance. The gym is holdout validation, not training R².

How to study Bias, Variance & Overfitting

Begin by restating the mental model in your own words, then connect it to a concrete system you have built or operated. Name the mechanism, the constraint it addresses, and the trade-off it introduces. Use StatQuest — Bias and Variance to check details, but close the source before writing your explanation. Retrieval is the learning step; rereading is only preparation.

Next, compare Bias, Variance & Overfitting with Maximum Likelihood Estimation, Multivariable Optimization, Momentum Backtest Discipline. Ask what changes in correctness, latency, resource use, operability, and failure recovery. Complete Diagnose overfit with a train/holdout split and preserve the command, input, output, and one failed attempt as evidence. Finish by explaining the idea without jargon to someone who has not studied the track.

Proof of understanding

  • Explain the mechanism from first principles and identify the state it reads or changes.
  • Give one situation where the concept is the right choice and one where it is not.
  • Predict a realistic failure mode before running the drill, then compare the prediction with evidence.
  • Connect the result to a roadmap or build artifact instead of treating the concept as isolated trivia.

Where it matters

ML training, backtest overfitting, feature discipline.

Common mistakes

  • Tuning on the test set
  • Chasing training loss without validation
  • Equating complex with better

Learn from primary sources

Practice and explain it back

Diagnose overfit with a train/holdout split

Fit a degree-1 vs degree-5 polynomial to 30 noisy points (50/50 split). Report train vs holdout MSE for both. Which overfits and how do you know?

Expected evidence: Degree-5 lower train MSE, worse holdout MSE — classic overfit signature.

Open the interactive drill →

Review prompts

  • Explain the bias-variance tradeoff.

Build evidence

Analyze a fake trading signal

Given (or generate) a spurious 'alpha' signal on synthetic or historical noise, show why it fails: multiple testing, in-sample overfit, or non-stationarity.

  • Reproduce the 'great' in-sample metric
  • Show out-of-sample or holdout collapse
  • Name the statistical mistake (p-hacking, data snooping, regime shift, etc.)

Prerequisites

Related concepts

Learning paths