Compare two correlations calculator
Test whether two correlation coefficients differ, either from two independent samples or from one sample where they share a variable, with the confidence interval for the difference.
Enter the two correlations
Use Pearson correlations. For one sample, X is the shared variable: compare r(X, Y) with r(X, Z).
LIVE RESULT
INSTANTDifference between correlations
The tests assume bivariate normal data and Pearson correlations. They are approximate for Spearman correlations and in small samples.
Is one correlation larger than the other?
Finding that one correlation is significant and the other is not does not show that they differ. A correlation of .45 can be significant in one group and .25 not significant in another while the difference between them is well within chance. To make the claim, test the difference directly. The right test depends on whether the correlations come from different people or from the same people.
Two independent samples
For correlations from separate groups, such as men and women or two countries, each correlation is converted with Fisher's z transformation, which makes its sampling distribution approximately normal with variance 1 ÷ (n − 3).
z = (atanh r₁ − atanh r₂) ÷ √(1/(n₁ − 3) + 1/(n₂ − 3))
Cohen's q = atanh r₁ − atanh r₂
Example: r = .45 with 120 people against r = .25 with 150 gives z = 1.85, p = .064. The 95% confidence interval for the difference, [-0.012, 0.405], uses Zou's (2007) method, which, unlike a symmetric interval, respects the bounds of −1 and 1. Cohen's q = 0.23; Cohen called 0.1, 0.3 and 0.5 small, medium and large differences.
One sample, with a shared variable
When both correlations come from the same participants and share a variable, for example whether job satisfaction (X) is more strongly related to pay (Y) or to workload (Z), the two estimates are not independent. The test must take the correlation between Y and Z into account. The calculator reports three well-established tests and an interval:
- Williams' t (Hotelling–Williams), recommended by Steiger (1980), with n − 3 degrees of freedom.
- Steiger's Z, based on Fisher's z with a pooled correlation.
- Meng, Rosenthal and Rubin's Z (1992), which is easy to report and close to the other two.
- Zou's confidence interval for r(X, Y) − r(X, Z).
With the same correlations, .45 and .25, from one sample of 120 and r(Y, Z) = .30, Williams' t(117) = 2.04, p = .044. If Y and Z correlate .70 instead, the same difference gives t = 3.14, p = .002: the more the two variables overlap, the more precisely their correlations with X can be compared.
The results match those of the R package cocor (Diedenhofen and Musch, 2015) for its published examples.
Reporting
- Report both correlations with their sample sizes, the test, its statistic and p-value, and the interval for the difference: “the correlation was stronger for pay than for workload, r = .45 vs .25, Williams' t(117) = 2.04, p = .044, 95% CI for the difference [.01, .39].”
- If the shared variable is measured with error, both correlations are attenuated; compare reliabilities before interpreting a difference.
- Two correlations sharing no variable (r(W, X) against r(Y, Z) in the same sample) need a different test that also uses the four cross-correlations.
To plan a study that can detect a correlation of a given size, use the power analysis calculator; to get the p-value of a single correlation, use the p-value calculator; or read the guide to comparing two correlations.
Common questions
Frequently asked questions
When should I use Fisher’s z vs Steiger’s or Williams’ test?
Use Fisher’s r-to-z test when the two correlations come from two separate, independent samples. Use Williams’ t, Steiger’s Z or Meng’s Z when both correlations come from the same sample and share a variable.
Why does the calculator show Zou’s confidence interval?
Zou’s asymptotic confidence interval estimates the plausible range for the difference (r₁ − r₂) directly without assuming equal sample variances, complementing the p-value.
What is Cohen’s q for comparing correlations?
Cohen’s q is the difference between two Fisher-z-transformed correlations, commonly interpreted as small around 0.10, medium around 0.30 and large around 0.50.