KatInterview

Diagnose a Dinner-Peak Order Slump and Design a Supply Experiment

Statistics & ExperimentsModel answer
HardModel answerStatistics & Experimentsexperimentationfunnel-analysismarketplace

Last updated

Decompose a sudden completed-order drop in a delivery marketplace, isolate the supply-side driver, and design a rigorous experiment to validate and fix it.

Context

You work as a data scientist at a food-delivery platform. Comparing the week of Aug 25 to the week of Aug 18, completed orders in your largest metro fell 12% week-over-week. Before you escalate, you pull together the following early signals:

SignalAug 18 weekAug 25 week
Sessionsbaseline+4% WoW
Orders createdbaseline+1% WoW
Courier assignment success rate94%88%
p95 estimated delivery time42 min58 min
Cancellations: reason = no_courier1.5%5.8%

Restaurant availability, menu pricing, and marketing spend are all unchanged. The degradation is concentrated in the 6 PM – 9 PM window.


What you are asked to do

Part A — Diagnosis

Walk through the full fulfillment funnel:

session → order_created → assigned → picked_up → completed
  • Quantify each stage's contribution to the −12% using the numbers above, and identify what's still unexplained.
  • Specify the exact segmentation cuts (time-of-day, geography, courier density, restaurant type, distance, incentive level) you would apply.
  • List the sanity checks you would run before committing to a supply-side hypothesis — instrument failures and config changes can mimic supply shocks.
  • Define the additional supply metrics you would compute and the specific thresholds that would confirm supply as the primary bottleneck.

Part B — Experiment design (RCT)

Assuming supply shortage during the dinner peak is your leading hypothesis, design a randomized test of a targeted courier incentive or delivery-fee adjustment.

Cover:

  • Experimental unit and randomization strategy, including how you handle interference (couriers moving between zones)
  • Primary metric, secondary metrics, and guardrails
  • Success criteria with concrete thresholds
  • Power / MDE calculation and required sample size, with assumptions stated
  • Test duration and ramp plan
  • How you account for seasonality

Part C — Quasi-experimental fallback

If a clean RCT isn't feasible (insufficient geo units, business constraints), describe a quasi-experimental design using comparable markets — for example, a difference-in-differences or synthetic control approach.

  • Which comparison markets would you use and why?
  • What pre-trend checks are required before trusting the estimate?
  • What robustness tests would you run afterward?

Provide a concrete checklist for either path (RCT or quasi-experiment) that another analyst could follow without ambiguity.


Interviewers care about: arithmetic-first decomposition, ruling out instrumentation issues before theorizing, awareness that supply problems can suppress demand metrics, and honest sizing of experiments under marketplace interference.

Hints

Hint 1

Start by doing the multiplication: apply the accept-rate drop and the no_courier cancel-rate increase to the creation baseline, check what fraction of the −12% that accounts for, and name what's left. The residual points directly to where else to look.

Hint 2

Before concluding 'supply shortage,' ask whether a logging bug, a dispatch config change, or a courier-app release could produce the same fingerprint. A deploy log and event-volume parity check take five minutes and can save you from designing an expensive experiment for the wrong problem.

Hint 3

Geo-cluster randomization solves interference only partially — couriers cross zone boundaries. Build buffer zones between treatment and control, and track courier inflow (share of treated-zone deliveries by couriers whose home zone was control) as a guardrail, not an afterthought.