How do you write a clear, falsifiable, testable A/B test hypothesis, and what should it contain?
Role: Data Scientist
Category: Analytics & Experimentation
Difficulty: medium
Interview Round: Other
How do you formulate a clear, falsifiable, and testable hypothesis for an A/B test, and what should a good hypothesis contain?
```hint Fill in the slots
Try writing the hypothesis as one sentence with slots: what changes, for whom, which metric, which direction, by how much, and why. Then name the result that would make you say it was wrong.
```
```hint Check the numbers
A hypothesis can be perfectly clear and still impossible to test. Look at the effect size it predicts and the traffic you have.
```
### What a Strong Answer Covers
- The parts a hypothesis needs: the change, the population, the primary metric, the direction, a minimum effect and the reason for expecting it
- What makes it falsifiable, including a refuting outcome agreed before launch
- What makes it testable: a measurable metric, a detectable effect and a feasible sample size
- How the business hypothesis maps to a statistical null and alternative and to a ship decision
### Follow-up Questions
- How would you turn the example hypothesis into a null hypothesis, an alternative and a sample size?
- What would you conclude if the primary metric is flat but a secondary metric moves a lot?
- Where do guardrail metrics belong in a hypothesis written before launch?
- How does the hypothesis change when treatment can affect control users, for example through shared inventory in a marketplace?
Overview: Asks how to write a clear, falsifiable and testable hypothesis for an A/B test and what parts it should include. Tests whether you can tie a product change to a primary metric, a direction and a minimum effect, and confirm the test can detect that effect.