Switchback Experiment Design for a New Dispatch Matching Algorithm
Last updated: November 29, 2026
Quick Overview
Uber wants to test a new rider-driver matching algorithm that batches requests for a few seconds before assigning drivers. Design the experiment, explaining why a rider-level A/B test would give a biased answer.
Uber
November 29, 20260
0
0 solved
Uber wants to test a new rider-driver matching algorithm that batches requests for a few seconds before assigning drivers. Design the experiment, explaining why a rider-level A/B test would give a biased answer.
Marketplace experimentation is a core topic in Uber's data science onsite because nearly every dispatch or pricing change touches a shared pool of drivers. The interviewer is checking whether you recognize interference between treatment and control and can design a switchback test with sensible window length, randomization and analysis.
What the Interviewer Expects
- Explains why rider-level randomization violates SUTVA when drivers are shared
- Proposes switchback randomization over city and time windows
- Chooses window length by trading carryover against number of independent units
- Specifies primary and guardrail metrics on both sides of the marketplace
- Describes an analysis that respects the clustered design (window-level inference)
Key Topics to Cover
How to Approach This
- Define success metrics carefully. A good metric is measurable, actionable, and aligned with business goals.
- Run experiments long enough to account for novelty effects and weekly seasonality.
- Use funnel analysis to identify where users drop off for maximum optimization impact.
- Segment results by key dimensions (platform, country, user cohort) to catch hidden patterns.
- Consider network effects and interference between treatment and control groups.
Possible Follow-up Questions
- How would you pick the window length, and what happens if it is too short?
- How do you handle a large carryover effect from drivers repositioning?
- Could you combine switchbacks with geo randomization, and when would you?
- How would you estimate variance with only a few hundred windows?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Analytics QuestionsSample Answer
Clarify
What does batching change: match quality (shorter pickup distance) at the cost of a few seconds of extra wait before assignment? Which cities and products (UberX only, or Share too)? What is the decis...
Approach
Why not rider-level A/B. Treatment and control riders draw from the same idle drivers. If batching assigns drivers more efficiently, treatment riders consume less supply, leaving more for control,...