Junior Codes
Model Detectives

What Is Overfitting in AI? Explained for Kids

Memorising the examples, including their mistakes, is not learning.

Start Wonderwild free with Pip

Try 5 starter activities free. Full access is ₹499 a year.

This mission is part of full access. The first missions are free to try.

Overfitting, explained simply

Overfitting happens when a model fits its training examples too closely. It learns the real pattern and also every accident and mislabelled example, called noise.

An overfitted model scores brilliantly on the examples it trained on and poorly on new ones. That is why testing on held-out data matters so much.

Ways to reduce overfitting include using more examples, fixing wrong labels, and choosing a simpler model. In kNN, listening to more neighbours (a larger k) often helps, because one noisy neighbour no longer decides the answer alone.

Example: Learning a route to school

  • Good learning: "turn left at the park, right at the library".
  • Overfitting: "turn left where the red car was parked on Tuesday".
  • The second rule matched Tuesday perfectly and fails on every other day.

Try this

  • Memorise the answers to ten maths questions, then try ten new ones. How is that like overfitting?
  • Draw scattered points and compare a wiggly line through every point with a smooth line through the middle.
  • Find one wrong label in a set of examples and think about how it might confuse a model.

Practise it in Wonderwild

“The noisy-neighbour mystery”

Discovery 12 in Model Detectives, one of 24 AI discoveries in Wonderwild.

Your child trains, tests and questions a small model in the browser with Pip. No coding needed. For ages 7+.

Start Wonderwild free with Pip

Try 5 starter activities free. Full access is ₹499 a year.

This mission is part of full access. The first missions are free to try.

Questions parents and kids ask

What is the opposite of overfitting?+

Underfitting: a model too simple to catch the real pattern, so it does badly even on training examples. The goal is a balance between the two.

What is noisy data?+

Data containing mistakes or random oddities, such as a mislabelled photo or a faulty sensor reading. Real data almost always has some noise.

Prefer learning with a teacher?

Our live AI Explorers course teaches these ideas in small online classes led by a software engineer, with projects and feedback. Every live course also includes 12 months of full Wonderwild access for practice.

See the AI Explorers course