Every major change you experience in a product you use (a redesigned button, a reordered feed, a new checkout flow) was almost certainly tested against the previous version before it shipped.

This is A/B testing: a controlled experiment that shows two versions of something to randomly assigned groups of users and measures which performs better.

It is the closest thing to a scientific method that product development has adopted at scale. When done well, it is genuinely powerful. When done badly, it produces confident-sounding results that mean nothing.

A/B testing has become central to how technology companies make decisions. Google has reportedly run tens of thousands of search experiments per year. Netflix continuously experiments with thumbnail images, recommendation interfaces, and content presentation.

Amazon tests checkout flows relentlessly. The experimentation culture that emerged from the early internet companies, where the cost of trying a change was low and user behavior was immediately measurable, has spread into e-commerce, media, financial services and increasingly into physical product design, retail and policy evaluation.

But the proliferation of A/B testing has also produced a proliferation of A/B testing mistakes. Statistical significance is misunderstood and misapplied. Tests are stopped too early. Multiple variants are tested against each other without accounting for multiple comparisons.

Sample sizes are chosen by gut rather than power calculation. Results are celebrated without checking whether they are practically meaningful. Understanding how to run tests correctly, and how to recognize when results cannot be trusted, is as important as understanding the mechanics.

"Running an experiment is easy. Running an experiment that actually tells you something true is hard."

Ron Kohavi, experimentation researcher, Microsoft and Google

Key Definitions

A/B test: A controlled experiment in which users are randomly assigned to one of two or more variants of something and outcomes are measured to assess whether the variants differ in a meaningful way.

Statistical significance: A threshold for deciding whether an observed result is unlikely to have occurred by chance alone, if the null hypothesis (no difference between variants) were true. Conventionally set at a p-value below 0.05.

P-value. This is the probability of getting a result at least as extreme as the one that was found if there is no real difference. With a p-value of 0.05 comes a 1-in-20 risk that the result came from random variation under the null hypothesis.

Statistical power. This is the probability that a test will detect a real effect if one exists. Most often the target is 80% or higher. Tests with low power miss real effects frequently and that gives unreliable null results.

Minimum detectable effect (MDE). This is the smallest effect size that would be practically meaningful to detect. It goes together with power and significance thresholds to decide how big a sample is needed.

Null hypothesis: The assumption that there is no difference between variants being tested. Statistical testing asks how likely the observed data would be if the null hypothesis were true.

Type I error (false positive): Concluding that a difference exists when it does not. The probability of a Type I error equals the significance threshold (alpha).

Type II error (false negative): Failing to detect a real difference. The probability of a Type II error equals 1 minus statistical power (beta).

CUPED (Controlled-experiment Using Pre-Experiment Data). This is a variance reduction method that takes pre-experiment user behavior to boost the sensitivity of A/B tests and needs a smaller sample size to spot a given effect.

Holdout experiment. This is a long-duration experiment that keeps a small control group out of a treatment permanently to measure the cumulative long term effect. Companies such as Netflix use it to assess features whose value builds up over time.


A/B Testing Design Checklist

StepWhat to DefineWhy It Matters
1. HypothesisWhat change you are testing and what outcome you expectPrevents post-hoc rationalization of results
2. Primary metricSingle outcome variable you will use to decidePrevents multiple comparisons inflation
3. Sample sizeCalculate before the test starts (MDE, power, alpha)Ensures test has enough data to be interpretable
4. DurationMinimum runtime to capture full user behavior cyclesAvoids day-of-week effects and novelty bias
5. RandomizationConfirm users are randomly and consistently assignedPrevents selection bias and contamination
6. Analysis timingSingle planned analysis at the endPrevents peeking-inflated false positive rates
7. Guardrail metricsMetrics that must not degradeCatches improvements that come at hidden costs
8. Variance reductionApply CUPED or stratification if appropriateReduces required sample size for same power
9. Segment analysis planDefine which segments to analyze post-testPrevents data-dredging for positive sub-groups

The Logic of A/B Testing

Why Randomization Matters

The value of A/B testing rests entirely on randomization. When users are randomly assigned to control and treatment groups, the groups are statistically equivalent on average across all variables - not just the ones you know about and can measure, but the ones you cannot see.

Random assignment is what allows you to attribute differences in outcome to the variant being tested rather than to pre-existing differences between user groups.

Without randomization, you have an observational study, not an experiment, and any number of confounding factors could explain the differences you observe. If you showed variant B to users who arrived on Tuesday and compared them to Monday users, Tuesday might have systematically different user composition.

