What is an A/B test?
An A/B test compares two versions, each shown to a randomly assigned group of users, to estimate how a change affects a measurable outcome chosen in advance.
An A/B test is an experiment that compares two versions by randomly assigning users to a control group or a group receiving the change. The test then measures the difference in an outcome chosen in advance, such as the completion rate for quote requests. Both versions run during the same period, which helps separate the effect of the change from outside factors that shift over time. Random assignment makes the groups comparable on average, but it does not guarantee a sound experiment: data collection errors, undersized groups, or users exposed to the wrong version can undermine the conclusion. The test measures what happens to the people involved during the observed period; extending the result to other customers or a longer period calls for caution. A study of sample sizing for online experiments describes both random assignment and the risk of insufficient samples. Before launch, settle which decision the comparison is meant to inform.
See also: Statistical significanceIt shows how incompatible a result is with the null hypothesis, not that the effect is true, large or worth deciding on.
What it takes for an A/B test to be reliable
A test plan defines the population, the unit of assignment, the primary metric, the duration, and the smallest difference worth acting on. Sample size also depends on how much the outcome varies and the desired chance of detecting that difference. Counting every visit as a different person can mislead: the same user may return repeatedly. The same study shows that teams ignoring this dependence can underestimate the sample size needed. Statistical significance helps interpret uncertainty, but it does not by itself establish whether the benefit justifies the cost.
Also check the split between groups: a statistically unexpected deviation from the planned allocation can flag an assignment or data quality problem without pinpointing the cause. Research on sample ratio mismatch recommends investigating it before trusting the result. A feature flag (a software switch) can control exposure but is no substitute for experimental design.
An enterprise example
A B2B distributor wants to evaluate a new quote request form. It randomly assigns eligible accounts to the current or the new version and compares completed requests per account. Form errors are monitored too, so that a rise in requests does not mask a technical regression. If too few accounts are available to detect a meaningful difference, the sample sizing study suggests extending the duration and recalculating the sample; if the deadline rules that out, the result should be reported as an uncertain estimate rather than a demonstrated effect.
Why it matters for decision makers
Before buying a tool, ask how it assigns accounts, records exposure, checks allocation, and handles missing data. A plan also needs a stopping rule. A Harvard research paper explains that repeatedly peeking at a standard statistical test and stopping as soon as the result looks significant inflates false positives; sequential methods built for repeated looks are an alternative. Stopping a harmful change is a safety decision, separate from declaring a variant the winner. Documenting the plan, limitations, and result keeps the decision auditable, even when the test finds no difference.
Frequently asked questions
Related terms
- Statistical significanceIt shows how incompatible a result is with the null hypothesis, not that the effect is true, large or worth deciding on.
- Conversion rate optimization (CRO)Raising the share of visitors who take the desired action by deciding on evidence rather than on opinion.
- Feature flagA feature flag controls which software features are active, including per user group, so that turning one on or off does not always require a new deployment.
- Causal AICausal AI uses cause-and-effect models to estimate the consequences of an intervention and spells out the assumptions needed to interpret observed data.
- Goodhart's lawGoodhart's law warns that a measure used as a target can lose its meaning when people improve the number without achieving the outcome it was meant to track.
If it is a technical decision you keep postponing, that is the decision I help you make.
See custom tools, governance and operations