Investigate a Sharp Drop in Marketplace Delivery Volume
Statistics & ExperimentsModel answerLast updated
Diagnose an 18% single-day decline in completed deliveries using structured funnel analysis, hypothesis testing, and merchant impact quantification.
Scenario
You work as a data analyst at a food delivery marketplace. Last Tuesday, your operations dashboard showed that completed deliveries in one of your largest cities fell to 82,000, down from the usual 100,000 based on the prior four weeks of Tuesday data—a decline of 18%. Your VP wants to understand what happened, whether this is a platform-wide issue or a localized event, and what steps to take next.
Your Task
Design and walk through a systematic investigation to identify the root cause of this volume drop. Structure your response around these dimensions:
-
Confirm the Signal Is Real: Before investigating business causes, how do you verify that the observed decline reflects actual delivery volume and not a measurement artifact? Name at least two data quality issues that could produce a false signal.
-
Decompose the Conversion Path: Model the delivery lifecycle as a multi-stage funnel from user session through order placement, restaurant confirmation, courier assignment, pickup, and final delivery. Explain how you would separate a top-of-funnel volume contraction (fewer users arriving) from a mid-funnel efficiency problem (lower conversion at a specific step).
-
Generate and Rank Hypotheses: Brainstorm potential causes across these categories, and describe how you would prioritize which to investigate first:
- Instrumentation and data pipeline issues
- Customer-side demand factors (app problems, marketing changes)
- Restaurant-side supply factors (outages, menu issues)
- Courier-side supply factors (driver availability, dispatch failures)
- External market conditions (weather, events, competition)
-
Quantify a Single Large Restaurant's Impact: If you suspect a major national chain went offline for the day, define a formula to calculate exactly how much of the 18,000-delivery shortfall is attributable to that chain. How would you determine whether independent restaurants were also affected, or whether customers simply substituted to other options?
-
Decide on Escalation and Monitoring: What criteria would you use to escalate this to engineering versus operations teams? How would you track recovery in the following days?
Hints
Hint 1
Start by reconciling event counts against an independent source like payment transactions or driver earnings
Hint 2
Break the funnel into multiplicative conversion rates so you can isolate which stage degraded
Hint 3
Check if other cities experienced the same drop—a universal decline suggests a tracking or platform issue, while a single-city drop suggests a local cause
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Model Answer
What This Question Tests
Interviewers want to see structured thinking under ambiguity: can you validate data quality, decompose a complex metric, size hypotheses quantitatively, and recommend clear next steps? Strong answers move methodically from "is this real?" to "where in the funnel?" to "what broke and by how much?"
1. Confirm the Signal Is Real
Before diagnosing business logic, validate that the metric accurately reflects reality.
Two common data quality issues that mimic volume drops:
-
Delayed or incomplete data loads. The table might be missing late-evening hours if an ETL job failed partway through. Check row counts by hour and compare partition arrival times to baseline. A sudden cutoff at 8 PM suggests incomplete data, not a true volume drop.
-
Event schema or filtering changes. A recent app update might have renamed the delivery completion event or introduced a new status value that your aggregation query doesn't recognize. For example, a new
completed_with_photo_confirmationstatus could be excluded by legacy filters that only countcompleted.
How to validate:
- Cross-check against independent truth sources: payment settlement records, driver payout logs, or restaurant order confirmations. If driver payouts show ~100k trips completed, the event-level drop is a tracking bug.
- Compare this city to others. If every market dropped 18% on the same day, suspect a centralized logging issue. If only one city dropped, it's likely a local operational cause.
- Look at raw event volumes hour-by-hour. A smooth all-day decline is different from a sudden cliff at a specific timestamp (which points to a system change).
2. Decompose the Conversion Path
Model completed deliveries as the product of sequential conversion rates:
Deliveries = Sessions × (cart rate) × (checkout rate) × (restaurant accept rate) × (courier assign rate) × (pickup rate) × (completion rate)
Where:
- Sessions = unique users who opened the app
- Cart rate = fraction who added items
- Checkout rate = fraction who placed an order
- Restaurant accept rate = fraction of orders the restaurant confirmed
- Courier assign rate = fraction of confirmed orders matched to a driver
- Pickup rate = fraction of assigned orders where the driver picked up food
- Completion rate = fraction of pickups successfully delivered
Separating volume from efficiency:
Take the log of the ratio to make the factors additive:
ln(82k / 100k) = ln(Sessions_new / Sessions_old) + Σ ln(rate_new / rate_old)
The total is ln(0.82) ≈ −0.20. If the session term accounts for most of this (say −0.18), while conversion rates are flat, you have a demand shock: fewer people opened the app. Causes include weather, a local holiday, an app store outage, or a login service failure.
If sessions are normal but one conversion rate plummeted, you have an efficiency failure at that stage:
- Checkout rate drop → payment processing errors or app bugs
- Restaurant accept rate drop → restaurant outages or point-of-sale system failures
- Courier assign rate drop → driver shortage or dispatch system latency
Segmentation strategy:
Slice each rate by:
- Hour of day (to spot sudden changes at deployment times)
- Platform (iOS vs Android vs web)
- App version
- Geographic zone
- Restaurant category or size tier
A sharp step change at 2 PM in a single app version strongly suggests a code regression. A gradual all-day decline across all segments points to external factors like weather.
3. Generate and Rank Hypotheses
Prioritize by likelihood × potential impact, and test cheap hypotheses first.
| Priority | Category | Hypothesis | Quick Check |
|---|---|---|---|
| 1 | Data pipeline | Incomplete partition, event schema change, timezone bug | Compare to payment data; check partition logs |
| 2 | Restaurant supply | Major chain offline, menu sync failure, POS outage | Order volume by restaurant vs baseline |
| 3 | Customer demand | App crash on new release, payment gateway errors, marketing campaign pause | Sessions and checkout rate by app version; error logs |
| 4 | Courier supply | Driver shortage, dispatch latency spike, pay structure change | Active driver hours; time from order-to-assignment |
| 5 | External | Severe weather, local event, public transit disruption, competitor promotion | Weather API; event calendar; neighboring cities |
Why this order?
- Data issues are cheap to check (query logs, compare to alternative sources) and surprisingly common.
- A single large restaurant chain can plausibly account for 10–15% of a city's volume, making this a high-impact single point of failure.
- Demand-side issues show clear signals in sessions and checkout metrics.
- Supply-side issues require more complex analysis but are identifiable through dispatch metrics.
- External factors are last because they're harder to quantify and usually affect multiple cities.
4. Quantify a Single Large Restaurant's Impact
Suppose you suspect a major national burger chain went offline.
Gross contribution:
ΔTotal = ΔChain + ΔOthers
Where:
- ΔChain = (Chain deliveries on Tuesday) − (Chain baseline)
- ΔOthers = (All other restaurants on Tuesday) − (All other restaurants baseline)
If the chain's baseline is 12,000 deliveries and it fell to zero, ΔChain = −12,000.
If other restaurants went from 88,000 to 82,000, ΔOthers = −6,000.
The chain explains 12,000 / 18,000 = 67% of the gross drop.
Accounting for substitution:
Some customers who couldn't order from the chain ordered elsewhere instead. To isolate this:
- Build a counterfactual baseline for "other restaurants" using control cities where the chain was online, or using trend forecasting.
- If the counterfactual predicts 80,000 (not 88,000), then "others" should have declined by 8,000 even without the chain outage.
- The actual decline was only 6,000, meaning +2,000 deliveries were recaptured from the chain outage.
- Recapture rate = 2,000 / 12,000 = 17%.
Full decomposition:
Total drop = (12k chain loss) − (2k substitution) + (8k independent decline elsewhere)
This reveals a second problem: the 8k decline in non-chain restaurants, which could be weather, driver shortage, or another shared cause.
Testing for spillover effects:
- Compare non-chain restaurants in zones with high chain density versus low chain density. If non-chain declines were concentrated near chain locations, that suggests shared courier supply or customer substitution patterns.
- Check whether drivers who typically work near chain locations logged off or moved to other zones.
5. Decide on Escalation and Monitoring
Escalate to engineering if:
- The drop is isolated to one platform, app version, or payment method
- Metrics show a step-change aligned with a deployment or configuration change
- Error rates or latency metrics spiked (e.g., checkout errors, API timeouts)
- Event data conflicts with financial records (suggests instrumentation bug)
Escalate to operations if:
- The issue is merchant-specific (restaurant outages, menu sync)
- Driver supply metrics are abnormal (low active hours, high unassigned order rates)
- External factors are confirmed (weather, local event)
Monitoring plan for the next 48 hours:
- Track hourly delivery volume against the same-day-of-week baseline
- Monitor the five key funnel conversion rates
- Set alerts for any rate falling more than 2 standard deviations below normal
- Segment by the dimensions where you found issues (e.g., if iOS was affected, watch iOS separately)
- If recovery is slower than expected, expand the investigation to lagging indicators like customer support tickets or merchant complaints
Recovery threshold: If volume recovers to within 5% of baseline within 24 hours, treat it as a transient issue. If the drop persists beyond 48 hours or worsens, treat it as a structural problem requiring deeper operational or product intervention.