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
November 29, 20260
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
How to Approach This
- Define success metrics carefully. A good metric is measurable, actionable, and aligned with business goals.
- Run experiments long enough to account for novelty effects and weekly seasonality.
- Use funnel analysis to identify where users drop off for maximum optimization impact.
- Segment results by key dimensions (platform, country, user cohort) to catch hidden patterns.
- 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 QuestionsSample 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...