Causal Effect of a Smart Display Purchase on Calling Time
Statistics & ExperimentsModel answerLast updated
Design a staggered difference-in-differences analysis to measure how buying a calling device changes usage, handling self-selection, household spillover, and parallel-trends validation.
Scenario
A company has launched a dedicated video-calling gadget that people can buy at any time. There was no randomized rollout, so you must estimate its effect on usage from observational data. People who choose to buy it are probably already heavier video callers than those who do not.
Data
| Column | Description |
|---|---|
user_id | Unique user identifier |
purchase_date | Date the gadget was registered to the account (missing for non-buyers) |
call_minutes | Daily total minutes of video calling |
household_id | Identifier grouping people who live together |
Your task
- Estimand. State precisely what effect you want to estimate. Explain why a plain comparison of average usage between buyers and non-buyers is biased.
- Model. Propose a difference-in-differences design for the effect of owning the device. Because people buy at different dates, explain how you would structure the data and the model to handle staggered adoption.
- Complications. Explain how you would deal with:
- Self-selection: buyers already preferred video calling before purchase.
- Household spillover: several people in a home may use the device, but the purchase is tied to one account.
Also cover
- How you would check the parallel-trends assumption.
- How you would handle household-level noise when only one profile is linked to the purchase.
Hints
Hint 1
Write the naive buyer-vs-non-buyer difference as the true effect on buyers plus a selection term, and think about the sign of that term.
Hint 2
Ordinary two-way fixed effects with different purchase dates compares late adopters to people who are already treated. Look for estimators that use only clean controls (never-treated or not-yet-treated).
Hint 3
Unit fixed effects remove differences in levels but not differences in trends. Think about what life events trigger a purchase.
Hint 4
If the treatment really happens to a household, consider making the household the unit of analysis and clustering standard errors there.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
1. Estimand and why the naive comparison fails
The question of interest is: among people who bought the device, how much more do they call than they would have without it? That is the Average Treatment Effect on the Treated (ATT):
ATT = E[Y(1) − Y(0) | bought]
Because effects probably grow or fade after purchase and buyers arrive at different times, I would target a dynamic ATT by purchase cohort g and event time k (weeks since purchase), then aggregate, for example into "average effect over weeks 1-12". ATT is preferable to ATE because non-buyers (who may have nobody to call) are not the population the product serves.
The naive difference decomposes as:
E[Y | buyer] − E[Y | non-buyer] = ATT + (E[Y(0) | buyer] − E[Y(0) | non-buyer])
The second term is selection bias. Buyers were heavier callers before buying, so it is positive and can exceed the true effect.
2. Staggered DiD design
Data structure
- Build a balanced user-by-week panel. Weekly beats daily because daily minutes are noisy and zero-heavy.
- Fill in zeros explicitly. Logs often omit days without calls, and dropping them biases levels upward.
- Define
event_time = week − purchase_weekfor buyers. Never-buyers have none. - Bin the extreme tails (for example k ≤ −13 and k ≥ +26) so endpoints are not driven by a few cohorts.
- Minutes are heavy-tailed. Use log(1 + minutes), winsorize at the 99th percentile, or run Poisson pseudo-maximum likelihood on raw minutes, and translate back to minutes for stakeholders.
Event-study model
Y_it = α_i + λ_t + Σ_{k≠−1} β_k · 1[t − G_i = k] + ε_it
- α_i (user fixed effects) absorb stable tastes such as "loves video calls".
- λ_t (calendar-week effects) absorb seasonality, holidays and platform-wide shocks.
- β_k is the effect k weeks from purchase, relative to the week before.
Staggered-timing pitfall. Standard two-way fixed effects with staggered adoption uses already-treated users as controls for later adopters ("forbidden comparisons"). If effects vary over time or by cohort, this yields negative weights and can even flip the sign (Goodman-Bacon decomposition). Use a robust estimator:
- Callaway-Sant'Anna: estimate ATT(g, t) against never-treated or not-yet-treated units, then aggregate.
- Sun-Abraham: interact cohort with event time.
- Stacked DiD: for each cohort, build a window [−K, +L] with clean controls, stack the windows, and use cohort-specific fixed effects.
Inference. Cluster standard errors by household, which handles serial correlation within a person and correlation within a home.
3a. Self-selection
User fixed effects remove level differences but not trend differences. Someone may buy because a grandchild was born or a relative moved away, and these events raise calling regardless of the device. Mitigations:
- Not-yet-treated controls. Future buyers share intent and preferences, so early-versus-late buyers is much more credible than buyers versus the general population.
- Conditional parallel trends. Use doubly robust DiD, reweighting or matching on the pre-period trajectory (minutes in each of the prior 8-12 weeks), number of call partners, age, region and other devices owned.
- Sensitivity analysis to bound how much bias a trend violation could cause.
3b. Household spillover
Treatment is effectively at household level (SUTVA is violated at the person level). Problems: non-buying members are exposed, so leaving them in the control pool contaminates it; and the buyer's account may log calls actually made by others.
Fix: analyze at the household level.
- Treatment starts at the first device registration in the household.
- Outcome is total household minutes, with a per-member version or a household-size control as a robustness check.
- Controls are households with no device. Exclude every member of buyer households from the control pool.
- Optionally split effects into purchaser versus co-residents to separate direct from spillover effects (they sum to the household effect).
- Audit
household_idquality, since misgrouped homes reintroduce contamination.
4. Validating parallel trends
- Leads: plot β_k for k < 0; they should be flat near zero. Run a joint test that all leads are zero.
- Raw trends: plot cohort-aligned average outcomes for treated versus controls.
- Placebos: assign fake purchase dates months earlier and check for a null; check an outcome the device should not affect, such as text messages.
- Power caveat: pre-trend tests have low power, so non-significance does not prove parallel trends. Report Rambachan-Roth (HonestDiD) bounds showing how large a violation would be needed to erase the result.
Summary answer
Estimate a household-level dynamic ATT with a heterogeneity-robust staggered DiD event study: unit and week fixed effects, not-yet-treated and matched never-treated controls, log or PPML outcome handling, household-clustered errors, and parallel trends checked with leads, placebos and sensitivity bounds.
Common mistakes
- Running plain TWFE with staggered timing and reporting a single coefficient.
- Believing fixed effects solve selection (they fix levels, not trends).
- Leaving buyers' household members in the control group.
- Dropping zero-call days or ignoring heavy tails.
- Clustering at the user level, or not clustering.
- Claiming parallel trends are "proven" by an insignificant pre-trend test.
Likely follow-up: anticipation
Look at leads k = −1 to −4. A rise just before purchase, or a dip while waiting for delivery, suggests anticipation. The registration date lags the real purchase decision, so shift the reference period earlier (for example k ≤ −5) and either treat the anticipation window as part of the effect or exclude it.