Skip to content
AI-grafen
AExplorerClassical machine learning· about 15 min· fundamentals that rarely change· verified 2026-09-20· EN

Accuracy: how good is the model?

Calculate how many predictions were correct and explain why some were wrong.

Prerequisites

Everyday explanation

Once a model is trained, it makes predictions on new data. Sometimes it is right, sometimes it is wrong. We count: 8 correct out of 10 is quite good. 5 correct out of 10 is no better than flipping a coin.

Why does it get it wrong? Often because the new data was unlike the training examples: an unusual pattern, missing data, or a case that sits close to the boundary between two categories.

Counting correct and incorrect predictions is the most important way to know if a model is reliable.

Interactive

Count yourself:

CaseModel saidCorrect answer
1PaidPaid✔
2PaidUnpaid✘
3UnpaidUnpaid✔
4UnpaidPaid✘
5PaidPaid✔

3 correct out of 5. Look at cases 2 and 4 — what might have tricked the model? Perhaps an unusual payment pattern or missing information. Incorrect predictions show where the model needs more examples.

Mastery means

  • Calculates the number of correct and incorrect predictions in a list
  • Provides a reasonable explanation for why a prediction was wrong

Sign in to do the exercises and build your mastery up.

Sources

All the sources and licences