Algorithm Search⌘K

Definitioncore

Granger causality

Also called Granger causality test.

X Granger-causes Y when past values of X improve the prediction of Y beyond the past of Y alone. It is tested by an F-test in a vector autoregression.

Granger causality is a statement about prediction. A series XX Granger-causes a series YY if the past of XX helps to forecast YY beyond what the past of YY (and of any other series in the information set) already gives. It is named after Clive Granger, who defined it in 1969 by comparing the variances of prediction errors. In a vector autoregression it holds exactly when some lag coefficient of XX in the equation for YY is nonzero, so it is tested by an F or Wald test on those coefficients. Despite the name, it is not causation in the sense of interventions: a hidden common cause, or a variable that reacts to expectations, produces Granger causality with no causal effect at all. For causal effects use a structural causal model or the potential outcomes framework.

Definition

Let {(Yt,Xt,Zt)}\{(Y_t, X_t, Z_t)\} be jointly stationary with finite variances, where ZZ holds any other series in the information set. Let Ht\mathcal{H}_{t} be the closed linear span of {Ys,Xs,Zs:s≤t}\{Y_s, X_s, Z_s : s \le t\} and Ht−X\mathcal{H}_{t}^{-X} the span without the XX terms. For a space G\mathcal{G}, let σ2(Yt+1∣G)\sigma^2(Y_{t+1} \mid \mathcal{G}) be the mean squared error of the best linear predictor of Yt+1Y_{t+1} in G\mathcal{G} (plus a constant).

  1. XX Granger-causes YY (with respect to the information set) if σ2(Yt+1∣Ht)<σ2(Yt+1∣Ht−X)\sigma^2(Y_{t+1} \mid \mathcal{H}_t) < \sigma^2(Y_{t+1} \mid \mathcal{H}_t^{-X}). Otherwise XX does not Granger-cause YY, and the two variances are equal.
  2. There is feedback if XX Granger-causes YY and YY Granger-causes XX.
  3. There is instantaneous causality between XX and YY if adding the current Xt+1X_{t+1} to Ht\mathcal{H}_t lowers the error variance for Yt+1Y_{t+1}. This happens exactly when the innovations of XX and YY are correlated, so it has no direction.
  4. XX causes YY at horizon hh if the past of XX lowers the error variance of the hh-step forecast of Yt+hY_{t+h} (Dufour and Renault 1998).

The nonlinear version replaces linear predictors by conditional distributions: XX does not Granger-cause YY when Yt+1Y_{t+1} is conditionally independent of (Xs)s≤t(X_s)_{s \le t} given (Ys,Zs)s≤t(Y_s, Z_s)_{s \le t}. The definition always depends on the information set: adding or removing a series ZZ can create or destroy Granger causality between XX and YY.

In a VAR. Let (Yt,Xt)(Y_t, X_t) follow a stable VAR(pp), with blocks AiYXA_i^{YX} of the coefficient matrices and Σ\Sigma positive definite. Then XX does not Granger-cause YY if and only if AiYX=0A_i^{YX} = 0 for i=1..pi = 1..p. The "if" part has a short proof: if all AiYX=0A_i^{YX} = 0, the YY equations read Yt=cY+∑iAiYYYt−i+εYtY_t = c_Y + \sum_iA_i^{YY}Y_{t-i} + \varepsilon_{Yt}, and εYt\varepsilon_{Yt} is uncorrelated with all past values. So the best linear predictor from the full past is cY+∑iAiYYYt−ic_Y + \sum_iA_i^{YY}Y_{t-i}, which uses only the past of YY, and both error variances equal ΣYY\Sigma_{YY}. The same closed form shows more: the YY block is then a VAR on its own, so the hh-step forecasts of YY also use only its own past, and XX does not cause YY at any horizon. The "only if" part, that a nonzero coefficient strictly lowers the error variance, is in Lütkepohl (2005, Section 2.3). Instantaneous causality is the condition ΣYX≠0\Sigma_{YX} \neq 0.

The test

