Problem
A p-value is the probability of seeing a result at least this extreme if the null hypothesis is true. It is not the probability that the null is true, and practitioners are often confused about this. The quantity a team needs when it decides to ship is different: the probability that the null is still true after a result passed the test.
Example from the article: with a significance threshold of 0.025 and 80% power, a team whose experiments succeed 8% of the time (Airbnb Search) has a 26.4% chance that a positive test result is a false positive.
Solution in brief
Compute the false positive risk (FPR): the probability that the null is true given a positive test result. Bayes' theorem gives it from three numbers: the level of the test, the power and the prior probability that the null is true. The prior can be taken from the share of past experiments that did not succeed.
Questions this case answers
- How to estimate the probability that a statistically significant test result is a false positive when most tested hypotheses are expected to be null
- How to estimate the probability that a statistically significant A/B test result is a false positive?
- How to explain to stakeholders why a p-value below 0.05 does not mean a 95% chance the effect is real?
- How to estimate the prior probability of a true effect from a team's experiment history?
Tools and methods
- False positive risk (FPR) — probability that the null hypothesis is true given a positive test result.
- Bayes' theorem — turns the test's error rates and the prior into the FPR.
- Log of past experiments — source of the prior probability of the null.
Google or a one-time email code. No password.