Where you showed variant B to users in a given geography, regional differences may account for any difference in outcome. Randomization gets rid of these confounders as expected.

In product development settings, that is why A/B testing is called the "gold standard" for causal inference. It is one of the few methods that really lets you say "this change caused this outcome" instead of "this change was linked to this outcome."

The unit of randomization matters significantly. Most web experiments randomize by user (or user identifier), which is appropriate for features where the user's own experience is what we are measuring. But some experiments require randomization by other units.

Network effect experiments on social platforms, for example, must often randomize by social cluster rather than individual user, because variants can "leak" between users who are socially connected - a user in the control group may change their behavior because their friends in the treatment group changed theirs.[11]

The Hypothesis Testing Framework

The formal statistical framework underlying A/B testing is null hypothesis significance testing (NHST).

Before you run the test, you set up a null hypothesis (most often "there is no difference between variant A and variant B on the metric I care about"). An alternative hypothesis ("variant B gives a higher conversion rate than variant A").

Once you have collected the data, you calculate the probability of getting results this extreme if the null hypothesis is true and that is the p-value. When that probability is below your pre-set threshold most often 0.05, you reject the null hypothesis and say the result is statistically significant.

Statistical significance does not tell you whether the effect is real. Significance is a probability statement about sampling variation and not a guarantee of truth or whether the effect is practically meaningful since a statistically significant 0.1% improvement in conversion may not be worth shipping or whether your test was designed correctly.


Understanding Statistical Significance Without the Jargon

A Plain-Language Explanation

Imagine you flip a coin 20 times and get 13 heads. Is the coin biased? You cannot be certain - even a fair coin will sometimes produce 13 heads in 20 flips by chance.

But you can ask: "how likely is it to get 13 or more heads from a fair coin?" If the answer is "pretty unlikely" (less than 5% probability), you might conclude the coin is probably biased.

If the answer is "quite plausible" (more than 5% probability), you do not have strong evidence of bias.

Your experiment gets the same logic applied in A/B testing. When variant B had a conversion rate of 5.2% compared with variant A at 5.0%, you ask how likely it is that this difference (or a bigger one) would show up by chance if the two variants really perform the same. And if the answer comes out below 5 percent, you say the result is statistically significant.

If the answer is more than 5%, you say you do not have sufficient evidence to conclude B is better.

The critical nuance: statistical significance tells you about evidence strength, not truth.

At a 5% significance level, running 100 A/B tests where the variants really have no effect gives you about 5 false positives, results that appear significant but are just random noise. Several major issues in how A/B tests get run come down to this.

Practical vs. Statistical Significance

When sample sizes are large, tiny and inconsequential differences can become statistically significant. Your test has ten million users and a conversion rate that moves from 5.000% to 5.001% may hit statistical significance even though the effect on the business is small.

Every time the question "is this statistically significant?" comes up, the question "is this practically meaningful?" should go with it.

Practical significance is measured by effect size. How big is the actual difference and does it matter for the decisions you have to make? Relative improvements of 10% in conversion rate most often mean something to a product team. An absolute improvement of 0.02% most often means nothing even if it is statistically significant.

Large platforms with millions of daily users need to make this distinction especially important. Their sample sizes are so big that almost any real difference can be detected and in many decisions effect size evaluation becomes more important than significance testing.

Statisticians use Cohen's d (for continuous outcomes) or relative risk ratios (for binary outcomes like conversion) to express standardized effect sizes independent of sample size. A Cohen's d of 0.2 is conventionally described as a small effect; 0.5 as medium; 0.8 as large.

Most A/B tests in product development in practice produce small effects and what counts as commercially meaningful depends on the context. An absolute conversion gain of 0.5 percentage points means billions of dollars at Amazon's transaction volume but the same gain means undetectable noise for a small e-commerce site.


Common Mistakes That Invalidate A/B Tests

Peeking

Peeking (checking test results repeatedly before reaching the planned sample size and stopping early when they look significant) is one of the most prevalent and consequential mistakes in A/B testing.

The statistical validity of a p-value threshold assumes you will look at the data once, at the end of a predetermined collection period. Looking repeatedly inflates false positive rates in ways that are not intuitive.

Ramesh Johari, Leo Pekelis, and David Walsh quantified this rigorously in their 2017 KDD paper on "always valid inference" developed while working with Optimizely.[2]

