Design an experiment for a priority dispatch feature
Statistics & ExperimentsModel answerLast updated
Design metrics and a randomization strategy to test a paid priority-matching product in a two-sided rideshare marketplace.
You work on the experimentation team at a rideshare company. Product is launching a new paid feature that lets passengers pay a small fee to move to the front of the dispatch queue when requesting a ride.
Your task is to design the experiment.
Part 1: Metrics
Choose one primary metric for each side of the marketplace (drivers and passengers) that captures whether this feature improves overall marketplace health. Also define one guardrail metric to protect against harmful side effects.
Part 2: Interference
The engineering team proposes a standard A/B test: randomly assign 50% of passengers to treatment (feature available) and 50% to control (feature not available), then compare outcomes between the two groups.
Explain why this design produces biased estimates in a marketplace setting. What is this problem called, and in which direction does it bias the treatment effect?
Part 3: Better design
Propose an improved randomization approach that reduces or eliminates the bias you identified. If a perfect design isn't feasible, what statistical methods or alternative designs would you use to estimate the causal effect?
Context
- The marketplace has both drivers and passengers; each trip involves one of each.
- Drivers are sensitive to idle time and unprofitable repositioning.
- Passengers are price-sensitive and will abandon requests if estimated wait times are too long.
Hints
Hint 1
Think about what happens to a control passenger when a nearby treatment passenger pays for priority and takes the closest available driver.
Hint 2
The experiment should measure the global effect: what happens when the feature is live everywhere, not just what happens to the people who pay.
Hint 3
Consider randomizing at a level where supply and demand are more isolated from each other, such as time windows or geographic regions.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
What this question tests
Interviewers want to see whether you understand marketplace interference, can design around it, and choose metrics that reflect system-level outcomes rather than just individual user behavior. Strong answers treat the experiment as measuring a platform-wide launch, not a per-user treatment.
Part 1: Metric selection
Define treatment as "priority dispatch is available in this market." Analyze using intent-to-treat: whether the feature exists, not whether individual users choose to pay.
Driver primary metric: earnings per online hour
Measure total earnings (including any priority fees shared with drivers) divided by hours spent online, aggregated at the cluster level.
Why this metric:
- It combines utilization (fraction of time with a passenger) and revenue per trip.
- It predicts driver retention. Drivers leave when earnings per hour drop.
- Track the distribution (10th percentile, median, 90th percentile), not just the mean, to catch whether some drivers are harmed even if the average improves.
Passenger primary metric: request-to-ride completion rate
Calculate the share of ride requests that result in a completed trip, pooling priority and non-priority passengers together within each cluster.
Why this metric:
- Measures whether the marketplace fulfills more total demand, not just whether paying passengers get faster service.
- Reflects abandonment and cancellations on both sides.
- Captures the global value created, not value transferred from one passenger to another.
Guardrail: non-priority passenger wait time (p50 and p90 ETA)
Track estimated time to pickup for passengers who don't pay for priority.
Why this guardrail:
- The core risk is that priority passengers jump the queue and degrade service for everyone else.
- If non-priority ETAs rise significantly, passengers will churn or reduce usage.
- Use both median and 90th percentile to catch tail degradation.
Additional guardrails to monitor:
- Driver and passenger cancellation rates
- Unfulfilled request rate
- Surge pricing frequency and intensity
- Driver unpaid miles (distance driven to pickup)
Part 2: Why passenger-level randomization is biased
The problem: interference
Passengers in treatment and control share the same pool of drivers in the same geographic area and time. When a treatment passenger pays for priority and gets matched to a nearby driver, that driver becomes unavailable to control passengers. The control group's outcomes depend on the treatment group's assignments. This violates SUTVA (Stable Unit Treatment Value Assumption), which requires that one unit's outcome is unaffected by other units' treatment status.
This phenomenon is called interference or spillover.
Direction of bias
The naive difference in means overstates the benefit to treated passengers:
Measured effect = (benefit to treatment passengers) + (harm imposed on control passengers)
The control group is artificially degraded because priority passengers take drivers they would otherwise have received. It is not a valid counterfactual for "the feature does not exist."
Effect on the global treatment effect
Priority matching is zero-sum with respect to queue position:
- At 5% treatment exposure, priority buyers jump ahead of 95% of passengers, so the gain appears large.
- At 100% exposure, everyone competes for priority, so the relative benefit shrinks.
- A 50/50 test describes neither the launched state nor the unlaunched state. The measured effect depends on the treatment share, and you cannot extrapolate to full rollout.
What passenger-level randomization cannot measure
- Driver outcomes. Every driver serves both treatment and control passengers, so you cannot attribute driver earnings or behavior to either arm.
- Equilibrium effects. Changes in driver repositioning, surge pricing adjustments, and passenger timing behavior are invisible when both groups experience a blended market.
Part 3: A better design
Randomize at a level where supply and demand are mostly contained, so each unit experiences a consistent treatment regime.
Primary approach: time-and-region switchback
Design:
- Divide the city into geographic clusters (for example, H3 hexagons or neighborhoods) and time into windows (30–60 minutes).
- Each cluster-time cell is a randomization unit. Within a cell, the feature is either on for everyone or off for everyone.
- Alternate treatment on and off across time windows within each region.
Handling carryover:
- Drop the first 10–15 minutes of each window as a burn-in period. This limits contamination from drivers mid-trip or repositioning from the previous regime.
- Test for carryover by comparing outcomes in off→off transitions versus on→off transitions. If they differ, extend the burn-in.
Analysis:
- Aggregate metrics at the cluster-time level (for example, mean driver earnings per hour in cluster A during window 5).
- Use cluster-robust standard errors or analyze differences at the unit level.
- Stratify randomization by hour-of-week and region type to balance high-demand and low-demand periods.
Power:
- Thousands of cluster-time units over a few weeks provide strong statistical power, far more than city-level tests.
Limitation:
- Switchbacks capture short-run effects only. They cannot measure slow dynamics like driver churn or long-term passenger retention, which depend on cumulative exposure over weeks or months.
Complement: geographic cluster randomization for long-run effects
Design:
- Pair cities or metro areas matched on pre-period trip volume, supply/demand balance, and surge intensity. Randomize one city in each pair to treatment.
- Run the experiment for several months to observe retention, churn, and behavior changes.
Analysis:
- Use difference-in-differences or synthetic control if randomization is not feasible.
- Apply CUPED (regression adjustment using pre-period covariates) to reduce variance.
- Use randomization inference for p-values instead of relying on asymptotic approximations, since the number of cities is small.
Power:
- City-level tests have low power due to the small number of units. Plan for large detectable effects or long duration.
- Add geographic buffer zones to reduce spillover between adjacent treatment and control regions.
If clean randomization is not possible
Synthetic control:
- Construct a weighted combination of untreated cities that mimics the treated city's pre-launch trends in key metrics (trip volume, ETA, earnings).
- Use the synthetic city as the counterfactual post-launch.
- Run placebo tests on untreated cities to assess false-positive rates.
Difference-in-differences:
- Compare treated and control cities before and after launch.
- Verify parallel pre-trends. If rollout is staggered, use robust estimators like Callaway-Sant'Anna to avoid bias.
Dose-response within switchbacks:
- Vary the priority fee or cap priority share at different levels (5%, 15%, 30%) across clusters.
- Estimate how effects scale with adoption rate to extrapolate to full launch.
Simulation:
- Replay historical dispatch logs through a simulator with the new matching logic.
- Use results to validate direction and magnitude before live testing.
Common mistakes
- Reporting the ETA improvement for priority passengers as "the impact" and ignoring effects on non-priority passengers and drivers.
- Using passenger-level randomization and only adding clustered standard errors. That adjusts inference but does not remove bias.
- Ignoring carryover effects in switchback designs.
- Treating passengers who opt in to priority as the treatment group, which introduces selection bias (they differ from non-purchasers in unobservable ways).
- Measuring short-run outcomes only and missing driver churn or passenger lifetime value changes.
Summary
The key insight is that marketplace experiments require cluster-level randomization to avoid interference. The goal is to measure the system-wide effect—what happens when the feature is live everywhere—not the zero-sum transfer of value from one user to another. Strong candidates propose switchback designs for short-run metrics and city-level tests or observational methods for long-run dynamics, and they choose metrics that reflect total marketplace value rather than individual opt-in behavior.