Statistical power
The chance a test detects an effect that really exists.
Power depends on sample size, effect size and noise. Low-powered tests miss real effects and exaggerate the ones they find. Planning for adequate power is part of designing an experiment.
Why it matters for a product engineer
Power is the chance that a test finds an effect that is really there. A test with low power usually says “no difference”, even for a good change. When it does find something, the effect it reports is often too large. Teams then drop good ideas and believe lucky ones. Planning for power is part of deciding whether a test is worth running.
How to do it
- Aim for at least 80% power for the smallest effect that would change your decision.
- Raise power with more users, a bigger change, or a metric with less noise.
- Use a metric close to the change. A button test moves clicks more clearly than revenue.
- Reduce the number of variants when traffic is low.
- Read a “no difference” result from a low-power test as “we do not know”, not as “it does not work”.
- Be suspicious of large effects from small tests. They are often too good to be true.
Common mistakes
- Running a test with whatever traffic arrives, and never checking the power.
- Treating “not significant” as proof that there is no effect.
- Believing the size of an effect from an underpowered test.
- Splitting a small audience into many groups.
Example
RelievApp chose a broad catalog of 21 sessions on purpose, as research. Its maker wrote down the price of that choice: with little traffic, 21 sessions split the sample 21 ways. Each session gets a small share of the people, so it takes longer to tell a good session from a lucky one. (RelievApp in In practice)
Power to detect a 10% lift on a 5% baseline, by visitors per variant
Data
| Power | |
|---|---|
| 5k | 20% |
| 10k | 35% |
| 20k | 61% |
| 31k | 80% |
| 50k | 94% |
| 100k | 100% |
With 5,000 visitors per variant, a real 10% lift is missed four times out of five. 80% power needs about 31,000.
Calculated for a two-sided test at 5% significance
Resources
2- videoStart here
Statistical power, clearly explained ↗
StatQuest with Josh StarmerA short, visual explanation of what power is and why sample size changes it.
- videoStart here
Power analysis, clearly explained ↗
StatQuest with Josh StarmerHow to work out the sample size a test needs before running it.
Tools
1- ToolFree
Evan's Awesome A/B Tools
Free calculators for sample size, significance of results and sequential tests.