Glossary / Statistical power
The new button really is better: 5.5% of visitors buy with it instead of 5%, which is 10% more. You run an A/B test and expect the dashboard to say "+10%". With few visitors the test will usually notice nothing. And when it does declare a winner, the "lift" will be two or three times the real one. How good a test's chances are of noticing a real effect is measured by its statistical power.
“In plain words” is hidden on all puzzles.
The computer runs the same A/B test 2,000 times on a button that really is 10% better. Each bar shows how many tests saw that "lift" on the dashboard. The magenta ones came out statistically significant: these are the ones that get presented at the meeting as a "win". Change the number of visitors per variant.
test found no difference"winner": a significant resultthe real effect, +10%
The simplest explanation, slightly simplified. For a test to call a difference significant, it has to be bigger than the usual noise. With 1,000 visitors per variant the noise is large, and the significance bar sits at around "+40%". A real +10% falls far short of it. Only tests where noise happened to add another 30 points can jump the bar. So every "winner" here is a lucky one, and its lift is always exaggerated.
The share of tests that notice a real effect of a given size is called statistical power, or the power of a test. A power of 20% means: if the idea really works exactly this well, the test will recognise it in one case out of five.
“Rigorous” is hidden on all puzzles.
The line shows the power of the test against the number of visitors per variant (the scale is logarithmic: each tick is ten times the previous one). The usual rule is to plan a test so that the power is at least 80%. See how far to the right that point moves when the effect is small or the conversion rate is low.
The formula is for a two-sided test at a 5% significance level and 80% power: 1.96 corresponds to 5%, 0.84 to 80%. For small numbers it is a little approximate, but an exact calculation with the binomial distribution gives almost the same values: for 5% → 5.5% and 31,234 visitors per variant the power is exactly 80.0%.
The square in the denominator makes small effects expensive. An effect half the size needs four times as many visitors. So when traffic is low, it is better to test bold changes rather than the shade of a button.
An exact calculation with the binomial distribution, no simulation. The "bar" is the smallest lift at which the test, with a 5% conversion rate in variant A, already calls B significantly better. The last column is the average dashboard lift among significant wins for B.
| Visitors per variant | Power | Significance bar | Lift of the winners |
|---|
While the power is below 50%, the bar is higher than the effect itself, and every win necessarily exaggerates. When the power reaches 80%, the winners show +11.4% on average, already close to the truth.
“Deeper” is hidden on all puzzles.
In 2014 the statisticians Andrew Gelman and John Carlin proposed looking beyond power to two other errors. A type M (magnitude) error is how many times, on average, a significant result exaggerates the real effect. A type S (sign) error is the share of significant results that show the effect with the wrong sign. The line below is the theory for the normal approximation, the magenta dot is your 2,000 tests from the first simulation.
Here exaggeration is measured on the difference in conversion: the average |p̂B − p̂A| among significant tests divided by the real 0.5 percentage points. A dashboard that shows the lift in percent also divides by A's random conversion rate, so there the exaggeration is slightly larger, as in the table above.
Under the normal approximation the exaggeration depends on power alone: at 80% it is 1.12 times, at 50% 1.41, at 20% 2.26, at 10% 3.71. And at 6% power, one significant result in five has the wrong sign: the test "proves" that the better version is worse. So power is not only the chance of finding an effect, but also a measure of how far a finding can be trusted.
The term "power" and the error of the second kind were introduced by Jerzy Neyman and Egon Pearson in a 1933 paper on the most efficient tests. An error of the first kind is seeing an effect that isn't there; of the second kind, missing a real one. Power equals one minus the probability of an error of the second kind.
In 1962 the psychologist Jacob Cohen checked the papers in the Journal of Abnormal and Social Psychology for 1960 and found that for medium-sized effects the power of the studies averaged about 0.48: almost a coin toss. In his book on power analysis (second edition, 1988) he proposed 80% as a convention for when there is no better basis. The logic: with a 5% significance level and a 20% miss rate, a false alarm is treated as roughly four times worse than a missed effect.
Half a century changed little. In 2013 Katherine Button and colleagues in Nature Reviews Neuroscience assessed 730 studies from 49 meta-analyses in neuroscience: the median power was 21%. And back in 1995 the statisticians Douglas Altman and Martin Bland gave the phenomenon a name in the BMJ worth remembering after every "non-significant" test: "Absence of evidence is not evidence of absence".
The middle value: line everyone up in order, and half are below it, half above.
A millionaire walks into a bar: the average income shoots up, the median barely moves.
The sum of all values divided by how many there are: what everyone would get if it were shared equally.
Almost everyone has more legs than average: the average is a little under two.
The average result you can expect if you repeat the same thing very many times.
A die's expected value is 3.5, yet no face shows 3.5.
A number from −1 to +1 showing how closely two quantities move together.
In summer both ice cream sales and drownings go up. Ice cream isn't to blame: the heat drives both.
A measure of spread: how far values typically stray from the mean. The standard deviation is its square root, in the same units.
Two towns with the same average temperature: one stays near +15 all year, the other swings from −20 to +50.
A bell-shaped distribution: most values sit near the mean, and the further away, the rarer.
Every ball on a Galton board falls at random, yet thousands of balls always build the same bell.
The more repetitions, the closer the share of an outcome gets to its true probability.
The share of heads creeps towards 50%, while the gap between heads and tails in coins usually grows.
The chance of an event given that something else is already known.
Almost all NBA players are tall, but almost all tall people are not NBA players.
Events are independent if knowing about one doesn't change the chances of the other.
After five heads in a row tails is no more likely: the coin remembers nothing.
How many times you multiply the base by itself to get a number: log₂ 8 = 3, because 2 · 2 · 2 = 8.
A sheet of paper folded in half 42 times would be thicker than the distance to the Moon.
A sample some people get into more easily than others, so it describes everyone badly.
In 1936 a magazine polled millions of Americans and still picked the wrong election winner.
How often chance alone would produce a gap at least as big as yours if there were really no difference.
When there is no effect at all, p below 0.05 turns up as often as p between 0.50 and 0.55.
A range around a measured number, built by a method that covers the true value in a chosen share of samples, such as 95%.
Of twenty honest 95% intervals, on average one misses the truth, and none of them knows whether it is the one.
How far an average or a rate computed from a sample usually misses the truth: σ divided by the square root of the sample size.
Halving the error takes four times as much data.