AI Glossary / Causal inference and experimentation / Intermediate
Granger causality
Definition
Granger causality is a predictive relationship between time series: the past of one series helps predict another beyond the information already included in a specified comparison model. It does not, by itself, prove that intervening on the first series would change the second.
What it means
Suppose yesterday's enquiry volume improves forecasts of today's orders after accounting for past orders. Enquiries may Granger-cause orders relative to that information set and modeling framework. The terminology concerns predictive ordering, not automatically a physical or social mechanism.
The result depends on which variables, lags and model forms are considered. A shared external influence can produce predictive relationships, and excluding an important series may change the conclusion.
The direction can be one-way, two-way or absent under the chosen test. Failure to find evidence does not prove that no causal connection exists; the data or model may lack the ability to detect the relevant relationship.
How it works
A common linear test compares an autoregressive model for Y using its own past with an expanded model that also includes past X. The null hypothesis sets the coefficients of the added X lags to zero. An appropriate statistical test assesses whether those lags contribute evidence of predictive information under the model assumptions.
Choose lag length carefully and inspect time-series properties, residual behavior and relevant additional variables. Trends, nonstationarity, cointegration, structural changes and timing errors can require different modeling choices. Out-of-sample forecasting checks can complement an in-sample test. Clearly report the direction tested and the conditioning information, since a result is not independent of those choices.
Three practical examples
- A demand analyst tests whether earlier enquiries add information to forecasts based on past orders.
- An engineer studies whether one sensor's lagged readings improve prediction of another sensor's measurements.
- A researcher compares predictive relationships among operational time series while accounting for seasonal patterns and other relevant signals.
Think of it this way
Think of one clock giving an earlier warning of an event than another. The earlier signal can help prediction without being the mechanism that produces the event. The analogy highlights timing and information, but a Granger analysis requires a defined statistical model and information set, not merely a visual impression that one line on a chart moves first.
Worked example
Suppose a baseline forecasting model is Yt=0.7Yt−1 plus an error term. An expanded model adds 0.2Xt−1. The question is whether lagged X contributes predictive information after the past of Y is included, not merely whether X and Y are correlated at the same time.
In an invented validation exercise, the baseline has mean squared forecast error 25 and the expanded model 20. That is a 20% reduction relative to the baseline. This practical comparison suggests predictive value, but it is not itself a complete formal Granger test and does not establish an intervention effect.
For example, an unmeasured campaign might affect X earlier than Y. Manipulating X alone could then have no effect on Y despite its forecasting usefulness. Formal testing and causal interpretation require separate attention to assumptions and alternative explanations.
Illustrative case study
Fictional case: Laurel Commerce finds that search activity predicts later product orders. The analytics team reports a Granger relationship after choosing a lag structure. A manager proposes artificially increasing the search metric to drive sales.
The team clarifies that the result supports a forecasting signal, not necessarily an intervention on the metric. It checks seasonality, campaigns and timing alignment, then evaluates forecasts on later data. If management wants to assess an actual search-related intervention, it needs a separate causal design. The case illustrates the boundary between prediction and action, without asserting a real commercial effect.
Common misconceptions and mistakes
Granger causality is not synonymous with causation in the intervention sense. Temporal precedence alone is insufficient, and an omitted common influence can create predictive relationships.
Do not search many lag choices and report only a favorable p-value without accounting for the selection. Check which column or argument a software routine treats as the target; reversing them reverses the hypothesis. A nonsignificant result does not prove absence of every relationship. Basic linear tests can miss nonlinear effects, and nonstationary data require appropriate methods rather than automatic application of a familiar routine.
Business use
The method can help organizations assess leading indicators and build time-series forecasting models. It is most useful when data are reliably time-stamped, the information available at prediction time is clear and the relationship is evaluated under realistic operating conditions.
Report the added predictive value and its stability, not only a significance label. Keep future information out of predictor construction and evaluate forecasts chronologically. Monitor whether the relationship changes after policy or market shifts. If the business decision is to manipulate a variable, distinguish that causal question from the forecasting result and seek evidence designed to support the intervention.
People also ask
Does Granger causality prove an intervention effect?
No. It establishes a predictive notion under specified assumptions.
Can two series Granger-cause each other?
Yes, each may add predictive information about the other.
Does no significant result prove independence?
No. It concerns a particular hypothesis, model, lag structure and dataset.
Check your understanding
Past X improves forecasts of Y, but an unmeasured event drives X first and Y later. Is changing X guaranteed to change Y?
Answer: No. X may be an early indicator of the shared event rather than a causal mechanism affecting Y. Predictive usefulness and intervention effects are different claims.
Related terms
- Time series
- Vector Autoregression
- Stationarity
- Cointegration
- Forecasting
- Causal inference
- autoregression
- lag
- leading indicator
Learn next
Learn autoregressive models and chronological validation next. Compare a target-only forecast with one using another series' past, then inspect timing and omitted common influences. Read the exact null hypothesis of the chosen implementation before interpreting its direction or p-value.
More in Causal inference and experimentation
- False positive rate - False positive rate is the proportion of actual negative cases that a binary classifier incorrectly labels positive.
- Fowlkes-Mallows scores - Fowlkes-Mallows scores compare two partitions of the same observations by examining which pairs are grouped together.
- Gini impurity - Gini impurity measures how mixed the class labels are within a group of observations, commonly a node in a classification tree.
- Hamming - Hamming is a name attached to several distinct concepts, including Hamming distance, Hamming loss, Hamming codes, and the Hamming window.
- Hamming distance - Hamming distance counts the positions at which two aligned sequences of equal length contain different symbols.
- Hamming loss - Hamming loss measures the fraction of individual label decisions that are incorrect.
Sources
C. W. J. Granger, Investigating Causal Relations by Econometric Models and Cross-spectral Methods: https://doi.org/10.2307/1912791 statsmodels, grangercausalitytests: https://www.statsmodels.org/stable/generated/statsmodels.tsa.stattools.grangercausalitytests.html Original-paper identity and official implementation excerpts consulted. Examples are original; full time-series and editorial review remain pending.
Previous: Grammatical relation Next: Granular computing