Statistical Calculators › Diagnostic Accuracy and Agreement › Comparing Two ROC Curves (Paired) Sample Size Calculator
← All Calculators

Diagnostic Accuracy and Agreement

Comparing Two ROC Curves (Paired) Sample Size Calculator

Calculates the required number of diseased and non-diseased subjects when two diagnostic tests are evaluated on the same subjects and their AUCs are compared. The calculation uses the paired, discrete-rating-data formulation documented in PASS and based on Obuchowski & McClish (1997), with separate correlations for positive and negative subjects.

Study Design

Enter the anticipated AUCs, paired-test correlations, allocation ratio, significance level, and desired power.
Full ROC AUCs are used. Test 2 should represent the anticipated alternative AUC; the calculator uses the absolute AUC difference for a two-sided test.
Correlation + applies to paired test scores among subjects with the condition; Correlation − applies among subjects without the condition.

Required Sample Size

Subjects receive both diagnostic tests; N+ and N− are the diseased and non-diseased groups, respectively.
Enter the study assumptions and click Calculate Sample Size.

Methodology

This calculator implements the paired discrete (rating) data branch of the PASS Tests for Two ROC Curves procedure. PASS states that this branch uses the sample-size methodology of Obuchowski and McClish (1997), while the continuous-data branch uses a different Hanley-McNeil formulation. The paired design accounts for the correlation between the two diagnostic-test scores within the same positive and negative subjects.

Hypothesis and sample-size equation

Let Δ denote the difference between the two anticipated AUCs. PASS uses the large-sample normal approximation with separate variance expressions under the null and alternative hypotheses. For the number of positive (diseased) subjects:

N+ = [ zα√V0(Δ) + zβ√VAlt(Δ) ]2 / Δ2
N− = R × N+

For a two-sided test, zα is the standard-normal quantile at 1 − α/2. For a one-sided test, it is the quantile at 1 − α. The power term is zβ = Φ−1(power).

Paired variance calculation

PASS defines the alternative variance as the sum of the two AUC variances minus twice their covariance:

VAlt(Δ) = V(θ1) + V(θ2) − 2C(θ12)

The covariance incorporates the correlation between the two tests among positive subjects (r+) and negative subjects (r−). The calculation therefore reflects the efficiency gained from evaluating both tests on the same individuals rather than treating the two AUC estimates as independent.

Binormal parameterization used by PASS

For the full ROC range and the conservative variance-ratio specification B1 = B2 = 1 used by the PASS examples, the binormal separation parameter corresponding to an AUC is:

A = √2 × Φ−1(AUC)

The implementation evaluates the Obuchowski-McClish variance and covariance expressions directly in JavaScript and then rounds the required group sizes upward, because a fraction of a subject cannot be enrolled.

Important scope

Validation example

The PASS documentation provides a sample-size example with AUC1 = 0.800, AUC2 = 0.825, two-sided α = 0.05, power = 0.90, R = 2, and correlations of 0.60 in both the positive and negative groups. PASS reports N+ = 1,937 and N− = 3,874, for a total of 5,811 subjects.

Validation target: N+ = 1,937  ·  N− = 3,874  ·  Total = 5,811

References

Obuchowski, N. A. & McClish, D. K. (1997). Sample size determination for diagnostic accuracy studies involving binormal ROC curve indices. Statistics in Medicine, 16(13), 1529–1542.

Hanley, J. A. & McNeil, B. J. (1983). A method of comparing the areas under receiver operating characteristic curves derived from the same cases. Radiology, 148, 839–843.

PASS Sample Size Software, Tests for Two ROC Curves, NCSS documentation. The PASS procedure explicitly identifies the Obuchowski-McClish methodology for discrete rating data and supplies the validation example reproduced above.