Mathwords logoMathwords

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 aa be the estimated slope from regressing MM on XX, and let bb be the estimated slope of MM from regressing YY on both XX and MM. Their standard errors are sas_a and sbs_b. The Sobel test treats the indirect effect abab as approximately normal. It estimates the standard error of abab with the first-order delta method and tests H0:ab=0H_0: ab = 0 using the statistic z=ab/b2sa2+a2sb2z = ab / \sqrt{b^2 s_a^2 + a^2 s_b^2}. Two variants change the standard error: Aroian's version adds the term sa2sb2s_a^2 s_b^2 under the square root, and Goodman's version subtracts it. Some software reports all three together as the Sobel-Goodman tests.

Key Formula

z=abb2sa2+a2sb2z = \frac{ab}{\sqrt{b^2 s_a^2 + a^2 s_b^2}}
Where:
  • aa = Slope of X in the regression of the mediator M on X
  • bb = Slope of M in the regression of Y on both X and M
  • sas_a = Standard error of a
  • sbs_b = Standard error of b
  • abab = Estimated indirect (mediated) effect of X on Y
  • zz = 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 a=0.4a = 0.4 with sa=0.1s_a = 0.1. Regressing Y on X and M together gives b=0.3b = 0.3 with sb=0.1s_b = 0.1. Use the Sobel test at the 0.05 level.
Step 1: Multiply the two path coefficients to estimate the indirect effect.
ab=(0.4)(0.3)=0.12ab = (0.4)(0.3) = 0.12
Step 2: Compute the Sobel standard error. Each product inside the root pairs one coefficient with the other path's standard error.
SEab=(0.3)2(0.1)2+(0.4)2(0.1)2=0.0009+0.0016=0.0025=0.05SE_{ab} = \sqrt{(0.3)^2(0.1)^2 + (0.4)^2(0.1)^2} = \sqrt{0.0009 + 0.0016} = \sqrt{0.0025} = 0.05
Step 3: Divide to get zz. Then find the two-tailed p-value from the standard normal distribution.
z=0.120.05=2.4,p=2P(Z≥2.4)≈0.016z = \frac{0.12}{0.05} = 2.4, \qquad p = 2P(Z \ge 2.4) \approx 0.016
Answer: The statistic is z=2.4z = 2.4 and p≈0.016<0.05p \approx 0.016 < 0.05, so you reject H0:ab=0H_0: ab = 0. 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 abab, because the sampling distribution of a product of two estimates is usually skewed in small samples.

Common Mistakes

Mistake: Taking bb from a simple regression of Y on M alone.
Correction: The coefficient bb must come from a regression of Y on both X and M. If you leave X out, bb also picks up the part of the M–Y link that comes from X, so the estimate of the indirect effect is biased.

Related Terms