A/B test significance
The same A/B test read two ways: a p-value with its confidence interval, and the posterior probability that the variant is actually better.
Control
4.00% conversion rate
Variant
4.28% conversion rate
Used for both intervals.
Applies to the p-value.
Where the change pays for itself.
Frequentist
significant at 5%If the two arms really converted at the same rate, a gap at least this large would turn up 4.7% of the time. That is not the probability that the variant is better, and the interval is not a 95% probability that the true lift sits inside it — repeat this experiment many times and 95% of the intervals built this way would cover the truth.
Bayesian
Given this data and a uniform prior that rules nothing out, there is a 97.6% probability the variant converts better than the control, and a 70.7% probability it clears the 5% lift you said it needs to be worth shipping. Those are statements about the lift, which is what the frequentist panel cannot give you.
| Arm | Observed | Posterior median | 95% interval |
|---|---|---|---|
| Control | 4.000% | 4.002% | 3.814% – 4.199% |
| Variant | 4.280% | 4.281% | 4.085% – 4.480% |
The frequentist side is a pooled two proportion z-test, with the interval on the relative lift built by the Katz log method. The Bayesian side puts a Beta prior on each arm, adds the data to get Beta(1,601, 38,401) and Beta(1,713, 38,289), then takes 30,000 Monte Carlo draws to get the lift. The draws are seeded, so the same inputs always give the same answer.
Both panels assume one look at the end of the test. Watching either number until it crosses a line will ship losers more often than the number suggests.
Planning a test rather than reading one? Sample size calculator.