Skip to main content
Mail a PDF copy of this page to:
(Your email address will not be added to a mailing list)
Show menu

Sample size: Area under Precision-Recall curve

Command:Sample size
Next selectConfidence Interval estimation & Precision
Next selectArea under Precision-Recall curve


Calculates the required sample size for the for the estimation of a confidence interval of the Area under Precision-Recall curve (AUPRC).

The calculation is based on Boyd et al, 2013 (Logit method). See Precision-recall curve.

Required input


Sample size calculation for the Area under Precision-Recall curve.

You want to show that the AUPRC of 0.55 for a particular test is significantly higher than the value 0.4, then you enter 0.55 for Area under Precision-Recall curve and 0.4 for Desired Lower bound of the confidence interval. You expect to include 9 times more negative cases than positive cases, so for the Ratio of sample sizes in negative / positive groups you enter 9.

Click Calculate

In the example 43 cases are required in the positive group and 387 in the negative group, giving a total of 430 cases.


See also