KatInterview

Investigate Warm-Food Failures and Decide on a Fix

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsproduct analyticsexperimentationmetric design

Last updated

Diagnose why orders arrive cold, define measurable success, design a causal evaluation, and build a principled launch decision framework for a delivery marketplace.

You work as a data scientist at a three-sided delivery marketplace connecting customers, restaurants, and drivers. Recently, customer feedback has surfaced a recurring complaint: food is arriving cold. The product team has developed an intervention they believe will reduce this, and they want your recommendation on whether to roll it out company-wide.

Walk through your full analytical process: how you would measure the problem, what metrics you would track, how you would evaluate the intervention's effect, and how you would ultimately make the launch call. Be specific about what data you would look at and what comparisons you would make. If a clean randomized experiment is not possible, propose a credible fallback.

Setup and Constraints

  • The marketplace has three stakeholders: customers, restaurants, and drivers. A solution that materially harms one side to benefit another does not count as a win.
  • "Food arrived cold" is not yet a well-defined metric. You will need to propose a working definition — and be upfront about its weaknesses.
  • The intervention is intentionally left unspecified. Part of your answer should explain how the experimental design changes depending on whether the fix operates at the order, driver, restaurant, or market level.
  • Available data includes: order event logs, promised vs. actual delivery times, customer support contacts, refunds, ratings, restaurant and driver identifiers, geographic data, item-level attributes, and experiment exposure logs when a test is running.
  • Complaints and refunds are not clean ground-truth labels for temperature. Treat them as noisy signals.

Questions Worth Asking Before Starting

  • What exactly is the intervention, and what is the natural unit at which it can be assigned?
  • Which segments — cuisine types, delivery distances, cities, order times — show the worst rates?
  • Is there a direct temperature measurement anywhere, or only indirect signals like refunds and ratings?
  • Is the primary goal fewer cold-food incidents, better retention, lower support costs, or some combination?
  • What is the decision deadline, the minimum effect that would justify the cost, and the observation window?

Part 1: Turn "Cold Food" into a Measurable Problem

Describe how you would construct a workable definition for a cold-food incident from available data. Then explain what analyses you would run to estimate how widespread the problem is, where it is concentrated, and whether what you are seeing is a genuine operational issue or a measurement artifact.

Part 2: Build a Metric Hierarchy

Propose a structured set of metrics: one primary metric, supporting secondary metrics, and guardrails covering all three sides of the marketplace plus economics. For each important metric, state the direction of desired movement and the unit of analysis.

Part 3: Estimate the Causal Effect of the Intervention

Design a randomized experiment if one is feasible. Cover the randomization unit, what the control condition is, how you would log exposure, what population you would analyze, and what statistical approach you would use. Address interference, statistical power, novelty effects, and variation across segments. Then describe what you would do if randomization is off the table.

Part 4: Make the Launch Decision

The evaluation has concluded. Describe a decision framework for choosing between launching, iterating, collecting more data, or stopping. Specifically address: a statistically significant but negligibly small effect, a strong average effect that harms a particular segment, and a result that is inconclusive.

Hints

Hint 1

Before defining any metric, map the physical delivery funnel step by step — order placed, restaurant prep, food ready, driver pickup, transit, dropoff — and ask where heat loss is most likely to occur. A complaint label skips this entirely and may point you at the wrong stage.

Hint 2

Match the randomization unit to the unit at which the intervention is assigned, not to whatever gives you the most statistical power. A driver-level intervention randomized at the order level will produce severely biased estimates due to interference — the same driver carries both treatment and control orders.

Hint 3

When you reach the launch decision, evaluate four things independently: how much you trust the evidence, how large the effect actually is relative to cost, whether any guardrail was breached, and how easy it is to reverse the change. A p-value below 0.05 addresses only the first of these four.