KatInterview

Diagnosing and Testing Solutions for Food Temperature Issues

Statistics & ExperimentsModel answer
HardModel answerStatistics & Experimentsexperimentationmetricscausal-inference

Last updated

Design metrics, isolate root causes, and run an experiment to address customer complaints about meals arriving cold at delivery.

Context

A food delivery platform has seen a sharp increase in customer reports that meals arrive cold. You have detailed operational data: order timestamps, courier location traces, restaurant preparation logs, weather conditions, and customer feedback.

Your Task

Develop a framework to understand and address this quality issue:

  1. Metric Definition: Create a primary metric that captures when food arrives colder than acceptable. How would you confirm this metric actually reflects customer satisfaction?

  2. Root Cause Analysis: Determine whether the problem originates in the restaurant kitchen or during the delivery journey. What data would you examine and how would you segment it?

  3. Experiment Design: You want to test a new requirement: couriers must photograph their insulated delivery bag before they can accept orders. Design an experiment to measure whether this reduces cold-food complaints.

    • What is the correct unit of randomization?
    • How do you prevent interference between treatment and control groups when couriers compete for the same orders?
    • What guardrail metrics ensure this intervention doesn't harm the platform?

Constraints

  • Orders volume is high in each market
  • Weather and geography vary significantly across regions
  • Prioritize practical, implementable analysis over theoretical perfection

Hints

Hint 1

Break the delivery journey into distinct stages with clear timestamps to pinpoint where delays occur

Hint 2

Consider that couriers in treatment and control groups compete for the same pool of orders, creating spillover effects

Hint 3

The intervention only affects in-transit temperature retention, not kitchen prep or handoff delays