Explain the lifecycle of an online controlled experiment (A/B test), from initial idea to launch decision
Role: Data Scientist
Category: Analytics & Experimentation
Difficulty: medium
Interview Round: Other
Explain the end-to-end lifecycle of an online controlled experiment (A/B test), from initial idea to making a launch decision.
```hint Work backward from the decision
Start at the launch decision and ask what had to be fixed before the test started for that decision to be trustworthy and not argued after the fact.
```
```hint Where tests break
Think about the failures that happen between design and analysis: uneven traffic splits, logging bugs, stopping early. Which stage is supposed to catch each one?
```
### What a Strong Answer Covers
- Turning an idea into a falsifiable hypothesis with a primary metric, guardrail metrics and a predicted direction.
- The design choices made before launch (randomization unit, MDE, power, sample size, duration) and why they are fixed up front.
- Implementation and trust checks: a feature flag, logging QA, A/A tests and sample ratio mismatch.
- Analysis that separates statistical from practical significance and treats segments, multiple metrics and novelty effects with care.
- A decision rule agreed in advance, a safe rollout, and a written record of the result, including null results.
### Follow-up Questions
- The test shows a significant lift in the primary metric and a significant drop in a guardrail metric. How do you decide?
- You see a 50.6 / 49.4 split with a million users in each arm, on a test designed as 50 / 50. What do you do?
- The PM wants to stop the test after three days because the result looks good. How do you respond?
- How would the lifecycle change if users interact with each other, as in a marketplace or a social network?
Overview: Walk through the full lifecycle of an online A/B test, from turning an idea into a hypothesis through design, QA, execution and analysis to a launch decision. Tests experiment design judgment: sample size, trust checks such as sample ratio mismatch, and how results become decisions.