Testing a Faster Pickup-Time Algorithm in a Ride Marketplace
Statistics & ExperimentsModel answerLast updated
Design a valid experiment for a pickup-time estimate improvement in a two-sided marketplace, diagnose a surprising conversion drop, and handle supply interference between arms.
Context
A ride-hailing platform has built a new routing and dispatch algorithm that is expected to shorten the pickup-time estimate (ETA) shown to riders before they book. You need to plan an experiment to learn whether the change causes a worthwhile shift in rider booking behavior.
Note that the goal should be stated carefully: shorter ETAs are expected to raise the share of riders who go on to request a ride. Part of the exercise is to restate the hypothesis precisely before designing anything.
You have access to detailed per-request data, driver location data, and historical conversion rates. The platform is a two-sided market, with riders on one side and drivers on the other.
Questions
- Design. Propose an experimental design. Which primary metric would you use, which guardrail metrics would you track, and how would you randomize so that the causal conclusion is valid?
- A surprising result. Suppose the treatment group shows lower conversion than control even though its displayed ETAs are shorter. Brainstorm the confounders, hidden mechanisms, and measurement artifacts that could explain this, and say how you would investigate them.
- Interference. A treated rider's trip can change which drivers are available to control riders nearby. How would you detect, limit, or correct for this kind of spillover?
What is expected
A structured answer that covers metric choice, the unit of randomization and its trade-offs, a prioritized diagnostic plan for the unexpected result, and concrete ways to deal with interference, including the cost in statistical power.
Hints
Hint 1
Begin by restating the hypothesis in the correct direction, then pick a metric that the ETA can influence directly (for example, requests per session where an ETA was shown) and list guardrails for both riders and drivers.
Hint 2
Ask whether riders in different arms compete for the same drivers. If they do, one rider's treatment affects another rider's outcome, so think about randomizing whole regions and time windows instead of individuals.
Hint 3
For the surprising drop, check experiment validity first (sample ratio, logging, A/A, geo imbalance), then compare quoted versus actual pickup times, look at price and surge changes, and examine the funnel step by step to see where the arms diverge.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Framing
First, fix the hypothesis: a faster routing algorithm should produce shorter ETAs, which should increase the proportion of riders who book, without damaging marketplace health. The three skills being tested are choosing a metric tied to value, recognizing that a two-sided market breaks naive A/B testing, and debugging a counterintuitive result systematically.
1. Experimental design
Primary metric. Session-to-request conversion: ride requests divided by sessions in which an ETA was displayed. It is the first behavior the ETA can influence, so it is sensitive and responds quickly. A more complete alternative is completed trips per session, which captures the whole funnel but has higher variance and is slower to move.
Guardrails and secondary metrics.
- ETA quality: actual pickup time, and ETA error (actual minus quoted), including tail percentiles.
- Rider side: cancellations, completed trips, fare per trip, 7-day and 28-day retention.
- Driver side: cancellations, utilization, earnings per hour.
- Market state: surge frequency and size.
Randomization. Randomizing individual riders is the instinctive choice, but it violates SUTVA (no interference between units). Treated and control riders share one pool of nearby drivers, so if the new algorithm dispatches more efficiently, it changes the supply that control riders see.
| Design | Pros | Cons |
|---|---|---|
| Rider-level | High power, simple | Biased by interference |
| Whole-city or region | Captures market effects | Few units, low power, cities differ |
| Switchback (region × time block) | Captures market effects, many units, each region serves as its own control | Carryover between blocks, time-of-day effects |
Recommendation: a switchback.
- Randomize region × time-window cells (for example, 30 to 60 minutes) to treatment or control.
- Stratify or balance by city, hour of day, and day of week.
- Drop a short burn-in after each switch, since drivers repositioned under one condition carry into the next.
- Analyze at the region-window level with standard errors clustered by region.
- Optionally run a rider-level test alongside. The gap between the two estimates is a direct measure of interference bias.
Report intent-to-treat as the headline result; use treated-only analysis just to understand mechanisms.
2. Treatment converts worse despite shorter ETAs
Work through four groups, in this order.
Validity first.
- Sample ratio mismatch: do arm sizes match the planned split?
- Logging differences: does the treatment client record sessions or requests differently?
- A/A check: does the same setup show no difference when both arms are identical?
- Geographic or temporal imbalance: compare pre-period conversion by arm.
The quoted ETA is not the real ETA.
- The algorithm may underestimate, so quotes look good but drivers arrive late. Burned riders cancel, distrust quotes, or churn. Compare quoted vs. actual pickup time by arm.
Price and supply feedback.
- A faster route can be longer in distance and raise the upfront fare, and riders are often more price-sensitive than time-sensitive.
- More efficient dispatch leaves fewer visibly idle drivers; if surge is driven by the supply/demand ratio, surge rises and suppresses conversion.
- Drivers may dislike the routes they are sent on, raising decline or cancellation rates and forcing re-dispatch with longer real waits.
Metric artifacts.
- Denominator shift: if shorter ETAs draw more casual price-checking sessions, the rate falls while absolute requests rise. Always inspect counts alongside rates.
- Simpson's paradox: the aggregate can reverse within segments (city, product type, surge state). Segment the results.
- Novelty or confusion from a changed ETA display.
Method. Decompose the funnel (session, quote shown, price shown, request, match, pickup, completion) and find the step where the arms diverge.
3. Spillover and interference
Under rider-level randomization, treated riders compete with control riders for the same drivers. The measured difference then reflects supply being redistributed between arms rather than the effect of a full rollout, and the true effect may be overstated or understated depending on the direction.
Mitigations.
- Cluster in space and time with switchbacks or geo clusters so that most dispatches stay inside one cluster. Large cells and buffer zones between treated and control areas help.
- Handle carryover with burn-in exclusions and balanced schedules. Test for it by regressing outcomes on the previous window's assignment.
- Quantify interference by comparing rider-level and cluster-level estimates.
- Two-sided randomization, if feasible, to separate demand-side from supply-side effects.
- Market-level holdout before full launch: keep a few comparable cities on the old algorithm for several weeks and analyze with difference-in-differences or synthetic control to capture long-run repositioning and driver earnings effects.
- Simulation with a dispatch simulator to estimate bias before spending live traffic.
Trade-off. Clustering removes bias but costs power: the effective sample size is the number of region-windows, not riders. Account for this when sizing the test.
Sample size and power
Choose the minimum detectable effect from business value (what conversion lift justifies the cost and risk, say +0.5% relative). For a two-arm comparison, per-arm sample size is approximately n ≈ 2(z₁₋α/₂ + z₁₋β)² σ² / δ². With clustering, inflate by the design effect 1 + (m − 1)ρ, where m is cluster size and ρ the intra-cluster correlation. Variance reduction with pre-period covariates (CUPED) can recover some power.
Common mistakes
- Misreading the hypothesis direction and never clarifying it.
- Defaulting to rider-level randomization without addressing interference.
- Looking only at conversion rate, not at absolute request counts.
- Ignoring the gap between quoted and realized ETA.
- Treating the number of riders as the sample size in a clustered design.
- Skipping validity checks (SRM, A/A) before searching for exotic explanations.