Overfitting

Definition

Overfitting is when a model hugs existing data so tightly that it learns the noise along with the real pattern. It shines on historical data and fails on new data. The test is not how well it explains the past but how well it predicts data it has not seen.

Core rule: When evaluating any "pattern," "strategy," or "lesson," first ask how much data it was tuned on and with how many degrees of freedom, then ask how it performs on data that wasn't part of the tuning. When modeling, hold out a test set and do cross-validation; when deciding, favor rules with few parameters that can be explained by a mechanism, and be wary of solutions that look perfect in backtests and are full of fine detail.

Someone gets a sore throat during flu season, searches on Google, and goes to the doctor days later. Google wanted to use that gap to estimate the share of visits for flu-like symptoms ahead of the official reports.

The curves once lined up in the old data. Why did the system put a later flu season so far above the figures it was meant to track?

That's a way into overfitting, when a model takes something that lined up by chance as a pattern it can rely on. Follow Google Flu Trends to see why your last check needs observations you haven't used.

How it works

Start with the report the team was waiting for. America's public health agency needed time to collect figures from medical providers and put them out. While that report was still on its way, the searches were already coming in.

Google looked for terms whose popularity had risen and fallen along with the share of visits for flu-like illness. With lots of queries to try, some were going to line up by chance. Searches about high school basketball scored well, because they also followed the seasons.

  1. 01 · Data contains noise Historical data holds both recurring patterns and the accidents that happened to show up this time.
  2. 02 · The model gets tuned finer and finer Parameters and rules keep multiplying, fitting every historical point more tightly.
  3. +2 more mechanism steps & animation in the app

When it fails & limits

When a new estimate is off, look back through the work before you decide what to change. There are several ways things can go wrong.

✦ Unlock full lesson in ConceptFlow

Unlock the full Overfitting lesson in ConceptFlow

You’ve read the core idea and opening case. Get the ConceptFlow app to continue through the full breakdown, failure modes, 5-minute audio lesson, and decision practice.

  • ▸5-minute English & Mandarin audio lesson
  • ▸5 more deep-dive case & mechanism insights
  • ▸All 5 failure boundaries & counter-examples
  • ▸4-point decision checklist + 6-step practice

Tap a store button on mobile, or scan with your phone camera on desktop.