BeginnerAbout 20 min
Confusion Matrix & Metrics
Read the full article on Substack
6 min read.
Master model evaluation! Learn precision, recall, F1-score, and when accuracy lies. Essential for understanding classification performance.
Predicted positive
Predicted negative
Actual positive
85
True positive
42.5%
15
False negative
7.5%
Actual negative
10
False positive
5.0%
90
True negative
45.0%
Accuracy 87.5%, precision 89.5%, recall 85.0%, F1 87.2%
Both classes are common, so precision and recall land close together.
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
Label the confusion matrix
Schematic
Fill in the four cells for a positive class of "has the disease".
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
predicted +, actually +
predicted +, actually −
predicted −, actually +
predicted −, actually −
4 pieces left to place
Quiz
22 questionsQuestion 1 of 22
Score: 0
Which metric is best when False Negatives are very costly (e.g., detecting a disease)?
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.