Time-Based Regression Estimator for Geo Experiments
Summary
Time-Based Regression (TBR), from Kerman, Wang & Vaver (2017), analyzes a geo experiment by aggregating all treatment geos into one time series and all control geos into one time series , fitting a simple regression of on during the pretest period, and using that fitted relationship to predict the counterfactual treatment-group time series during the test period. The difference between observed and counterfactual, cumulated over time, is the posterior distribution of the incremental causal effect ; dividing cumulative incremental response by cumulative incremental cost gives the incremental ROAS (iROAS). Because TBR only ever needs two aggregate series, it works even with a single treatment geo and a single control geo — a “matched market test” — and it underlies Google’s open-source Matched Markets /
GeoexperimentsResearchpackage.
Overview
TBR was built to “fill the gap” left by Geo-Based Regression (GBR): GBR draws its statistical power from replication across geos, so it is inapplicable when only a few geos are available (smaller countries, subregions of a larger country, or a deliberately convenient matched-market test comparing one control region to one test region). TBR instead draws power from replication across time in the pretest period, so its precision degrades gracefully as the geo count shrinks rather than becoming undefined.
TBR shares the same underlying experimental structure as GBR — geos partitioned into treatment/control, a pretest period (unmodified baseline campaigns in every geo), an intervention period (treatment geos’ campaigns modified, causing a spend change and hopefully a response change), and a cooldown period (campaigns reset, but lagged effects like offline sales may still accrue) — but it aggregates the data differently. Where GBR collapses each geo’s time series down to two numbers (pretest total, test total) across many geos, TBR collapses across geos at every time point, producing one treatment series and one control series over the whole time span (daily or weekly).
TBR is explicitly framed as a simplified, closed-form cousin of Brodersen et al.’s (2015) Causal Impact: both predict a counterfactual time series from a pretest-trained model and read off the difference from the observed series, but Causal Impact’s flexible state-space model (local level/trend/seasonal components, spike-and-slab covariate selection over many possible controls) is replaced here by a single static linear regression on one control aggregate — appropriate when there is one clean control series and no need to select among candidate covariates.
Main Content
The TBR pretest model
TBR regression model (Kerman, Wang & Vaver 2017, Eq. 1)
Let and be the aggregated treatment- and control-group response time series, respectively. During the pretest period,
where are independent Normal errors with standard deviation . The control series is assumed to be a sufficient predictor for the treatment series’ behavior across the pretest, intervention, and cooldown periods — i.e., the relationship is assumed stable absent the ad intervention (equivalently, the residuals are stationary in the absence of the experiment-related marketing change). See TBR Design Sensitivity and the Stationarity Assumption for the full statement, robustness checks, and what happens when this fails.
The model is fit on pretest data using a noninformative prior on (Gelman et al. 2013): conditional on , the posterior of is Normal with mean and covariance , — identical in form to the classical OLS point estimate and covariance. Integrating out gives a scaled/shifted bivariate -distribution for with degrees of freedom, = number of pretest time points.
Counterfactual prediction and the cumulative causal effect
Counterfactual and pointwise causal effect (Eqs. following §3.2)
For each time in the test period, the potential outcome (counterfactual) is
Its posterior predictive distribution (again a shifted/scaled -distribution) folds in both the estimation uncertainty in and the prediction uncertainty of a new, unobserved error . The pointwise causal effect is
Since has a posterior distribution and is fixed and observed, inherits a posterior distribution too.
Cumulative causal effect (Eq. following §3.2)
summed from the first day of the intervention period. ’s posterior is again a shifted/scaled -distribution — its exact scale is derived without simulation in the Appendix (below).
Incremental ROAS (iROAS)
iROAS (Kerman, Wang & Vaver 2017, §3.4)
the ratio of the cumulative causal effect on the response metric to the cumulative causal effect on marketing cost, at time in the test period. Both and are estimated via TBR Causal Effect Analysis (fit separately, once on the response metric and once on the cost/spend metric); the ratio’s posterior is estimated by simulating (e.g. 10,000) draws from each of the two -distributions and dividing. Point estimates throughout are taken as posterior medians.
As a special case, if the cost metric is exactly zero during the pretest period (the media channel is used for the first time as the marketing intervention), the counterfactual cost is zero with complete certainty, so is simply the observed cumulative test-period spend — a known constant — and ‘s posterior is exactly a scaled/shifted -distribution (no simulation needed).
Appendix: closed-form posterior scale
The Appendix (§9.1–9.2) derives in closed form,
which, after integrating over , gives the -distribution scale (with the classical residual-SD point estimate and entries of the unscaled covariance matrix ). Dividing by the cumulative cost gives the mean and scale of ‘s posterior directly — this closed form is what TBR Design Sensitivity and the Stationarity Assumption uses to derive how each design choice (pretest length, test length, spend intensity, geo volume) moves the precision of iROAS.
Why TBR degrades gracefully to very few geos
TBR’s estimation only ever consumes two aggregate time series — (however many treatment geos are summed into it) and (however many control geos). Unlike GBR, whose variance formula (Eq. 4 of Geo-Experiment Design and Power Analysis) has geos entering as replicates, nothing in the TBR model or its fitting procedure requires : a single treatment geo regressed against a single control geo is a perfectly well-posed instance of Eq. 1. This is exactly the matched market test configuration, and it is the reason TBR underlies Google’s open-source Matched Markets tool.
Examples
210-DMA Paid Search revenue experiment (Kerman, Wang & Vaver 2017 §3.3, 3.5)
All 210 U.S. DMAs were randomly split into treatment/control. Paid Search campaigns were modified in all treatment geos starting April 1 (intervention period) and reset to baseline on April 29 (start of a 1-week cooldown), with an 8-week pretest period. TBR fit to daily revenue produced a counterfactual that tracked the observed pretest series closely; from the intervention start, the pointwise differences became consistently positive, and the cumulative effect rose through the end of the intervention period and then flattened — visually diagnosing that the lagged effect had fully died out by the end of the chosen cooldown window. The same analysis on cost showed incremental spend rising sharply during the intervention and (as expected) not continuing to accumulate into the cooldown. Combining the two gave a stable cumulative estimate — noisy in the first days of the intervention, then converging to a final value with a visibly narrowing posterior band.
Connections
- Simplifies Causal Impact (Brodersen et al. 2015): same “train counterfactual on pretest, extrapolate, difference” logic, but with a single static linear regression on one control aggregate instead of a full local-level/trend/seasonal state-space model with covariate selection.
- Complements GBR: same experimental structure (geos, pretest/intervention/cooldown), different statistical engine and different source of power (time replication vs. geo replication) — see the comparison table in Geo-Experiment Methodology - Overview.
- Feeds into TBR Design Sensitivity and the Stationarity Assumption, which covers the Monte-Carlo design/power procedure built on this model, the bias/coverage simulation results, and the conditions under which the stability assumption in the pretest model fails.
- Answers the “read-out” step of Q - Encoding a Geo-Holdout as a Bayesian Experimental Design and Computing Its EIG with a much simpler model than the full BSTS/CausalImpact machinery that Q&A note invokes.
See Also
- Geo-Experiment Methodology - Overview — the topic overview and GBR/TBR comparison table
- Geo-Experiment Design and Power Analysis — the GBR model and its variance/power analysis
- TBR Design Sensitivity and the Stationarity Assumption — TBR’s design process, bias/coverage evaluation, and the stationarity assumption in depth
- Bayesian Structural Time-Series Model — the more flexible Bayesian state-space counterfactual model TBR simplifies
- Q - Encoding a Geo-Holdout as a Bayesian Experimental Design and Computing Its EIG — the Bayesian EIG framing this estimator is the frequentist counterpart of