Statistical Calculators › Correlation and Regression › Pearson Correlation Coefficient Sample Size Calculator
← All Calculators

Correlation and Regression

Pearson Correlation Coefficient Sample Size Calculator

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.

Study Parameters

Specify the correlation you want the study to be able to detect, along with alpha and power.
Enter the anticipated population correlation. The sign does not affect sample size for a two-sided test; the magnitude determines the effect size.
A one-sided test allocates all of α to the prespecified direction. Use it only when the direction is specified before observing the data.

Required Sample Size

Number of independent pairs of observations required for the specified power.
Enter study parameters and click Calculate Sample Size.

Methodology

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.

Fisher z transformation

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:

z(ρ) = 0.5 × ln[(1 + ρ) / (1 − ρ)]

For a test of H0: ρ = 0, the standard large-sample planning equation is:

n = ⌈ 3 + [(z1−α*/2 + z1−β) / |z(ρ)|]2

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.

Interpretation

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.

Worked validation example

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.

References