# Overfitting

> Source: https://modeladay.com/models/overfitting/
> Category: principle | Topics: science, cognition, decision | Difficulty: 3/5

## 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

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.

## Opening Context

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 (Preview)

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.

## When It Fails (Preview)

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.

## Full Lesson, Audio & Practice

Get the full Overfitting breakdown, 5-minute audio lesson, interactive mechanism animation, and decision checklist in the ConceptFlow app:
- iOS App Store: https://apps.apple.com/app/conceptflow-mental-models/id6756862333
- Google Play: https://play.google.com/store/apps/details?id=com.juxianyp.conceptflow
- Web page: https://modeladay.com/models/overfitting/

## Related Mental Models

- [falsifiability](https://modeladay.com/models/falsifiability/)
- [No Free Lunch Theorem](https://modeladay.com/models/no-free-lunch-theorem/)
- [Occam's Razor](https://modeladay.com/models/occams-razor/)
