What a confusion matrix actually tells you
Four numbers decide whether a prediction model is useful, and the two kinds of wrong rarely cost the same.
Say you build something that flags which customers are about to cancel. It looks at an account and says yes or no. How do you know if it is any good?
The instinct is to ask how often it is right. That number is almost always misleading, and here is why.
The four boxes
Every yes or no prediction lands in one of four places.
It said yes and was right. A customer was flagged and did cancel.
It said no and was right. A customer was not flagged and stayed.
It said yes and was wrong. A customer was flagged but had no intention of leaving.
It said no and was wrong. A customer left with no warning.
Arrange those four counts in a square and you have a confusion matrix. That is the whole thing. No mathematics, just four tallies.
Why accuracy lies
Suppose two percent of your customers cancel in a given month. A model that says no to everyone is right ninety eight percent of the time.
That sounds excellent and is completely worthless. It never flags anyone, so nobody ever gets a call, and nothing changes. Accuracy rewarded it for doing nothing, because the thing you care about is rare.
This is not an edge case. Fraud, equipment failure, customers about to leave, and most other things worth predicting are rare by nature. Any time the event you are looking for is uncommon, accuracy will flatter a useless model.
The question to ask instead
Look at the two ways of being wrong separately, because they almost never cost the same.
A false alarm means someone gets a retention call they did not need. Cost: a few minutes of staff time, maybe a small discount offered unnecessarily.
A miss means a customer leaves and nobody tried to stop them. Cost: their entire future value to the business.
Those are not remotely equivalent, which means you should not be optimizing for a single number that treats them as if they were. A model that raises ten false alarms to catch one real departure might be excellent, if that departure is worth more than ten wasted phone calls.
That is a business judgement, not a technical one. Nobody can make it for you, and any model you build should be tuned around the answer.
Where the dial sits
Most models do not actually output yes or no. They output a score, and something turns that score into a decision at a chosen cut off.
Move the cut off down and you catch more real cases and raise more false alarms. Move it up and you get fewer false alarms and miss more real cases. There is no setting that improves both at once. There is only the trade, and where you want to sit on it.
Deciding that requires knowing the relative cost of each mistake. Which is why the conversation about what the model does should come before anyone builds it.
What to take away
When somebody tells you a model is ninety something percent accurate, that number on its own means nothing. The questions that matter are how often the thing you are looking for actually happens, how many real cases the model catches, how many false alarms that costs, and whether that trade is worth making for your business.
Four boxes answer all of it. It is one of the most useful things you can know about this field, and it takes ten minutes to learn.