Inferensys

Glossary

Causal Impact

A time-series analysis methodology developed by Google that constructs a synthetic counterfactual baseline to estimate the causal effect of an intervention when a randomized control group is unavailable.
Stylish WeWork-like workspace with hot desks and document wall, professional searching through enterprise knowledge base on a mounted ultrawide display, warm industrial pendants overhead.
TIME-SERIES COUNTERFACTUAL ANALYSIS

What is Causal Impact?

A Bayesian structural time-series methodology for estimating the causal effect of an intervention by constructing a synthetic control baseline from untreated time-series data.

Causal Impact is a time-series analysis methodology developed by Google that estimates the causal effect of an intervention—such as a marketing campaign, model update, or policy change—when a randomized control group is unavailable. It constructs a synthetic counterfactual baseline by modeling the relationship between the treated time series and a set of untreated predictor time series during a pre-intervention period, then forecasts what would have occurred absent the intervention.

The framework uses Bayesian structural time-series models with spike-and-slab priors for variable selection, automatically identifying the most relevant control series. It quantifies the pointwise causal effect as the difference between observed data and the counterfactual prediction, providing posterior probability distributions over the cumulative impact rather than single point estimates. This makes it particularly valuable for observational causal inference in dynamic retail environments where A/B tests are infeasible.

SYNTHETIC CONTROL METHODOLOGY

Key Characteristics of Causal Impact

Causal Impact is a Bayesian structural time-series model developed by Google that constructs a synthetic counterfactual to estimate the causal effect of an intervention when a randomized control group is unavailable.

01

Synthetic Counterfactual Construction

The core mechanism involves building a synthetic control—a weighted combination of predictor time series that were not affected by the intervention. The model uses a Bayesian structural time-series framework to capture trend, seasonality, and covariate relationships during the pre-intervention period. This synthetic baseline represents what would have happened absent the intervention, enabling pointwise causal effect estimation as the difference between observed and predicted values.

02

Bayesian Posterior Inference

Unlike frequentist approaches that yield point estimates, Causal Impact generates full posterior distributions over the counterfactual. This provides credible intervals for the causal effect at every time point. Key outputs include:

  • Pointwise effect: The difference between actual and predicted at each time t
  • Cumulative effect: The summed impact over the entire post-intervention window
  • Posterior tail-area probability: A Bayesian analog to the p-value, indicating the likelihood of observing the effect by chance
03

Assumption of Unaffected Predictors

The validity of the synthetic control hinges on a critical assumption: the predictor time series must not be causally affected by the intervention itself. If the intervention influences both the target metric and the covariates used to build the counterfactual, the model will absorb the treatment effect into the baseline, yielding biased estimates. Common valid predictors include:

  • Macroeconomic indicators
  • Untreated geographic regions
  • Competitor performance metrics
  • Seasonally correlated but causally independent series
04

State-Space Model Components

The underlying model decomposes the time series into interpretable structural components:

  • Local linear trend: Captures evolving level and slope over time
  • Seasonality: Handles weekly, monthly, or custom periodic patterns using Fourier terms
  • Regression component: Incorporates covariate time series with static or time-varying coefficients via spike-and-slab priors for automatic variable selection This decomposition allows practitioners to diagnose whether an apparent effect is genuinely causal or an artifact of unmodeled seasonality.
05

Application to Model Updates Without Holdouts

In production ML systems, Causal Impact is particularly valuable when a global model update is deployed to all users simultaneously, making a randomized holdout group infeasible. By using untreated business metrics or external market data as predictors, teams can estimate the incremental impact of a new recommendation algorithm or pricing model on revenue, conversion, or engagement without maintaining a long-term control group.

06

Limitations and Diagnostics

Practitioners must validate model adequacy through posterior predictive checks:

  • One-step-ahead prediction errors: Should exhibit no autocorrelation in the pre-period
  • Cumulative absolute error: Should remain stable before the intervention; a pre-trend indicates poor fit
  • Sensitivity to predictor set: Results can shift with covariate selection; robustness checks with alternative predictor combinations are essential The method also assumes the relationship between predictors and the target remains stationary across the pre- and post-intervention periods.
CAUSAL IMPACT METHODOLOGY

Frequently Asked Questions

Clear, technically precise answers to the most common questions about Google's Causal Impact framework for estimating the effect of an intervention using Bayesian structural time-series models.

Causal Impact is a Bayesian structural time-series methodology developed by Google that constructs a synthetic counterfactual baseline to estimate the causal effect of an intervention when a randomized control group is unavailable. The algorithm uses a set of control time series that were not affected by the intervention to predict what would have happened to the response metric in the absence of the treatment. It works by fitting a state-space model where the response variable is modeled as a function of the control series plus latent trend and seasonal components. After the intervention point, the model generates a posterior predictive distribution over the counterfactual, and the causal effect is computed as the pointwise difference between the observed data and this synthetic baseline. The framework returns not just a point estimate but a full posterior distribution over the cumulative effect, enabling practitioners to make probabilistic statements like 'the intervention had a 99.8% probability of causing a positive lift.'

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.