Recall

From AI Wiki
See also: Machine learning terms

Introduction

Recall is a performance metric commonly used in machine learning and information retrieval to evaluate the effectiveness of classification and retrieval models. It is particularly useful when the cost of false negatives (failing to identify positive instances) is high. This article provides an in-depth understanding of the concept of recall, its mathematical formulation, and its relation to other performance metrics, such as precision and F1-score.

Definition

Recall, also known as sensitivity or true positive rate (TPR), is the proportion of true positive instances (correctly identified positive instances) among all the actual positive instances in the dataset. Mathematically, recall is defined as:

where:

  • represents recall
  • denotes the number of true positives
  • denotes the number of false negatives

Recall is generally expressed as a value between 0 and 1, where a value of 1 indicates perfect recall, and a value of 0 indicates that no positive instances were identified.

Relation to Precision and F1-score

Recall is often used alongside precision, another performance metric in machine learning. Precision measures the proportion of true positive instances among all the instances that were predicted as positive by the model. While recall emphasizes the ability of a model to correctly identify positive instances, precision focuses on the model's accuracy in predicting positive instances.

When evaluating the performance of a classification model, it is often necessary to consider both recall and precision to get a more comprehensive understanding of the model's performance. One way to do this is by calculating the F1-score, which is the harmonic mean of recall and precision. The F1-score is defined as:

where:

  • represents the F1-score
  • denotes precision
  • denotes recall

The F1-score ranges from 0 to 1, with a value of 1 indicating a perfect balance between recall and precision.

Applications

Recall is especially important in situations where false negatives carry a high cost, such as in medical diagnosis, fraud detection, or spam filtering. In these cases, a higher recall is desirable, as it ensures that the model correctly identifies as many positive instances as possible, even at the expense of a higher false positive rate.

Explain Like I'm 5 (ELI5)

Imagine you have a bag of apples, and some of them are green (good) and some of them are red (bad). You want to find all the green apples, but you can't see the color of the apples inside the bag. You have a machine that can pick apples and tell you if they're green or not.

Recall is like a measure of how good the machine is at finding all the green apples in the bag. If the machine finds all the green apples and doesn't miss any, then the recall is perfect (1 or 100%). If the machine misses some green apples, the recall is lower. A high recall means that the machine is really good at finding green apples, even if it sometimes picks red apples by mistake.