Estimating a Ride-Subscription Effect: Switchback, Matching, Non-Compliance
Statistics & ExperimentsModel answerLast updated
Estimate how a paid subscription changes rides per user using a time-alternating city test, propensity-score methods on launch data, and instrumental-variable analysis of a randomized test with partial uptake.
A ride-hailing company has introduced a paid subscription program and wants to know how it changes rides per user (RPU). You are asked to describe how you would measure this in three different situations. For each one, state the key assumptions, the likely pitfalls, and at least one robustness or sensitivity check.
Context
- The marketplace has two-sided interference: price, wait time and availability for one rider depend on other riders and on driver supply. Naive user-level randomization can therefore leak across units. (In Part B only, you may assume driver supply is unlimited.)
- In Part A, "treatment" means the subscription experience is switched on or off for a whole (city, time block). In Parts B and C, treatment means an individual user actually holding a subscription.
- You have pre-treatment user history (past rides, spend, tenure, app activity, location) and city-day signals (weather, surge, marketing spend).
- In Part C you also need the effect on profit per user (PPU), a derived metric such as revenue per user minus cost per user.
Part A: Time-alternating experiment Randomization is at the (city x day) level.
- Propose a practical design: the randomized unit, how assignment alternates over time, and how long to run it.
- Explain why you should not simply aggregate to city-day means and run a two-sample t-test.
- Describe an analysis that handles time trends and seasonality, differences between cities, autocorrelation created by alternation, and covariate adjustment.
Part B: Launch with no experiment The feature shipped without a test.
- How would you estimate its causal effect on RPU with propensity score matching, or a closely related propensity-based method?
- How would you decide whether the matching or weighting is good enough to trust?
Part C: Randomized test with partial uptake Users were randomly assigned to be offered the subscription, but not everyone offered it signed up (and possibly some unassigned users got it anyway).
- How would you estimate the effect on RPU using the Complier Average Causal Effect (CACE, also called LATE)?
- How would you build a confidence interval for (a) the RPU effect and (b) the PPU effect?
Before answering, list a few clarifying questions you would ask (for example: is subscription reversible or sticky, what decision is the result feeding, and which estimand is wanted).
Hints
Hint 1
Before choosing a method, name the estimand (ATE, ATT, ITT or CACE) and tie it to the decision being made. Also ask whether the subscription can be toggled on and off, because a sticky state breaks a switchback.
Hint 2
For Part A, think about what repeated alternation does to the errors: neighbouring blocks in one city are correlated, so effective sample size is far smaller than the number of city-days. Fixed effects plus clustered standard errors address this.
Hint 3
For Parts B and C, separate what is testable (covariate balance, overlap, first-stage strength, placebo outcomes) from what is not (no unmeasured confounding, exclusion restriction). For a ratio estimator or a derived metric, compute everything from per-user values so the uncertainty reflects the full ratio.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Clarifying questions
- What decision does this feed: a launch call (ITT or ATE is natural) or a forecast of lift among adopters (ATT or CACE)?
- Is subscription a reversible per-trip benefit or a sticky enrollment? A switchback only works for reversible exposure with short carryover.
- What are the minimum detectable effect, number of cities and runway?
- How is RPU defined: window, and denominator (all eligible users, active users, or members only)?
Part A: Switchback
Design. Randomize (city x time block). Blocks should be long enough that a ride's experience resolves within the block (for example several hours up to a day), and short enough to give many alternations. Within each city, use a randomized, balanced sequence (for instance randomize within each week so weekdays and weekends are equally covered), not a single switch. Run at least 3 to 4 weeks so that several weekly cycles are covered. Handle carryover explicitly: drop or down-weight the first part of each block (washout), and check whether the effect estimate changes as the washout grows.
Why not a plain t-test on city-day means.
- Adjacent blocks in a city are serially correlated (weather, events, demand shocks), so the independence assumption fails, standard errors are too small and false positives rise.
- Cities differ greatly in baseline RPU and size, so unadjusted comparisons mix city effects into the treatment effect, and cities with unequal exposure get unequal implicit weight.
- Time-of-week seasonality and holidays add variance and can correlate with assignment by chance.
Analysis. Fit a two-way fixed-effects model on city-block outcomes:
RPU_ct = a_c + g_t + tau * Treat_ct + X_ct * b + e_ct
with city effects a_c, time (day-of-week or date) effects g_t, and covariates such as weather, surge and marketing spend. Weight by user volume if the target is the per-user average. Use standard errors clustered by city (with few cities, use a wild cluster bootstrap or randomization inference, which permutes the assignment sequence). If carryover is suspected, add lagged treatment terms.
Pitfalls and checks. Interference across neighbouring cities (use geographic buffers), carryover, too few cities, holiday blocks. Checks: placebo test using a fake assignment sequence, pre-period balance, leave-one-city-out, varying washout length.
Part B: Observational launch
Estimand. Usually ATT (effect on those who subscribed), since non-subscribers may never be candidates. State this explicitly.
Method.
- Build the propensity model
P(subscribe | X)using only pre-treatment covariates: rides and spend in the prior 4 to 12 weeks, tenure, city, device, usage patterns. Never include post-launch behaviour, which is affected by the treatment and can create bias. - Estimate by matching (nearest neighbour with a caliper), inverse-propensity weighting, or a doubly-robust estimator (outcome model plus weights). I would default to doubly robust, since it is protected if either model is right and is less sensitive to matching choices. Combining with difference-in-differences (change in RPU from pre to post) removes stable unobserved differences, which matters because heavy riders self-select into subscriptions.
- Compute standard errors by bootstrapping the whole pipeline, including the propensity fit.
Is it good enough?
- Overlap: compare propensity distributions; trim extreme scores.
- Balance: standardized mean differences below about 0.1 for all covariates after adjustment.
- Placebo / negative controls: an outcome that membership cannot affect, or pre-launch RPU, should show no effect.
- Sensitivity to hidden confounding: Rosenbaum bounds or E-values, asking how strong an unmeasured confounder must be to erase the effect.
- Be honest that unconfoundedness cannot be tested. Motivated, already-heavy riders are the classic danger, and good balance on observed variables does not prove the rest.
Part C: Non-compliance and CACE
Setup. Let Z be random assignment, D actual subscription, Y the outcome. Assumptions: (1) Z is randomized, (2) exclusion: assignment affects Y only through D, (3) monotonicity: nobody subscribes only when not offered (no defiers), (4) relevance: Z changes D.
Estimator.
- ITT on outcome:
ITT_Y = E[Y|Z=1] - E[Y|Z=0](effect of being offered). - ITT on uptake:
ITT_D = E[D|Z=1] - E[D|Z=0]. CACE = ITT_Y / ITT_D(the Wald estimator), identical to 2SLS with Z instrumenting D. With one-sided non-compliance, CACE equals the effect on those who subscribed.
Report ITT as well: if the launch will be an offer like in the test, ITT is the decision-relevant number, and CACE is for understanding the effect on those who respond. CACE applies only to compliers, so do not generalize it to everyone.
Confidence intervals.
- (a) RPU: because CACE is a ratio, use 2SLS with heteroskedasticity-robust standard errors, the delta method, or a user-level bootstrap (resample users, recompute both ITTs and the ratio). If the first stage is weak, the ratio is unstable, so use Fieller or Anderson-Rubin intervals.
- (b) PPU: compute per-user PPU = revenue - cost first, then treat it as just another outcome in the same 2SLS or bootstrap. Do not combine separately estimated averages of revenue and cost without accounting for their covariance. Aggregating by user also respects within-user repeated rides.
Checks. First-stage F-statistic (well above 10), balance of pre-treatment covariates across Z, check that nobody in control got treated if the design says so, and a sanity check that CACE is at least as large in magnitude as ITT when uptake is under 100%.
Common mistakes
- Reporting an undefined "lift" without naming the estimand.
- Treating adjacent switchback blocks as independent.
- Including post-treatment variables in the propensity model.
- Comparing adopters to non-adopters in a randomized test (the "per-protocol" analysis) instead of using assignment.
- Using the plain standard error for a ratio estimator.