Designing Experiments Across a Three-Sided Delivery Marketplace
Statistics & ExperimentsModel answerLast updated
Reason through A/B design, randomization units, and root-cause diagnosis for delivery-marketplace programs, promotion systems, and a spike in cancellations.
You are working as a product data scientist on a three-sided delivery marketplace (eaters, couriers, restaurants). Work through three scenarios.
1. Courier status/rewards program. The company is considering a tiered program that gives top-performing couriers perks (priority scheduling, better order access).
- What are the marketplace and product upsides and downsides?
- Define a primary metric, supporting metrics, and guardrails spanning all three sides.
- Pick a randomization unit (courier, order, market, or time-based switchback) and defend the trade-offs, especially interference.
- The treatment arm's headline metric comes in below control. Walk through how you'd determine whether this is a real negative, a power problem, an imbalance, a novelty effect, spillover, or a data-quality issue.
2. Cancellation rate jumped. Overall order cancellation rate is materially higher than normal.
- Who in the organization is affected?
- Give a structured diagnostic plan: metric validation, decomposition, hypotheses, validation.
- Account for funnel stage, initiating party, market/time segmentation, merchant quality, inventory, ETA, courier supply, weather, app performance, and recent policy/product changes.
3. Merchant-configured vs. auto-generated promotions. The company must choose between merchants setting up their own promotions and the platform auto-recommending or auto-launching them.
- Weigh pros and cons of each.
- Design the comparison experiment, justify the randomization unit, and name the trade-offs to watch (adoption, trust, cannibalization, incremental GMV, contribution margin, discount dependence, heterogeneity).
Expect a spoken walkthrough: emphasize interference, metric definitions, and disciplined diagnosis over formulas.
Hints
Hint 1
In a marketplace, units share supply and demand, so untreated units get affected by treatment — name the interference risk before designing anything.
Hint 2
Separate mix shift from rate change when a aggregate rate moves; a growing high-risk segment can inflate the total without any segment worsening.
Hint 3
Tiered courier programs change behavior over weeks, so short switchback windows may be invalid due to carryover.
Hint 4
For any 'effect went negative' question, run SRM and pre-period balance checks before interpreting the number.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
This is deliberately open-ended. The interviewer wants to hear structured thinking about interference in a three-sided market, clean metric definitions, and a diagnosis plan that separates a causal finding from a measurement artifact.
Scenario 1: Courier tier/rewards program
Upsides and downsides. The upside is behavior shaping: rewarding high acceptance, on-time rate, and ratings raises reliability and retains the most productive couriers, which improves eater experience. The downside is that access to good orders and shifts is close to zero-sum — perks given to some couriers are taken from others. Non-tier couriers may churn, shrinking off-peak supply exactly when the marketplace needs them most. Couriers may also game the criteria (cherry-picking to hit acceptance thresholds near qualification), and there are fairness and regulatory-perception risks plus concentration risk if top couriers leave. Allocating priority also raises the risk that high-status couriers cluster on high-value orders, starving new couriers.
Metrics. Primary: a marketplace-level delivery quality rate — share of orders that are on time with no cancellation and no missing-item/issue reports. Supporting: courier acceptance rate, active hours, earnings per active hour, tier retention. Guardrails must cover all three sides: courier guardrails for non-tier earnings and churn and total supply hours; eater guardrails for cancellation rate and peak delivery time; merchant guardrails for food wait time and merchant-initiated cancellations; and unit cost per delivery.
Randomization unit. Courier-level gives high power but is badly biased: treated couriers get better orders because control couriers get worse ones. That is a SUTVA violation, and the on-paper effect is overstated because part of the gain is a transfer. Order-level is meaningless since the treatment belongs to the courier. Market-level (geo) captures the full equilibrium including non-tier churn, but you get few units and high variance — mitigate with matched markets, synthetic control, and pre-period adjustment. Switchback works for instant effects like dispatch priority but fails for a status program, because status changes behavior over weeks (scheduling habits, retention) and carryover across windows invalidates it.
Recommendation. A market-level test, ideally staggered or in waves, with an optional courier-level holdout nested inside treated markets to study individual behavior. State explicitly that the courier-level estimate is biased upward.
When treatment comes in below control:
- Data quality — logging consistent across arms, no metric-definition change, no bot/test accounts.
- Sample ratio mismatch — chi-square on assignment counts; stop and fix assignment before interpreting anything.
- Pre-period imbalance — compare pre-experiment metrics; with few geo units this matters most; re-estimate with CUPED or difference-in-differences.
- Power — report the confidence interval width against the MDE; cluster the variance at the market level, not the order level.
- Novelty/adjustment — plot the effect over time; couriers may over-invest early to qualify, temporarily hurting quality.
- Mechanism/spillover — decompose by courier tier; tier couriers improving while non-tier degrade or churn is a real equilibrium negative.
- Heterogeneity — split by market density and time of day; low-supply markets may suffer while dense markets gain.
If it survives, treat it as real and reconsider eligibility criteria rather than discarding the idea.
Scenario 2: Cancellation rate spike
Affected teams: logistics/dispatch, courier ops, merchant success, consumer product and app engineering, support (tickets, refunds), finance (refunds, wasted courier pay), trust and safety (fraud).
Validate the metric first. Did the definition, logging, or pipeline change? Did the denominator shift (new order types, new users)? Is the change a step (release/outage) or a drift (supply or quality erosion)?
Decompose. Cancellations = Σ(segment share × segment cancel rate). Split mix shift from rate change — a growing high-risk segment can raise the total without any segment worsening. Cut by initiating party (eater, merchant, courier unassign, system/support), funnel stage (pre-merchant-acceptance, during prep, awaiting courier, post-pickup), market and hour, platform/app version, order type (restaurant vs. grocery, scheduled vs. ASAP, new vs. returning), and top contributing merchants.
Hypotheses and validation (timing + localization + counterfactual):
- Courier shortage: cancels at "awaiting courier," long assignment times, peaks/weather; correlate with supply/demand ratio by market-hour.
- ETA inflation: eater cancels after ETA rises; compare against an ETA-model release.
- Inventory/out-of-stock: merchant or eater cancels after substitution; concentrated in grocery or specific merchants.
- Merchant quality: a few merchants dominate; tablet offline; closed-but-listed (store-hours sync bug).
- App performance/payments: platform- or version-specific crashes/latency; payment failures.
- Weather/events: market- and date-specific; join weather and compare year-over-year.
- Policy/product change: step change at launch; diff-in-diff against not-yet-rolled-out markets; rollback if feasible.
- Fraud: new accounts, repeated cancel-refund patterns.
Close by sizing each driver's contribution to the delta, prioritizing by impact, and proposing a fix plus a monitoring plan.
Scenario 3: Manual vs. automatic promotions
Merchant-configured promotions preserve control, trust, and relevance (merchants know their margins), but suffer from low adoption, setup friction, and weak optimization. Auto-generated promotions raise adoption and can be optimized for the marketplace, but risk trust erosion ("the platform is spending my money"), misfires on thin-margin merchants, cannibalization of organic orders, and discount dependency among eaters.
Randomize at the merchant level for clean attribution, but recognize cross-merchant interference: promotions on merchant A can pull demand from merchant B in the same market. If the concern is real, cluster randomize at the market level. Measure primary incremental GMV (net of cannibalization, using a holdout or baseline); guardrails on contribution margin, discount rate, eater retention, and merchant satisfaction. Pre-register heterogeneous effects by merchant type (chain vs. independent), cuisine, price tier, and market density. Watch novelty and gaming (promotion stacking) and run long enough to detect discount dependence.
Common mistakes: skipping SRM/balance checks; ignoring interference by randomizing at courier or order level; forgetting mix shift; and reporting aggregate rates without the initiator split.