Contents
Precision, Recall, F1 and ROC-AUC/Chapter 08 of 10
08Common misconceptions
- “99.9\% accuracy means a good model.” Not with rare positives: the lazy model scored 99.85\%. Always compare with the majority-class baseline, and report precision and recall.
- “Precision and recall are properties of the model.” They are properties of the model and a threshold; every point of Table 1 is the same model. Precision also depends on the prevalence of the data it is measured on (Proposition 3).
- “F1 is the average of precision and recall.” It is the harmonic mean, and that is the point: the arithmetic mean gives the flag-everything model 50\%, F_1 gives it 0.3\% (Murphy, 2022, §5.1.4.3).
- “AUC 0.5 is the floor.” 0.5 is random ranking; an AUC well below 0.5 means the ranking is informative but reversed (often a flipped label), and 1-\mathrm{AUC} is what you get by flipping the scores.
- “AUC is the accuracy at the best threshold.” It is the probability that a random positive outscores a random negative, averaged over all thresholds (Proposition 2); it does not correspond to any single threshold. Hand (2009) shows that, read as an average cost, it weights the costs differently for different classifiers, one more reason to compare models where they will operate.
- “ROC-AUC is the best metric for imbalanced data because it ignores the imbalance.” Ignoring the prevalence is exactly what hides the false alarms: at a false positive rate of 1\% our model raises 1{,}348 false alarms for 174 frauds (Murphy, 2022, §5.1.3.3), (Saito and Rehmsmeier, 2015). Use the precision–recall curve for rare positives.
- “The baseline of a precision–recall curve is 0.5.” The random baseline is the prevalence (0.0015 here); compare average precision with it, and only across data with the same prevalence.
- “A high AUC means the probabilities can be trusted.” AUC sees only the order; scores squashed into [0.49,0.51] keep AUC 0.958 with useless probabilities. Check calibration with log loss or a reliability diagram.
- “The threshold should be 0.5.” Only when the two errors cost the same and the probabilities are calibrated; otherwise flag when p\ge\tau^*=C_{\mathrm{FP}}/(C_{\mathrm{FP}}+C_{\mathrm{FN}}), where C_{\mathrm{FP}} and C_{\mathrm{FN}} are the costs of a false alarm and a missed positive, and tune it on validation data.