The usual test fits a VAR(pp) and tests H0H_0: A1YX=⋯=ApYX=0A_1^{YX} = \cdots = A_p^{YX} = 0.

  • Bivariate F form. Regress YtY_t on a constant, Yt−1,…,Yt−pY_{t-1}, \dots, Y_{t-p} and Xt−1,…,Xt−pX_{t-1}, \dots, X_{t-p} over T′T' usable rows (unrestricted, residual sum of squares RSSu\mathrm{RSS}_u), and again without the XX lags (RSSr\mathrm{RSS}_r). The statistic is
F=(RSSr−RSSu)/pRSSu/(T′−2p−1),F = \frac{(\mathrm{RSS}_r - \mathrm{RSS}_u)/p}{\mathrm{RSS}_u/(T' - 2p - 1)},

the regression F-test of the pp lag coefficients. Reject for large FF.

  • Wald form. In a VAR with KK series, write the restrictions as Rvec⁡B=0R\operatorname{vec}B = 0 and use W=(Rvec⁡B^)⊤[R(Σ^⊗(X⊤X)−1)R⊤]−1(Rvec⁡B^)W = (R\operatorname{vec}\hat B)^\top\left[R(\hat\Sigma \otimes (X^\top X)^{-1})R^\top\right]^{-1}(R\operatorname{vec}\hat B), with B^\hat B the equation-by-equation least squares estimate.
  • Null distribution. The regressors include lagged YY, so the F law is not exact even with Gaussian errors. For a stable VAR with IID errors, WW and pFpF converge to χp2\chi^2_p (Lütkepohl 2005, Chapter 3); the F(p,T′−2p−1)F(p, T' - 2p - 1) reference is a common small-sample choice.
  • Unit roots. If the series are integrated, the Wald test in a VAR in levels can have a nonstandard law (Sims, Stock and Watson 1990). Differencing is wrong if the series are cointegrated. Toda and Yamamoto (1995) fit a VAR(p+dmax⁡p + d_{\max}) in levels, where dmax⁡d_{\max} is the highest order of integration, and test only the first pp lags of XX; that Wald statistic is asymptotically χp2\chi^2_p whatever the integration and cointegration.
  • Lag length. Choose pp by an information criterion such as the Akaike information criterion, and check that the residuals are white. Too few lags leave the omitted dynamics in the errors and can create or hide causality.
  • Strength. Geweke (1982) measures the size of the effect by FX→Y=log⁡(σ2(Yt+1∣Ht−X)/σ2(Yt+1∣Ht))F_{X \to Y} = \log(\sigma^2(Y_{t+1} \mid \mathcal{H}_t^{-X})/\sigma^2(Y_{t+1} \mid \mathcal{H}_t)), which is 0 exactly under noncausality.

Measured size and power. All runs use seed 2026 and r=2000r = 2000 samples of T=200T = 200 points (after a burn-in of 100), p=1p = 1, an intercept, and the 5% point 3.889 of F(1,196)F(1, 196). The VAR is Y1t=0.5Y1,t−1+aY2,t−1+ε1tY_{1t} = 0.5Y_{1,t-1} + aY_{2,t-1} + \varepsilon_{1t}, Y2t=0.5Y2,t−1+ε2tY_{2t} = 0.5Y_{2,t-1} + \varepsilon_{2t} with independent standard Gaussian errors, and the test is of Y2Y_2 to Y1Y_1.

setting rejection rate
a=0a = 0 (null true) 0.0575
a=0.1a = 0.1 0.3525
a=0.2a = 0.2 0.886
two independent random walks, VAR(1) in levels (null true) 0.1665
two independent random walks, Toda-Yamamoto VAR(2), test of lag 1 only 0.0495

With r=2000r = 2000, the Monte Carlo standard error at 0.05 is 0.005. The stationary null rate 0.0575 is within 2 standard errors of 0.05. The levels test on random walks rejects a true null three times too often, while the Toda-Yamamoto version keeps its size. In one sample with a=0.5a = 0.5, F=53.85F = 53.85 for Y2Y_2 to Y1Y_1, and F=0.467F = 0.467 (p-value 0.495) for Y1Y_1 to Y2Y_2. These numbers are measured, not derived.

Examples and non-examples

  • A VAR by hand. Let Y1t=12Y1,t−1+12Y2,t−1+ε1tY_{1t} = \frac12Y_{1,t-1} + \frac12Y_{2,t-1} + \varepsilon_{1t} and Y2t=12Y2,t−1+ε2tY_{2t} = \frac12Y_{2,t-1} + \varepsilon_{2t}, with uncorrelated unit-variance errors. Then Y2Y_2 Granger-causes Y1Y_1 and Y1Y_1 does not Granger-cause Y2Y_2 (the coefficient of Y1Y_1 in the second equation is 0). In numbers: Var⁡Y2=1/(1−14)=4/3\operatorname{Var}Y_2 = 1/(1 - \frac14) = 4/3; the covariance c=Cov⁡(Y1,Y2)c = \operatorname{Cov}(Y_1, Y_2) solves c=14c+14⋅43c = \frac14c + \frac14 \cdot \frac43, so c=4/9c = 4/9; and Var⁡Y1=v\operatorname{Var}Y_1 = v solves v=14v+14⋅43+2⋅14⋅49+1v = \frac14v + \frac14 \cdot \frac43 + 2 \cdot \frac14 \cdot \frac49 + 1, so v=56/27v = 56/27. With the full past, the one-step error variance for Y1Y_1 is 1. With only Y1,t−1Y_{1,t-1}, the predictor is 34/2756/27Y1,t−1\frac{34/27}{56/27}Y_{1,t-1}, because Cov⁡(Y1t,Y1,t−1)=12v+12c=34/27\operatorname{Cov}(Y_{1t}, Y_{1,t-1}) = \frac12v + \frac12c = 34/27, and its error variance is 56/27−(34/27)2/(56/27)=55/42≈1.309556/27 - (34/27)^2/(56/27) = 55/42 \approx 1.3095. With the whole past of Y1Y_1, it is (3+5)/4≈1.3090(3 + \sqrt5)/4 \approx 1.3090: here (1−12B)2Y1t(1 - \frac12B)^2Y_{1t} is an MA(1) with autocovariances 1.5 and −0.5-0.5, whose innovation variance is −0.5/θ-0.5/\theta with θ=(−3+5)/2\theta = (-3 + \sqrt5)/2. Geweke's measure is log⁡1.309=0.269\log 1.309 = 0.269.
  • A hidden common cause (not causation). Let WtW_t, utu_t and vtv_t be independent white noise with variance 1, Xt=Wt−1+utX_t = W_{t-1} + u_t and Yt=Wt−2+vtY_t = W_{t-2} + v_t. The past of YY is uncorrelated with YtY_t, so its own-past error variance is Var⁡Yt=2\operatorname{Var}Y_t = 2. Adding Xt−1=Wt−2+ut−1X_{t-1} = W_{t-2} + u_{t-1}, with covariance 1 and variance 2, lowers it to 2−12=1.52 - \frac12 = 1.5. So XX Granger-causes YY. But YY is not a function of XX: setting XX to any value by intervention leaves YY unchanged. If WW is added to the information set, the causality disappears.
  • Expectations (reverse direction). Weather forecasts Granger-cause rain, and stock prices Granger-cause dividends, because the first series reacts to information about the second before the second happens.
  • Noncausality at one step but not at two. With three series, let XtX_t be white noise, Zt=Xt−1+e1tZ_t = X_{t-1} + e_{1t} and Yt=Zt−1+e2tY_t = Z_{t-1} + e_{2t}. Given the past of YY and ZZ, the past of XX does not help to forecast Yt+1=Zt+e2,t+1Y_{t+1} = Z_t + e_{2,t+1}. But Yt+2=Xt+e1,t+1+e2,t+2Y_{t+2} = X_t + e_{1,t+1} + e_{2,t+2}, so XtX_t helps two steps ahead. This is why Dufour and Renault (1998) define causality at each horizon. With two series, noncausality at one step implies it at all horizons, as shown above.
  • Cointegration forces causality. If Y1Y_1 and Y2Y_2 are cointegrated with ∇Yt=αβ⊤Yt−1+∑i=1p−1Γi∇Yt−i+εt\nabla Y_t = \alpha\beta^\top Y_{t-1} + \sum_{i=1}^{p-1}\Gamma_i\nabla Y_{t-i} + \varepsilon_t, β=(1,−b)⊤\beta = (1, -b)^\top, b≠0b \neq 0 and α≠0\alpha \neq 0, then the levels VAR has ∑iAi=I+αβ⊤\sum_iA_i = I + \alpha\beta^\top. Its off-diagonal entries are −α1b-\alpha_1b and α2\alpha_2, and at least one of them is nonzero. So some off-diagonal lag coefficient is nonzero, and there is Granger causality in at least one direction (Granger 1988).
  • Non-example: only instantaneous correlation. If (Yt,Xt)(Y_t, X_t) is white noise with Corr⁡(Yt,Xt)=0.8\operatorname{Corr}(Y_t, X_t) = 0.8, neither series Granger-causes the other, because no past value helps. There is instantaneous causality, which has no direction.
  • Non-example: missed by sampling. If XX affects YY within an hour and the data are daily, the effect shows up as instantaneous correlation, and Granger causality may be absent at the daily frequency. Temporal aggregation and skip sampling can also create causality in the wrong direction.
  • Sims causality. Sims (1972) showed that, for jointly stationary series under regularity conditions, YY does not Granger-cause XX if and only if, in the regression of YtY_t on past, current and future values of XX, all coefficients on future XX are 0. This gives a second test.
  • Structural causal model. Causation means that intervening on XX changes the distribution of YY. In a time-series structural causal model, a lagged edge from XX to YY shows up as Granger causality given all other series only under strong assumptions: every common cause is observed, there are no effects within one sampling period, and the lag length is right. Without them, Granger causality and causation can differ in both directions, as the examples show.
  • Potential outcomes framework. A causal effect compares outcomes under different treatments. Granger causality is a property of the observed joint distribution and makes no statement about outcomes under a treatment that was not given.
  • Vector autoregression and impulse responses. Granger noncausality is a zero restriction on the VAR coefficients. Then the response of YY to every shock that enters only XX is 0 at all horizons in a bivariate system.
  • Feedback measures. Geweke (1982) splits the total linear dependence between XX and YY into feedback from XX to YY, feedback from YY to XX and instantaneous feedback, and gives a frequency-domain version.
  • Cointegration. Cointegrated series have causality in at least one direction, and the test must then use the Toda-Yamamoto setup or the error correction form.

References

  1. C. W. J. Granger, Investigating causal relations by econometric models and cross-spectral methods, Econometrica 37(3) (1969), pages 424 to 438, the definitions of causality, feedback and instantaneous causality by the variance of the prediction error
  2. Christopher A. Sims, Money, income, and causality, American Economic Review 62(4) (1972), pages 540 to 552, the equivalence of Granger noncausality with zero coefficients on future values in a two-sided distributed lag
  3. John Geweke, Measurement of linear dependence and feedback between multiple time series, Journal of the American Statistical Association 77(378) (1982), pages 304 to 313, the measures of linear feedback in each direction and of instantaneous feedback
  4. Hiro Y. Toda and Taku Yamamoto, Statistical inference in vector autoregressions with possibly integrated processes, Journal of Econometrics 66(1-2) (1995), pages 225 to 250, the VAR in levels with extra lags, whose Wald test on the original lags is asymptotically chi-square with unit roots or cointegration
  5. Jean-Marie Dufour and Eric Renault, Short run and long run causality in time series, theory, Econometrica 66(5) (1998), pages 1099 to 1125, causality at horizon h, and how noncausality one step ahead can fail to imply noncausality further ahead with three or more series
  6. C. W. J. Granger, Some recent development in a concept of causality, Journal of Econometrics 39(1-2) (1988), pages 199 to 211, cointegrated series must have Granger causality in at least one direction
  7. Helmut Lütkepohl, New Introduction to Multiple Time Series Analysis, Springer, 2005, Section 2.3 (Granger causality and instantaneous causality in a VAR) and Chapter 3 (Wald tests of the restrictions)
  8. Christopher A. Sims, James H. Stock and Mark W. Watson, Inference in linear time series models with some unit roots, Econometrica 58(1) (1990), pages 113 to 144, the nonstandard limit laws of Wald tests in VARs in levels with unit roots

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/0PTARQ/text.yaml