Their simulation showed that if experimenters stop as soon as a test crosses p = 0.05, the actual false positive rate is much more than 5%. Depending on how many times the test is checked, in some scenarios it comes close to 30% or higher.

The practical solutions are: pre-determine sample size and duration, wait for both before evaluating results, or use sequential testing methods (like Bayesian approaches or always-valid confidence intervals) that are specifically designed to allow early stopping with controlled error rates.

Underpowered Tests

Tests run with too small a sample size result in high rates of false negatives, which means missing real effects. More insidiously, effects passing significance thresholds in underpowered studies tend to be overestimates of the true effect and this is known as the "winner's curse" in experimentation.

Andrew Gelman and John Carlin described this problem as "Type S" errors (wrong sign) and "Type M" errors (wrong magnitude) in underpowered studies.[4]

Required sample size must be calculated before a test runs and that is not optional housekeeping. It is what determines whether your results will be interpretable. Baseline conversion rate, minimum detectable effect, desired power and significance threshold have to be specified for the calculation.

Evan Miller's "How Not To Run An A/B Test" and his associated calculator have become standard references in product analytics.[3]

A concrete illustration: if your baseline conversion rate is 3% and you want to detect an improvement of 0.5 percentage points (a 17% relative improvement), achieving 80% power at a 5% significance threshold requires approximately 20,000 users per variant - 40,000 total.

When your site gets 500 daily visitors and you run the test for a week, you have 3,500 total users and far too little power to detect the effect. Running the test anyway produces unreliable results regardless of what the numbers show.

Multiple Comparisons

When you test many variants at once or analyze many different metrics for the same test, the overall false positive rate goes up. Take the case where you run ten variants together at a 5% significance level. The chance of at least one false positive becomes 1 minus 0.95 to the power of 10, about 40%.

Rigorous experimentation teams apply corrections for multiple comparisons. The Bonferroni correction divides the significance threshold by the number of comparisons, which is conservative but simple. The Benjamini-Hochberg procedure controls the false discovery rate and is less conservative for large numbers of tests.[8]

Most practically, specifying a single primary metric before the test and treating all other metrics as exploratory, not confirmatory, is the most sustainable approach.

The Novelty Effect

Users respond to a change differently from how they will once habituated and a new button style may draw more clicks at first just because it looks different. That is a novelty effect that fades away over time.

When tests are too short, they may pick up the initial novelty response instead of the real long-term behavioral change.

Capturing stable behavioral patterns needs tests to run long enough as a solution. Most often that means at least one full business week to account for day-of-week effects and longer is ideal for features where the novelty effect is expected to be large.

Sample Ratio Mismatch

When the proportion of users that gets assigned to each variant does not line up with what was intended to be the split, a sample ratio mismatch (SRM) happens.

In a 50/50 test, if you end up with 48% of users in control and 52% in treatment, something has gone wrong with your randomization or logging - and your results cannot be trusted regardless of statistical significance.

Bot traffic being unevenly distributed between variants, client-side logging that fires only after page load and missing users who bounce straight away and browser caching causing sticky variant assignment bugs are all reasons why SRMs can happen. So is filtering that gets applied after assignment but before logging.

Rigorous experimentation systems demand that SRM be checked before any test results are analyzed as a mandatory quality check.


How Tech Companies Run Experiments at Scale

Google's Experiment Infrastructure

Ron Kohavi, who has led experimentation programs at Microsoft and Google and is among the world's most published researchers on controlled experiments in industry, describes in his book Trustworthy Online Controlled Experiments the scale and sophistication of experimentation at major technology companies.[1]

Google runs tens of thousands of experiments annually across its products. The infrastructure to support this at scale (randomization systems, traffic splitting, metric calculation pipelines, statistical analysis automation, and guardrail metrics that automatically flag tests causing regressions elsewhere in the product) is itself a major engineering investment.[14]

Multiple signals go into Google's OEC or Overall Evaluation Criterion as a composite metric built to reflect long-term value for users and businesses and not just short-term conversion.

Critically, Google distinguishes between metrics used for individual experiment decisions and metrics used to evaluate the ranking system overall.

Behavioral signals like click-through rates and session length are used in aggregate to evaluate whether ranking changes are improvements - not to rank individual pages, which would be immediately gameable.

Kohavi has documented several counterintuitive findings from large-scale search experimentation.

One example often cited shows how a Microsoft Bing team tested an ad format change that appeared negative for short-term click metrics but positive for both long-term revenue and user satisfaction. That result would have gone unnoticed without running long-duration holdout tests as well as the usual short-term test.

