AI Foundations for Students | 018. Checkpoint: Audit a Small Classifier
AI Foundations for Students · Lesson 18 of 36
Module 3: Machine Learning on Paper
In this lesson
Learning goal: Calculate a confusion matrix, interpret errors and document limitations.
Audit a fictional large-card detector
This checkpoint evaluates a classifier that flags fictional craft cards as large so they can be placed in a larger display pocket. A positive prediction means “flag as large,” and a negative prediction means “do not flag.” Positive does not mean good or desirable; it names the category we are tracking. Define that meaning before counting errors, because reversing the positive category changes some metrics.
The audit is entirely on paper. We have supplied reference labels and predictions, so you are evaluating outputs rather than training or running a real model. The goal is to calculate a confusion matrix, interpret error types and decide what evidence is missing. No result should be presented as proof about an actual service or school deployment.
The complete eight-card record
Card A is reference large, predicted large. B is reference large, predicted large. C is reference large, predicted small. D is reference large, predicted small. E is reference small, predicted large. F is reference small, predicted small. G is reference small, predicted small. H is reference small, predicted small. The eight rows are distinct fictional cards.
Keep the reference and prediction columns separate. The reference is the answer used for evaluation under the activity’s stated labeling process. The prediction is what the classifier produced in the scenario. If they differ, record an error; do not overwrite one with the other. In real work, reference labels can also be imperfect, so a disagreement may call for checking the label process as well as the model.
Build the four-cell confusion matrix
A true positive is a large card correctly flagged large: A and B, so TP = 2. A false negative is a large card missed as small: C and D, so FN = 2. A false positive is a small card incorrectly flagged large: E, so FP = 1. A true negative is a small card correctly left unflagged: F, G and H, so TN = 3.
The four counts total 2 + 2 + 1 + 3 = 8, matching the number of cards. A confusion matrix arranges these counts by reference category and predicted category. Always label the rows and columns because different publications choose different orientations. The counts and labels matter more than memorizing a particular drawing direction.
Three metrics, three questions
Accuracy asks what fraction of all predictions are correct. Here (TP + TN)/8 = (2 + 3)/8 = 5/8 = 62.5%. Precision asks, among cards flagged large, what fraction are truly large. Here TP/(TP + FP) = 2/(2 + 1) = 2/3, about 66.7%. Recall asks, among reference-large cards, what fraction were found. Here TP/(TP + FN) = 2/(2 + 2) = 1/2 = 50%.
The denominators answer different questions: all cards, predicted-large cards and reference-large cards. Precision and recall are not alternative spellings of accuracy. If a denominator is zero, do not perform ordinary division by zero. State that the metric is undefined under the chosen convention and report the relevant counts; software may use a special convention, which must be documented.
Interpret errors before choosing changes
In this fictional display task, a false positive uses a larger pocket unnecessarily. A false negative places a large card in a pocket that may not fit. Suppose the organizer says missed large cards matter more, while extra large pockets are available. That suggests paying particular attention to recall, but it does not justify ignoring precision or making an untested change.
A possible next step is to review the missed cards and compare a revised threshold on development data, followed by fresh testing. Record the intended use, reference-label method, sample size, metrics, error consequences and limits. The current eight-card sample is too small to establish dependable performance across all possible cards. An audit is valuable when it turns a vague “works well” claim into specific evidence and a responsible next decision.
Worked practice
Worked exercise 1: Count each error type
Task: Using the eight-card record, list the false negatives and false positive. Explain why the names differ.
Worked solution: C and D are false negatives because their reference category is large but the classifier did not flag them. E is a false positive because it was flagged large while its reference is small. The words positive and negative refer to the prediction; true and false describe whether that prediction agrees with the reference.
Worked exercise 2: Calculate with the right denominator
Task: Calculate large-card recall and precision from TP2, FN2 and FP1. State each denominator in words.
Worked solution: Recall is 2/(2 + 2) = 2/4 = 50%; the denominator is all four reference-large cards. Precision is 2/(2 + 1) = 2/3 ≈ 66.7%; the denominator is all three cards predicted large. Reversing these denominators would answer a different question and produce a mislabeled metric.
Worked exercise 3: Compare a cautious baseline
Task: A baseline flags every card large. Calculate its recall, precision and accuracy on this balanced eight-card pack.
Worked solution: All four large cards are found, so recall is 4/4 = 100%. All eight are flagged but only four are large, so precision is 4/8 = 50%. Four of eight predictions are correct, so accuracy is also 50%. High recall alone therefore does not show that the baseline is best; it creates four false positives.
Check your understanding
MCQ 1: Which cards are false negatives?
- A and B
- C and D
- E only
- F, G and H
Check the answer and explanation
Answer: B. They are reference-large cards predicted small, so the positive category was missed.
MCQ 2: What is the accuracy?
- 2/3
- 1/2
- 5/8
- 3/8
Check the answer and explanation
Answer: C. Five correct predictions out of eight gives 5/8, or 62.5%.
MCQ 3: What is the precision denominator?
- All cards predicted large
- All reference-large cards
- All correct predictions
- All reference-small cards
Check the answer and explanation
Answer: A. Precision evaluates the reliability of the positive predictions.
MCQ 4: What is the recall denominator?
- All eight cards
- The three predicted-large cards
- Only the two true positives
- The four reference-large cards
Check the answer and explanation
Answer: D. Recall measures how much of the positive reference category was found.
MCQ 5: Why is always-flag-large not automatically best?
- It avoids false positives by finding every large card
- It has high precision because every card receives a positive label
- It trades perfect recall here for four false positives
- Its 100% recall implies 100% overall accuracy
Check the answer and explanation
Answer: C. The baseline finds all large cards but wrongly flags every small one.
Sources and further reading
- Google: Accuracy, recall, precision and related metrics: Classification metrics and their denominators. Verified 11 October 2026.