Designing an A/B Test for a Queue-Jumping Feature
Statistics & ExperimentsModel answerLast updated
Design metrics and an experiment to evaluate a paid priority-matching feature in a two-sided marketplace where treatment and control groups share the same supply.
Context
You're a data scientist at a rideshare company planning to introduce a new feature that lets passengers pay a fee to move to the front of the matching queue, reducing their pickup time. The company wants to test this in one city before a wider rollout.
The initial plan is a standard user-level A/B test: randomly assign riders to treatment (feature enabled) or control (feature disabled), then compare wait times and revenue between groups.
Your Task
-
Metrics Framework: Define primary success metrics, guardrails, and counter-metrics for this launch. What outcomes matter, and for which stakeholders?
-
Spillover Analysis: Explain how this feature creates network interference. Why might a naive user-level randomization produce misleading results? What happens to the control group, and how does the effect change as adoption scales?
-
Experiment Design: Propose an experimental design that accounts for spillover effects. If standard user-level randomization is insufficient, what alternatives would you use and why?
-
Trade-off Communication: Imagine results show a 12% increase in net revenue but a measurable decline in satisfaction scores among control-group riders. How would you frame this trade-off for leadership? What additional analysis would you run, and what recommendation would you make?
Hints
Hint 1
Think about whether adding this feature creates new supply or just reorders existing supply. That distinction drives everything else.
Hint 2
User-level randomization assumes one user's treatment doesn't affect another user's outcome. Does that assumption hold when they share the same driver pool?
Hint 3
Consider switching the unit of randomization from users to something larger—time windows or geographic zones—so that spillover is captured rather than ignored.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Model Answer
This problem tests your understanding of interference in shared-resource systems. The key insight: priority matching doesn't create new drivers—it reorders the queue. Any benefit to priority riders comes at the expense of everyone else sharing that queue.
1. Metrics Framework
Design metrics at the system level, not just for treated users.
Primary metrics (the decision criteria):
- Net revenue per active market-hour: total fares plus priority fees, minus promotions and refunds. This reflects the business goal.
- Completed trips per market-hour: ensures revenue isn't rising while trip volume falls (a sign of cannibalization or churn).
Guardrail metrics (enforce acceptable bounds):
- Non-priority rider wait time at the median and 90th percentile. The tail matters more because harm concentrates during peak hours when supply is tight.
- Match rate and cancellation rate for non-priority riders. Longer waits lead to cancellations.
- Driver metrics: earnings per online hour, acceptance rate, utilization. If drivers benefit unevenly or leave the platform, the feature destabilizes supply.
- 28-day rider retention for non-priority riders. Short-term revenue gains may come at the cost of long-term churn.
Counter-metrics (validate that the "win" is real):
- Priority effectiveness: the actual wait-time reduction for priority riders. If adoption is high, priority riders mostly jump ahead of each other, eroding the product's value.
- Cannibalization: are riders shifting spend from premium tiers (e.g., Comfort, Black) or surge-priced trips, or is this truly incremental?
- Geographic equity: does the wait-time penalty for non-priority riders concentrate in lower-income neighborhoods? This flags fairness and regulatory risk.
2. Network Interference (Spillover)
User-level randomization breaks down because it assumes SUTVA (Stable Unit Treatment Value Assumption)—that one user's treatment doesn't affect another's outcome. That assumption fails here.
How spillover works:
- When a priority rider is matched, they take a driver who would otherwise have gone to the next rider in line. Control-group riders wait longer than they would in a world with no priority feature.
- The naive treatment-vs-control comparison measures (true benefit to priority riders) plus (harm imposed on control riders). This overestimates the net benefit.
Scaling reverses the picture:
- At 100% rollout, priority riders compete mostly with each other. The wait-time advantage shrinks.
- Meanwhile, non-buyers face the full cost: every priority match pushes them back.
- The A/B result doesn't extrapolate to full launch.
Driver-side effects:
- If drivers receive part of the fee, they may reposition toward high-priority-demand zones, draining supply elsewhere.
- This shifts earnings across neighborhoods and can reduce overall driver satisfaction if only certain areas benefit.
Behavioral responses:
- Control riders seeing long ETAs may cancel, switch to competitors, or trigger surge pricing elsewhere—contaminating both satisfaction and revenue metrics.
Heterogeneity by supply tightness:
- When supply is abundant (off-peak), interference is minimal.
- When supply is scarce (rush hour), spillover is severe. Expect strong variation by hour and day.
3. Experiment Design to Handle Spillover
The core fix: change the unit of randomization so that spillover is captured in the comparison, not hidden.
Switchback (time-based) randomization
Randomize the entire city into ON/OFF blocks of 30–60 minutes. During ON periods, all eligible riders can use the feature. During OFF periods, no one can.
- Why it works: All riders in each time block share the same regime, so the treatment-vs-control comparison captures the total market effect, including spillover.
- Stratify by hour-of-week to control for time-of-day confounders.
- Mitigation for carryover: Use blocks long enough (multiple times the typical trip duration) that repositioned drivers and queued requests don't bleed across regimes. Optionally discard the first 10–15 minutes of each block as a burn-in period.
Randomized saturation design (advanced, high signal)
Within ON blocks, randomly vary the share of riders eligible for priority (e.g., 0%, 25%, 50%).
- Direct effect: compare eligible vs. ineligible riders within the same saturation level.
- Spillover effect: compare ineligible riders in 50% saturation blocks vs. 0% blocks.
- This lets you model outcomes as a function of adoption and set a saturation cap if needed, rather than making a binary yes/no decision.
Geo-cluster randomization
Divide the city into zones based on driver movement patterns (not administrative boundaries) and randomize zones. This works best in larger markets with natural separation. Pair with synthetic control methods if you have few clusters.
Analysis details
- Use the block or cluster as the unit of analysis, not the individual rider.
- With few units, use randomization inference or cluster-robust standard errors.
- Apply regression adjustment (e.g., CUPED) for weather, events, and pre-period demand to reduce variance.
- Report heterogeneous treatment effects by supply tightness (peak vs. off-peak).
4. Presenting the Trade-off
Don't present this as "good news and bad news." Convert both sides into comparable terms—ideally dollars and time horizon.
Quantify the gain:
- "+$X per week in net revenue, 95% CI [lower, upper]."
- Validate incrementality: how much is new vs. shifted from other revenue sources?
Monetize the harm:
- Use historical elasticities: "A 1-point satisfaction drop is associated with a Y% decline in 90-day retention, worth $Z in lost lifetime value per affected rider."
- Calculate the break-even horizon: "Revenue gains are offset by churn losses within ~Q months if retention effects persist."
- Validate this with a long-term holdout.
Show who pays:
- Break down wait-time increases by neighborhood and rider segment.
- Flag equity concerns: does the cost fall disproportionately on lower-income areas? This is a brand and regulatory risk.
Offer levers, not a binary choice:
- Cap saturation at, say, 15% of riders per zone.
- Enable priority only when supply is slack (e.g., demand < 80% of recent supply).
- Guarantee a maximum wait for non-priority riders.
- Route part of the fee to driver incentives, which can add supply rather than just reorder the queue.
Make a clear recommendation: "Launch with a 15% saturation cap and supply-aware gating. Maintain a 5% long-term holdout to monitor retention over 90 days. Re-evaluate before scaling further."
Common Mistakes
- Reporting the user-level treatment effect as the launch impact (ignores spillover).
- Using only mean wait time, which hides tail harm during peak hours.
- Ignoring driver-side effects and priority efficacy at scale.
- Assuming revenue is incremental without checking cannibalization.
- Framing the trade-off qualitatively instead of in dollars over a time horizon.
Summary
Strong candidates recognize early that priority matching reorders a fixed resource. That insight drives the choice to measure marketplace-level outcomes, design around spillover with time- or saturation-based randomization, and translate satisfaction harm into retention risk with a dollar value. The best answers also offer product levers—caps, gating, supply incentives—that turn a binary trade-off into a tunable launch strategy.