Overfitting playground
Memorizing answers vs learning the idea
Overfitting is what happens when a brain — or a model — aces the practice sheet by remembering quirks, then stumbles on a surprise quiz.
1Try it yourself
Simulation game
Overfit park
Crank complexity, add noise, shrink the train set — watch train rise while test falls.
Training park
Train accuracy 72%
New park (test)
Test accuracy 62%
Train vs test by complexity
Green = train · coral = test · mark = your setting
2Learn the idea
Read
The idea to keep
Overfitting means fitting the practice examples too tightly — including accidents — instead of learning a pattern that still works on unseen examples.
Three boxes help:
- Input — practice questions and their answers (the training set).
- Transformation — a flexible learner that can memorize details or learn a simpler rule.
- Evidence — a held-out quiz (validation) whose answers did not steer the studying.
A high practice score alone is not proof of learning. The warning sign is a gap: practice looks amazing while the surprise quiz drops.
Read
Park ride metaphor (OverfitPark)
Imagine a theme-park quiz booth. The booth “learns” from today’s riders: someone always wears a red hat, someone always picks path A. A flexible booth can memorize “red hat → path A” even if the hat is random. Tomorrow’s riders wear different hats. The booth fails. A simpler booth that learned “follow the arrow signs” does better on new riders.
Read
Concrete numbers
A spam filter (or sports-shot guesser) scores 99% on practice and 84% on a held-out quiz. Gap = 15 points. After simplifying, scores become 93% / 91%. Gap shrinks to 2 points. The second version is usually the better school project — less bragging on practice, more honesty on new examples.
Read
Boundary of the model
Overfitting does not mean “all high scores are fake.” It means you must ask: high on what set? It also does not erase judgment: even a well-generalizing toy can be wrong on one message or one shot. End with: “This does not guarantee perfect scores on every future quiz.”
Read
Why the three boxes beat vibes
When a classmate says “the model learned it,” translate the sentence into boxes. What entered? What computation changed? What measurement convinced you? If they only point at a training trophy, you are looking at memorization risk, not finished learning. Practice saying: “Show me the surprise-quiz number next to the practice number.” That one habit turns OverfitPark from a cute name into a usable mental model for homework bots, spam toys, and shot predictors alike.
Try one near-example (same topic, new wording) and one counterexample (looks similar but needs a different skill, like memorizing vs understanding). Label input, transformation, and evidence for each. If you cannot say what would falsify your picture of overfitting, it is still a story — keep refining until a bad surprise-quiz score would clearly count as evidence.
Go deeper
Before you start
Why this matters
Think of a friend who memorizes every odd multiple-choice letter from last week’s worksheet (“question 3 was B because the teacher used a blue pen”). On a new quiz with different wording, they freeze. Write one sentence: what would you call that habit in school words? Keep it; you will refine it into the overfitting mental model.
Related lessons
Check your understanding
Page assessment
Answer from memory. Completion is saved from this evidence, not from opening the next page.
All responses are required.