← AI and Data Science Studio
Concept Explainer · AI & Data Science

ROC-AUC vs. PR-AUC

The same model, the same confusion matrix, and two summary numbers that tell almost opposite stories — because one of them has a huge pile of true negatives quietly propping it up.

Both ROC-AUC and PR-AUC summarize a classifier across every possible decision threshold in a single number between 0 and 1. On a roughly balanced dataset they usually agree closely enough that it doesn't matter which one you report. Under severe class imbalance — fraud detection, rare-disease screening, defect detection on a production line where 99%+ of parts pass — they can disagree dramatically, and the disagreement is not a coincidence. It comes directly from what sits in each metric's denominator.