Evaluating Causal Impact of Optional Hardware Devices
Statistics & ExperimentsModel answerLast updated
Learn how to measure causal impact when users self-select into optional hardware purchases using propensity scores and quasi-experiments.
Scenario
Your company introduces an optional physical smart speaker. Customers choose whether or not to purchase the device. Management wants to determine whether using the speaker causally increases overall platform engagement.
Question
Because you cannot run a standard A/B test forcing users to own the hardware, how would you design an observational study to measure the causal impact of purchasing the device on engagement? Walk through your preferred estimation framework, primary metrics, diagnostic checks, and potential alternative quasi-experimental methods.
Hints
Hint 1
Explain why comparing raw averages between hardware owners and non-owners leads to selection bias.
Hint 2
Combine propensity matching on past engagement trends with difference-in-differences to address both observed and unobserved fixed differences.
Hint 3
Address how to assign baseline index dates to non-purchasing control accounts so that seasonality is controlled.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
1. Problem Formulation & Estimand Definition
A naive comparison of post-launch engagement between customers who buy the smart speaker and those who do not yields a biased estimate. Buyers self-select: they tend to be higher-engagement power users, have higher device density, or make purchases during major life events or holiday sales.
The targeted estimand is the Average Treatment Effect on the Treated (ATT):
$$\text{ATT} = \mathbb{E}[Y_i(1) - Y_i(0) \mid D_i = 1]$$
Where:
- $D_i = 1$ indicates acquiring the hardware device.
- $Y_i(1)$ represents engagement post-purchase.
- $Y_i(0)$ represents the counterfactual engagement outcome if the buyer had not acquired the device.
Key Metrics
- Primary Metric: Weekly platform consumption hours per account over a 12-week post-adoption period.
- Secondary Metrics: Active days per week, interaction frequency, and 90-day retention rate.
- Guardrail Metric: Mobile app and web browser consumption (to detect cannibalization).
2. Primary Framework: Propensity Score Matched Difference-in-Differences (PSM-DiD)
Propensity Score Matching (PSM) alone relies on the Unconfoundedness Assumption (no unobserved confounders), which is easily violated when measuring consumer intent. Difference-in-Differences (DiD) alone on all non-buyers risks violating the Parallel Trends Assumption, as power users baseline at different trajectories than casual users.
Combining PSM with DiD filters out selection bias on observable metrics via matching, while removing time-invariant unobserved individual differences through differencing.
Pre-Treatment Period (8-12 Weeks) Index Date Post-Treatment Period (12 Weeks)
Treated: [===== Baseline Covariates =====] [Purchase] [======= Post-Trend Y(1) =======]
Control: [===== Baseline Covariates =====] [Pseudo-Dt] [======= Post-Trend Y(0) =======]
Implementation Plan
-
Construct Index Dates and Control Pools:
- For treated accounts ($D_i=1$), the index date $t_i^0$ is the actual purchase date.
- Assign non-purchasing accounts ($D_i=0$) a pseudo-index date randomly sampled from the distribution of actual purchase dates. This step controls for calendar seasonality.
-
Propensity Score Estimation:
- Estimate $P(D_i = 1 \mid X_i)$ using logistic regression or Gradient Boosted Decision Trees (GBDT).
- Rule: Include only pre-index variables in $X_i$.
- Covariates to Include:
- Historical usage: Average weekly active hours across the prior 8–12 weeks, pre-trend slope, and active day count.
- Feature usage history: Preferred audio genres and existing interface activity.
- Demographics/Account traits: Platform tenure, total linked devices, subscription tier, and region.
-
Matching & Trimming:
- Perform $1:k$ nearest-neighbor matching on the logit of the propensity score with a tight caliper constraint (e.g., $0.2 \times \sigma_{\text{logit}}$).
- Enforce common support by excluding treated units whose propensity score falls outside the range of control units.
-
Balance Verification:
- Compute the Standardized Mean Difference (SMD) for all baseline covariates: $$\text{SMD} = \frac{\bar{X}{\text{treat}} - \bar{X}{\text{ctrl}}}{\sqrt{\frac{s_{\text{treat}}^2 + s_{\text{ctrl}}^2}{2}}}$$
- Verify that $\text{SMD} < 0.1$ across all features, especially historical engagement trends.
-
Event-Study Estimation: Estimate a two-way fixed effects event-study model on the matched dataset:
$$Y_{it} = \alpha_i + \lambda_t + \sum_{k = -M}^{K} \beta_k \cdot \left( \mathbb{I}[D_i = 1] \times \mathbb{I}[t - t_i^0 = k] \right) + \varepsilon_{it}$$
- $\alpha_i$: Account fixed effects.
- $\lambda_t$: Calendar week fixed effects.
- For $k < 0$, coefficients $\beta_k$ evaluate the parallel pre-trends assumption (they should remain statistically indistinguishable from zero).
- For $k \ge 0$, coefficients $\beta_k$ track the effect trajectory post-adoption.
- If purchase dates are spread out across extended timeframes, utilize staggered adoption estimators (e.g., Callaway & Sant'Anna) to avoid bias from heterogeneous treatment timing.
3. Diagnostics and Sensitivity Analysis
| Threat / Risk | Validation / Remediation |
|---|---|
| Pre-Trend Divergence | Run a joint hypothesis test ($F$-test) on pre-treatment lead coefficients ($\beta_k$ for $k < 0$). Reject model if non-zero trends exist. |
| Anticipation Effects | Check for consumption spikes in weeks $-4$ to $-1$. Exclude immediate pre-purchase weeks if buyers alter habits while awaiting delivery. |
| Unobserved Confounding | Compute E-values or Rosenbaum Bounds to establish how strong an unobserved confounder must be to explain away the observed effect. |
| Novelty Effect Decay | Report average engagement separately for weeks 1–4 versus weeks 9–12 post-purchase to isolate temporary excitement from permanent lift. |
| Model Specification Risk | Benchmark estimates using Augmented Inverse Probability Weighting (AIPW) for doubly-robust estimation. |
4. Alternative Experimental and Quasi-Experimental Strategies
A. Encouragement Design / Instrumental Variables (IV)
- Strategy: Randomize a promotional discount or targeted marketing campaign encouraging device purchase across eligible users.
- Mechanism: The randomized promotion serves as an Instrument ($Z$). Apply Two-Stage Least Squares (2SLS) to estimate the Local Average Treatment Effect (LATE) for "compliers" (users who buy specifically due to the promotion).
- Assumptions: Exclusion restriction (the promotion impacts engagement only via device acquisition) and monotonicity (no defiers).
B. Market-Level Synthetic Controls
- Strategy: If the hardware rolls out geographically in phases, construct a synthetic control using weighted non-launch geographic regions to track the launch regions.
5. Common Mistakes to Avoid
- Conditioning on Post-Treatment Metrics: Including post-purchase actions (such as setup preferences or post-buy feature usage) in propensity modeling introduces collider stratification bias.
- Naive Pre/Post Analysis: Comparing an individual user's activity before versus after purchase without a control group conflates platform-wide growth, seasonality, and regression to the mean with the true treatment effect.
- Standard Two-Way Fixed Effects with Staggered Rollouts: Standard TWFE regression models can produce biased estimates when treatment timing varies across cohorts and treatment effects change over time; specialized staggered adoption estimators are required.