Glossary
A/B testing
A controlled experiment that compares two variants to measure which one produces a better outcome.
Also called: split testing, AB test, A/B test
A/B testing is a controlled experiment that randomly assigns users or units to two (or more) variants—typically a control and a change—and compares an outcome metric between groups. Random assignment is what makes it a form of causal inference: because the groups differ only by chance and by the variant they saw, any consistent difference in outcomes can be attributed to the change itself, not to who happened to see it.
Running a valid test requires deciding the sample size and test duration in advance, based on the minimum effect size worth detecting, and then checking the result against a pre-registered threshold for statistical significance rather than peeking at the data repeatedly and stopping once a result looks favorable. A p-value or confidence interval on the difference between groups is the standard output.
A/B testing is widely used to evaluate product changes, pricing, messaging, and page design because it isolates cause and effect better than observing before-and-after trends. Common pitfalls include stopping early when results look good ("peeking"), running too many simultaneous tests without correcting for false positives, and treating a statistically significant but practically tiny effect as a meaningful win.
Last reviewed September 19, 2026