Testing a Courier Tier Program Under Marketplace Interference
Statistics & ExperimentsModel answerLast updated
Design an experiment for a courier priority-access program where treated and control couriers compete for the same orders, covering randomization, metrics, spillover analysis, and sample size.
A food-delivery marketplace plans to pilot a new elite courier tier in one metropolitan area. Couriers who hold a rating of at least 4.8 and an order acceptance rate of at least 90% get first access to the highest-value orders. The company wants to know how the tier affects overall delivery speed and courier retention.
A plain courier-level A/B test is unreliable here. Couriers roam across zones and compete for the same pool of orders, so when a treated courier takes an order, a control courier loses it. This makes the treated group look better than the program would be in reality.
Describe an experimental framework that covers:
- Randomization strategy. How do you assign treatment so that interference is limited while keeping reasonable statistical power?
- Metrics. Name a primary metric and at least two guardrail metrics that would reveal unintended harm.
- Analysis under spillover. If you were forced to randomize at the individual courier level, how would you measure or correct for spillover?
- Sizing. Outline how you would compute the minimum detectable effect (MDE) and the required sample size for your design.
Explain the trade-offs behind your choices and note where your design is weakest.
Hints
Hint 1
Separate the two interference channels first: short-term competition for orders within a zone, and longer-term shifts in courier labor supply. They happen at different time and spatial scales and may need different designs.
Hint 2
Retention is a courier-level outcome measured over weeks, so a courier must remain in one arm for the entire test. Think about which designs allow that and which (such as time-alternating ones) do not.
Hint 3
For individual-level randomization, think about varying the treated fraction across clusters, so that you can separate the direct effect from the spillover onto controls.
Hint 4
Cluster designs inflate required sample size by a design effect 1 + (m - 1)ρ. Compute how many clusters you would actually need, then compare it with how many one city can offer.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
What a strong answer shows
- It locates where interference comes from.
- It matches the randomization unit to the time horizon of the outcome.
- It is honest about power when the number of clusters is small.
Answering "use a switchback" is not enough. A switchback fits delivery speed but cannot measure retention.
1. Diagnose the interference
| Channel | Mechanism | Time scale | Spatial scale |
|---|---|---|---|
| Order competition | An elite courier gets a high-value order a control courier would have taken | Minutes | One zone |
| Labor supply | Control couriers earn less, work fewer hours or leave; treated couriers accept more orders to qualify | Weeks | Whole market |
The program also changes behavior before anyone qualifies: couriers near 4.8 / 90% will accept more orders to reach the bar. That is part of the treatment effect, not noise.
Since retention is a per-courier outcome over weeks, each courier must stay in one arm. That rules out switchback as the primary design.
2. Randomization
Primary design: geographic cluster randomization with matched pairs.
- Build clusters from movement data. Treat zones as graph nodes with edges weighted by courier flow, then partition the graph to minimize cross-cluster flow. Aim for under roughly 10-15% of courier hours spent outside the home cluster.
- Assign each courier a home cluster from the pre-period. Eligibility follows the cluster.
- Pair clusters on pre-period order volume, courier count, retention and delivery time, and randomize one cluster per pair to treatment.
- Add buffer zones between treated and control clusters where possible, and exclude them from analysis.
Power problem. One city may give only 10-20 usable clusters. Options:
- Run in several comparable cities with paired cluster-level randomization.
- Treat one city and build a synthetic control from donor cities.
- Apply CUPED (regress on pre-period outcomes) to cut variance.
Secondary design: switchback for speed. The dispatch-priority component can be toggled by zone x time block (for example 2-hour windows). This estimates short-run marketplace efficiency with far more units.
3. Metrics
Primary: 28-day retention of all couriers in the cluster, meaning the share active in weeks 5-8 among those active at baseline. Include everyone, not just elite couriers; a program that keeps top couriers while pushing out the rest is a failure.
Co-primary or secondary: cluster-level mean delivery time across all orders, from placement to drop-off.
Guardrails:
- Non-elite courier earnings per active hour and acceptance rate (is the rest of the fleet being starved?).
- Customer late-delivery and cancellation rates (a smaller pool for high-value orders could slow them).
- Gaming signals such as accept-then-unassign rates and pressure on customer ratings.
- Cost per delivery, including incentive payouts and any rise in order abandonment.
4. Analysis if forced to randomize by courier
Use a two-stage randomized saturation design:
- Randomize clusters to saturation levels, for example 0%, 30%, 70% of couriers treated.
- Within each cluster, randomize couriers at that rate.
This separates:
- Direct effect: treated vs. control within the same saturation level.
- Spillover effect: controls in 30% or 70% clusters vs. couriers in 0% clusters.
- Total effect: the policy-relevant quantity, equal to the full-rollout cluster mean minus the 0% cluster mean, extrapolated from the saturation-response curve.
Alternative: exposure mapping. Regress each courier's outcome on own treatment plus an exposure measure, such as the share of treated couriers in the zone-hours that courier actually worked.
In both cases, cluster standard errors at the cluster level.
The naive treated-minus-control difference equals the direct effect minus the spillover on controls, so it is biased upward, exactly the issue in the prompt.
5. MDE and sample size
For clustered designs, start from the individual-level formula and inflate by the design effect:
$$n_{\text{per arm}} = \frac{2(z_{1-\alpha/2}+z_{1-\beta})^2\sigma^2}{\text{MDE}^2}, \qquad \text{DEFF} = 1 + (m-1)\rho$$
where m is cluster size and ρ the intra-cluster correlation.
Worked example. Baseline retention 60% (σ² = 0.24), target lift +2pp, α = 0.05, 80% power:
- Individual level: n = 2(2.8)²(0.24)/0.02² ≈ 9,400 per arm.
- With clusters of 500 couriers and ρ = 0.02: DEFF = 1 + 499 × 0.02 ≈ 11, so about 103,000 couriers per arm, or roughly 207 clusters per arm.
- One city cannot supply that. Levers: CUPED (30-50% variance reduction), pairing and stratification, adding cities, or accepting a larger MDE around 5-6pp.
Practical method. Estimate σ and ρ from history. Better, run A/A simulations that apply the exact cluster or switchback assignment to past weeks and read the empirical variance. For switchbacks this captures autocorrelation between adjacent windows, which closed-form formulas miss.
Follow-ups
If the goal becomes reducing average delivery time:
- The outcome is short-horizon and order-level, so switchback becomes primary.
- Randomize zone x 1-2 hour windows, balanced across hour of day and day of week.
- Drop the first 15-30 minutes of each window as burn-in for carryover from in-flight orders.
- Move retention to a guardrail measured in a separate, longer geo test.
- Tie window length to typical order duration and use several switches per day for power.
Separating real efficiency from cannibalization:
- Compare totals, not group gaps. If treated clusters show lower delivery time across all orders, more completed deliveries and more courier hours than matched controls, the gain is real.
- If treated couriers beat in-cluster controls but cluster totals are flat, orders were just reallocated.
- Compare control couriers in treated clusters against couriers in pure-control clusters; a drop there is direct evidence of cannibalization.
Common mistakes
- Using a naive courier-level A/B test and reporting the gap as the effect.
- Measuring retention only among elite couriers.
- Proposing a switchback for a multi-week outcome.
- Ignoring the small number of clusters and quoting individual-level sample sizes.
- Forgetting that anticipation (couriers working harder to qualify) is part of the treatment effect.