Bayesian Structural Time Series with Control Series (Causal Impact)
This method estimates the effect of an intervention on a single time series by forecasting what would have happened without it from a Bayesian state-space model that combines a local trend with regression on control series that the intervention did not affect.
이 방법은 개입의 영향을 받지 않은 통제 시계열에 대한 회귀와 국소 추세를 결합한 베이즈 상태공간 모형으로 개입이 없었을 경우를 예측해, 단일 시계열에 대한 개입 효과를 추정합니다.
After we launched a campaign in one market, how much of the change in sales was caused by it, given how comparable markets moved?
한 시장에서 캠페인을 시작한 뒤 매출 변화 가운데 비슷한 시장의 흐름을 고려할 때 캠페인 때문에 생긴 부분은 얼마입니까?
Using only the pre-intervention period, the outcome is modelled as a slowly drifting level plus a regression on control series, with a spike-and-slab prior choosing which controls matter. The posterior predictive of the outcome after the intervention, given the observed controls, is the counterfactual; the gap between actual and counterfactual gives pointwise, cumulative and relative effects with credible intervals.
When to use Bayesian Structural Time Series with Control Series (Causal Impact)
- One unit or market received an intervention at a known time.
- You have control time series that track the outcome but were not affected by the intervention.
- You want effect estimates with Bayesian uncertainty over the whole post-period.
When to use something else
- Several treated and control units are observed as a panel: use Synthetic Control Method (SCM)
- There are no control series and you only need a forecast-based comparison: use Bayesian Structural Time Series (BSTS)
- Units adopt treatment at different times: use Staggered Difference in Differences
Assumptions and requirements
- Control series unaffected by the intervention
- The pre-period relation between outcome and controls persists
- No other shock coincides with the intervention
- Gaussian observation noise
What the analysis reports
- Average, cumulative and relative effect with credible intervals
- Posterior tail probability
- Pointwise counterfactual with intervals
- Inclusion probabilities and coefficients of the controls
- Pre-period fit (R-squared)
How to report it
During the post-intervention period, the outcome averaged [value] against a counterfactual of [value]; the average effect was [value] (95% credible interval [value], [value]), a relative effect of [value].
Related methods
- Bayesian Structural Time Series (BSTS)
- Synthetic Control Method (SCM)
- Generalized Synthetic Control (Interactive Fixed Effects)
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with statsmodels at a stated tolerance of 1e-7.
독립 계산. statsmodels 대조 참조 시험 1건 통과(허용오차 1e-7).
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 Bayesian Structural Time Series with Control Series (Causal Impact) on Quorant
- Data you need
- a table (CSV or Excel) with a time variable, an outcome variable and predictor (feature) columns
- Price
- 900 credits for one analysis up to 10,000 rows (complexity level 5); larger or wider data costs more. Optional methodologist review: 3600 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.