- Introduced by
- Brodersen, Gallusser, Koehler, Remy & Scott (2015); adapted for policy evaluation contexts
- Year
- 2015
- Type
- Bayesian counterfactual / time-series
- Family
- Quasi-experimental / causal inference
What does it do?
Policy Evaluation Causal Impact Analysis applies the Bayesian structural time-series (BSTS) framework of Brodersen et al. (2015) to estimate the causal effect of a policy on an aggregate outcome observed over time.
The model is fitted to pre-policy data and co-varying control series, and it projects what the outcome would have been had the policy not been enacted. The gap between observed and projected post-policy values is the estimated policy effect.
The intuition behind the method
A regulation, subsidy or reform is often adopted by a whole region or sector at once, so no randomized control group exists. The method fits a Bayesian time-series model to the period before the policy, using related series that the policy did not affect as predictors, and then projects that model forward. Comparing the observed post-policy trajectory with this projection estimates the effect. The posterior distribution around the projection shows how much uncertainty remains.
History
Brodersen et al. (2015), in the Annals of Applied Statistics, presented the approach as a Bayesian state-space method for inferring causal impact. They framed the counterfactual as a synthetic control and contrasted the approach with difference-in-differences. Their illustration estimated the effect of an online advertising campaign on search-related site visits, and they released the CausalImpact R package. Application to policy evaluation builds on this framework. Abadie et al. (2010), which develops synthetic control methods for comparative case studies, is a related approach.
When to use it
Choose this method when a policy took effect at a known date for a whole unit such as a country, state, city or sector; when the outcome is observed as a regular time series; when the pre-policy record is long enough to estimate the trend and any seasonal pattern the model includes; and when control series exist that the policy did not affect and that move with the outcome before it. Do not use it when the pre-policy record is short, when no credible control covariates exist, when the policy phased in gradually so that its start date is unclear, or when the outcome is cross-sectional. For gradual rollouts, interrupted time series or difference-in-differences that exploit variation in timing across units are usually more appropriate.
Limitations and considerations
- The counterfactual is only as good as the control covariates. If no series both tracks the outcome before the policy and is unaffected by it, the projection is poorly identified.
- A short pre-policy record gives the model little information about the trend and about any seasonal pattern it includes, so the projection and its intervals become less reliable.
- The method cannot separate the policy from other events that coincide with its start, so the estimate combines their effects.
- Inference relies on MCMC posterior sampling, which adds computation and requires checking convergence and model fit beyond standard regression output.
- Validity rests on assumptions that cannot be fully verified from the data: the control series are unaffected by the policy and by any spillovers from it; the relationship between the outcome and the controls estimated before the policy would have continued unchanged without it; no other shock hits the treated unit at the same time; and the start date is known, with no anticipation of the policy before it. If any of these fails, the impact estimate is biased.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Builds the counterfactual from the data, using a Bayesian regression on candidate control series rather than a hand-picked comparison group.
- Returns posterior distributions for pointwise and cumulative impact, so the uncertainty around the estimate is reported directly.
- The structural decomposition into trend, seasonal and regression components can accommodate the trends and seasonal patterns common in aggregate policy outcomes.
- Suits aggregate data where randomisation at the unit level is not possible, as in the original online advertising application.
- Plots of observed against counterfactual values show the estimate visually and let readers check the pre-period fit.
Applications
- Estimating the effect of a public health regulation (e.g., smoking ban, alcohol tax) on population-level health outcomes such as hospital admissions.
- Evaluating the labour market impact of a minimum wage increase or active labour market programme at the regional level.
- Assessing whether an environmental policy (emission cap, plastic bag ban) reduced measurable pollution indicators.
- Measuring the effect of a fiscal stimulus or tax reform on aggregate economic indicators like GDP growth or consumer spending.
- Evaluating the impact of educational policy interventions (curriculum reform, funding changes) on system-wide test score trends.
How it works
How it works
Select the outcome series (for example an employment rate, a crime count or a health indicator) and control covariates, which are aggregate series the policy did not affect. The pre-policy window must be long enough to show the outcome's trend and, if the model includes a seasonal component, its seasonal pattern. The control series must track the outcome in that window. Check both before fitting the model.
Fit a Bayesian structural time-series model to the pre-policy outcome. The formula in this entry expresses the outcome as a local trend plus a regression on the control covariates, with noise. The framework can also accommodate seasonal components, and a seasonal term can be added when the outcome has a seasonal cycle; the formula shown here does not include one. Priors on the regression coefficients, described in the source as empirical priors within a fully Bayesian treatment, temper the estimated coefficients on the control series and limit the risk of fitting noise in weak controls.
Formula
y_t = \mu_t + \mathbf{x}_t^\top \boldsymbol{\beta} + \varepsilon_t, \quad \mu_t = \mu_{t-1} + \delta_{t-1} + \eta_tUse the fitted model to forecast the outcome over the post-policy period. Because inference is Bayesian, the forecast is a posterior predictive distribution rather than a single line, so the counterfactual comes with an interval.
Formula
\hat{y}_t^{\text{counter}} = \mathbb{E}[y_t \mid \mathbf{x}_t, \text{pre-policy data}]At each post-policy time t, the pointwise impact is the observed outcome minus the counterfactual forecast. Each pointwise estimate inherits the uncertainty of the counterfactual distribution.
Formula
\tau_t = y_t - \hat{y}_t^{\text{counter}}, \quad t > T_0Sum the pointwise impacts over the post-policy window to obtain the cumulative effect. The window should match the expected timing of the policy's mechanism. A relative effect can be expressed against the total counterfactual over the same window.
Formula
\text{Cumulative impact} = \sum_{t=T_0+1}^{T} \tau_tCommon pitfalls
- Including control covariates that the policy itself affected contaminates the counterfactual and can bias the impact estimate in either direction.
- Skipping the pre-period fit check: if the model fits the pre-policy data poorly, the projection is unreliable however wide the credible intervals are.
- Reading the cumulative estimate as a clean policy effect when a major concurrent shock falls within the rollout window.
- Choosing the post-policy window for statistical convenience rather than the expected lag of the policy's mechanism.
- Reporting only the posterior mean without its credible interval, which can overstate the precision of the estimate.
Frequently asked questions
How does this differ from standard Interrupted Time Series analysis?
Standard interrupted time series models a single outcome series and estimates a level or slope change at the intervention point. Causal Impact additionally uses control covariates, which are related time series unaffected by the policy, to construct a richer synthetic counterfactual. This can improve precision when the pre-period is moderately short or volatile.
How long a pre-policy record do I need?
The record must cover enough of the outcome's trend, and of any seasonal cycle the model includes, for the model to estimate them. A short record leaves the model poorly constrained and widens credible intervals to the point of limited use. The formula shown on this page has no seasonal term, so a seasonal pattern must either be absorbed by the control covariates or added to the model as a seasonal component, which the framework accommodates. Check the pre-period fit before relying on the post-policy estimate.
What makes a valid control covariate?
A control series should (1) correlate with the outcome during the pre-policy period, (2) not have been affected by the policy itself, and (3) not be causally downstream of the outcome. Examples include the same outcome measured in an unaffected region, or a closely related aggregate indicator unconnected to the intervention.
Can I use this method if the policy was rolled out gradually?
Gradual rollouts are problematic because the intervention date is ambiguous, which undermines the sharp pre/post split the model requires. In such cases, interrupted time series with a dose-response specification or difference-in-differences exploiting variation in rollout timing across units is typically more appropriate.
How do I handle a concurrent event that coincides with the policy?
A concurrent shock that affected only the treated unit and not the control covariates cannot be separated from the policy effect, so the estimate conflates both. Document the confounding event explicitly, report sensitivity analyses over different post-intervention windows, and temper causal language accordingly.
Related methods
Sources
Brodersen, K. H., Gallusser, F., Koehler, J., Remy, N., & Scott, S. L. (2015). Inferring causal impact using Bayesian structural time-series models. Annals of Applied Statistics, 9(1), 247-274.
Open DOI referenceAbadie, A., Diamond, A., & Hainmueller, J. (2010). Synthetic control methods for comparative case studies: Estimating the effect of California's tobacco control program. Journal of the American Statistical Association, 105(490), 493-505.
Open DOI reference