Wright path tracing rule (source code)

= Wright path tracing rule
{c}

<Wright path tracing rule> computes <covariances> in a <linear structural equation model> by adding contributions along the admissible paths of its graph. For an acyclic system $X=BX+\varepsilon$ with centered disturbances and disturbance <covariance matrix> $\Omega$,
$$
X=(I-B)^{-1}\varepsilon,\qquad
\operatorname{Cov}(X)=(I-B)^{-1}\Omega(I-B)^{-T}.
$$
Acyclicity makes $B$ nilpotent in a topological ordering, so $(I-B)^{-1}=I+B+\cdots+B^{p-1}$. Every matrix entry sums products of coefficients along directed paths. Substituting this finite expansion into the <covariance> formula gives the path-tracing construction. With uncorrelated disturbances, contributions join two directed paths at a common disturbance; correlated disturbances add the corresponding cross-disturbance terms.

For a worked example, let $X=\varepsilon_X$, $M=aX+\varepsilon_M$ and $Y=bM+cX+\varepsilon_Y$, with mutually uncorrelated centered disturbances. Substitution gives $Y=(ab+c)X+b\varepsilon_M+\varepsilon_Y$, hence
$$
\operatorname{Cov}(X,Y)=(ab+c)\operatorname{Var}(X).
$$
The direct path contributes $c$ and the mediated path contributes $ab$, each times the source <variance>. For standardized variables this becomes a sum of coefficient products for a <correlation coefficient>. Reading those coefficients as <causal effects> requires the structural <intervention> interpretation; an arbitrary covariance-fitting graph does not supply it by itself.