Netflix's Experimentation Platform

Netflix has documented its approach to experimentation extensively.[5] Defining the analysis unit precisely is one key element, since for streaming the "household" often fits better than the individual user. Managing the novelty effect is another, because users react differently to changes at first versus once they have habituated and long-run holdout experiments are used to measure effects that take time to appear.

One of the most widely cited examples of large-scale, high-frequency experimentation that delivers meaningful business value is Netflix's method for optimizing thumbnails. It chooses which image to display for a title based on user context.

Exceeding 30%, the difference in play rate between the best and worst thumbnails for the same title is a large effect that systematic experimentation found and measured.

Netflix also uses a technique called CUPED (Controlled-experiment Using Pre-Experiment Data), originally developed by Deng and colleagues at Microsoft, which uses pre-experiment user behavior to reduce variance in experiment metrics.[6]

By controlling for each user's pre-experiment behavior, CUPED effectively reduces the sample size needed to achieve the same statistical power - in Netflix's published accounts, by 40 to 60 percent for some metrics.

This is a significant practical efficiency for a company running hundreds of experiments simultaneously.

Airbnb's Approach to Complex Marketplace Experiments

Airbnb's experimentation team has published work on the specific challenges of running experiments in two-sided marketplaces - platforms with both supply-side participants (hosts) and demand-side participants (guests). In a standard A/B test, you would randomly assign users to treatment and control.

Yet in a marketplace, a pricing change shown to some guests changes what control-group guests see in terms of availability and pricing because hosts react to demand signals. That marketplace interference problem makes the assumptions that standard A/B tests rest on untenable.

New experimental designs were developed by Airbnb including switchback experiments that alternate treatment and control over time periods as well as geographic clustering experiments to isolate causal effects even when there was interference.[15]

Their work, published in proceedings at KDD and other conferences, has influenced how other marketplace platforms approach experimentation design.

Etsy and the Experimentation Culture

Etsy's engineering team has written about building an experimentation culture rather than merely an experimentation tool.

Technical infrastructure counts but it is the organizational culture that makes the difference. In this culture, product decisions get support from experiment results, managers do not override data and "we ran a test" is routine in product reviews. It is that culture that decides whether experimentation really improves decisions.

Dan McKinley, previously of Etsy, gave a widely read talk arguing that experimentation culture requires organizational will as much as statistical sophistication.[9]

Building that culture means accepting that many experiments will show no effect or show a negative effect - and treating those results as valuable information rather than as failures.

A "failed" experiment that shows a proposed change is neutral or harmful is exactly as valuable as a successful one; it prevents shipping a change that would have degraded the product.

Research by Fabijan, Dmitriev, and colleagues surveying Microsoft, LinkedIn, and other large-scale experimenters found that the companies with the most mature experimentation cultures shared a common characteristic: they had normalized null results and made it organizationally safe to report them without career consequences.[7]

Where null results were treated as failures, companies had more p-hacking and false positive results because researchers got an incentive to find significant results instead of truthful ones.


Bayesian vs. Frequentist Approaches

The dominant framework described above (p-values, null hypothesis testing) is frequentist. An alternative is Bayesian A/B testing, which asks a different question: given the data observed, what is the probability that variant B is better than variant A?

Several practical advantages come with Bayesian approaches. They yield probability statements that are more intuitive than p-values and they permit incorporating prior knowledge on what effect sizes are likely. Some Bayesian methods, including the ones used by VWO and others, allow continuous monitoring and early stopping without the false positive inflation that frequentist peeking brings.

The tradeoff is that results depend on prior assumptions, which requires care in specification.

DimensionFrequentistBayesian
Primary questionIs the result unlikely under the null hypothesis?What is the probability that B is better than A?
OutputP-value, confidence intervalPosterior probability, credible interval
Early stoppingRequires sequential correctionsSome methods allow naturally
Prior knowledgeNot incorporatedCan incorporate
InterpretabilityOften misunderstoodMore intuitive for practitioners
Assumption sensitivityLess sensitive to priorsDepends on prior specification quality

There is no approach that is universally superior. Big tech firms with strong stats skills most often use frequentist methods that have sequential corrections. Smaller teams or ones without statisticians may find Bayesian approaches easier to interpret.

What matters is consistency. The same analysis framework should be used across all experiments and it should not be switched after looking at the results.


The Replication Crisis and Its Lessons for Product Experimentation

