KatInterview

Diagnosing a Spike in Warm Food Delivery Complaints

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsproduct analyticsexperimentationdecomposition

Last updated

Investigate a rise in temperature complaints across the delivery funnel, separate mix shifts from operational decay, and design a marketplace-safe experiment to test a fix.

Context

Over the last six weeks, a food delivery platform has seen a 28% jump in customer contacts citing food that arrived cold or only lukewarm, concentrated in one large city. The merchant operations and logistics teams are split on the cause: some believe delivery routing has deteriorated; others suspect restaurants are sending food out too early; a few think the complaints themselves are a statistical artifact.

You are the data scientist embedded on the Fulfillment Quality team. Your job is to run the investigation end-to-end and propose a testable intervention.


Part 1 — Measurement Integrity

  1. Construct a primary metric for "temperature failure rate" that draws on support contacts, refund requests, and post-delivery ratings. What systematic biases arise when support tickets are used as the sole numerator, and how would you build a corrected or proxy measure that tracks real dissatisfaction more reliably?

  2. What signals from the order lifecycle would help you distinguish actual physical cooling (food genuinely arriving cold) from increased willingness to complain (the same food quality generating more contacts)? Be specific about telemetry sources and tests you would run.


Part 2 — Decomposition & Root Cause

You have per-order timestamps: order_placed, order_confirmed_by_merchant, dasher_assigned, dasher_arrived_at_store, order_picked_up, and order_delivered.

  1. Segment the fulfillment timeline into meaningful intervals and reason through which segment carries the most thermal risk. Justify your answer — raw correlation with the complaint signal is not sufficient.

  2. The platform-wide temperature complaint rate rose from 1.2% to 1.54% of completed orders, a +0.34 percentage point increase. Walk through a mix-shift decomposition that partitions this change into:

    • A composition effect — the order mix has shifted toward inherently riskier order types (e.g., more stacked deliveries, longer distances, colder ambient temperatures, cuisine types that cool quickly).
    • A performance effect — complaint rates have risen within order types that have not changed in share.

    Show the decomposition formula, explain how you would attribute the composition effect to individual factors, and describe what a large performance effect would imply operationally.


Part 3 — Experiment Design & Guardrails

The logistics team wants to test tightening the maximum allowed courier travel distance and restricting order stacking for cuisines prone to rapid cooling.

  1. State the hypothesis formally. Choose a randomization unit and justify it — specifically address why customer-level or courier-level randomization creates interference problems in a shared-supply marketplace.

  2. Define your primary success metric, at least three secondary metrics, and the guardrail conditions you would place on customers, couriers, and restaurants. What thresholds would trigger a pause or rollback?

Hints

Hint 1

Before investigating operations, check for reporting artifacts first — a new refund flow, a UI prompt, or a tagger change near the inflection date can produce a complaint spike with zero underlying quality change. Rule that out before touching any funnel data.

Hint 2

Food starts cooling when it leaves the kitchen, not when the order is placed. The thermal clock that matters is time-from-ready, not time-from-placed. Think about which timestamp events proxy for 'food ready' and where the exposure accumulates most in a stacked delivery.

Hint 3

Customer-level A/B randomization fails here because courier supply is pooled. Removing stacking for treated orders uses up more couriers, which degrades availability for control orders — the control group is contaminated and your measured lift is understated. Think about what randomization unit breaks that interference.