How Can We Judge a Classifier When Different Mistakes Matter in Different Ways? Count the kinds of mistakes, use the correct denominator for each metric, and evaluate a declared decision rule on suitable data. Precision asks how many flagged items really belong to the target class. Recall asks how many target items were found. A single accuracy percentage cannot answer both questions.
This international statistics lab uses fully specified fictional display-card records to compare thresholds and reconstruct every result. It extends Classification and Taxonomy, Base Rate, Calibration and Abstention, and Evaluation Leakage through exact confusion-matrix calculations. The coursework, VCE and EnDist applications are proposed frameworks, not validated interventions. No actual classifier was trained for these invented examples; future superintelligence remains hypothetical.
- Define the target class, reference labels and the rule for threshold ties.
- Reconstruct true positives, false positives, false negatives and true negatives.
- Calculate precision, recall, specificity, false positive rate and accuracy.
- Identify class imbalance and undefined denominators without hiding them.
- Choose among stated thresholds using explicitly fictional mistake weights.
- Freeze the decision rule before inspecting a fresh evaluation packet.
Choose your reading route
Coursework series: Classification and Taxonomy Studio · Base Rate Lab · Calibration and Abstention Lab · Evaluation Leakage Lab · Vocabulary Coding and Engineering
Continue this coursework series: Bootstrap and Prerequisite Reachability Lab · Stale Copies and Update Propagation Lab · Precision, Recall and Threshold Lab (this article) · Deixis and Context Studio
Full chapter index
Chapters 1–5
Chapters 6–10
Chapters 11–15
Chapters 16–20
Chapters 21–25
CHAPTER 1 OF 26 · Understand the capability
1. The capability: say which mistakes a score conceals
A classifier can flag too many ordinary items, overlook target items, or do both. Whether its output is useful depends on the task and the consequences of those mistakes. The learner’s first responsibility is to describe the actual counts before calling the system accurate, reliable or suitable for another setting.
The finished coursework should preserve the reference labels, scores, threshold, comparison rule and resulting counts. A recipient should be able to reconstruct one classification and one metric without guessing what positive means. AI may help arrange the calculation, but learners must explain why each denominator answers its particular question and why the conclusion is limited to the evidence supplied.
CHAPTER 2 OF 26 · Understand the capability
2. Define the positive class and four outcomes
In this lab, a positive card contains a coordinate grid; a negative card does not. A predicted positive is flagged for a separate grid-formatting review. A true positive, TP, is a flagged grid card. A false positive, FP, is a flagged card without a grid. A false negative, FN, is an unflagged grid card; a true negative, TN, is an unflagged card without one.
These categories compare a prediction with a reference label. Google’s classification-metrics guide defines the corresponding accuracy, recall, precision and false positive rate. Here the reference labels are stipulated teaching answers, not findings from an image audit. In actual work, their quality and the definition of a grid would also need checking.
CHAPTER 3 OF 26 · Understand the capability
3. Vocabulary Coding and Engineering for denominators
Use Vocabulary Coding and Engineering, or VCE, as a proposed discipline for keeping the question attached to the fraction. Positive names the target class; it does not mean desirable or correct. Precision in classification is not measurement resolution. A score is not automatically a probability, and an empirical percentage is not a guarantee about future items.
Before entering numbers, complete a sentence: among which items are we counting success? Precision uses all predicted positives. Recall uses all reference positives. False positive rate uses all reference negatives. Accuracy uses the whole evaluated set. Writing the denominator in words helps a receiver detect a swapped formula even when the arithmetic itself is flawless.
CHAPTER 4 OF 26 · Work through the example
4. The original fictional validation record
The Cedar Exhibition Archive supplies 24 distinct display-card records. P means a coordinate grid is present and N means none is present. There are eight P cards and sixteen N cards. The supplied scores are exact decimal values between zero and one, with larger values used to favour a positive prediction. No probabilistic interpretation is stipulated.
Call this packet V, the validation packet for the exercise. Imagine that the scoring rule was already fixed using separate training information; the displayed scores are invented, not outputs measured from a real model. The predeclared operating choices are thresholds 0.40, 0.60 and 0.80. Additional thresholds later illustrate mathematical behaviour without expanding that three-choice selection protocol.
| Card | Reference label | Score |
|---|---|---|
| C01 | P | 0.95 |
| C02 | N | 0.90 |
| C03 | P | 0.85 |
| C04 | P | 0.80 |
| C05 | N | 0.80 |
| C06 | P | 0.75 |
| C07 | N | 0.70 |
| C08 | P | 0.65 |
| C09 | N | 0.60 |
| C10 | P | 0.60 |
| C11 | N | 0.55 |
| C12 | P | 0.50 |
| C13 | N | 0.45 |
| C14 | N | 0.40 |
| C15 | P | 0.35 |
| C16 | N | 0.30 |
| C17 | N | 0.25 |
| C18 | N | 0.20 |
| C19 | N | 0.15 |
| C20 | N | 0.10 |
| C21 | N | 0.08 |
| C22 | N | 0.06 |
| C23 | N | 0.04 |
| C24 | N | 0.02 |
CHAPTER 5 OF 26 · Work through the example
5. State the threshold rule and handle ties
Predict positive when the score is greater than or equal to threshold t; otherwise predict negative. Equality therefore counts as positive throughout this article. At t = 0.60, C09 and C10 are both flagged, even though one is N and the other P. At t = 0.80, both C04 and C05 are flagged.
A different greater-than rule would produce different counts at these ties. Do not select one tied card because its reference label is convenient: that would use the answer to decide the prediction. Sorting the table helps identify the flagged prefix, but it does not authorise breaking a score tie by the known class. Record the comparison symbol alongside the threshold.
CHAPTER 6 OF 26 · Work through the example
6. Build the confusion counts from the individual cards
At t = 0.60, C01 through C10 are flagged. Six are P: C01, C03, C04, C06, C08 and C10. Four are N: C02, C05, C07 and C09. The unflagged P cards are C12 and C15. Therefore TP = 6, FP = 4, FN = 2 and TN = 12.
Check three totals before calculating any percentage: TP + FN = 8 reference positives; FP + TN = 16 reference negatives; and all four counts sum to 24. These totals remain fixed when only the threshold changes. The table gives the counts for the three operating choices, but learners should reconstruct each row from packet V rather than treating it as an unexplained answer.
| Threshold | TP | FP | FN | TN |
|---|---|---|---|---|
| 0.40 | 7 | 7 | 1 | 9 |
| 0.60 | 6 | 4 | 2 | 12 |
| 0.80 | 3 | 2 | 5 | 14 |
CHAPTER 7 OF 26 · Work through the example
7. Calculate precision and recall with different populations
At threshold 0.60, ten cards are flagged and six really contain grids. Precision is TP/(TP + FP) = 6/10 = 3/5 = 60%. There are eight grid cards altogether, and six are found. Recall is TP/(TP + FN) = 6/8 = 3/4 = 75%. These two percentages describe different sets of cards.
An explanation that says the classifier is 75% precise has swapped the terms. Ask the learner to point to the ten flagged cards for the precision denominator and the eight P cards for recall. The scikit-learn metric documentation gives both definitions; our card counts make their distinction independently inspectable.
CHAPTER 8 OF 26 · Work through the example
8. Separate false positive rate from the fraction of false alarms
The false positive rate is FP/(FP + TN), so at 0.60 it equals 4/16 = 25%. It asks what fraction of reference-negative cards were incorrectly flagged. Specificity is TN/(FP + TN) = 12/16 = 75%. When reference negatives exist, these two fractions sum to one because they partition that same negative class.
Among the flagged cards, however, the false fraction is FP/(TP + FP) = 4/10 = 40%, which equals one minus precision. It is not the false positive rate. The numerator happens to be four in both fractions, but the denominator changes the question. Write the population name beside any chart or report so a receiver does not interpret 25% as a claim that only a quarter of flags are false.
CHAPTER 9 OF 26 · Work through the example
9. Read accuracy alongside class balance
Accuracy counts every correct classification: (TP + TN)/24. At 0.60 it is (6 + 12)/24 = 75%. An always-negative rule would correctly classify sixteen cards and miss all eight grid cards, giving accuracy 16/24 = 2/3 and recall zero. At threshold 0.40 the accuracy is also 2/3, but recall is 7/8. Equal accuracy can conceal very different work.
Consider a separate invented collection with four grid cards and ninety-six non-grid cards. Predicting negative for every card gives 96% accuracy while finding no grid cards. That statement is arithmetic about the stipulated collection, not a performance result. Report class counts and the purpose of flagging alongside accuracy; a large percentage alone does not establish that the desired items were found.
CHAPTER 10 OF 26 · Identify failure modes
10. Compare the three operating choices
Lowering the threshold from 0.80 to 0.40 increases the flagged workload from five cards to fourteen. It finds four additional grid cards and also adds five additional false positives. The intermediate threshold flags ten cards. These changes describe a concrete workload and missed-item tradeoff; the preferable operating point depends on an explicitly stated objective.
Keep exact fractions where they make the comparison clear. A percentage rounded to a whole number can hide small differences or imply more stability than a small packet supports. The three rows below summarise the same fixed scores, not three separately trained models. Changing a threshold changes decisions while leaving every underlying score and reference label in packet V unchanged.
| Threshold | Precision | Recall | False positive rate | Accuracy |
|---|---|---|---|---|
| 0.40 | 1/2 | 7/8 | 7/16 | 2/3 |
| 0.60 | 3/5 | 3/4 | 1/4 | 3/4 |
| 0.80 | 3/5 | 3/8 | 1/8 | 17/24 |
CHAPTER 11 OF 26 · Identify failure modes
11. Do not assume precision rises whenever the threshold rises
For fixed scores and the same tie rule, raising the threshold cannot add flagged items. True positives and false positives therefore cannot increase; recall cannot increase when its reference-positive denominator is nonzero. Precision is a ratio of two changing counts, so it need not rise. This distinction matters when someone replaces calculation with a slogan about stricter thresholds.
Packet V supplies a counterexample. At threshold 0.85, C01, C02 and C03 are flagged, giving precision 2/3. Raise the threshold to 0.90 and only C01 and C02 remain, giving precision 1/2. Removing a true positive made precision worse. These two thresholds illustrate the point; the selection exercise still compares its predeclared 0.40, 0.60 and 0.80 choices.
CHAPTER 12 OF 26 · Identify failure modes
12. Choose using declared fictional mistake weights
For the teaching decision, stipulate a loss of two planning points per missed grid card and one per false flag, with zero points for correct decisions. Thus L = 2FN + FP. The three validation losses are 9 at 0.40, 8 at 0.60 and 12 at 0.80. Threshold 0.60 has the smallest loss among these three candidates.
These points are invented priorities, not measured costs or universal values. Under a separate priority L = 4FN + FP, the losses become 11, 12 and 22, so 0.40 is preferred among the same candidates. The data did not change; the objective did. Neither calculation proves that its chosen threshold is optimal among every possible score cutoff or appropriate for a different organisation.
CHAPTER 13 OF 26 · Identify failure modes
13. Report undefined metrics honestly
At threshold 1.00, no card is flagged because the highest score is 0.95. TP and FP are both zero, so precision is 0/0 and is undefined. Recall is nevertheless defined: zero of eight grid cards are found. Do not label undefined precision as 100% simply because no false positives occurred; there were no positive predictions to assess.
If a separate evaluation packet has no reference positives, recall is undefined. If it has no reference negatives, specificity and false positive rate are undefined. Software may supply a configurable replacement value or warning; the scikit-learn documentation makes its zero-division policy explicit. Distinguish a reporting convention from the mathematical ratio and preserve the counts that explain the missing denominator.
CHAPTER 14 OF 26 · Identify failure modes
14. Use F1 as a specified summary, not a universal objective
One summary combines precision and recall: F1 = 2TP/(2TP + FP + FN), when that denominator is nonzero. At 0.60 this gives 12/(12 + 4 + 2) = 2/3. At 0.40 it is 14/22 = 7/11, and at 0.80 it is 6/13. Among these three rows, 0.60 also has the largest F1.
F1 does not include true negatives, and it is not the same objective as our weighted mistake loss. Agreement in this example does not make the objectives interchangeable. The count formula gives F1 = 0 for the always-negative rule on packet V, even though precision is undefined. When TP, FP and FN are all zero, the F1 denominator is also zero and needs explicit treatment.
CHAPTER 15 OF 26 · Identify failure modes
15. Keep a ranking score separate from a calibrated probability
The fact that a score lies between zero and one does not make 0.80 an 80% chance that a particular card contains a grid. Our record defines only a score used for thresholding. Scikit-learn’s probability-calibration guide describes calibration through agreement between predicted probabilities and observed frequencies among comparable predictions.
Two cards in packet V share score 0.80 and have different labels. That small pair neither establishes calibration nor proves a general calibration failure. Appropriate assessment needs a defined probability interpretation, suitable data and attention to sampling uncertainty. Precision at threshold 0.80 is another quantity again: it pools all cards scoring at least 0.80, rather than only cards assigned that particular score.
CHAPTER 16 OF 26 · Identify failure modes
16. Freeze the decision rule before opening the test packet
The exercise uses separate roles: training fixes the scoring rule, packet V selects among three declared thresholds, and a fresh packet evaluates the selected rule. The primary decision freezes threshold 0.60, the score ≥ threshold comparison and loss L = 2FN + FP. Changing any of these after inspecting the fresh packet changes the evaluation protocol.
The scikit-learn threshold-tuning guide distinguishes model fitting from threshold selection and warns against reusing training data for tuning. Our held-out teaching packet is introduced in chapter 20. A facilitator can withhold it until the choice is recorded. Once its answers guide a revision, it supplies development feedback and cannot simultaneously serve as untouched evidence for that revised choice.
CHAPTER 17 OF 26 · Identify failure modes
17. Carry the population and support counts with the result
Even identical recall and false positive rate need not produce identical precision in collections with different class proportions. Packet V at 0.60 has recall 3/4 and false positive rate 1/4, with precision 6/10. A separate stipulated collection of four positives and sixteen negatives, with TP = 3 and FP = 4, has the same two rates but precision 3/7.
That comparison is an arithmetic illustration, not a guarantee that either rate transfers to a new population. An actual evaluation also depends on item selection, reliable reference labels and separation of related or duplicate items. Give the recipient the counts and collection conditions, then ask what further evidence would be needed for a broader claim. A complete-looking table alone does not establish representativeness.
CHAPTER 18 OF 26 · Identify failure modes
18. A prompt for inspectable classifier evaluation
Try: “Use only packet V and predict positive when score ≥ threshold. At thresholds 0.40, 0.60 and 0.80, list the flagged card IDs, reconstruct TP, FP, FN and TN, and check that the four counts sum to 24. Calculate precision, recall, false positive rate, specificity and accuracy with the denominators shown. Do not treat a score as a calibrated probability.”
Then ask: “Compare the three candidates under L = 2FN + FP. State the limited scope of the winner. Explain precision at threshold 1.00, and use 0.85 and 0.90 to test whether raising a threshold must improve precision. Keep any hypothetical claims about other data separate from calculations on V.” Verify one entire row without relying on the generated answer.
CHAPTER 19 OF 26 · Identify failure modes
19. A proposed rubric for metric reasoning
Assess five dimensions: faithful label and threshold definitions; correct confusion counts; correct denominators; justified interpretation of tradeoffs; and preservation of the evaluation protocol. For each dimension, zero indicates absent evidence, one indicates major errors, two indicates mostly correct work with an identified gap, and three indicates independently reproducible reasoning. A polished percentage without its population does not receive full credit.
Include a zero-denominator case and a changed mistake-weight case. Record ordinary access supports separately from assistance that supplies the target reasoning. Evaluate the learner’s independent explanation, the assisted calculation sheet and another reader’s reconstruction as different outcomes. This rubric is a proposed teaching instrument, not a validated measure of intelligence or demonstrated evidence of improved AI evaluation.
CHAPTER 20 OF 26 · Test independent transfer
20. Independent transfer: evaluate the frozen rule on packet H
Packet H contains twelve new fictional cards, four P and eight N. Apply the already frozen threshold 0.60, including equality, before inspecting the answers. H01 through H06 are flagged. TP = 3, FP = 3, FN = 1 and TN = 5. Precision is 1/2, recall 3/4, false positive rate 3/8, specificity 5/8 and accuracy 8/12 = 2/3.
The frozen loss is 2(1) + 3 = 5. Do not call that an improvement over validation loss eight merely because five is smaller: H contains twelve cards while V contains twenty-four. Their loss per card is 5/12 and 8/24 respectively. These are exact summaries of invented packets, not population estimates with demonstrated precision or evidence that an actual classifier generalises.
| Card | Reference label | Score |
|---|---|---|
| H01 | P | 0.92 |
| H02 | N | 0.88 |
| H03 | P | 0.76 |
| H04 | N | 0.63 |
| H05 | P | 0.60 |
| H06 | N | 0.60 |
| H07 | P | 0.58 |
| H08 | N | 0.49 |
| H09 | N | 0.36 |
| H10 | N | 0.22 |
| H11 | N | 0.14 |
| H12 | N | 0.05 |
CHAPTER 21 OF 26 · Test independent transfer
21. Primary learning: count the target and the chosen cards
Start with a smaller set of picture cards whose target feature is unambiguous to the learner. Mark which cards a pretend sorter selected. Make two physical groups: all selected cards and all target cards. Ask how many in each group are both selected and targets. This develops the two denominator questions before introducing percentages or technical names.
Use a deliberate missed card and a deliberate extra selection so the learner can explain the different mistakes. Spoken explanations, tactile markings and accessible tables can preserve the same reasoning target. The aim is to reconstruct what happened, not to infer a child’s ability from how quickly they operate a classifier or remember the names precision and recall.
CHAPTER 22 OF 26 · Test independent transfer
22. Secondary learning: connect fractions, decisions and counterexamples
At secondary level, use the complete scored record and require a calculation trail from individual IDs to counts to fractions. Compare the two tied score groups under ≥ and > rules as explicitly different exercises. Ask students to explain why reference-positive and reference-negative totals remain fixed when only the threshold changes.
Then introduce the precision counterexample and the fictional loss functions. Students should defend a threshold relative to the stated candidates and priorities, while acknowledging what the comparison does not cover. A fresh packet tests whether they can repeat the reasoning with different class counts rather than reproduce a memorised 60% or 75% answer.
CHAPTER 23 OF 26 · Test independent transfer
23. University, institutions and EnDist
At university, extend the exercise to uncertainty in estimated metrics, grouped data, changing class proportions and carefully designed validation. Compare operating points at realistic review capacities, keeping the scoring model and decision policy distinguishable. If real labels involve judgement, document their definition and checking process. Those extensions require additional evidence; the tiny fictional packets do not establish a deployment standard.
Use EnDist as a proposed lens on the capability that reaches a recipient after checking and rework. Can another team identify the flagged workload, missed targets, source population and frozen rule from the handover? Record those observations separately from learner understanding and artifact correctness. No metric here is an EnDist quantity or a validated measure of wider educational progress.
CHAPTER 24 OF 26 · Four-week coursework plan
24. A four-week Precision, Recall and Threshold Lab
In week one, define the target class and construct the four outcome groups using visible cards. In week two, reconstruct the three threshold rows and calculate their metrics with written denominators. In week three, examine ties, undefined cases, class imbalance and the two fictional loss functions, preserving the primary protocol’s declared choice.
In week four, freeze the primary rule, release packet H, and ask learners to explain the result to an unfamiliar recipient. Keep the initial reasoning, permitted assistance, corrections and transfer response. A later changed task can guide further teaching. This is an adaptable proposed sequence, not evidence that four weeks establishes a particular level of statistical competence or causes measurable improvement.
CHAPTER 25 OF 26 · Four-week coursework plan
25. Questions about thresholds and evaluation claims
Is 0.50 always the correct threshold? No; its suitability depends on the score meaning and decision objective. Does a higher threshold always improve precision? No; packet V supplies a counterexample. Does no false positive mean perfect precision? Only when positive predictions exist and every one is correct; when none exist, the precision ratio is undefined.
Can the best validation threshold be called universally best? No; our claim covers three candidates, one packet and one fictional loss rule. Can an AI-generated metric table replace understanding? It can support checking, but independent reconstruction is separate evidence. Future superintelligence would not remove the need to state the target, denominator, decision rule and scope of evaluation.
CHAPTER 26 OF 26 · Four-week coursework plan
26. Sources, boundaries and the next independent comparison
Read Google’s classification-metrics guide for the standard fractions, the scikit-learn metric reference for definitions and undefined cases, its threshold-selection guide for separating fitting and tuning, and its calibration guide for probability interpretation. These sources support technical background, not the effectiveness of this proposed coursework.
The records, scores, mistake weights and classroom outcomes are original fictional examples. They provide no empirical comparison of AI products. Next, change one score and reconstruct the affected decisions, then change one priority while retaining the data. Explain which metrics change in each case, and hand over the counts and assumptions so another learner can check the conclusion.