AI Accuracy Is Lying to You: Why 95% Accuracy Can Mean Zero Learning | Jainil

Jainil shows with simple arithmetic that accuracy rewards the majority answer. When the target class is rare, a model that never finds it can still score very high, so precision and recall on the rare class are the numbers to read.

2:15 video3 min readWatch on YouTube

A model comes back 95 percent accurate and everyone in the room relaxes. This video, presented by Jainil and narrated by Liam for Humanitarians AI, shows a case where 95 percent is not a good result at all. It is the tell that the model has learned nothing. The explanation needs only arithmetic that a viewer can check.

Why accuracy sounds right but is not

Accuracy is the share of predictions you got right, which sounds like exactly what you want to know. The problem is that when the thing you are looking for is rare, you can be right almost all the time by never finding it. The video builds a concrete case to show this.

A condition that affects one in a thousand

Imagine a condition that affects one person in a thousand. You have a test that never misses a real case but raises a false alarm 5 percent of the time. Line up a thousand people: one actually has the condition. Run the test on the 999 healthy people and about 5 percent, roughly 50 of them, still come back positive. That gives 51 positive results, and only one of those people is actually sick. A positive result is therefore right about 2 percent of the time, not 95.

The lazy model that wins the scoreboard

Now consider a model that simply answers no for every person. It is 99.9 percent accurate and it finds nobody. Accuracy rewards the majority answer, and when one class is rare the majority answer is always no, so the lazy model wins on the scoreboard. The video adds that this gets worse as the problem gets more important: the rarer the thing you are hunting, the more flattering accuracy looks and the less it tells you.

What to read instead

The video recommends two other numbers, always computed on the rare class and never as an average.

  • Precision asks, when the model says yes, how often is it right?
  • Recall asks, of the real cases out there, how many did it catch?

The lazy model has a recall of zero, and no amount of accuracy hides that. The video notes this is not a toy problem. Fraud in transactions, a defect on a production line and a disease in a screening population all share the same shape, because the rare class is exactly the thing the model was built to find.

Key takeaways

  • Accuracy is the share of predictions that were right, and it favors the majority answer.
  • With a rare target class, a model that never predicts it can still score extremely high.
  • In the one-in-a-thousand example, a 5 percent false alarm rate yields about 50 false positives against one true case.
  • That makes a positive result right only about 2 percent of the time.
  • Answering no to everyone gives 99.9 percent accuracy and zero recall.
  • The rarer the target, the more misleading accuracy becomes.
  • Read precision and recall on the rare class instead of average accuracy.

Try it yourself

Take any classifier you trust and find out what fraction of your data is the positive class. Then work out what accuracy a model would get by never predicting that class at all. If that number is close to the one on your dashboard, the video says your model has not learned what you think it learned.

Chapters

  1. 0:00Why 95% accuracy can mean a model learned nothing
  2. 0:15The rare class trap: 1 in 1,000 disease screening example
  3. 0:35Why a 99.9% accurate "lazy model" has zero recall
  4. 0:55Reading precision and recall for fraud, defects, and medical AI
Full transcript(auto-generated, with timestamps)

Why 95% accuracy can mean a model learned nothing

[0:00]Ola, this is Liam in for Bear. A model comes back 95% accurate and everyone in the room relaxes. I want to show you a case where 95% accurate is not a good result. It is the tell that the model has learned nothing at all. Here is the whole video in one

The rare class trap: 1 in 1,000 disease screening example

[0:15]Correction. Accuracy is the share of predictions you got right. That sounds like exactly what you want to know. It is not and the reason is simple. When the thing you are looking for is rare, you can be right almost always by never finding it. Take a concrete case, a condition that affects one person in a thousand. You have a test that never misses a real case and raises a false alarm 5% of the

Why a 99.9% accurate "lazy model" has zero recall

[0:36]Time. Those two numbers are all we need. Everything from here is arithmetic you can check yourself. So line up a thousand people. One of them actually has it. That is the single terracotta square. Now run the test on the 999 who are healthy. 5% of them come back positive anyway. That is roughly 50 false alarms. Look at the picture. 50 to

Reading precision and recall for fraud, defects, and medical AI

[0:57]1. 51 people just tested positive and one of them is actually sick. So a positive result is right about 2% of the time, not 95, two. And here is the part that should bother you. A model that simply answers no to every single person is 99.9% accurate and it finds nobody. That is the whole trap. Accuracy rewards the majority answer. When one class is rare, the majority answer is always no. So the lazy model wins on the scoreboard. And notice this gets worse, not better as the problem gets more important. The rarer the thing you are hunting, the more flattering accuracy looks and the less it is telling you. So read two other numbers instead and always about the rare class, never the average. Precision, when it says yes,

How often is it right? Recall of the real cases out there, how many did it catch? The lazy model has a recall of zero and no amount of accuracy hides that. This is not a toy problem, either. Fraud in transactions, a defect on a production line, a disease in a screening population. The rare class is exactly the thing you built the model to find. So here is your turn. Take any classifier you trust, find out what fraction of your data is the positive class, and work out what accuracy a model would get by never predicting it at all. If that number is close to the one on your dashboard, your model has not learned the thing you think it learned. Accuracy is lying to you. Lay 'em in for bare.

More from Humanitarians AI Fellows

Humanitarians AI Lyrical Literacy Project