Skip to main content

A brief wake-up call about false negatives

An Arabian proverb explains the confusion matrix, type I and type II errors, and why precision and recall have to be balanced for each business case.

A predictive model can be wrong in two ways: flagging something that isn’t there, or missing something that is. Fernando López Bello uses an Arabian proverb about knowledge to explain the confusion matrix, false positives and false negatives, and how to weigh precision against recall in cases such as fraud, credit default or a medical diagnosis.

What is a confusion matrix, and why does it matter whether a model makes a false positive or a false negative? This article explains it through an Arabian proverb and closes with what those errors mean in data science business cases such as fraud, credit default and medical diagnosis.

A note before you start: we recommend having this song on hand for this article: What I Am (Edie Brickell & The New Bohemians, 1988).

An Arabian proverb as a starting point

It is said that an Arabian proverb reads:

He who knows, and knows that he knows, is wise; follow him. He who knows not, and knows that he knows not, is a student; teach him. He who knows, and knows not that he knows, is asleep; wake him. He who knows not, and knows not that he knows not, is a fool; shun him.

Many of you may already know it. In this article I invite you to play with the idea of an internal predictor: an idea of who we are and how we see ourselves. The goal is to freely explore the meaning of what is predicted and the possible classification errors; we will not go into numerical detail.

What a predictor is and how to evaluate it

Before getting to the example, and at the risk of repeating what some readers already know, let’s review a few concepts.

A predictor is a model or algorithm that lets us predict, based on the information we have (input variables, or features), a result that depends on that information (the output variable, or label). The result can be a classification label or a numeric value. In the first case we usually talk about classifiers, and in the second, about regressors. Flipping a coin is a predictor as obvious as it is random: it will get a yes/no answer right 50% of the time.

To evaluate how good our predictor is, we need to compare its results against reality. In the simplest case, we want to predict whether a certain property holds (Positive) or not (Negative). In other words, our output variable is a binary label. We then talk about:

  • Positives: the objects the predictor says will have the property we want to predict.
  • Negatives: the objects that, according to the predictor, will not have it.

When we compare the predictor’s results against reality, we talk about:

  • True: the objects that actually have the property of interest.
  • False: the objects that do not.

We can now compare what was predicted (Positive, Negative) against reality (True, False). This is what we call a confusion matrix, a common topic in machine learning.

The proverb’s confusion matrix

Back to the Arabian proverb (and now is a good time to play the Edie Brickell song), imagine that each person wanted to predict his or her own wisdom, reduced to the binary problem of “knowing or not knowing.” The Positive label, or True class, will be “knows.” That gives us this confusion matrix:

Reality: knows (True) Reality: does not know (False)
Prediction: knows (Positive) True positive False positive
Prediction: does not know (Negative) False negative True negative

Following the proverb, we can assign an interpretation to each situation, which gives us the following table:

Reality: knows (True) Reality: does not know (False)
Prediction: knows (Positive) Knows, and knows that he knows: wise Knows not, and knows not that he knows not: a fool
Prediction: does not know (Negative) Knows, and knows not that he knows: asleep Knows not, and knows that he knows not: a student

In statistics, a false positive is also known as a false alarm, or a type I error. A false negative is a type II error.

Finally, still following the proverb, we can attach a decision to each interpretation:

Reality: knows (True) Reality: does not know (False)
Prediction: knows (Positive) Follow him Shun him
Prediction: does not know (Negative) Wake him Teach him

What each cell tells us

We can now make several statements, according to the inference rules the text suggests:

  • True positives are examples to follow. They are the best that can happen to us in terms of precision and recall.
  • False positives, besides lowering the predictor’s precision, should be avoided.
  • True negatives are not aware of their potential, but they are identified: they need help.

We could keep philosophizing. For that, I invite you to listen to Filosofía barata y zapatos de goma (“Cheap philosophy and rubber shoes”), by Charly García (1990).

Precision and recall in business cases

Fables aside, to know whether a predictor or classifier works well, the fundamental measures are precision and recall (which we can get a feel for by looking at the confusion matrix) or metrics built on them.

In practice, this maps to business cases expressed as rates or probabilities of events. Some examples, taken from cases we have worked on:

  • whether a given transaction is fraudulent;
  • whether a customer will soon default on a debt;
  • whether I will find an item interesting, given my purchase history;
  • whether a set of symptoms points to a disease diagnosis;
  • whether a customer will stop being a customer;
  • how confidently an object of a given class can be identified in an image.

How to weigh precision against recall depends on the business case, since improving one always affects the other. So does choosing the confidence threshold at which we accept a prediction.

Fernando López Bello
Computer Engineer and Big Data Specialist

¿Listo para dar
el próximo paso?

Inicia tu camino
Otras publicaciones

Before asking how to use AI in a utility, it is worth asking whether the data is ready to support better decisions.

Six connected stages take a public power finance function from assessment to adoption, so AI can support better, faster and more traceable decisions.

Affordability, capital investment and resilience are now moving together. Utilities need scenarios to make decisions before the future becomes clear.

Quanam, a digital transformation, data and AI consultancy headquartered in Montevideo, Uruguay, is Certified in the Claude Partner Network. Its team holds Claude certifications, part of a path guided by one conviction: AI delivers more when people work alongside it.

Leave a Reply