Skip to content

CAssociation · Guide test 083

Steiger correlation comparison tests

Compare dependent correlations while accounting for their overlap and sampling covariance.

Runs in CodeSplashPython (calls R) example not runR example validated

Do it in CodeSplash

In the app, set it up in Analyze with this method:

In Compare two correlations (Fisher z, Williams, Steiger), choose Test = Steiger's z.

Do it in CodeSplash Run this test on your own data, in Python or R.

Bench

Change the design, drag the data, move α. The statistic, its reference distribution and the verdict follow.

Bench · Steiger correlation comparison tests

40
0.55
0.20
0.40
0.050

Alternative

Your data

Simulated with known correlations
#xyz
1.000−0.916−0.686−1.104
2.000−0.0330.7380.824
3.0000.201−0.0640.266
4.0000.3070.551−1.076
5.0000.7620.8241.715
6.0000.4420.333−1.354
7.0000.207−0.591−0.606
8.0002.3300.6570.308
9.000−0.0920.445−0.125
10.0001.6961.290−0.049
11.000−0.139−0.7900.228
12.000−0.305−0.759−0.028

40 people measured on x, y and z · first 12 of 40 rows

If H₀ were true

z = 3.20
  1. The reference: how z varies across samples when H₀ is true.
  2. Your statistic, from the data above.
  3. The p-value: the area at least as extreme as yours (p = .001).
  4. The hatched rejection region at α = .050: statistics landing here reject H₀.

The formula

z=(atanh⁡rxy−atanh⁡rxz)n−32−2cˉz=\dfrac{(\operatorname{atanh} r_{xy}-\operatorname{atanh} r_{xz})\sqrt{n-3}}{\sqrt{2-2\bar c}}

With your numbers

z=3.20,rxy=0.57,rxz=(−0.07)z = 3.20,\qquad r_{xy} = 0.57,\quad r_{xz} = (-0.07)
cˉ\bar c
the covariance of the two Fisher z's, from the pooled correlation
n−3n-3
Fisher's variance factor

The verdict

z = 3.20, p = .001, Δr = 0.63

p ≤ α = .050: reject H₀

Effect size: r(x, y) − r(x, z) Δr = 0.635

Steiger's version of the Dunn–Clark z on Fisher-transformed correlations with a pooled correlation in the covariance term; it holds its level better than Hotelling's t.

Statistic
3.205
p-value
0.0014
Steiger correlation comparison tests on 40 people measured on x, y and z: z = 3.20, p = .001, Δr = 0.63. The p-value is below α = .050, so the data are hard to reconcile with H0.

Steiger correlation comparison tests on 40 people measured on x, y and z: z = 3.20, p = .001, Δr = 0.63. The p-value is below α = .050, so the data are hard to reconcile with H₀.

Question and hypotheses

H0: two dependent population correlations are equal.

Assumptions

Independent multivariate observations and adequate sample size; the displayed Steiger form concerns overlapping correlations.

Formula

Z=[atanh⁡(rXY)−atanh⁡(rXZ)]n−32−2cc=rYZ(1−2rˉ2)−rˉ2(1−2rˉ2−rYZ2)/2(1−rˉ2)2\begin{gathered}Z=\frac{[\operatorname{atanh}(r_{XY})-\operatorname{atanh}(r_{XZ})]\sqrt{n-3}}{\sqrt{2-2c}}\\[5pt] c=\frac{r_{YZ}(1-2\bar r^2)-\bar r^2(1-2\bar r^2-r_{YZ}^2)/2}{(1-\bar r^2)^2}\end{gathered}

Parameters and notation

r̄=(rXY+rXZ)/2. Nonoverlapping dependent correlations require all six pairwise correlations and a different covariance expression.

Structure of the method

Transform the two dependent correlations with Fisher atanh and estimate their covariance using the specified Steiger formulation. For overlapping correlations, the third pairwise correlation enters the covariance adjustment; nonoverlapping dependent correlations involve four variables and a different expression.

