Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
AI & Machine Learning

Reading a Confusion Matrix Without a Data Science Degree

Last updated:

The most useful slide in the deck

When a data team presents a model, there is usually a slide with a two-by-two grid of numbers on it. People skim past it to the accuracy figure, which is a pity, because the grid tells you far more. It is called a confusion matrix, a name that does it no favours, and it takes about two minutes to learn to read.

Once you can read it you can ask the questions that actually decide whether a model helps, and you will be much harder to impress with a single percentage.

The four boxes

Take a model that predicts whether a customer at a van hire firm will return the vehicle late. It was tested on 1,000 past rentals where the outcome is known. Here is an illustrative result:

Model predicted lateModel predicted on time
Actually late90 (caught)30 (missed)
Actually on time60 (false alarm)820 (correctly left alone)

Rows are what really happened. Columns are what the model said. Reading the boxes:

  • Caught, 90: the model said late and they were late. In the jargon, true positives.
  • Missed, 30: the model said on time but they were late. False negatives.
  • False alarm, 60: the model said late but they were on time. False positives.
  • Correctly left alone, 820: the model said on time and they were. True negatives.

The diagonal from top left to bottom right is where the model was right. Everything else is a mistake, split by type.

Every familiar metric comes from these four numbers

All the percentages you get quoted are just different ways of dividing up the same grid. Using the example:

MetricQuestion it answersCalculationResult
AccuracyHow often was the model right overall(90 + 820) / 1,00091%
RecallOf the late returns, how many did it catch90 / (90 + 30)75%
PrecisionOf those it flagged, how many were really late90 / (90 + 60)60%
False alarm rateOf the on-time customers, how many were wrongly flagged60 / (60 + 820)7%

Notice that 91% accuracy sounds excellent while 60% precision sounds mediocre, and they describe the same model. Neither is the truth on its own. The grid is. We cover the balance between the middle two in precision vs recall.

Turn the boxes into money

This is where a confusion matrix becomes a business case. Put a value on each box. For the van hire firm, as rough illustrations:

  • A caught late return lets staff call ahead and rebook the next customer, saving perhaps 80 pounds in disruption
  • A missed late return costs the full disruption, say 120 pounds, as today
  • A false alarm costs a courtesy call and a slightly irritated customer, say 5 pounds
  • A correct 'on time' costs nothing and saves nothing

Across 1,000 rentals: 90 caught at 80 pounds saved is 7,200. Sixty false alarms at 5 pounds is 300. The model's net value is around 6,900 pounds per thousand rentals, before running costs. If the firm does 20,000 rentals a year, that is a number worth discussing. If it does 2,000, perhaps not.

Accuracy is a statistic. A confusion matrix with costs attached is a business case.

Questions to ask when you are shown one

  1. Which period is the test data from, and did the model ever see it during training
  2. How does the grid compare with a simple rule, such as flagging anyone who was late before
  3. What threshold produced this grid, and what does it look like at a stricter or looser one
  4. Is the mix of outcomes in the test data similar to real life
  5. How does the grid look for different customer groups, regions or products

The fifth question is the one most often skipped. A model can perform well overall and badly for a particular segment, such as new customers or one region. If the model makes decisions about people, checking this by group is also part of treating them fairly, and in some settings part of your legal obligations.

When there are more than two outcomes

A model sorting emails into six departments has a six-by-six grid. It looks intimidating and reads the same way: rows are the true department, columns are the model's choice, the diagonal is correct. The interesting part is where the off-diagonal numbers cluster.

If most mistakes are billing emails sent to accounts, and vice versa, that tells you those two categories overlap in practice. Sometimes the fix is a better model. Quite often it is merging the categories or clarifying the definitions staff use, which is a process change, not a technical one.

Making it part of routine monitoring

A confusion matrix is not only a sign-off document. Recomputing it every month on recent predictions, once outcomes are known, is one of the simplest ways to spot a model going stale. If the missed box starts growing, something has changed.

In the dashboards SpiderHunts builds for machine learning systems, the confusion matrix sits next to its money translation, updated as outcomes arrive. Managers look at the money. The data team looks at the grid. Both are looking at the same truth. If you need a refresher on the bigger picture first, our business guide to machine learning is a good start.

Frequently asked questions

Why is it called a confusion matrix?

Because it shows where the model confuses one outcome for another. The name is historical and unhelpful, but the table itself is simple: predictions against reality.

What is a false positive versus a false negative?

A false positive is a false alarm: the model said yes and the answer was no. A false negative is a miss: the model said no and the answer was yes. Which one is worse depends entirely on your business.

Can a confusion matrix be used for regression models?

Not directly, since regression predicts numbers rather than categories. You can group predictions into bands, such as late or on time, to build one, but error measures like average error are more natural for numbers.

How often should a confusion matrix be recalculated?

Whenever enough new outcomes are known to make it meaningful, often monthly for a live business system. A steady change in the balance of boxes is an early warning that the model needs retraining.

Keep reading

Been handed a confusion matrix and asked to sign off?

Send it over with a note on what the model decides. We will translate the four numbers into business terms and tell you what questions to ask before approving.

Book a free 30-minute call Get a project estimate WhatsApp us

Related services

What we build for problems like this one

AI AgentsMachine LearningAI Integration