Root-Causing Lukewarm Meal Complaints and Testing a Fix
Statistics & ExperimentsModel answerLast updated
Investigate a surge in "food arrived cold" complaints on a delivery marketplace, define diagnostic and monitoring metrics, and design a randomized experiment for a heat-retention fix.
Scenario
You work on analytics for an online food-delivery marketplace. Over the last few weeks, the share of customers reporting that their meal "arrived cold" has jumped noticeably. Leadership wants to know why and wants a fix.
Your task
Answer the following as you would in a analytics-focused onsite round:
- Diagnosis. How would you work out why customers are receiving cold food? Explain how you would confirm the spike is genuine and how you would narrow down the cause.
- Metrics. Which metrics would you break down and keep monitoring? Separate early-warning (leading) indicators from customer-outcome (lagging) indicators, and name guardrails.
- Experiment. Propose a solution intended to keep food hot and design an A/B test for it. Cover the hypothesis, the unit of randomization, primary/secondary/guardrail metrics, sample size and duration, and how you would analyze the results.
State your assumptions clearly. Where the unit of randomization could cause problems in a two-sided marketplace, explain the risk and how you would handle it.
Hints
Hint 1
Before explaining the spike, ask whether it is real: normalize by order volume, check for changes in how complaints are collected, and check whether the mix of orders, markets, or seasons shifted.
Hint 2
Break the journey into stages (prep, wait for pickup, transit, handoff) and focus on the time between food being ready and reaching the customer. Treat batched orders and packaging as separate hypotheses.
Hint 3
Choose the randomization unit based on the type of fix: a physical item carried by couriers can be randomized by courier, while a dispatch or batching change shares a supply pool and calls for switchback or market-level designs.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
What a strong answer shows
A good answer does three things: it checks the problem is real before explaining it, it breaks the delivery into measurable stages, and it picks an experiment design that respects interference in a two-sided marketplace.
Step 1: Confirm the spike is real
- Normalize. Use cold-food complaints per 1,000 delivered orders, not raw counts. Volume growth alone can inflate counts.
- Check measurement changes. A new complaint category, a redesigned help flow, or a more generous refund policy can raise reported complaints without any change in food temperature.
- Check mix shift. Decompose the change into within-segment rate changes and changes in segment weights (new markets, colder season, new merchants with long prep times).
- Date the onset. Line it up against release logs: dispatch, batching, courier pay, merchant onboarding.
If rates rose within stable segments and reporting did not change, treat it as real.
Step 2: Decompose the order lifecycle
Food cools from the moment it is ready, so the central diagnostic is ready-to-door time, split into stages:
| Stage | Metric | Cold-food hypothesis |
|---|---|---|
| Order to merchant confirm | Confirm latency | Rarely direct |
| Confirm to food ready | Prep time vs. quoted estimate | Bad estimates cause food to sit or couriers to wait |
| Food ready to pickup | Food-wait time | Courier arrives late, food sits |
| Pickup to dropoff | Transit time, distance, stops | Long routes, traffic, stacked orders |
| Arrival to handoff | Last-mile time | Apartments, parking |
| Throughout | Insulated-bag use, packaging | No insulation, weak packaging |
Batching gets its own cut. Compare single orders, batch position 1 (rides along during the second pickup), and batch position 2, controlling for distance.
Step 3: Segment to localize the cause
Cut complaint rate and each stage metric by:
- Geography/time: market, zone, daypart, weather/temperature.
- Merchant: cuisine (fries and soup are sensitive, salad is not), individual merchants, packaging, prep-estimate accuracy.
- Courier: vehicle type, tenure, bag ownership.
- Order: distance, batched or not, basket size, dropoff type.
Then fit a logistic regression of complaint (0/1) on stage durations, batching, distance, weather and cuisine to see which factors matter after adjusting for the rest.
Illustrative finding: food-wait time rose about 4 minutes after a dispatch change that assigns couriers later, concentrated at dinner peak in cold markets. That points to dispatch timing, not packaging.
Step 4: Metrics to monitor
Lagging (outcomes)
- Cold-food complaint rate per delivered order (primary).
- Refund/credit dollars per order.
- Ratings and CSAT.
- 28-day reorder and churn among customers who got a cold order.
Leading (operational)
- Ready-to-door time at p50 and p90 (the tail drives complaints).
- Food-wait time, transit time, share of orders batched.
- Prep-time estimate error.
- Insulated-bag compliance (photo or check-in).
Guardrails
- End-to-end delivery time and ETA accuracy.
- Courier deliveries per hour and earnings per hour.
- Cost per delivery, cancellation rate, conversion.
Caveat: complaints are self-selected and underreported. Add an unbiased signal, such as a random post-delivery "Was your food hot?" survey on a sample of orders.
Step 5: Experiment design
Solution: provide couriers with an improved insulated bag and require it for hot-food orders.
Hypothesis: better insulation lowers the cold-complaint rate without hurting delivery time or courier efficiency.
Randomization unit: the courier.
- The bag is physical and travels with the courier, so order-level randomization is impossible.
- Customer-level randomization would not control which courier arrives.
- Stratify by market, vehicle type and activity level.
- Analyze at the order level with courier-clustered standard errors.
If the fix were algorithmic (cap batching on hot items, dispatch couriers earlier), courier-level randomization fails because treatment and control draw from the same supply pool, so one arm's behavior changes availability for the other (interference). Use a switchback design (market x time block, e.g. one-hour windows) or market-level randomization. Include washout or buffer periods and randomize block order to guard against carryover and time-of-day confounding.
Metrics
- Primary: cold-complaint rate per delivered hot-food order.
- Secondary: survey-reported temperature, refund dollars, rating, reorder rate.
- Guardrails: delivery time, courier acceptance and earnings, courier churn.
Sample size (illustrative)
- Baseline 3% complaints, target 10% relative reduction, so MDE = 0.3 percentage points.
- With alpha = 0.05 and 80% power: n is approximately 16 * p(1-p) / delta^2 = 16 * 0.0291 / 0.000009, about 52k orders per arm.
- Clustering inflates this by the design effect 1 + (m-1) * ICC. With 40 orders per courier and ICC = 0.02, the factor is about 1.8, giving roughly 94k orders per arm, about 2,300 couriers per arm.
- Run at least two full weeks to cover weekly seasonality; longer if weather varies.
Analysis
- Intention-to-treat is primary: compare all couriers assigned bags with control regardless of usage. This reflects the effect at launch.
- Compliance: if usage is partial, estimate the complier average causal effect using assignment as an instrument for usage.
- Variance reduction: CUPED using each courier's pre-period complaint rate.
- Heterogeneity: by vehicle, distance, batched vs. single, weather, to decide where to roll out first if bags are costly.
- Novelty: compliance may be unusually high early on, so inspect the effect week by week.
Common mistakes
- Explaining the spike before checking for reporting or mix changes.
- Using average delivery time rather than tail percentiles or ready-to-door time.
- Randomizing by order when the intervention is physical or when supply is shared.
- Ignoring clustering, which understates standard errors and overstates significance.
- Declaring success on complaint rate alone without checking delivery time and courier earnings.
- Relying only on complaints, which are biased by who chooses to report.