
Statistically Significant Nonsense · Episode 20
The lab, characters and dialogue are fictional. The satire concerns methodological overclaiming, not the cited researchers. Numerical examples are explicitly constructed illustrations, not findings from an unpublished experiment.
Welcome to the awards ceremony
At our fictional HSI lab, the detector comparison is complete and the team is selecting the primary metric. This is slightly late, because they have already seen which metric prefers their method. The author calls the choice application-driven. The application appears to be winning the table. Three trophies arrive: accuracy, F1 and decision loss. They immediately disagree about where to sit.
Reviewer: “What decision will the detector support?” Author: “Which method to bold.” A metric compresses predictions and references into a summary. Its usefulness depends on the errors that matter, the evaluation population and the action the model informs. Widespread use does not make it universally appropriate, and a conveniently large performance gap is not a deployment requirement.
For rare-material searches, the question may concern review workload at an acceptable detection rate. A land-cover map may require class-specific assessment or area estimation. Probabilistic forecasts have another target. Write the population, unit, reference definition, trade-off and threshold-selection rule before the final comparison. Then the trophies can disagree constructively instead of being invited only when they have promised to applaud.
The denominator would like a microphone
The author reports a tiny false-positive rate. The deployment officer asks how many false alarms that means across the whole survey. The author repeats the percentage more slowly. A rate needs a denominator: false-positive rate divides false positives by actual negatives, precision divides true positives by predicted positives, and recall divides true positives by actual positives. They answer different questions, even when a slide makes all three green.
Retain TP, FP, FN and TN at the selected operating point. Davis and Goadrich analyse the relationship between ROC and precision-recall representations and their differing geometry and interpolation [1]. A curve is a structured summary of those quantities, not a mechanism for making the background population disappear. A small rate over a very large background can still generate a formidable inspection queue.
State how the sample was constructed and which weights connect it to deployment. A balanced subset may support a useful comparison without displaying the rare-target workload. Reviewer: “How many candidates must a person inspect?” Author: “The area under the curve is excellent.” The curve has declined to inspect the candidates. Somebody else still needs a time allocation.
Sources: [1]
Two operating points enter the spreadsheet
Here is a constructed evaluation with 100 positive and 9,900 negative pixels. Point A has 80 true positives, 198 false positives, 20 false negatives and 9,702 true negatives. Recall is 80%, false-positive rate 2%, precision 80/278, approximately 28.8%, and accuracy 97.82%. None of these is a reported experimental finding. The fictional detector exists only to keep the denominators honest.
Point B has 60 true positives, 20 false positives, 40 false negatives and 9,880 true negatives. Recall falls to 60%, precision rises to 75%, and accuracy reaches 99.4%. An all-negative predictor gets 99% accuracy while finding no positives at all. At the awards ceremony, it thanks the class distribution for believing in it throughout its career of doing nothing.
A retrieves more targets and generates more review work. B generates fewer false detections and misses more targets. Accuracy is not forbidden, but its interpretation must acknowledge that trade-off. Reviewer: “Which operating point should we use?” Author: “B has the larger number.” Reviewer: “Which number answers the decision?” The table has supplied evidence. It has not volunteered to choose the mission.
| Quantity | Point A | Point B |
|---|---|---|
| True positives | 80 | 60 |
| False positives | 198 | 20 |
| False negatives | 20 | 40 |
| True negatives | 9,702 | 9,880 |
| Recall | 80% | 60% |
| Precision | 28.8% | 75% |
| Accuracy | 97.82% | 99.4% |
Precision has moved to a different postcode
The team tests on a balanced dataset and carries the resulting precision into a rare-target deployment presentation. This is convenient travel with no declaration at the border. If sensitivity and false-positive rate remain fixed, precision at prevalence π is sensitivity × π divided by sensitivity × π + false-positive rate × (1 − π). The population appears in the calculation because it participates in the result.
With sensitivity 0.8 and false-positive rate 0.02, a balanced population gives 0.8/(0.8 + 0.02), approximately 97.6% precision. At prevalence 0.01, the same rates give 0.008/(0.008 + 0.0198), approximately 28.8%. Real shifts can also change those rates. Fixed-rate transport is an explicit assumption, not a service automatically provided by Bayes' rule.
Saito and Rehmsmeier discuss why precision-recall displays can reveal limitations overlooked in casual interpretations of ROC plots under imbalance [2]. Report prevalence and the operating region beside either curve. Reviewer: “Was the test prevalence realistic?” Author: “It was balanced for fairness.” Balance may help a particular study design. It does not authorise the resulting precision to impersonate every future survey.
Sources: [2]
F1 and MCC would also like titles
F1 equals 2TP/(2TP + FP + FN). It excludes true negatives and uses the harmonic mean of precision and recall. For the constructed example, A has F1 approximately 0.423 and B approximately 0.667. F1 awards B its trophy. The author begins calling B operationally superior. The missed targets ask whether they have been assigned a cost anywhere in the ceremony programme.
MCC uses all four confusion cells and can supply a complementary binary summary. Chicco and Jurman examine advantages of MCC and limitations of accuracy and F1 through mathematical analysis and examples [3]. That is a reason to examine what a statistic retains or discards. It does not exempt the researcher from defining the deployment objective. No metric becomes the Minister for All Possible Decisions.
Handle degenerate denominators explicitly. An all-negative predictor can have an undefined mathematical MCC denominator, and software may adopt a convention. State it. In multiclass work, also specify pooled, macro, weighted or class-specific calculation. Reviewer: “Which averaging?” Author: “The default.” Defaults are implementation choices. They are not an invisible consensus among the minority classes about how little they would like to matter.
Sources: [3]
The deployment officer changes the winner
Return to the constructed detector. Assign each false negative cost 10 and each false positive cost 1. A incurs 20×10 + 198 = 398 units; B incurs 40×10 + 20 = 420 units. Under this particular loss, A wins despite its lower accuracy and F1. The awards committee has discovered that the question can affect the answer, an unsettling development for a presentation already exported to PDF.
Now set false-negative cost to 2 while keeping false-positive cost 1. A incurs 238 units and B 100. The preference reverses. These are illustrative cost units, not financial estimates, measured consequences or recommendations for an actual survey. Reviewer: “Which cost is correct?” Author: “Whichever recovers our ranking.” That response would need a somewhat different conflict-of-interest statement.
Real systems may have nonlinear review capacity, clustered alarms and class-specific consequences. Pixel-level costs can be the wrong unit when people act on connected components, objects or scenes. Define the actual decision and expose the assumptions linking the metric to utility. The purpose of the example is not to crown cost models as infallible. It is to make the objective visible before declaring a universal champion.
An area under every threshold is not your threshold
The lab offers a large curve area as reassurance about a very low-false-alarm deployment. The relevant operating region occupies a small corner and performs poorly. This is like evaluating an aircraft's airport punctuality by averaging over every possible departure date. A global summary can be informative without proving that the particular operating point meets the application requirement.
Flach and Kull analyse difficulties with conventional precision-recall areas and propose a gain representation with a specified interpretation [4]. Name the area definition and interpolation convention. “AUC” is not enough when different constructions answer different questions. The method section should let a reader reproduce the number without participating in a guessing competition hosted by the plotting library.
Probability quality is a further issue. Gneiting and Raftery develop proper scoring rules, which reward accurate probabilistic forecasts in expectation [5]. Use appropriate probability scores and calibration assessment when probabilities matter. Choose thresholds using development data and evaluate the fixed decision rule on held-out data. Reviewer: “How was the threshold selected?” Author: “At the nicest point on the test curve.” That point has now joined the development team.
The trophy includes a specification sheet
The final metric record includes class definitions, ignore mask, evaluation support, prevalence, averaging, threshold procedure, ties and undefined-value policy. Confusion counts or reconstructible aggregates accompany the scores. For sampled reference data, record the design weights and targeted population quantity. This is less exciting than another medal but considerably more useful when someone asks why the independent implementation returns a different result.
Uncertainty also needs the right unit. Thousands of nearby pixels need not provide thousands of independent error observations. A new-scene claim should show scene-level results and acknowledge the available replication. Pooled precision can describe the pooled sample; it cannot alone establish how performance varies across future environments. The background pixels cannot all be appointed independent geographic reviewers.
The fictional team finally names a primary metric linked to the decision and uses the others to show trade-offs. The author stops saying “best detector” without conditions. Accuracy, F1 and cost keep their trophies because they have been describing different aspects of the evidence. Nobody has to resign. The only item removed from the ceremony is the rule that the preferred metric must share the proposed method's taste.
Frequently asked questions
Which metric is always best for imbalanced data?
There is no universally best metric independent of the decision. Report the underlying counts, choose a primary measure linked to the intended use and use complementary measures to show the trade-offs.
Can precision from a balanced test set be used directly in deployment?
Generally not when deployment prevalence differs. Even a calculation that adjusts prevalence assumes sensitivity and false-positive rate remain stable, which must be examined under the relevant distribution shift.
Does a high ROC-AUC establish an acceptable operating point?
No. Inspect performance in the required operating region, choose the threshold using development data and evaluate the fixed policy on held-out data with the appropriate error counts and uncertainty.
References and further reading
- Davis and Goadrich (2006): The relationship between Precision-Recall and ROC curves. ICML, 233–240.
- Saito and Rehmsmeier (2015): The Precision-Recall Plot Is More Informative than the ROC Plot When Evaluating Binary Classifiers on Imbalanced Datasets. PLOS ONE.
- Chicco and Jurman (2020): The advantages of the Matthews correlation coefficient over F1 score and accuracy in binary classification evaluation. BMC Genomics, 21, 6.
- Flach and Kull (2015): Precision-Recall-Gain Curves: PR Analysis Done Right. NeurIPS 28.
- Gneiting and Raftery (2007): Strictly Proper Scoring Rules, Prediction, and Estimation. JASA, 102(477), 359–378.
Reader feedback
Reads since 1 October 2026: at least 15 seconds with the article visible, counted once per browser per day. Reactions are anonymous and can be changed.
Loading reader feedback…
Discuss this article
Ask a technical question, challenge an assumption or share evidence from your own work.