PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Analytics & Experimentation/Uber

Design a switchback and choose block length

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's competency in experimental design and causal inference for time-varying treatments, covering switchback experiments, handling spillovers and carryover, block randomization, variance and sample-size computation, temporal randomization (time-of-day and day-of-week), and covariate adjustment methods such as CUPED.

  • hard
  • Uber
  • Analytics & Experimentation
  • Data Scientist

Design a switchback and choose block length

Company: Uber

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: hard

Interview Round: Technical Screen

Design a switchback experiment for airport pickup pricing in a marketplace with spillovers. Choose the block length and rotation schedule using empirical autocorrelation and carryover: median trip duration = 22 minutes; demand ACF falls below 0.1 at 75 minutes; strong peaks every ~4 hours. Specify: (a) block length selection to minimize carryover yet retain power, (b) diagnostics to detect residual carryover (pre/post contrasts, lag terms), and (c) variance and sample-size computation under block randomization (include formulas and required inputs). Describe how you will randomize across time-of-day and days-of-week and how you will incorporate covariate adjustment (e.g., CUPED) to reduce variance.

Quick Answer: This question evaluates a candidate's competency in experimental design and causal inference for time-varying treatments, covering switchback experiments, handling spillovers and carryover, block randomization, variance and sample-size computation, temporal randomization (time-of-day and day-of-week), and covariate adjustment methods such as CUPED.

Related Interview Questions

  • Design a Maps Address Search Bar - Uber
  • Evaluate a cold-start rating launch - Uber (medium)
  • Design Pricing Model Experiment - Uber (medium)
  • Evaluate marketplace interventions - Uber (medium)
  • Evaluate UberEATS priority delivery and membership - Uber (medium)
Uber logo
Uber
Oct 13, 2025, 9:49 PM
Data Scientist
Technical Screen
Analytics & Experimentation
23
0

Switchback Experiment Design: Airport Pickup Pricing with Spillovers

Context

You are designing a switchback (time-based A/B) experiment for airport pickup pricing in a two-sided marketplace with known within-day seasonality and spillovers (drivers/dispatch queue). Because of spillovers, treatment must be assigned at the airport level and only one arm can run at a time.

Given empirical facts:

  • Median trip duration ≈ 22 minutes.
  • Demand autocorrelation function (ACF) falls below 0.1 at ≈ 75 minutes.
  • Strong periodic peaks every ≈ 4 hours.

Tasks

(a) Choose a block length and rotation schedule that minimizes carryover yet retains power.

(b) Define diagnostics to detect residual carryover (e.g., pre/post contrasts around switches, lag terms/event-time models).

(c) Provide variance and sample-size computation under block randomization, including formulas and required inputs.

Also specify how you will randomize across time-of-day and days-of-week, and how you will incorporate covariate adjustment (e.g., CUPED) to reduce variance.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Analytics & Experimentation•More Uber•More Data Scientist•Uber Data Scientist•Uber 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.