Estimated and nuisance parameters

Estimate the complete relevant correlation matrix on a common sample. The overlapping form uses three correlations and their average; the nonoverlapping form needs six pairwise correlations. These are jointly estimated quantities, not user-tuned hyperparameters or independent inputs with unrelated sample sizes.

Settings and design choices

Declare whether the correlations overlap, name the Steiger variant, and choose alternative direction and significance level. Check positive semidefiniteness of the supplied correlation matrix. Selecting among dependent-correlation methods by their smallest p-value requires adjustment and is not a defensible default.

Fitting and adaptation

Recompute all relevant correlations and their sampling-covariance estimate for a new dataset. If bootstrapping, resample complete multivariate rows so dependence among correlations is retained. Neural fine-tuning does not apply; a different overlap structure requires a different computational formula, not parameter retuning.

Sensitivity and robustness

Near-boundary correlations create unstable atanh values and covariance estimates. Small samples, nonnormality, and differing missing-data patterns undermine the approximation. The shared label Steiger does not guarantee identical formulas across publications or software, so record the exact implementation and null difference.

How to use and calibrate

Use a normal reference for the specified Steiger variant. Identify whether correlations overlap.

Example application

Compare two dependent associations measured in the same study.

Interpretation and pitfalls

Watch out

“Steiger test” is a family label; applying the overlapping formula to four distinct variables is invalid.

What changed in edition 2

  • New sections: structure of the method, estimated and nuisance parameters, settings and design choices, fitting and adaptation, sensitivity and robustness.

Python and R

Two overlapping correlations from the same sample; r.kh is the correlation between the two nonshared variables. The 3×3 correlation matrix must be feasible.

Python · invokes R

Not run — Executed end to end through Rscript · needs Python standard library + Rscript; R packages: cocor

# Python launcher for the complete R implementation below.
# Requires Rscript on PATH and the listed R packages.
import shutil
import subprocess
rscript = shutil.which("Rscript")
if rscript is None:
    raise RuntimeError("Install R and make Rscript available on PATH.")
r_code = r"""
print(cocor::cocor.dep.groups.overlap(r.jk=.5,r.jh=.3,r.kh=.2,n=100,test="steiger1980"))
"""
# No shell interpolation. A failed R execution raises an error in Python.
result = subprocess.run([rscript, "--vanilla", "-"], input=r_code,
                        text=True, capture_output=True)
print(result.stdout)
if result.stderr:
    print(result.stderr)
result.check_returncode()
R

Validated — Executed successfully in the validation environment · needs cocor

print(cocor::cocor.dep.groups.overlap(r.jk=.5,r.jh=.3,r.kh=.2,n=100,test="steiger1980"))
Output
  Results of a comparison of two overlapping correlations based on dependent groups

Comparison between r.jk = 0.5 and r.jh = 0.3
Difference: r.jk - r.jh = 0.2
Related correlation: r.kh = 0.2
Group size: n = 100
Null hypothesis: r.jk is equal to r.jh
Alternative hypothesis: r.jk is not equal to r.jh (two-sided)
Alpha: 0.05

steiger1980: Steiger's (1980) modification of Dunn and Clark's z (1969) using average correlations
  z = 1.7803, p-value = 0.0750
  Null hypothesis retained

Sources

Statistics guide v4 (historical):
Python: Executed end to end through Rscript · R: Executed successfully in the validation environment
Reference's record:
Edition 2 review: Python: skip · R: not executed (Rscript unavailable); why not run: Python: Python-to-R bridge; Rscript is unavailable. R code was not executed. Python: Not run in the reference's review: Python-to-R bridge; Rscript is unavailable. R code was not executed. R: Reviewed but not run: R wasn't available to the reference's authors.

From the CodeSplash statistics guide (v4), entry 083, updated from the reference's edition 2 (reviewed 14 November 2026) as STAT083.