Skip to content

Why A B Tests Lie

checking results early and testing many variants manufactures winners that do not survive

Study this properly

Free flashcard deck: Statistics Essentials - 214 cards

Start studying

When you keep checking an A/B test while it is running, you inflate the chance of declaring a winner that does not really exist. The video puts it as “the more you look, the higher the chance something looks significant by luck alone,” and that is the core of why “peeking” makes the numbers lie. The fix is to decide your sample size before a single visitor sees a variant, run the test until that size is reached, and then look once.

Why peeking inflates false positives

Every time you compare two groups, there is a small probability of seeing a difference by chance even when the variants are identical. By convention, that probability is set to 5 percent for a single comparison, often written as p < 0.05. If you perform that comparison ten times on the same data as it accumulates, each peek is an independent chance to be fooled, and the overall false-positive rate climbs well past 5 percent. With twenty peeks, the probability of at least one false “win” can exceed 30 percent, even though no real improvement exists. This is the same trap that catches teams who run many experiments in parallel: among twenty concurrent tests, roughly one will look like a winner on paper, and shipping every “winner” slowly degrades the product.

What “statistical power” actually means

Power is the probability that your test will detect a real effect of a given size, if one exists. It depends on three things: how big the effect is, how much the metric varies between users, and how many users you put into each arm. A common target is 80 percent power at a 5 percent significance level. Suppose your historical conversion rate is 5 percent with a standard deviation you have measured, and you want to detect a lift to 5.5 percent, a relative improvement of 10 percent. Plugging those numbers into a power calculation tells you the sample size per variant you need. If you only have half that sample when you peek and see a “win,” the result is roughly as trustworthy as a coin flip dressed up in a chart.

Common misunderstandings

When the standard advice does not apply

Sequential testing designs, such as always-valid p-values or group-sequential boundaries, do permit peeking while controlling error rates, but only if you planned the peeks in advance and use the right adjustment. Peeking ad hoc, by contrast, has no such protection. Likewise, if a test is monitoring a metric that drifts for business reasons, such as a holiday season, even a pre-planned sample size can mislead you, because the underlying baseline moved during the experiment.

The practical takeaway is simple: write down the sample size and the analysis plan before traffic is split, and treat the test as a sealed envelope you open only once. That is what makes an A/B test trustworthy, and it is the only setting in which the p-value you report means what most people assume it means.

Transcript

Cram Our A/B test showed variant B wins by twelve percent. We shipped it.

Rep Did you decide your sample size before you started?

Cram No, we checked every day and it was consistent.

Rep Every check is another test. The more you look, the higher the chance something looks significant by luck alone.

Cram But the numbers were clear.

Rep If you test twenty ideas, one will look like a winner even when nothing actually works.

Cram So what should we have done?

Rep Commit to a sample size upfront. Calculate how many visitors you need to detect a real difference. Then look once, at the end.

Cram What if we cannot wait that long?

Rep Then you are trading a slow correct answer for a fast wrong one. Checking results early is the most common way A/B tests lie.

Cram Are the big platforms doing this wrong too?

Rep They run hundreds of tests simultaneously. Some will appear to win by pure chance. Shipping every winner is how you get a worse product.

Cram So A/B tests are useless?

Rep A properly powered test with a pre-committed sample size is one of the cleanest tools in product development. The test is not broken. Peeking breaks it.

Cram What makes a test trustworthy?

Rep Statistical power. Calculate it before you start. It tells you how likely you are to find a real effect if one exists.

More lessons