PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Analytics & Experimentation/Instacart

Use regression vs cohorts for A/B estimation

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a data scientist's competency in regression-adjusted causal estimation, specifying interaction terms and assessing heterogeneous treatment effects (ATE and CATE) under stated identification assumptions.

  • hard
  • Instacart
  • Analytics & Experimentation
  • Data Scientist

Use regression vs cohorts for A/B estimation

Company: Instacart

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: hard

Interview Round: Onsite

You’re asked to estimate treatment effects with linear regression instead of cohort means. a) Specify an OLS (or GLM) model for contribution per order that includes treatment, daypart, market (Miami vs others), shopper availability index, basket size, and treatment×Sunday×Miami interactions; state identification assumptions required for unbiased ATE and CATE. b) Compare this regression‑adjusted estimator to plain cohort differences in terms of bias, variance, and interpretability when covariates are imbalanced. c) Given three 95% confidence intervals for cohorts (new, repeat‑low‑basket, repeat‑high‑basket), explain what overlap does and does not imply about pairwise significance and about an overall treatment effect with multiple comparisons; propose a proper multiple‑testing correction or a hierarchical model and justify it.

Quick Answer: This question evaluates a data scientist's competency in regression-adjusted causal estimation, specifying interaction terms and assessing heterogeneous treatment effects (ATE and CATE) under stated identification assumptions.

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
3
0
Loading...

Regression-adjusted estimation of treatment effects for contribution per order

Context

You are analyzing an A/B test at the order level. The outcome is contribution per order (a continuous, possibly skewed, monetary metric). You have the following variables:

  • Treatment indicator T (1 = treated, 0 = control).
  • Daypart fixed effects (time-of-day categories).
  • Market indicator for Miami vs all other markets.
  • Sunday indicator (1 = Sunday, 0 = other days).
  • Shopper availability index (continuous, typically at market-day granularity).
  • Basket size (use a pre-treatment segment or baseline measure; do not use the realized, post-treatment basket size).
  • A treatment × Sunday × Miami interaction of interest.

Answer the following:

  1. Model and assumptions
  • Specify an OLS (or GLM) model for contribution per order Y that includes: treatment, daypart, market (Miami vs others), shopper availability index, basket size, and treatment × Sunday × Miami interactions. State the identification assumptions needed for unbiased ATE and CATE.
  1. Regression vs cohort means
  • Compare the regression-adjusted estimator to plain cohort differences (e.g., by Sunday, Miami, basket cohorts) in terms of bias, variance, and interpretability when covariates are imbalanced.
  1. Confidence intervals and multiple comparisons
  • You’re given three 95% confidence intervals (CIs) for cohort-specific treatment effects (new, repeat–low-basket, repeat–high-basket). Explain what CI overlap does and does not imply about pairwise significance and about an overall treatment effect across cohorts when facing multiple comparisons. Propose a proper multiple-testing correction or a hierarchical model and justify it.

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.