Sobel Test — Definition, Formula & Example
The Sobel test is a z-test that checks whether a variable X affects an outcome Y partly through a middle variable M, called a mediator. It asks whether the indirect path X → M → Y is larger than you would expect from chance alone.
Let be the estimated slope from regressing on , and let be the estimated slope of from regressing on both and . Their standard errors are and . The Sobel test treats the indirect effect as approximately normal. It estimates the standard error of with the first-order delta method and tests using the statistic . Two variants change the standard error: Aroian's version adds the term under the square root, and Goodman's version subtracts it. Some software reports all three together as the Sobel-Goodman tests.
Key Formula
Where:
- = Slope of X in the regression of the mediator M on X
- = Slope of M in the regression of Y on both X and M
- = Standard error of a
- = Standard error of b
- = Estimated indirect (mediated) effect of X on Y
- = Test statistic, compared with the standard normal distribution
Worked Example
Problem: A researcher studies whether weekly tutoring hours (X) raise exam scores (Y) by increasing homework completion (M). Regressing M on X gives with . Regressing Y on X and M together gives with . Use the Sobel test at the 0.05 level.
Step 1: Multiply the two path coefficients to estimate the indirect effect.
Step 2: Compute the Sobel standard error. Each product inside the root pairs one coefficient with the other path's standard error.
Step 3: Divide to get . Then find the two-tailed p-value from the standard normal distribution.
Answer: The statistic is and , so you reject . The data suggest that homework completion carries part of the effect of tutoring on exam scores.
Why It Matters
Mediation analysis is standard in psychology, public health, and education research. Studies use it to explain how an intervention works, not just whether it works. The Sobel test is the classic first method taught in graduate statistics courses. Modern papers often report it alongside bootstrap confidence intervals for , because the sampling distribution of a product of two estimates is usually skewed in small samples.
Common Mistakes
Mistake: Taking from a simple regression of Y on M alone.
Correction: The coefficient must come from a regression of Y on both X and M. If you leave X out, also picks up the part of the M–Y link that comes from X, so the estimate of the indirect effect is biased.
