CAssociation · Guide test 083
Steiger correlation comparison tests
Compare dependent correlations while accounting for their overlap and sampling covariance.
Do it in CodeSplash
In the app, set it up in Analyze with this method:
- Compare two correlations (Fisher z, Williams, Steiger) — Is one correlation stronger than another?
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
Alternative
Your data
Simulated with known correlations| # | x | y | z |
|---|---|---|---|
| 1.000 | −0.916 | −0.686 | −1.104 |
| 2.000 | −0.033 | 0.738 | 0.824 |
| 3.000 | 0.201 | −0.064 | 0.266 |
| 4.000 | 0.307 | 0.551 | −1.076 |
| 5.000 | 0.762 | 0.824 | 1.715 |
| 6.000 | 0.442 | 0.333 | −1.354 |
| 7.000 | 0.207 | −0.591 | −0.606 |
| 8.000 | 2.330 | 0.657 | 0.308 |
| 9.000 | −0.092 | 0.445 | −0.125 |
| 10.000 | 1.696 | 1.290 | −0.049 |
| 11.000 | −0.139 | −0.790 | 0.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
- The reference: how z varies across samples when H₀ is true.
- Your statistic, from the data above.
- The p-value: the area at least as extreme as yours (p = .001).
- The hatched rejection region at α = .050: statistics landing here reject H₀.
The formula
With your numbers
- the covariance of the two Fisher z's, from the pooled correlation
- 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 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
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.
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()
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
- cocor — cocor · cocor.dep.groups.overlapAuthor documentation/source reviewed: cocor 1.1-4.search.r-project.org
- cocor — cocor · cocor.dep.groups.nonoverlapAuthor documentation/source reviewed: cocor 1.1-4.search.r-project.org
- cocor.dep.groups.overlapsearch.r-project.org
- cocor.dep.groups.nonoverlapsearch.r-project.org
- 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.