Designing a Marketplace Experiment for a Courier Preference Feature
Statistics & ExperimentsModel answerLast updated
Design a rigorous pilot study to evaluate a courier-controlled order filter, balancing supply-side satisfaction against customer fulfillment risk in a two-sided marketplace.
Background
A food delivery platform is weighing a new feature that lets couriers set a personal cap on how far they are willing to travel for an order. Couriers want it because shorter trips reduce fuel costs and physical wear. Operations leadership is skeptical: if couriers in dense areas all cap their range, the platform may stop reliably serving customers who place orders far from available couriers — creating coverage gaps and rising cancellation rates.
You have been asked to design a pilot study before any wider rollout.
Your Task
Address each of the following areas:
1. Experimental Design
What should be the unit of randomization — individual courier, city, or something else — and why does that choice matter here? How would you detect and limit contamination between your treatment and control groups given that couriers and orders share the same dispatch pool?
2. Metric Framework
Identify the metrics you would track for each side of the marketplace. How do you decide which metrics are primary, which are guardrails, and which are diagnostic? How do you avoid the situation where each side looks fine in isolation but the marketplace as a whole is worse off?
3. Decision Rule
Suppose the pilot concludes and courier-side metrics improved while customer wait times also crept up. Walk through how you would decide whether to ship the feature, hold it, or launch it with modifications.
Constraints
- The platform operates across thousands of geographically distinct markets with a wide range of population densities, from dense urban cores to sparse suburban areas.
- You have full order-level data: offer timestamp, courier GPS at offer time, order distance, tip, delivery outcome, and time-to-assign.
Hints
Hint 1
Think about what happens to the orders a treatment courier declines. Who picks them up, and what does that do to your control group's measurements?
Hint 2
A metric like 'earnings per hour' can rise even if the feature creates no real value — consider why, and what cost it might be hiding.
Hint 3
Rather than averaging courier and customer outcomes together, think about what it would take to put them on the same scale so you can net them out.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
What Makes This Problem Hard
This is a two-sided marketplace, which means the standard A/B test assumption — that treatment and control units do not interact — breaks down immediately. A strong answer names that problem first, then builds everything else around it.
1. Experimental Design
Why randomizing by courier is wrong
Imagine 50% of couriers in a city get the feature and start declining long-distance offers. Dispatch reassigns those offers to control couriers. The result:
- Treatment couriers accumulate short, high-value-per-mile trips — their metrics look great.
- Control couriers absorb the unwanted long trips — their metrics look worse than baseline.
- Long-distance orders still get fulfilled by someone, so customer harm is masked.
This is a SUTVA (Stable Unit Treatment Value Assumption) violation. The bias runs in exactly the wrong direction: the feature appears more beneficial and less harmful than it actually is.
Randomize at the market level
The correct unit is a self-contained dispatch market — typically a city or a well-defined submarket where couriers rarely cross boundaries. Within a market, every courier is either in treatment or control, so there is no cross-contamination via order reassignment.
With thousands of markets available, statistical power is achievable. To control for the large variance across markets:
- Stratify before randomizing. Create matched pairs on order density, courier-to-order ratio, share of long-distance orders, urban/suburban mix, and baseline delivery time. Randomize within each pair.
- Use CUPED or difference-in-differences. Regress on 4–8 weeks of pre-period outcomes to absorb market-level noise and tighten confidence intervals.
- Run for 6–8 weeks minimum. Couriers adjust their radius setting over time, and retention effects take weeks to materialize. Track week-over-week trends to separate novelty effects from steady state.
- Monitor boundary zones. Couriers who regularly cross adjacent market lines should be flagged; either exclude them from analysis or assign them to whichever market is their primary.
Why not a switchback design?
Switchbacks (alternating treatment and control by time block) work well for short-horizon dispatch metrics like time-to-assign. They fail here because the feature is a persistent courier setting — exposing the same courier to both conditions contaminates any retention or satisfaction signal, and the carryover from repositioning behavior is large.
Optional: saturation design
Within treated markets, randomly assign what fraction of couriers gain access (say 20%, 50%, or 100%). This directly estimates the spillover dose-response and is especially useful if a partial rollout — for example, only tenured couriers — is on the table.
2. Metric Framework
| Tier | Metric | Purpose |
|---|---|---|
| Primary | Net completed orders per market-week; contribution margin per market | Captures both sides in one number |
| Courier primary | 30- and 60-day retention; active hours per courier; earnings per active hour including repositioning time | Tests the core thesis |
| Customer primary | Delivery time P50 and P90; 28-day repeat order rate | Tests the core risk |
| Guardrails | Long-distance order P90 delivery time; unassigned order rate; incremental incentive (boost/peak pay) spend per order; suburban merchant order volume | Detects delivery deserts and hidden costs |
| Diagnostics | Feature adoption; chosen radius distribution; acceptance rate; offers per delivery; time-to-assign | Explains why primary metrics moved |
Primary vs. guardrail distinction. The marketplace economic metric is primary. Customer guardrails require non-inferiority against a pre-specified margin — for example, long-distance P90 delivery time no worse than +2 minutes. Courier retention requires superiority. Both conditions must be true to ship; either can block the launch.
The earnings-per-hour trap. Earnings per active hour can rise simply because a courier refuses low-paying long orders — not because the feature created economic value. The cost is that someone else (often the platform, via a pay boost) now clears that order. That incremental incentive spend must show up as a cost in the analysis, not be hidden in a courier-only view.
3. Decision Rule When Both Sides Move
Convert the treatment effects to a common currency at the market level:
Net value = supply-side gain − customer-side loss − incremental incentive spend
- Supply-side gain: Retained couriers × replacement cost (acquisition + onboarding) + value of additional supply hours (which reduce future surge pricing needs).
- Customer-side loss: Change in delivery time × elasticity of order frequency with respect to delivery time × customer lifetime value, plus direct cancellation losses (refunds, credits). Use elasticity estimates from prior experiments or natural experiments such as weather-driven delays.
- Incremental incentive spend: Extra boosts or peak pay required to clear long-distance orders that couriers now decline.
Ship if net value is positive with 90% confidence and no guardrail breaches its pre-registered margin. Pre-register this rule before unblinding to prevent cherry-picking.
Additional checks
Segment by market density. The most likely outcome is net-positive in dense urban markets and net-negative in sparse suburban ones. That finding supports a targeted rollout rather than a blanket one, or it informs product guardrails — for example, disabling the radius cap when supply in a market drops below a threshold, or automatically lifting the cap for couriers who have been idle for a set period.
Plan for the long run. An 8-week test understates the long-run supply response: better retention eventually increases supply, which can bring wait times back down. Keep a holdout set of markets for 3–6 months post-launch to measure equilibrium effects.
Common Mistakes
- Randomizing by courier and reporting the inflated, contaminated lift.
- Treating average delivery time as sufficient coverage of customer harm — the real damage is concentrated in the long-distance tail and in lower-density markets.
- Ignoring who absorbs declined orders and at what pay cost to the platform.
- Averaging courier and customer metrics rather than converting them to a net value with explicit monetization assumptions.
- Declaring success on a single-sided metric without checking whether guardrails hold.