Skip to content

Methods · Time series · Time series mediation

Granger Mediation Analysis for Time Series

Granger mediation analysis estimates how much of the effect of a stimulus series on an outcome series passes through a mediator series when all three are observed over time. The mediator depends on the stimulus, the outcome depends on the stimulus and the mediator, and the errors of the two equations follow a vector autoregression, which absorbs the temporal dependence. Because the correlation between the two innovations cannot be learned from a single series, it is fixed by the analyst, by default at zero, and varied in a sensitivity analysis.

그레인저 매개분석은 자극, 매개, 결과 세 계열을 시간에 따라 관측할 때 자극이 결과에 미치는 효과 가운데 매개 계열을 거쳐 전달되는 부분을 추정합니다. 매개는 자극에, 결과는 자극과 매개에 의존하고, 두 식의 오차는 벡터자기회귀를 따라 시간적 의존성을 흡수합니다. 두 혁신 사이의 상관은 한 계열만으로 알 수 없으므로 분석자가 정하며(기본값 0), 민감도 분석에서 그 값을 바꾸어 봅니다.

How much of the effect of a stimulus on an outcome over time is carried through a mediator?

시간에 따른 자극이 결과에 미치는 효과 가운데 얼마가 매개변수를 거쳐 전달됩니까?

The method returns the stimulus-to-mediator effect A, the mediator-to-outcome effect B, the direct effect C, the indirect effect AB and the total effect with standard errors, confidence intervals and p-values, and the indirect effect under a range of assumed innovation correlations.

When to use Granger Mediation Analysis for Time Series

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

In a Granger mediation model with VAR([value]) errors (T = [value]), the indirect effect was AB = [value] (SE [value], p = [value]) and the direct effect C = [value] (SE [value], p = [value]).

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 3 reference tests compare the results with statsmodels, SciPy and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-4.

    독립 계산. statsmodels·SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 3건 통과(허용오차 1e-4).

Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.

허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.

Run Granger Mediation Analysis for Time Series on Quorant

Data you need
a table (CSV or Excel) with a treatment indicator, mediator and an outcome variable
Price
400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
Checking
Compared with independent computations
Before you pay
A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.

Method ID Q53122 · Reviewed 2026-10-25