Diagnosing and Testing a Drop in Delivery Order Completion Rate
Statistics & ExperimentsModel answerLast updated
Investigate a 5% week-over-week drop in successful order rate across a two-sided platform using structured diagnostic strategies and causal experimentation.
You work as a Senior Data Scientist at a major on-demand food delivery platform. During a weekly metrics review, executive leadership highlights that the Order Completion Rate (defined as completed orders divided by total initiated orders) dropped by 5% week-over-week across the platform.
Your task is to structure a systematic plan to address this issue:
- Diagnostic Strategy & Segmentation: Detail step-by-step how you would investigate this metric drop. Explain how to validate the data, map the conversion funnel, and slice dimensions to isolate the root cause while avoiding common aggregate pitfalls (e.g., Simpson's Paradox).
- Hypothesis Formulation: Formulate three testable, distinct hypotheses explaining potential drivers across each primary actor in the ecosystem: the customer, the merchant, and the courier.
- Causal Validation & Experiment Design: Select one of your hypotheses to validate rigorously. Outline both a observational approach for immediate diagnosis and a controlled experimentation framework (e.g., A/B test or spatial/temporal randomization) to evaluate a fix. Define primary metrics, mechanism indicators, and critical guardrails.
Hints
Hint 1
Always clarify whether the 5% shift is absolute (e.g., 90% to 85%) or relative (e.g., 90% to 85.5%), and verify data pipeline integrity before digging into business logic.
Hint 2
Decompose the overall delta into mix-shift versus rate-shift within specific customer, store, and courier segments.
Hint 3
Consider marketplace network effects when designing experiments; simple user-level randomization often leads to severe treatment spillover.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Executive Summary & Framework
To investigate a sudden 5% drop in Order Completion Rate ($CR = \frac{\text{Completed Orders}}{\text{Total Placed Orders}}$), a data scientist must avoid jumping to conclusions. The investigation follows four phases:
- Data Integrity & Metric Sanity Check
- Funnel & Segment Decomposition
- Marketplace Hypothesis Generation
- Causal Validation & Experimentation
Step 1: Data Integrity & Metric Sanity Check
Before running complex queries, rule out instrumentation or reporting artifacts:
- Absolute vs. Relative Drop: Clarify if this is a 500 bps absolute decline (e.g., $92% \rightarrow 87%$) or a 5% relative drop (e.g., $92% \rightarrow 87.4%$). Absolute drops of 500 bps represent severe operational incidents.
- Numerator vs. Denominator Analysis: Determine which side drove the ratio:
- Denominator spike: Did total placed orders surge while fulfillment capacity remained fixed? (e.g., accidental promotional push, duplicate billing retries).
- Numerator plunge: Did completed orders drop while total orders remained flat?
- Pipeline Health: Check for upstream logging failures, missing partition loads, or delayed asynchronous event streams (e.g., order completion webhooks delayed from POS systems).
- Seasonality & Calendar Factors: Compare against the same week year-over-year (YoY), accounting for holidays, severe weather events, or major sporting finals.
Step 2: Funnel Mapping & Segment Decomposition
A. Order Lifecycle Funnel Mapping
Trace the order lifecycle to pinpoint where cancellations surge. Each stage isolates a specific failure mode:
| Lifecycle Stage | Primary Failure Mode | Responsible Actor |
|---|---|---|
| 1. Checkout Submission | Payment auth failure, promo code error | System / Customer |
| 2. Merchant Transmission | Order unconfirmed, tablet offline, out of stock | Merchant / Tech |
| 3. Courier Matching | Unassigned timeout (no courier accepts) | Courier Supply / Logistics |
| 4. Merchant Pickup | Excessive store wait, prep delay unassign | Merchant / Courier |
| 5. Transit to Dropoff | Undeliverable address, traffic slip, lost package | Courier / Customer |
B. Dimensional Segmentation & Mix-Shift Decomposition
Break down completion rates across core dimensions:
- Geography: Region, market density (urban vs. suburban).
- Time/Daypart: Breakfast, Lunch, Dinner, Late Night, Weekday vs. Weekend.
- Client Platform: iOS app version, Android app version, Web client.
- Merchant Type: Enterprise chain (POS integration) vs. SMB (Tablet-based).
- User Cohort: New users vs. active subscribers vs. dormant reactivations.
To ensure we do not misattribute changes caused by shifts in user composition (Simpson's Paradox), perform a Kitagawa-Oaxaca-Blinder decomposition (or Mix-vs-Rate decomposition):
$$\Delta CR = \sum_{i} \left( w_{i, t_1} \cdot CR_{i, t_1} - w_{i, t_0} \cdot CR_{i, t_0} \right) = \underbrace{\sum_{i} \Delta w_i \cdot \bar{CR}i}{\text{Mix Effect}} + \underbrace{\sum_{i} \bar{w}i \cdot \Delta CR_i}{\text{Rate Effect}}$$
- Mix Effect: Did high-dropoff order types increase as a percentage of total volume? (e.g., aggressive acquisition marketing brought in low-intent new users).
- Rate Effect: Did completion rates degrade within specific, unchanging segments? (e.g., iOS users on version 5.2 experiencing crashing at checkout).
Step 3: Marketplace Hypothesis Generation
Formulate testable hypotheses covering the three actors in our platform:
1. Customer-Side Hypothesis (App Release Issue)
- Hypothesis: A recently released iOS client update miscalculated estimated time of arrival (ETA) at checkout, displaying overly optimistic prep times. When actual post-checkout ETAs jump by 15+ minutes, user-initiated cancellations spike.
- Signal: Cancellation rate spikes after order confirmation; highly correlated with specific app versions; ETA prediction errors ($ETA_{actual} - ETA_{quoted}$) increase significantly.
2. Merchant-Side Hypothesis (Integration / Stockout Outage)
- Hypothesis: A firmware update on tablet terminals caused merchant auto-rejection due to sync failures, or peak dinner rush caused systemic inventory mismatches (item out-of-stock).
- Signal: Spikes in cancellations occur strictly at Stage 2 (Merchant Transmission), concentrated in tablet-integrated SMBs rather than direct POS chains.
3. Courier-Side Hypothesis (Supply Deficit / Incentive Shift)
- Hypothesis: A reduction in base courier pay incentives during late-night hours caused couriers to decline low-payout offers, driving up unassigned order timeouts.
- Signal: Dropoffs concentrate in late-night dayparts; courier offer acceptance rate drops; Stage 3 (Courier Matching) timeouts account for the vast majority of failed orders.
Step 4: Causal Validation & Experimentation Design
Assume Stage 3 diagnostic data strongly points to the Courier Supply Deficit hypothesis (insufficient courier acceptance during peak dinner rush).
A. Observational Validation (Immediate)
Before launching a test, validate the mechanism observationally:
- Dose-Response Curve: Plot market-level completion rate against the active courier-to-open-order ratio ($\frac{\text{Couriers}}{\text{Demand}}$). If supply constraints drive the drop, completion rate should decay non-linearly once this ratio crosses below a critical threshold.
- Difference-in-Differences (DiD): Compare markets where courier pay incentives remained constant (Control) versus markets where incentives were adjusted (Treatment) pre- and post-drop.
Completion Rate
| Control (Unchanged Incentive Market)
CR% |------*-------------------*
| \
| \ <- Parallel Trends hold pre-period
| *----------------* Treatment (Reduced Incentive Market)
+---------------------------------------> Time
[Policy Shift]
B. Controlled Experimentation: Switchback Design
Because couriers share a localized physical supply pool, standard user-level A/B testing introduces severe interference and spillover effects (e.g., treating one order consumes a courier, depriving a control order).
Recommended Methodology: Spatial-Temporal Switchback Experiment (Cluster-randomizing time windows within geographic regions).
- Randomization Unit: 1-hour time blocks randomized between Baseline Incentive Structure (Control) vs. Boosted Peak Payout (Treatment) within a target city.
- Burn-in / Washout Period: Exclude the first 10 minutes of every 1-hour window from analysis to eliminate carryover supply effects from the preceding block.
- Experiment Duration: 14 days (to capture day-of-week seasonality and ensure sufficient power across peak/off-peak cycles).
C. Metrics Framework
+-----------------------------------+
| Primary North Star Metric: |
| Order Completion Rate |
+-----------------------------------+
|
+----------------------------+----------------------------+
| |
+-----------------------+ +-----------------------+
| Mechanism Metrics: | | Guardrail Metrics: |
| - Courier Acceptance | | - Cost Per Order |
| - Time-to-Assign | | - Active Earnings/Hr |
| - Cancel Rate (Stage3)| | - Customer ETA Slip |
+-----------------------+ +-----------------------+
- Primary Metric:
- Order Completion Rate ($\frac{\text{Completed Orders}}{\text{Placed Orders}}$)
- Mechanism Metrics (Confirming the causal lever):
- Courier Offer Acceptance Rate ($\frac{\text{Accepted Offers}}{\text{Dispatched Offers}}$)
- Unassigned Order Timeout Rate ($\frac{\text{Orders Timing Out Unassigned}}{\text{Placed Orders}}$)
- Average Time-to-Assign (Seconds from order confirmation to courier acceptance)
- Guardrail Metrics (Preventing unintended business damage):
- Effective Cost Per Completed Order (Incentive spend per unit)
- Courier Earnings Per Online Hour (Ensuring supply retention)
- Merchant Food Spoilage Rate (Orders canceled after prep begins)
Common Pitfalls to Avoid
- Attributing Mix Shift to Performance Degradation: mistaking an influx of low-converting marketing traffic for operational platform failure.
- Ignoring Interference in Marketplace Tests: running standard user-level A/B tests on shared supply networks, leading to biased treatment effect estimates due to supply cannibalization.
- Focusing Solely on Top-Line Averages: ignoring regional or platform-version hyper-local outages that pull down the aggregate metric.
- Neglecting Unit Economics in Solutions: recommending large courier payout increases to fix completion rates without evaluating marginal cost against customer lifetime value (LTV).