Diagnosing a Sudden Dip in Checkout Completion for One City
Statistics & ExperimentsModel answerLast updated
A city's checkout completion rate fell 8% week over week. Outline how to validate the drop, localize it, form causal hypotheses, test significance, and recommend a recovery plan.
Scenario
You are a data scientist at an on-demand food delivery marketplace. The company tracks a Checkout Completion Rate, defined as completed orders / checkout attempts. In one large metro market (Los Angeles), this rate fell 8% week over week. Your manager asks you to find the root cause and recommend how to recover.
You have access to granular event logs, historical marketplace data, and real-time app telemetry.
Questions
- Approach. Describe a systematic process for isolating the problem. How would you tell apart a technical bug, a marketplace supply/demand imbalance, and an external factor?
- Hypotheses. Propose three distinct hypotheses, one each rooted in customers, couriers (delivery drivers), and merchants (restaurants), that could explain the drop. For each, say how you would validate it with observational data or with results from an existing A/B test.
- Significance and EDA. How would you decide whether the change is a real shift or normal noise? Which data cuts would you prioritize in exploratory analysis?
Example situation
A time-series plot shows the rate falling abruptly on a Wednesday at 6 PM. Explain how you would check whether this lines up with a specific app release, a spike in surge pricing caused by a courier shortage, or a local weather event.
What is expected
Focus on the causal reasoning: the order in which you rule causes out, the signatures that distinguish each cause, and the evidence you would collect.
Hints
Hint 1
Before forming hypotheses, confirm the drop is real: check whether '8%' is relative or in percentage points, whether the numerator or denominator moved, and whether logging or the data pipeline changed.
Hint 2
Break the checkout funnel into stages (submit, payment, merchant confirmation, courier assignment, delivery) and see where attempts die. Each stage points to a different owner and cause type.
Hint 3
Use other markets as controls in a difference-in-differences comparison, and separate mix shift from true within-segment rate changes before concluding anything.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Framing
The goal is to turn "the metric dropped" into an ordered investigation: validate the metric, locate the drop, explain it causally, then act. Do not list every possible cause; show the order in which you would rule causes out.
Step 0: Confirm the drop is real
- Definition. Is 8% relative (say 85% to 78.2%) or 8 percentage points? Did the metric definition, event logging, or attribution change?
- Numerator vs. denominator. If completions are flat but attempts rose, the cause may be a double-firing checkout event after a release, bot traffic, or a promo drawing low-intent checkouts. That is a measurement artifact, not a customer-experience problem.
- Pipeline health. Check for late-arriving data, a broken ETL job, timezone or backfill problems. A step change at a round hour often means a deploy or a data issue.
Step 1: Isolate the cause
Time shape. A sudden step (Wednesday 6 PM) suggests a discrete event: a release, outage, integration failure, or weather. A gradual slide suggests structural change: competitor action, courier churn, or pricing changes. Overlay the timeline with deploy logs, feature-flag changes, incident tickets, promo and pricing changes, and weather/news.
Funnel decomposition. Attribute each failed attempt to the stage where it ended.
| Stage | Failure mode | Points to |
|---|---|---|
| Checkout submit | Crash, client error, timeout | Technical bug |
| Payment authorization | Declines, 3DS failures, processor errors | Payments / technical |
| Merchant confirmation | Not confirmed, closed, item out of stock | Merchant side |
| Courier assignment | Timeout, no courier found | Supply imbalance |
| Pickup to drop-off | Cancellations, undeliverable | Operations / external |
Signatures of each cause.
- Technical bug: concentrated in one platform, app version, payment method or endpoint; starts at a deploy time; error and latency rates rise; other markets on the same version show the same drop.
- Marketplace imbalance: assignment time, surge multiplier and orders-per-courier worsen; the drop is concentrated in peak hours and particular zones; independent of app version.
- External factor: geographically bounded, matches an outside event, affects all platforms and versions; neighboring markets may be partly affected.
Difference-in-differences. Compare LA to similar markets (or a synthetic control from several markets), checking parallel pre-trends. If controls also dropped, suspect seasonality or a global cause. If only LA dropped, the cause is local. Inside LA, a second DiD (affected app version vs. unaffected, same days) sharpens the answer.
Step 2: Three hypotheses
Customer: a release broke payment or checkout. A Wednesday release changed the wallet or saved-card flow, causing authorization failures or duplicate events.
- Observational test: split success by app version, OS, and payment method. Look for a drop only on the new version, beginning at rollout. Inspect decline codes and client error logs.
- Quasi-experiment: staged rollouts give a natural comparison of updated vs. not-yet-updated users on the same days. If the new flow was A/B tested, read the guardrail metrics directly.
Courier: a supply shortage at dinner peak. A heat wave, a competitor's bonus, or reduced incentives cut active couriers. Assignments time out, surge rises, and price-sensitive customers abandon checkout.
- Test: active courier hours, offer acceptance, time to assign, share of failures labeled "no courier", surge multiplier by zone and hour.
- Dose-response: zones with bigger supply drops should show bigger success drops.
- If incentives were changed regionally or tested, compare treated and control regions.
Merchant: a large chain's integration failed. A POS or tablet integration outage means orders are never confirmed and auto-cancel; or a top merchant closed or cut hours.
- Test: failure share by merchant and chain, confirmation latency and auto-cancel rate by integration type. Recompute LA's rate excluding that merchant; if the gap closes, you have found it.
Step 3: Significance and EDA
Is it noise? A naive two-proportion z-test on millions of attempts calls almost anything significant, and its independence assumption is wrong because attempts cluster by user, hour, and zone. Better:
- Build an empirical null from history: week-over-week changes in LA over 52+ weeks, adjusted for seasonality and holidays. Ask whether the drop sits beyond, for example, the 1st percentile. Or fit a seasonal time-series model and test the residual.
- Use the right unit: bootstrap by day or user cluster, or use the delta method for a ratio metric.
- Confirm the DiD estimate versus control markets has a confidence interval excluding zero.
- Translate into practical impact: lost orders and gross order value per day, which sets urgency.
Priority cuts, by diagnostic power:
- Funnel stage and failure reason
- Hour and day aligned to deploy and incident timestamps
- Platform, app version, payment method
- Submarket and zone
- Merchant, chain, integration type, cuisine
- Customer type: new vs. returning, subscribers vs. not
At each cut, separate mix shift from rate change: Δrate = Σ(Δshare × rate) + Σ(share × Δrate). The overall rate can fall just because traffic moved toward low-success segments.
Step 4: Recovery
The fix follows the cause:
- Bug: roll back or hotfix, then add alerting on that funnel stage.
- Supply: targeted courier incentives by zone and hour, cap or smooth surge, widen assignment radius.
- Merchant: escalate to the integration, temporarily hide or flag unreliable stores, and add confirmation-failure alerts.
- External: adjust expectations and ETAs, add temporary incentives, and communicate with customers.
Afterward, verify recovery against the control markets and add a monitor on the rate with segment-level alerts.
Common mistakes
- Jumping to hypotheses before validating the metric and the denominator.
- Using a plain z-test and declaring significance.
- Ignoring mix shift (Simpson's paradox).
- Treating correlation with a deploy as causation without a control group or staged-rollout comparison.
- Proposing fixes before the cause is identified.