A/B Testing: Five Pitfalls of p-Values and Statistical Significance
BBUSINESS
BusinessPublished: 8 min read

A/B Testing: Five Pitfalls of p-Values and Statistical Significance

An A/B test of purchase rates returns a p-value of 0.04 for the difference between A and B. Is that enough to roll out B? The answer depends on how the test was designed and how large the estimated gain is. These five pitfalls use conversion rates from two independent groups.

Japanese original published: 2026-04-20

What does a p-value measure?

A p-value is the probability of a test statistic as extreme as, or more extreme than, the observed one, under the null hypothesis and the assumptions of the test. A two-sided test looks for extremes in both directions, using a statistic chosen in advance.

A p-value of 0.04 does not mean there is a 96% chance of an improvement. The two-sided p-value also leaves the direction open. Check the sign of the estimated B minus A difference. It measures how compatible the data are with the null under the chosen model and test. Fisher’s significance testing and the Neyman–Pearson framework for controlling error rates have distinct historical aims. In practice, distinguish the reported p-value from the decision rule set before the experiment.

1. Using 5% for every decision

The significance level α bounds the chance that the pre-specified test rejects a true null hypothesis. Five percent is a common choice. Set α before the experiment by considering the cost of rolling out a change that does not help and the cost of missing a genuine improvement.

The American Statistical Association’s 2016 statement cautions against making decisions from a cutoff alone. Alongside the p-value, report the estimated difference, its confidence interval, who was included, how they were assigned, and how long the experiment ran. A 95% confidence level refers to coverage over repetitions of the same procedure.

2. Skipping power and sample-size planning

A Type I error rejects a true null. A Type II error fails to reject the null under a specified alternative. Power is 1 − β, where β is the probability of the second error at that alternative. Power changes with the effect size you specify.

Suppose the baseline rate is 4% and you want to detect a rate of 5%, with a two-sided α of 0.05 and 80% power. With equal random allocation and independent observations, a normal approximation gives 6,745 people per arm, or 13,490 in total. This estimate uses no continuity correction. The test, allocation ratio, attrition, and cluster assignment can change the required sample.

p̄ = (p₀ + p₁) / 2
s₀ = √[2p̄(1 − p̄)]
s₁ = √[p₀(1 − p₀) + p₁(1 − p₁)]
n ≈ [(z₁₋α⁄₂ × s₀ + z₁₋β × s₁) / (p₁ − p₀)]²

Here n is the number of people per arm. The symbol zq is the q-quantile of the standard normal distribution. Here z0.975 ≈ 1.959964 and z0.80 ≈ 0.841621. Substitute p₀ = 0.04 and p₁ = 0.05 and round up. The 80% power target belongs to this example. A non-significant result by itself establishes neither that the effect is zero nor that the test was underpowered.

3. Picking the significant result from many metrics

If all null hypotheses are true, every test has an exact 5% false-positive rate, and the tests are independent, the probability of at least one false positive in k tests is 1 − 0.95k.

Probability of at least one false positive (bars run from 0% to 100%)
  • 1 tests · 5.0%
  • 5 tests · 22.6%
  • 10 tests · 40.1%
  • 20 tests · 64.2%

Click and purchase rates measured on the same people may be correlated, so the chart does not directly apply. Choose the primary metric in advance. To cap the probability of any false positive across five tests at 5%, Bonferroni uses α/5 = 0.01 per test. It requires valid p-values but does not require independence.

The Benjamini–Hochberg procedure instead controls the expected proportion of false discoveries among rejections (FDR). This serves a different aim from avoiding any false positive in the whole family. The original paper shows control for independent test statistics.

4. Stopping the first day the p-value crosses the cutoff

Reusing a fixed-sample test on cumulative data each day and stopping the first time p < 0.05 generally pushes the overall false-positive rate above 5%. The daily looks share data, so the independent-tests chart does not give the rate for this stopping rule.

For a fixed-sample experiment, make the primary decision under the pre-specified conditions. Monitoring safety and data quality serves a separate purpose. If decisions are needed while the test runs, choose a group-sequential design with planned looks, boundaries, and error rates, or an inference method that supports continuous monitoring.

5. Rolling out a change on statistical significance alone

Both examples have purchase rates of 4.00% for A and 4.10% for B, an observed lift of 0.10 percentage points. A larger sample makes the same observed lift more precise and leads to a smaller p-value.

Scroll horizontally if the table does not fit.

The same observed lift at two sample sizes
People per arm · 10,000
Two-sided p-value0.720
95% CI for lift (percentage points)−0.446 … +0.646
People per arm · 1,000,000
Two-sided p-value0.000334
95% CI for lift (percentage points)+0.045 … +0.155

The p-values use a pooled two-sample z-test. The intervals use a normal approximation with separate group rates. If rollout requires at least a 0.20-point lift, even the upper confidence limit in the million-per-arm example falls short.

Set the smallest practically worthwhile lift from costs and benefits. The minimum detectable effect (MDE) is the difference the planned sample size, significance level, and power are designed to detect. The two targets can be aligned in planning, but describe different things.

Using a Bayesian model

Give each arm’s purchase rate θ an independent Beta(a, b) prior. Under a binomial model with x purchases out of n observations, each arm’s posterior is Beta(a + x, b + n − x). Draw independently from both posteriors. The fraction of draws with θB > θA approximates the probability of a lift under the model.

Account for sensitivity to the prior and model, the lift that matters in practice, and any stopping rule. A threshold on a Bayesian posterior probability does not automatically guarantee a frequentist false-positive rate.

Checklist for planning and reporting

  1. Specify the primary metric, comparison, practically worthwhile lift, and decision rule.
  2. Estimate the baseline and sample size. Plan any interim looks and multiple comparisons.
  3. Report successes and totals per arm, the estimated difference, confidence interval, and p-value.
  4. Compare the interval with the practical target. Document departures from the plan and missing data.

References and sources

Editorial note

This article was prepared with AI assistance and reviewed by an editor before publication. It may still contain factual errors, interpretation mistakes, or outdated information. Check the cited primary sources or official documentation before making an important decision.

Related articles