How do you mitigate issues in A/B testing and maintain scientific validity when iterating on an experimental design?
Role: Data Scientist
Category: Analytics & Experimentation
Difficulty: medium
Interview Round: Other
How do you mitigate issues in A/B testing and maintain scientific validity when iterating on an experimental design? Assume a product team runs many short tests, looks at results often, and changes designs between rounds.
```hint Count the decisions
Every look at the data, every metric and every variant is another chance to declare a win. Think about what that does to the false positive rate.
```
```hint Think across rounds
Some problems appear only when one test follows another: changes made mid-test, users who saw the previous version, and picking the best of several results.
```
### What a Strong Answer Covers
- Why repeated looks at the data inflate false positives, and the standard ways to stop early without that cost
- How multiple metrics and variants raise false-positive risk, and how to control it
- What to fix before launch (hypothesis, primary metric, MDE, analysis plan) and why
- Checks that the experiment itself works, such as A/A tests, sample ratio mismatch and guardrail metrics
- Problems specific to iteration: changing a running test, carryover between rounds, novelty effects, winner's curse, and confirming wins with replication or a holdout
### Follow-up Questions
- Over a quarter you ran 20 iterations on a checkout page and shipped the 6 that won at p < 0.05. How would you estimate their true combined impact?
- A PM finds a bug in the treatment halfway through a two-week test and wants to fix it and keep going. What do you do with the data collected so far?
- When would you choose a sequential test over a fixed-horizon test, and what does it cost you?
- How do you detect a sample ratio mismatch, and what do you do once you find one?
Overview: Asks how to keep A/B tests statistically valid when a team iterates quickly on experiment designs. Tests understanding of peeking, multiple comparisons, pre-registration, sample ratio mismatch checks, and the problems that come from running one test after another.