A/B testing
Markets & customers
A/B testing is a controlled comparison that randomly assigns eligible units to a current experience and a defined variant, then estimates their effect on pre-specified outcomes. Valid interpretation requires allocation integrity, sufficient data, and suitable analysis.
By The Decision Pattern · Updated
A question to consider
Does the variant create a practically useful outcome change with acceptable uncertainty and no material guardrail harm?
Why it matters
Before-and-after comparisons can confuse the change with seasonality, audience mix, or concurrent events. Random assignment creates comparable groups on average and supports a clearer estimate of the variant's effect.
How it works
Write the hypothesis and primary metric, define eligibility and unit of randomisation, calculate sample and duration needs, implement mutually exclusive assignment, validate exposure and data, monitor safety measures, and analyse as planned.
How to interpret it
Report effect size and uncertainty, not only a winning label. Check practical value, guardrails, assignment failures, repeated peeking, novelty, subgroup exploration, and whether the tested context matches the rollout.
Common mistake
Stopping when the dashboard first turns positive, testing several variants and metrics without correction, or allowing the same user into both groups through inconsistent identity.
Put it to work
Register one decision, primary outcome, minimum useful effect, analysis rule, and stop condition before launch, then preserve inconclusive results for future planning.
A practical example
Illustrative example: 10,000 eligible users per group produce 420 control and 480 variant completions, rates of 4.2% and 4.8%. The team still calculates uncertainty before deciding to ship.
Questions worth asking
Can we stop an A/B test as soon as one version leads?
Ordinary fixed-horizon analysis can become misleading with repeated peeking; follow the pre-specified stopping rule or use a valid sequential method.
Does statistical significance mean the variant is valuable?
No. The estimated effect may be too small, costly, short-lived, or harmful to another important outcome despite passing a threshold.
Sources & further reading
Explore the background to this term. Worked examples on this page are illustrative.
- GOV.UK — A/B testing: comparative studies
Random allocation to control and variant groups, hypotheses, sample planning, and interpretation of comparative tests.
Source checked
Put the thinking to work.
Explore the question with Research Reports. Write, model and review your decision paper with Executive Editor.
Find your reportExplore Executive Editor