Correlation and Regression
Calculate the number of independent paired observations needed to detect a specified Pearson correlation with a chosen significance level and statistical power. The calculation uses the Fisher z transformation, the standard planning approach used for a two-sided or one-sided correlation test.
This calculator sizes a one-sample Pearson correlation test under the assumption that the paired observations arise from a bivariate normal population. The null hypothesis is that the population correlation is zero, while the alternative hypothesis specifies a nonzero correlation of the magnitude entered above.
Because the sampling distribution of the Pearson correlation is bounded between −1 and 1 and is not well approximated by a normal distribution on the raw correlation scale, the anticipated correlation is transformed using Fisher's z transformation:
For a test of H0: ρ = 0, the standard large-sample planning equation is:
For a two-sided test, α* = α. For a one-sided test, the corresponding critical normal quantile uses α rather than α/2. The result is rounded upward because a fractional participant is not possible.
The result is the number of complete, analyzable pairs of observations required. If loss to follow-up, missing measurements, or other exclusions are expected, the enrollment target should be increased accordingly.
A two-sided test with ρ = 0.40, α = 0.05, and 80% power gives z(ρ) = 0.42365. Substitution into the Fisher z sample-size equation gives a required sample size of 47 paired observations after rounding up. This agrees with the published nQuery example in which a two-sided Fisher z test with 5% significance was designed to detect a Pearson correlation of 0.40 with 80% power using n = 47.