AUPRC (area under the precision–recall curve)

AUPRC summarizes how well a classifier ranks positives above negatives, with attention to precision. A random classifier scores the prevalence of positives, so the baseline depends on the data.

Frequently asked questions

What is the baseline AUPRC of a random classifier?

It equals the prevalence, the share of positives in the data. A value of 0.3 is well above baseline when 1% of cases are positive and below it when 50% are.

When is AUPRC better than AUROC?

When positives are rare and the question is how many top-ranked candidates are correct. A very large number of negatives can keep AUROC high even when precision among the top candidates is low.

Does a high AUPRC mean that the top candidates are correct?

Not directly. AUPRC summarizes the whole ranking. Report the precision at the number of candidates that will actually be tested.

AUPRC is the area under the precision–recall curve. It summarizes how well a classifier ranks the positive cases above the negative ones, with attention to precision, the share of predicted positives that are correct, rather than to the true-negative rate.

Definition

The precision–recall curve plots precision against recall (sensitivity) as the decision threshold changes. AUPRC is the area under it. It is often computed as average precision, the sum over thresholds of the precision weighted by the increase in recall; interpolating linearly between points, as the trapezoidal rule does, can make it look too high.

A classifier that ranks at random has an AUPRC equal to the prevalence, the share of positives in the data. The baseline therefore changes with the data set, whereas the AUROC baseline is always 0.5.

How it is used

AUPRC is preferred over AUROC when positives are rare and the question is how many of the top-ranked candidates are real, as in picking genes or compounds for follow-up. In imbalanced data, a large number of negatives can keep AUROC high even when precision among the top candidates is low (Saito and Rehmsmeier, 2015).

Common pitfalls

  • Comparing AUPRC across data sets with different prevalence. A value of 0.3 is well above baseline at 1% prevalence and below it at 50%.
  • Treating a high AUPRC as the number of correct top candidates. Report precision at the number of candidates that will actually be tested.
  • Averaging over classes or contexts without stating the weights, or without a simple baseline such as the mean profile for comparison.

References

Last updated: 2026-11-14 · All tools and reference pages