Granger Causality: Forecasting, Not Causing
Granger Causality tests if one time series can forecast another, not if it causes it. It's used in econometrics to see if money supply changes predict inflation. The footgun is the name itself: it only shows predictive power, not true cause-and-effect.
The mental model
Granger Causality does not prove that X causes Y. Instead, it's a statistical test to see if the past values of time series X are useful for forecasting the future values of time series Y. If knowing X's history improves your prediction of Y, then X is said to "Granger-cause" Y. Think of it as a test for predictive power, not a philosophical proof of causation.
How it works
The test compares two statistical models. The first model attempts to predict a time series (Y) using only its own past values (its autoregressive history). The second model predicts Y using both its own past values AND the past values of another time series (X). If the second model, which includes X's history, is statistically significantly better at predicting Y than the first model, we conclude that X Granger-causes Y. The key is whether adding X reduces the forecasting error for Y.
When to use it
Use this test when you have two or more time series and want to understand their predictive relationships. It is a common tool in econometrics for exploring links between variables like GDP and employment. In system observability, you could test if historical error rates in a microservice are useful for forecasting latency spikes in a downstream dependency.
When not to use it
Do not use this test to claim true causality. This is the biggest and most common mistake. The test only reveals precedence and predictive ability, falling victim to the "post hoc ergo propter hoc" fallacy (after this, therefore because of this). It also cannot account for confounding variables; a hidden third factor, Z, could be driving both X and Y, creating a spurious relationship. It is a starting point for analysis, not the conclusion.
One canonical example
An economist wants to know if changes in a country's money supply help predict future inflation. They gather time series data for both. A Granger causality test reveals that past values of the money supply significantly improve the forecast for future inflation, even after accounting for inflation's own history. The correct conclusion is not "increasing the money supply causes inflation," but that "money supply Granger-causes inflation," meaning it is a statistically useful leading indicator.
Interview question
If a Granger causality test concludes that time series X Granger-causes time series Y, which statement accurately reflects the finding?
- a.X and Y are intrinsically linked by an unobserved common factor.
- b.X is proven to be the direct, underlying cause of Y's behavior.
- c.X consistently precedes Y, establishing a necessary condition for Y's occurrence.
- d.The historical values of X provide statistically significant predictive power for the future values of Y.Correct
Why? this is the answer
The card explicitly states that Granger Causality tests if past values of X are useful for forecasting Y, not if X causes Y. Therefore, the finding indicates predictive power. Option B represents the common misconception that the test proves direct causation.
Just read this? Test yourself on what you have been reading.
Read the original → en.wikipedia.org
- #analytics
- #statistics
- #time series
- #econometrics
You just looked this up. Could you explain it out loud?
That is the part interviews actually test. Tezvyn takes questions like this one and gives you what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Open roles that interview on analytics — each one lists the topics its interview covers.
See open roles