PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Analytics & Experimentation/Instacart

Compute duration and stopping rules correctly

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a data scientist's competency in experimental design and applied statistics, specifically power and sample‑size calculations, accounting for intra‑household clustering and design effects, sequential monitoring for peeking control, and variance‑reduction or stratified randomization to handle day‑of‑week seasonality.

  • hard
  • Instacart
  • Analytics & Experimentation
  • Data Scientist

Compute duration and stopping rules correctly

Company: Instacart

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: hard

Interview Round: Onsite

You must pre‑compute how long to run an experiment on same‑day delivery attach rate. Baseline attach rate = 22%, minimum detectable relative lift = 5%, α=0.05 (two‑sided), power=0.8. Daily traffic = 120k eligible checkouts, but only 20% of site traffic is eligible; eligibility and traffic vary by weekday with strong Sunday spikes. a) Calculate required sample size per arm and translate to calendar days accounting for day‑of‑week seasonality and a 10% cluster correlation due to households (design effect). b) Define a peeking‑safe monitoring plan (e.g., group sequential or alpha spending), and show how it changes expected duration. c) If the metric is volatile on Sundays (Miami), propose stratified randomization or CUPED to reduce variance; quantify the variance reduction you expect and its impact on duration.

Quick Answer: This question evaluates a data scientist's competency in experimental design and applied statistics, specifically power and sample‑size calculations, accounting for intra‑household clustering and design effects, sequential monitoring for peeking control, and variance‑reduction or stratified randomization to handle day‑of‑week seasonality.

Related Interview Questions

  • How would you investigate a metric decline? - Instacart (easy)
  • Should you roll out if NSM decreases? - Instacart (easy)
  • How to debug an apparent D14 retention drop - Instacart (easy)
  • Design a pricing experiment with network effects - Instacart (easy)
  • Investigate marketplace metrics and experiment rollout - Instacart (easy)
Instacart logo
Instacart
Oct 13, 2025, 9:49 PM
Data Scientist
Onsite
Analytics & Experimentation
7
0

Experiment Runtime Planning: Same‑Day Delivery Attach Rate

You are planning an A/B test on the same‑day delivery attach rate (the proportion of eligible checkouts that attach same‑day delivery). Historical attach rate is 22%. You want to detect a minimum detectable effect (MDE) of a 5% relative lift. Use a two‑sided α=0.05 and power=0.8.

Context and constraints:

  • The unit of analysis is an eligible checkout.
  • Daily average eligible checkouts = 120k (sitewide traffic is larger; only ~20% are eligible). Eligibility and traffic vary by weekday with strong Sunday spikes.
  • There is clustering at the household level; assume a 10% design effect inflation due to intra‑household correlation.

Tasks

  1. Sample size and duration
    • Compute the required sample size per arm.
    • Translate the requirement into calendar days given 50/50 allocation, day‑of‑week (DoW) seasonality, and the 10% design effect.
  2. Peeking‑safe monitoring plan
    • Specify a sequential monitoring plan (e.g., O'Brien–Fleming alpha‑spending or group‑sequential design) to allow interim looks without inflating Type I error.
    • Explain how this plan changes the expected duration vs. a fixed‑horizon test.
  3. Handling Sunday volatility (Miami)
    • Propose either DoW/geo‑stratified randomization or CUPED‑style variance reduction (or both) to handle volatile Sundays.
    • Quantify the expected variance reduction and the resulting impact on required sample size and duration.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Analytics & Experimentation•More Instacart•More Data Scientist•Instacart Data Scientist•Instacart Analytics & Experimentation•Data Scientist Analytics & Experimentation
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.