The Confusion Matrix
A classification model can be right in two different ways and wrong in two different ways. The confusion matrix is the little table that keeps count of all four — and every metric left in this unit is calculated from it.
1What it is
Say you have built a classifier that predicts whether a person is infected with a disease. The output is 1 if infected and 0 if not. Every prediction it makes is one of four things, because the prediction can be 1 or 0 and the truth can also be 1 or 0.
2The four cells
The first word is whether it was right — True means correct, False means wrong.
So a False Negative is a case the model called negative and was wrong about. It really was positive.
| Cell | The model said | The truth was | Meaning |
|---|---|---|---|
| True Positive (TP) | Yes | Yes | Correctly predicted the positive class |
| True Negative (TN) | No | No | Correctly predicted the negative class |
| False Positive (FP) | Yes | No | Wrongly predicted the negative class as positive |
| False Negative (FN) | No | Yes | Wrongly predicted the positive class as negative |
TP: you said France would win, and France won.
TN: you said Germany would not win, and Germany lost.
FP: you said Germany would win, but Germany lost.
FN: you said France would not win, but France won.
3Building one by hand
The board hands you a paragraph of counts and asks you to draw the matrix. The way to get it right is to take one case at a time and ask the two questions: what did the model say, and was it right?
Ten patients. For each one you are told what was predicted and what was actually true — put it in the right box.
The first word says whether the model was right. The second says what the model predicted. A False Negative is a case the model called negative and got wrong.
The smoke alarm
4Every score from one table
Once the four numbers are in place, everything else in this unit is arithmetic. Change a cell below and watch all four metrics move.
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 40 | FP 20 |
| Predicted No | FN 10 | TN 30 |
Will the student pass?. Positive class: Student passes. 100 students. The board asked for the matrix, the accuracy and the number of wrong predictions.Source: CBSE sample paper 2025-26
5From the board papers
(A) True Positive (B) True Negative (C) False Positive (D) False NegativeCBSE board exam 2026
▶Show the answer
(C) False Positive. The model said yes (Positive) and it was wrong (False).
(A) False Positive (detecting danger when there isn’t any) (B) False Negative (failing to detect actual danger) (C) True Positive (D) True NegativeCBSE board exam 2026
▶Show the answer
(B) False Negative. A car that brakes for a danger that was not there is a nuisance; a car that fails to notice a real one causes a crash. Note that (C) and (D) are correct predictions, so they are not errors at all — two of the four options can be dismissed immediately.
(A) 300 (B) 600 (C) 800 (D) 900CBSE board exam 2026
▶Show the answer
(C) 800. The correct predictions are the two cells beginning with True: TP + TN = 200 + 600 = 800. The other two cells, 100 + 100 = 200, are the wrong ones — and 800 + 200 gives the 1000 samples back, which is a quick way to check yourself.
▶Show the answer
Label both axes, or the marks go elsewhere:
| Actual: Yes | Actual: No | |
| Predicted: Yes | 100 (TP) | 62 (FP) |
| Predicted: No | 290 (FN) | 47 (TN) |
6Check yourself
A model predicts 'no disease' for a patient who does have the disease. This is a:
Which two cells of the confusion matrix hold the correct predictions?
In a confusion matrix, what do the numbers in each cell represent?
A weather model says it will rain tomorrow, and it does. Taking 'rain' as the positive class, this is a: