Skip to content
ML Academy

Classical ML, validation, metrics, interpretation, debugging · insight-0138

Replace accuracy with prevalence-aware metrics when the positive class is rare

Evidence type
documented fact
Difficulty
easy
Roles
Data scientist, Data analyst, ML engineer
Industries
banking, manufacturing, aviation

Summary: situation, action, reason, boundary

  1. Situation

    You report accuracy for fraud, churn, defect or no-show prediction where positives are a few percent.

  2. Action

    Report precision and recall at the chosen threshold, PR-AUC, and the confusion matrix in counts, alongside the prevalence and a dummy baseline.

  3. Reason

    With 2% prevalence, predicting all negatives already gives 98% accuracy, so accuracy barely reflects performance on the class you care about.

  4. Boundary

    Binary and multiclass problems with skewed class frequencies.

Symptom or risk

Accuracy rises toward the majority share whatever the model does with positives; a useless model looks excellent.

Exceptions

When classes are balanced and errors cost about the same, accuracy is a reasonable summary.

Trade-offs

Balanced accuracy fixes the majority bias but still ignores the cost asymmetry between errors.

Pitfalls

Swapping accuracy for F1 without checking that F1's equal weighting of precision and recall matches the business costs.

Lessons and concepts

Claims and their sources