Investigating a Sustained Order Decline in a Delivery Market
Statistics & ExperimentsModel answerLast updated
Walk through how to validate, decompose, and explain a two-week fall in completed orders in one metro, then propose a fix and a way to test it in a two-sided marketplace.
You are a data scientist on the consumer pricing team of a food-delivery marketplace. Over the past two weeks, completed delivery orders in one large metro (Los Angeles) have fallen noticeably. The decline shows up against the metro's own history and against comparable large cities.
Describe how you would investigate this from start to finish. A strong answer addresses:
-
Validation
- How do you establish that the drop is genuine and not caused by seasonality, delayed or incomplete data, tracking bugs, or a short outage?
- Which comparison baselines would you use (week-over-week, year-over-year, before/after a launch, matched cities)?
-
Metric decomposition
- Which metrics would you inspect, and how do they connect to completed orders? Consider demand (opens, sessions, store views, checkout starts, order attempts), price and conversion (basket size, item prices, delivery/service/small-order fees, promotions, membership mix), marketplace health (merchant availability, stock-outs, acceptance, courier supply, assignment time, ETAs, cancellations), and outcomes (orders, orders per active user, order value, contribution margin).
-
Hypotheses
- Generate and rank explanations: a price or fee change hurting conversion, weaker courier supply or longer ETAs, merchant outages or reduced selection, app or checkout regressions, external factors (weather, events, regulation, competitor promotions), and mix shifts across areas, cohorts, or dayparts.
-
Segmentation and causal thinking
- Which cuts would you apply (new vs. returning, ZIP, daypart, platform, member vs. non-member, cuisine, delivery vs. pickup)?
- How would you protect yourself from confounding, Simpson's paradox, and selection bias?
-
Recommendations
- If pricing is the main cause, what short-term and long-term actions would you propose?
- What trade-offs exist among volume, profit, courier earnings, merchant health, and customer experience?
-
Experimentation
- Design an experiment or quasi-experiment to test your fix: treatment and control, primary and guardrail metrics, randomization unit, duration, power and MDE.
- When would you pick a user-level A/B test versus a geo experiment or difference-in-differences?
Hints
Hint 1
Before explaining anything, rule out artifacts: data that is still being backfilled, changed city or ZIP mappings, event or schema changes, and short outages. Reconcile the dashboard with the payments or order-state source of truth.
Hint 2
Write completed orders as a product of funnel factors (active users x sessions per user x checkout conversion x post-checkout success) and attribute the log-change to each factor. That tells you which layer to dig into, and the lead-lag order of movement hints at causality.
Hint 3
In a two-sided marketplace, user-level randomization can leak through shared courier supply and merchant capacity. Think about switchback or geo-level designs, synthetic control, and diff-in-diff, and watch for conditioning on funnel steps that the treatment itself affects.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Overview
A good answer does three things: it proves the drop is real before explaining it, it decomposes the metric so each hypothesis maps to something testable, and it recognizes that a two-sided marketplace complicates experimentation.
1. Clarify and validate
Clarifying questions
- Size of the drop: 3% and 20% imply different urgency and different suspects.
- Shape: a sudden step suggests a launch, bug, or outage; a gradual slide suggests competition, macro, or supply erosion.
- Scope: all order types (delivery, pickup, grocery/alcohol) or only some?
Rule out artifacts
- Latency/backfill: completed counts settle after refunds and cancellations post. Compare recent days to prior days at the same data age.
- Instrumentation: reconcile the dashboard to the ledger/order state machine. Check for schema or event changes, geo-boundary or ZIP-to-market remapping, timezone bugs, and altered test/bot filters.
- Outages: look at hourly order curves and incident logs. An outage creates a hole in a few hours, not a two-week level shift.
Baselines
- WoW finds step changes but is distorted by holidays.
- YoY on aligned weeks controls seasonality; scale by the metro's share of national volume to adjust for growth.
- Pre/post launch: overlay the calendar of pricing, product, ops, and marketing changes from the feature-flag and experiment registries.
- Matched cities / synthetic control: weight other large metros to match the metro's pre-period trend. If the metro diverges from its synthetic twin, the cause is local.
2. Decompose the metric
Completed orders = active consumers x sessions per consumer x checkout conversion x (1 - post-checkout failure rate)
Attribute using log changes: Δlog(orders) = Σ Δlog(factor). The result might read "about 70% of the drop is checkout conversion, 20% is fewer active users."
| Layer | Metrics | A drop here suggests |
|---|---|---|
| Demand | opens, sessions, store views, search CTR | awareness, competition, marketing, app bugs |
| Price and conversion | delivery/service/small-order/surge fees, item price index, promo spend, member mix, cart to checkout to placed | price sensitivity, fee-display changes |
| Marketplace health | open merchants, stock-outs, acceptance, courier hours, assignment time, quoted vs. actual ETA, cancellations by cause | supply constraints |
| Outcomes | orders, orders per active user, order value, margin per order | business impact |
Note that fees can move conversion and basket size in opposite directions (a small-order fee can raise average basket while cutting order count), so look at both.
3. Prioritized hypotheses
Rank by prior likelihood, timing alignment, LA specificity, and which funnel layer absorbs the loss.
- Pricing/fee change lowered conversion. Signature: sessions flat, conversion falls at the fee-display step, non-members and price-sensitive ZIPs hit hardest, basket size may rise.
- Courier supply fell or ETAs rose. Signature: longer assignment times and ETAs, more "no courier" cancellations, worst at peak dayparts. Causes include pay changes, fuel costs, competitor incentives.
- App/checkout regression. Signature: confined to a platform or version, error or payment-failure spikes.
- Merchant availability. A major chain offline, a POS integration failure, or rising stock-outs; drop concentrated in certain cuisines or chains.
- External factors. Weather, fires, events ending, regulation, competitor promos (seen as loss of high-frequency users with no funnel change).
- Mix shift. The total falls because the mix moved toward low-frequency cohorts or areas, though no segment worsened.
Hypotheses interact: higher fees cut orders, which reduces courier earnings per hour, which reduces supply, which raises ETAs. Use lead-lag ordering to see which metric moved first.
4. Segmentation and causal reasoning
Cuts: new vs. returning and tenure, ZIP/neighborhood, daypart, platform and app version, member vs. non-member, cuisine and merchant tier, delivery vs. pickup, acquisition channel.
Reading the patterns
- Pickup flat, delivery down: delivery fees or courier supply, not general demand.
- Members flat, non-members down: fees, since members often skip delivery fees.
- Effect grows with the size of the fee change across ZIPs: a dose-response relationship, strong evidence for pricing.
Pitfalls
- Simpson's paradox: decompose into within-segment and mix effects and report both.
- Confounding: pricing launches coincide with other changes or seasons; use synthetic control and check for co-timed launches.
- Selection bias: checkout conversion only counts users who reached checkout. If a fee shown earlier pushes people away, conversion can look fine. Always track orders per active consumer too. Surge is endogenous (it turns on when supply is short), so naive surge-vs-conversion correlations are biased.
- Regression to the mean: an unusually strong baseline makes part of the "drop" simple normalization.
5. Recommendations if pricing is the driver
Short term
- Roll back or hold back the change in the affected metro.
- If rollback is too costly, target it: cap fees on small baskets, soften fee display, or use promotions for the most elastic segments (lapsed and non-member users).
Longer term
- Estimate price elasticity by segment and move to personalized or segmented fee structures.
- Make fees more transparent and predictable.
- Build monitoring with alerts on funnel step conversion by market.
Trade-offs
- Volume vs. margin: lower fees raise orders but cut contribution margin; judge by lifetime value, not one order.
- Courier earnings: fewer orders lower hourly earnings and degrade supply; cutting courier pay to fund fees backfires.
- Merchant health: lost orders hurt merchants, who may churn or raise prices.
- Customer experience: price predictability and ETA matter as much as the headline fee.
6. Experimentation
Treatment: the revised fee structure (for example, reduced small-order fee or capped delivery fee). Control: the current structure.
Metrics
- Primary: completed orders per active consumer, or contribution margin per consumer if the goal is profitable growth.
- Guardrails: courier earnings per hour and assignment time, ETA, cancellation rate, merchant acceptance, refund rate, customer satisfaction, order value.
Randomization unit and duration
- User-level A/B works for fee display and consumer-only changes, but consumers share courier supply and merchant capacity, so interference can bias results.
- Where interference matters, use switchback tests (alternate time windows within a market) or geo experiments (randomize at the market or ZIP-cluster level).
- Run at least two full weeks to cover weekly cycles and to allow for habit effects; extend for novelty or long-term retention outcomes.
Power/MDE
- Use pre-period variance (CUPED helps). Geo tests have few units, so use matched pairs or synthetic control and accept larger MDEs; user-level tests can detect smaller effects.
- Decide the smallest effect that is economically meaningful first, then size the test.
When to use which
- A/B: consumer-facing changes with minimal supply spillover and plenty of users.
- Geo/switchback: changes that alter courier supply or merchant behavior, or when spillover is plausible.
- Diff-in-diff / synthetic control: when randomization is impossible or the change already shipped. Verify parallel pre-trends and check for co-timed changes.
Common mistakes
- Explaining the drop before verifying data quality.
- Looking only at conversion among users who reached checkout.
- Ignoring mix effects and Simpson's paradox.
- Running a user-level A/B on a change that shifts shared courier supply.
- Optimizing orders while ignoring margin and courier or merchant guardrails.