Precision and Recall
These two formulas differ by a single letter, which is why they get mixed up. But they answer completely different questions, and picking the wrong one can make a dangerous model look good.
1Precision
Precision = Correct positive predictions / Total positive predictions = TP / (TP + FP)
In words: when the model says yes, how often is it right? A precision of 0.843 on a heart disease model means that when it says a patient has heart disease, it is correct about 84% of the time.
2Recall
Recall = Correct positive predictions / Total actual positive values = TP / (TP + FN)
In words: of all the real yeses, how many did it find? A recall of 0.86 means that out of all the patients who actually have heart disease, 86% were correctly identified.
3See them on the matrix
Pick Precision and then Recall below and watch which cells light up. They share TP; they differ in the second cell, and that is the whole distinction.
Pick a metric to light up the cells it is built from. Precision is the top row; recall is the left column.
| Actual / Reality | ||
|---|---|---|
| Yes | No | |
| Predicted Yes | TP 90 | FP 40 |
| Predicted No | FN 50 | TN 820 |
Loan default prediction. Positive class: Applicant defaults. 91% accuracy sounds excellent until you look further: of the applicants who really did default, the model caught under two thirds.Source: Class X handbook, Case Study 2
| Precision | Recall | |
|---|---|---|
| Formula | TP / (TP + FP) | TP / (TP + FN) |
| On the matrix | The Predicted Yes row | The Actual Yes column |
| It asks | When it says yes, is it right? | Of the real yeses, how many were found? |
| Cuts down | False Positives | False Negatives |
| Also called | — | Sensitivity, True Positive Rate |
4Which one should you use?
If a false positive is the costly one, you need to push the FPs down — use precision.
If a false negative is the costly one, you need to push the FNs down — use recall.
Recall — a Covid-19 classifier. An infected person is the positive class. If an infected person is told they are clear, they get no treatment and may infect many others. Reduce the false negatives.
Fishing with a net
Recall asks: of all the fish in the lake, how many did I get?
A tiny, careful net has high precision and low recall. Dragging the entire lake has perfect recall and dreadful precision.
Ask one question of every scenario: which mistake would you rather not make?
A classifier that decides whether someone has Covid-19.
False positive too costly → precision. False negative too costly → recall. If you genuinely cannot say which is worse, that is what the F1 score is for.
5From the board papers
(A) The ratio of correctly predicted positive observations to total observations. (B) The ratio of correctly predicted positive observations to total predicted positive observations. (C) The ratio of correctly predicted negative observations to total observations. (D) The harmonic mean of true positives and true negatives.CBSE board exam 2026
▶Show the answer
(B). Read the endings carefully: (A) says total observations, which would be accuracy’s denominator; (B) says total predicted positive, which is TP + FP. That one word is the whole question.
(A) Draw the confusion matrix. (B) How many cases are True Negative? (C) Calculate precision.CBSE board exam 2026
▶Show the answer
(A) Positive class = “is an attack”. TP = 1000, FP = 200, FN = 50, TN = 250 (and they add to 1500, which confirms you have read the paragraph correctly).
| Actual: Attack | Actual: Not | |
| Predicted: Attack | 1000 | 200 |
| Predicted: Not | 50 | 250 |
(B) True Negative = 250.
(C) Precision = TP / (TP + FP) = 1000 / (1000 + 200) = 1000/1200 = 0.8333, or 83.33%.
▶Show the answer
0.80, or 80%. TP = 240 and FP = 60, so precision = 240 / (240 + 60) = 240/300 = 0.8.
The 1000 and the 300 are there to be ignored — precision never touches the total, only the row the model predicted yes on.
▶Show the answer
Recall. “All the cases where the actual value is true” is TP + FN — the Actual Yes column. If it had said “all the cases the model predicted true”, it would have been precision.
6Check yourself
What is the formula for recall?
Recall is also known as:
For a Covid-19 classifier, which metric matters most?
A model has TP = 90, FP = 40, FN = 50. What is its precision?