Evaluate an AI classification by comparing its decisions with independently reviewed reference outcomes. Count what it correctly detects, what it misses, what it unnecessarily flags and what it correctly leaves alone. Overall accuracy is only one measure: a system can appear highly accurate when the cases that matter are uncommon. Use the separate error types to decide how the tool may appropriately support human attention.
This international guide follows Theo, a fictional learning-resource editor checking whether draft worksheets lack a required source reference. All records, labels, probabilities and results are invented. SuperIntelligence is the future-facing theme of the series, not a claim that current AI has demonstrated general superintelligence. This low-stakes example is not a method for making consequential medical, legal or employment decisions.
- Define the target condition and a reviewed reference label.
- Distinguish flagged cases from cases that genuinely meet the condition.
- Calculate true positives, false positives, false negatives and true negatives.
- Compare accuracy, precision, recall and specificity.
- Examine the effect of changing base rates and review costs.
- Keep human oversight and test the method on new cases.
EDUKATE · VOCABULARY CODING AND ENGINEERING · PART 97 · TWENTY-FIFTH COLLECTION
Find your next useful step
Continue the series: Parts 97–100
- Part 97: Evaluating classification errors — you are here
- Part 98: Preventing duplicate actions during retries
- Part 99: Understanding variation behind averages
- Part 100: Building a personal intelligence system
Parts 93–96: sampling, units, prediction calibration and decision tables · Begin the complete series
Full chapter index
Establish the classification question
Calculate separate error measures
Examine base rates and thresholds
Verify and maintain the review process
Teach and transfer the capability
1. Define the condition of interest
Theo wants to identify draft worksheets missing a required source reference. The unit is one distinct draft under a stipulated editorial rule, not a sentence, author or published article. Positive means the draft genuinely lacks a required reference.
An AI flag is a proposed classification, not an observed defect. Establish the rule and reference version before evaluation.
2. Create an independently reviewed reference set
In the fictional exercise, a qualified editor reviews 100 permitted synthetic drafts against the same source-reference rule. Twenty are labelled positive and eighty negative. All labels are stipulated as resolved for the calculation.
In real work reference labels may contain errors or ambiguities. Preserve the evidence, review method and unresolved cases; do not use the assistant’s own labels as unquestioned ground truth.
Contents · Previous chapter · Next chapter
3. Keep predictions and reference labels separate
The model flags twenty-four drafts as requiring attention. Independent review establishes that eighteen flagged drafts are positive and six are negative. Two additional positive drafts were not flagged.
The remaining seventy-four drafts are negative and were not flagged. These are invented counts, not empirical results.
Contents · Previous chapter · Next chapter
4. Build the four-cell confusion matrix
A true positive is a flagged draft that lacks the required reference; there are eighteen. A false positive is a flagged draft that does not lack it; there are six.
A false negative is a missed defect; there are two. A true negative is a correctly unflagged draft; there are seventy-four. The four counts sum to 100.
| AI result | Reference positive | Reference negative | Total |
|---|---|---|---|
| Flagged | 18 (TP) | 6 (FP) | 24 |
| Not flagged | 2 (FN) | 74 (TN) | 76 |
| Total | 20 | 80 | 100 |
Related guide: search and retrieval coverage.
Contents · Previous chapter · Next chapter
5. Check the margins
The reference-positive total is 18 + 2 = 20. The reference-negative total is 6 + 74 = 80. The flagged total is 18 + 6 = 24 and the unflagged total is 2 + 74 = 76.
Check all totals against the original records. Different matrix conventions place predicted and reference labels on different axes; always read the labels before calculating.
Contents · Previous chapter · Next chapter
6. Calculate overall accuracy
The correct decisions are the eighteen true positives and seventy-four true negatives. Accuracy is (18 + 74)/100 = 92%.
That figure is correct for the invented set, but it says little about the separate cost of the two missed defects and six unnecessary flags.
Contents · Previous chapter · Next chapter
7. Calculate precision for flagged cases
Precision asks what proportion of flags actually identify the target condition. Here it is 18/24 = 75%. Three of every four flags in this particular exercise are confirmed defects.
The remaining one quarter of flags are false positives. A reviewer workload estimate should include those cases, not only the useful detections.
Contents · Previous chapter · Next chapter
8. Calculate recall for actual defects
Recall asks what proportion of all reference-positive drafts were detected. Here it is 18/20 = 90%. Two of the twenty positive cases were missed.
Recall is also called sensitivity in binary classification. It is a different denominator from precision; the two percentages answer different questions.
Contents · Previous chapter · Next chapter
9. Calculate specificity and false-positive rate
Specificity is 74/80 = 92.5%, the share of reference-negative drafts correctly left unflagged. The false-positive rate is 6/80 = 7.5%.
The false-positive rate is not 6/24. The latter is the fraction of flags that were false, which depends on the mix of positive and negative cases.
Contents · Previous chapter · Next chapter
10. Compare with a trivial baseline
An assistant that never flags any draft would correctly label eighty negatives and miss all twenty positives. It would achieve 80% accuracy and zero recall.
Its precision is undefined because it produced no flags. Do not substitute a perfect precision score simply because there were no false alarms.
Related guide: regression testing.
Contents · Previous chapter · Next chapter
11. Recognise the effect of a rare target
Consider a separate hypothetical population of 1,000 drafts, with ten genuine defects and 990 negatives. A tool that never flags anything achieves 99% accuracy but detects no defect.
This demonstrates why accuracy alone can be inadequate when the target is uncommon. It does not establish which real model should be selected.
Contents · Previous chapter · Next chapter
12. Apply conditional rates to a new hypothetical population
Assume, solely for illustration, that recall remains 90% and the false-positive rate remains 7.5% in the 1,000-draft population. Expected true positives are 9 and expected false positives are 74.25.
These are expected counts under assumed rates, so fractional values are not observed draft counts. There would be about 83.25 expected flags, with expected precision about 10.8%.
Contents · Previous chapter · Next chapter
13. Explain why base rates matter
Even if conditional rates remain stable, a smaller proportion of positive cases can make confirmed defects a smaller share of flags. Here the assumed target prevalence falls from 20% to 1%.
Actual conditional performance can also change with the population. Do not transfer the original rates without evidence that the new conditions are comparable.
Contents · Previous chapter · Next chapter
14. Explore a threshold change
Suppose a second invented threshold on the original 100 drafts detects nineteen positives, misses one, falsely flags sixteen negatives and correctly leaves sixty-four negatives. Recall is 95%, precision is 19/35 or about 54.3%, and specificity is 80%.
The threshold detects one additional defect at the cost of ten additional false flags. Whether that trade-off is appropriate depends on the real review purpose and consequences.
| Measure | Original threshold | Alternative threshold |
|---|---|---|
| True positives | 18 | 19 |
| False positives | 6 | 16 |
| False negatives | 2 | 1 |
| True negatives | 74 | 64 |
| Precision | 75% | 54.3% (approx.) |
| Recall | 90% | 95% |
| Specificity | 92.5% | 80% |
Contents · Previous chapter · Next chapter
15. Compare review cost transparently
If each flag takes two minutes to inspect in the fictional workflow, the original twenty-four flags require forty-eight minutes and the alternative thirty-five require seventy minutes. This excludes other checking and correction work.
A threshold cannot be chosen solely from a score when the effects of missed cases differ. Establish the acceptable error risks and review capacity with the responsible editor.
Contents · Previous chapter · Next chapter
16. Give AI a bounded evaluation brief
Try: Compare the predicted flags with these independently reviewed labels. Return all four confusion-matrix counts and show the denominators for accuracy, precision, recall and specificity. Flag unresolved labels instead of inventing them.
Require record-level evidence for disagreements and verify counts independently. Do not let the model declare its own output correct.
Related guide: sampling and representativeness.
Contents · Previous chapter · Next chapter
17. Inspect individual errors
A false negative might involve a reference formatted unusually or a required source not mentioned in the draft. A false positive might occur when a valid source reference appears in a permitted alternative location.
These are hypotheses until the specific drafts are inspected. Record the evidence and reason for each correction rather than guessing the model’s hidden reasoning.
Contents · Previous chapter · Next chapter
18. Distinguish scores from probabilities
Some classifiers return scores that help rank items or apply a threshold. A score of 0.8 is not necessarily an 80% probability that a draft lacks a reference.
Probability calibration is a separate evaluation question. Consult the earlier calibration guide before interpreting a model score as a probability.
Contents · Previous chapter · Next chapter
19. Test meaningful subgroups
Drafts may differ in format, subject, language or reference layout. If permitted and relevant, inspect whether a review method misses particular formats repeatedly.
Small subgroup counts can produce unstable rates. Keep denominators visible and do not infer a general performance difference from one or two cases.
Contents · Previous chapter · Next chapter
20. Protect the review process from selection bias
If Theo only inspects flagged drafts, he can estimate their observed confirmation share but cannot directly count the defects among unflagged drafts. He needs an appropriate independent review of those cases too.
A test set chosen only from previously known errors may not represent routine work. Establish a sampling and review method suited to the question.
Contents · Previous chapter · Next chapter
21. Maintain an evaluation record
Store the rule version, test population, predicted and reference labels, unresolved cases, threshold, reviewer and calculated measures. Preserve the relationship between each error and its supporting evidence.
A new model or new editorial rule requires an appropriately designed recheck. Retain legitimate records without exposing unnecessary personal or confidential material.
Related guide: forecast calibration.
Contents · Previous chapter · Next chapter
22. Practise with a changed test set
In a second fictional set, TP = 8, FP = 4, FN = 2 and TN = 26. Accuracy is 34/40 = 85%; precision is 8/12 or about 66.7%; recall is 8/10 = 80%; specificity is 26/30 or about 86.7%.
Reconstruct the margins and explain which measure answers a question about the editor’s flagged workload. Do not compare this set with the first without checking their populations and rules.
Contents · Previous chapter · Next chapter
23. Connect classification across zoom levels
A learner can test a tool that sorts practice questions; a teacher can evaluate a resource-review assistant; a team can inspect a bounded internal classification workflow. More consequential applications require specialised assurance, appropriate governance and human responsibility.
The common skill is understanding the consequences of different error types, not adopting one threshold for every situation.
Contents · Previous chapter · Next chapter
24. Connect vocabulary, Ztime and EnDist
Vocabulary Coding and Engineering keeps predicted positive, reference positive, false alarm, missed case and confirmed result distinct. Ztime records the rule, dataset and model version so later readers can reconstruct the evaluation.
EnDist is a conceptual lens for useful forward progress after confusion and rework, not physical energy or a validated numerical metric. Directing attention more effectively may help; these fictional scores do not demonstrate a real-world gain.
Read more: shared vocabulary · EnDist in Civilisation OS.
Contents · Previous chapter · Next chapter
25. Four weeks of practice
Week one: define a low-stakes binary condition and independently label a synthetic test set. Week two: calculate the confusion matrix and all four rates, showing each denominator.
Week three: compare thresholds and hypothetical base rates, and inspect individual errors. Week four: evaluate a changed test set and write an honest review recommendation with limits and next checks.
Contents · Previous chapter · Next chapter
26. Questions beginners ask and the next useful step
Does 99% accuracy guarantee useful detection? No. Is a model’s flag an established defect? No. Are precision and recall interchangeable? No. Can the same precision be assumed when the population changes? No.
Choose a modest classification task and label a small reference set independently. Count missed cases and false alarms before deciding where the assistant can genuinely support your attention.
The scikit-learn documentation on classification metrics explains confusion matrices, precision, recall and related evaluation measures. The examples and workflow here are invented educational illustrations; they do not benchmark any particular model or library.
Contents · Previous chapter · Continue learning: next guide in this collection