The well-documented replication crisis in academic psychology and medicine, in which a significant proportion of published findings have failed to replicate in independent studies, has direct lessons for product experimentation.[12]

The same structural incentives that produced the replication crisis are present in organizations where positive A/B test results lead to promotions and recognition. These incentives include publication bias toward positive results, p-hacking, underpowered studies and HARKing (hypothesizing after results are known).

John Ioannidis's 2005 paper "Why Most Published Research Findings Are False"[10] showed mathematically that when studies are underpowered, the prior probability of any hypothesis is low and researchers have flexibility in analysis choices, most "positive" findings turn out to be false.

His analysis applies equally to product experimentation ecosystems where these conditions hold.

In product contexts as well as academic ones, the practical defense works the same way. It is pre-registering hypotheses and analysis plans, having enough power and correcting for multiple comparisons along with a culture that values null results.

Major technology companies that have put in place these practices and have mature experimentation platforms report substantially higher replication rates for A/B test results than what the academic psychology literature estimates.


Practical Takeaways

Random assignment of users to variants, a pre-defined primary metric, sample size calculation done before the test begins and commitment to run the test until the planned sample size is met are needed for a valid A/B test. The test also needs just one analysis at the end instead of repeated checks.

There is no bureaucratic overhead here. Each requirement corresponds to a particular way test results stop being trusted when that way is ignored.

Statistical significance is a starting point, not a conclusion. A result that is statistically significant may not be practically meaningful, may be the result of multiple comparisons inflation, or may be a false positive.[13]

Evaluating results requires asking whether the effect size is meaningful. It also requires checking if the test had adequate power and if the experiment ran without peeking.

Before looking at any test results, check that the sample ratio matches what was expected. Guardrail metrics should be verified as not having worsened even if the main metric got better. Treat segment-level analyses of test results as hypothesis-generating rather than hypothesis-confirming unless they were pre-specified.

The most valuable skill in A/B testing is not statistics. It is judgment about what to test, how to measure it honestly and how to act on results without mistaking noise for signal.


Sources & Further Reading

  1. Kohavi, R., Tang, D., & Xu, Y. (2020). Trustworthy Online Controlled Experiments: A Practical Guide to A/B Testing. Cambridge University Press.
  2. Johari, R., Pekelis, L., & Walsh, D. (2017). "Peeking at A/B tests: Why it matters, and what to do about it." Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. View source
  3. Miller, E. (2010). "How not to run an A/B test." .
  4. Gelman, A., & Carlin, J. (2014). "Beyond power calculations: Assessing Type S (sign) and Type M (magnitude) errors." Perspectives on Psychological Science, 9(6), 641-651. View source
  5. Tingley, M., et al. (2022). A/B Testing and Beyond: Improving the Netflix Streaming Experience with Experimentation and Data Science. Netflix Technology Blog.
  6. Deng, A., et al. (2013). "Improving the sensitivity of online controlled experiments by utilizing pre-experiment data." Proceedings of the 6th ACM International Conference on Web Search and Data Mining. (CUPED paper)
  7. Fabijan, A., et al. (2018). "The evolution of continuous experimentation in software product development." Proceedings of ICSE 2018.
  8. Benjamini, Y., & Hochberg, Y. (1995). "Controlling the false discovery rate: A practical and powerful approach to multiple testing." Journal of the Royal Statistical Society, 57(1), 289-300.
  9. McKinley, D. (2012). Responsible Data Science at Etsy. Etsy Engineering Blog.
  10. Ioannidis, J. P. A. (2005). "Why most published research findings are false." PLOS Medicine, 2(8), e124.
  11. Xu, Y., et al. (2015). "From infrastructure to culture: A/B testing challenges in large scale social networks." Proceedings of KDD 2015.
  12. Meehl, P. E. (1978). "Theoretical risks and tabular asterisks: Sir Karl, Sir Ronald, and the slow progress of soft psychology." Journal of Consulting and Clinical Psychology, 46(4), 806-834.
  13. Dmitriev, P., et al. (2017). "A dirty dozen: Twelve common metric interpretation pitfalls in online controlled experiments." Proceedings of KDD 2017.
  14. Kohavi, R., et al. (2012). "Trustworthy online controlled experiments: Five puzzling outcomes explained." Proceedings of KDD 2012.
  15. Bojinov, I., Simchi-Levi, D., & Zhao, J. (2023). "Design and analysis of switchback experiments." Management Science. View source