Describe switchback designs. How do they work, and in what scenarios are they effective for variance reduction?

Quick Overview

A question on switchback experiments: how they assign treatment across time windows, which marketplace settings call for them, and how they relate to variance reduction. It tests understanding of interference, carryover, interval length and inference when time periods are correlated.

Describe switchback designs. How do they work, and in what scenarios are they effective for variance reduction?

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: medium

Interview Round: Other

Describe switchback designs. How do they work, and in what scenarios are they effective for variance reduction? ```hint Unit of randomization Think about an experiment where treated and control users compete for the same drivers or the same inventory. What could you randomize so that everyone shares one condition at a time? ``` ```hint Count the units Once you know what gets randomized, count how many independent units the test really has, and ask what neighboring units have in common. ``` ### What a Strong Answer Covers - How treatment is assigned (time intervals, optionally crossed with regions) and why the whole system sees one condition per interval - The interference problem it solves, with a concrete marketplace example - Carryover between intervals, and how interval length and washout windows handle it - The effective sample size and valid inference when adjacent intervals are correlated - The variance-reduction levers (balancing on time of day and day of week, covariate adjustment) and the settings where a switchback is a poor fit ### Follow-up Questions - How would you pick the interval length for a dispatch algorithm change, and how would you test whether carryover is biasing the estimate? - A switchback and a user-level A/B test of the same change give different answers. Which do you trust, and why might they differ? - You can only test in four cities. How would you combine geographic and time-based randomization? - How do you build a confidence interval when adjacent intervals are correlated?

Overview: A question on switchback experiments: how they assign treatment across time windows, which marketplace settings call for them, and how they relate to variance reduction. It tests understanding of interference, carryover, interval length and inference when time periods are correlated.

PracHub logo
General
Nov 24, 2026
mediumData ScientistOtherAnalytics & Experimentation
0
0

Describe switchback designs. How do they work, and in what scenarios are they effective for variance reduction?

What a Strong Answer Covers Guidance

  • How treatment is assigned (time intervals, optionally crossed with regions) and why the whole system sees one condition per interval
  • The interference problem it solves, with a concrete marketplace example
  • Carryover between intervals, and how interval length and washout windows handle it
  • The effective sample size and valid inference when adjacent intervals are correlated
  • The variance-reduction levers (balancing on time of day and day of week, covariate adjustment) and the settings where a switchback is a poor fit

Follow-up Questions Guidance

  • How would you pick the interval length for a dispatch algorithm change, and how would you test whether carryover is biasing the estimate?
  • A switchback and a user-level A/B test of the same change give different answers. Which do you trust, and why might they differ?
  • You can only test in four cities. How would you combine geographic and time-based randomization?
  • How do you build a confidence interval when adjacent intervals are correlated?