Measure the Impact of Order Batching on a Two-Sided Marketplace

Last updated: November 29, 2026

Quick Overview

Instacart wants to test a new algorithm that batches more orders per shopper trip. Design the experiment, given that customers and shoppers in the same zone share one pool of supply.

Instacart
Analytics & Experimentation
Data Scientist
Instacart
November 29, 2026
Data Scientist
Onsite
Analytics & Experimentation
Hard

0

0

0 solved


Instacart wants to test a new algorithm that batches more orders per shopper trip. Design the experiment, given that customers and shoppers in the same zone share one pool of supply.

Instacart data science onsites lean heavily on marketplace experimentation, where randomizing by user leaks through shared shopper supply. The interviewer checks whether you spot interference, pick a sound randomization unit and define metrics for both sides of the market.

What the Interviewer Expects
  • Explain why user-level randomization is biased when treatment changes shared supply
  • Propose zone-level switchback or geo randomization and justify it
  • Define metrics for customers, shoppers and Instacart (on-time rate, shopper earnings per hour, cost per order)
  • Handle carryover between switchback periods
  • Size the test with a variance estimate at the cluster level
Key Topics to Cover
marketplace interference
switchback experiments
cluster randomization
guardrail metrics
power analysis
How to Approach This
  1. Define success metrics carefully. A good metric is measurable, actionable, and aligned with business goals.
  2. Run experiments long enough to account for novelty effects and weekly seasonality.
  3. Use funnel analysis to identify where users drop off for maximum optimization impact.
  4. Segment results by key dimensions (platform, country, user cohort) to catch hidden patterns.
  5. Consider network effects and interference between treatment and control groups.
Possible Follow-up Questions
  • How long should each switchback window be, and what drives that choice?
  • How would you detect if treatment hurts shopper retention, which shows up weeks later?
  • Results show faster deliveries but lower customer ratings: what do you do?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Analytics Questions
Sample Answer
Clarify

What changes in the treatment: more orders per batch, longer allowed detours, or both? Which side is the hypothesis about: lower cost per order without hurting lateness? Is the decision 'ship to all z...

Approach

Batching changes how shoppers are allocated, and shoppers serve everyone in a zone. If half of customers get the batching algorithm, the treated batches absorb shopper time and control customers see w...


Submit Your Answer
Markdown supported

Related Questions