← Back to the homepage

Backprop Bulletin explainer

What is overfitting?

RedditLinkedInBlueskyXFacebookEmailText message
Copy link

Overfitting happens when a model learns quirks of its training examples that make its predictions worse on fresh examples. A perfect score on yesterday’s tickets can be a poor reason to trust tomorrow’s estimate.

By Backprop Bulletin.Comment on this guide

Does the repair desk predict the wait?

Imagine two desks taking tickets from the same queue. In this invented example, the wait depends on the job, and the desk assignment is random. The first ticket at desk A took 4 minutes. The first at desk B took 8.

Fit two rules to those tickets. One predicts the overall average, 6 minutes, for everyone. The other predicts each desk’s own average, 4 at A and 8 at B. Freeze both rules. Now uncover the next ticket at each desk, held out from training: A took 7 minutes and B took 5.

Average absolute miss, in minutes
Prediction ruleTrainingHeld out
One average21
One per desk03

On the held-out tickets, the 6-minute estimate misses 7 and 5 by one minute each. The desk-specific rule misses 7 by three minutes at A and 5 by three at B. Splitting by desk erased every training error because each desk had just one training ticket to remember.

In a real queue, one pair of fresh tickets would be too little evidence to discard desk assignment as a predictor. The useful check is whether the extra detail keeps earning its place on fresh, representative tickets.

For the arithmetic behind the table, see how absolute error scores a prediction. Google’s Machine Learning Crash Course shows the same warning sign in training and validation curves.