Contents · 6 sections

01The paradox: 5% errors, yet a third of wins are false

A team runs 40 tests a year and checks them fairly: α = 5%, 80% power. It seems that one win in twenty is wrong. In fact it is every third win, if only one idea in ten works.

Change the numbers and the conclusion recalculates.

Live calculation · loadingfrom the block on the A/B testing hub
Open in the tool with these numbers /en/tools/ab-test#fpr&alpha=5&power=80&prior=10&n=40
Calculation · article numbers
α = 5% · power 80% · 10% work
36% of wins are false

Of 40 tests a year: about 5.0 expected wins, about 1.8 of them false.

Recalculate with your own numbers: https://bringer.ru/en/tools/ab-test#fpr&alpha=5&power=80&prior=10&n=40

02Where it comes from: few working ideas

Take 100 tests. Ten work, and the test catches 8 of them. Ninety do not work, and at α = 5% another 4–5 of them “win” by chance. For 8 real wins there are 4–5 false ones: non-working ideas outnumber working ones nine to one.

Works and was caught8Works but was missed2False win5Fairly rejected85
Fig. 1. α = 5%, 80% power, 10% of ideas work. 13 wins, 5 of them chance. A false win is red with hatching, visible in black and white too.
False share = α · (1 − π)α · (1 − π) + (1 − β) · π
0.05 · 0.9 / (0.05 · 0.9 + 0.8 · 0.1) = 0.045 / 0.125 → 0.36

03What the share depends on

Most of all on the share of working ideas. Test settings help, but less:

Ideas that work, πα 5%, power 80%α 1%power 90%
5%54.3%19.2%51.4%
10%36.0%10.1%33.3%
20%20.0%4.8%18.2%
30%12.7%2.8%11.5%
50%5.9%1.2%5.3%

Table 1. The π = 10% row is the article's example.

04Check with a simulation

You need not take the formula on trust: let's run 1,000 tests. In 100 the effect is real, in 900 there is none. Each test is checked at α = 5% and 80% power.

Simulation1,000 tests in the browser
Tests run: 0 of 1,000
Real wins
0
False wins
0
Missed
0
Fairly rejected
0

A run of 1,000 tests, 100 with a real effect, seed 8: 118 wins, 44 of them false, 37%.

Each run uses a new random seed, so the share wanders around 36%. The printed page shows one run.

05What to do

  • Repeat the winning tests. With two wins in a row, about 3% are false.
  • α = 1%, when you have enough traffic. The sample grows about one and a half times, and there are three times fewer false wins.
  • More power. Work out the sample in advance with the sample size calculator.
  • Estimate π from your test log: π ≈ (share of wins among all tests − α) / (power − α). With 13% wins, α = 5% and 80% power that is about 10%.

06Calculate your own share

The calculator on the A/B testing page opens with the numbers from the calculation above; enter your own α, power and number of tests.

Open in the calculator →

Idea: Evan Miller, “The Low Base Rate Problem” (evanmiller.org). The text and calculations are our own.

Frequently asked questions

The p-value is the probability of such a result if there is no effect. It is not the probability that an effect exists. To get that you also need the share of working ideas: with one in ten, about a third of wins are chance, although each one passed the 0.05 threshold.
All guides
A/BA/B test calculator/tools/ab-testsimA/B test simulator/tools/ab-test/simulatornSample size/tools/ab-test/sample-sizeβBayesian A/B test/tools/ab-test/bayesian