LearnQuestion bank

With 0.1% positives, why can ROC-AUC look excellent while the model is useless operationally? When do you prefer PR-AUC?

ML engineeringTechnicalMedium

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • ROC-AUC can look strong because FPR divides false positives by the huge negative class, so many false alarms barely move it.
  • PR curves expose precision directly, and the random baseline is prevalence (~0.001), so weak models are visible.
  • AUC is threshold-free, while operations need a fixed operating point chosen from capacity, cost, and risk.
  • In fraud, prefer PR-AUC and partial AUC or recall at a fixed FPR rather than ROC-AUC alone.

In full

Because positives are rare, ROC-AUC is dominated by the negative class: FPR = FP/(FP+TN), and with 0.1% positives a large number of false alarms can still be a tiny fraction of all negatives, so the curve can look excellent while precision is terrible. PR curves plot precision directly against recall, and the random baseline is just prevalence (about 0.001), so a model that barely beats random is visible immediately. AUC is also threshold-free, while operations need a fixed operating point chosen from review capacity, cost, and risk, so a high AUC does not guarantee useful alerts at that point. I prefer PR-AUC when the positive class is rare and false positives are costly, and in fraud I would also report partial AUC or recall at a fixed FPR (plus precision at a fixed recall) rather than ROC-AUC alone.

Checked against sources by an independent AI reviewer.

What a strong answer covers

  • ROC uses FPR, whose denominator is the huge negative class, so many false positives barely move it.
  • PR curves expose precision directly; the random baseline equals prevalence.
  • AUC is threshold-free, while operations need a fixed operating point.
  • Use partial AUC or recall at a fixed FPR in fraud.

Common mistakes

  • comparing PR-AUC across datasets with different prevalence
  • assuming AUC 0.95 means 95% accuracy.