Skip to content
p.mba

Type to search tools, guides, glossary terms, frameworks, formula sheets and pages.

Menu

Glossary · Marketing Analytics

A/B Testing

Also called: split testing · A/B test · online controlled experiment

A controlled experiment that randomly splits users between two versions of a page, message or offer to measure which performs better on a chosen metric.

Definition

An A/B test randomly assigns users to a control version (A) or a variant (B) and compares an outcome such as conversion rate. Because assignment is random, a difference larger than chance can be attributed to the change itself rather than to who happened to see it. Sample size should be fixed in advance from the smallest effect worth detecting and the desired statistical power, and results are usually judged with a two-proportion test or a confidence interval. Checking results repeatedly and stopping as soon as significance appears inflates the false-positive rate.

Formula

z=p^B−p^Ap^ (1−p^)(1nA+1nB)z = \frac{\hat p_B - \hat p_A}{\sqrt{\hat p\,(1-\hat p)\left(\frac{1}{n_A}+\frac{1}{n_B}\right)}}
TeX source
z = \frac{\hat p_B - \hat p_A}{\sqrt{\hat p\,(1-\hat p)\left(\frac{1}{n_A}+\frac{1}{n_B}\right)}}

Worked example

Hypothetical: 10,000 visitors see each checkout page. A converts 400 (4.0%) and B converts 460 (4.6%). The pooled rate is 4.3%, so the standard error is sqrt(0.043 × 0.957 × 2/10,000) ≈ 0.00287, z ≈ 0.006 / 0.00287 ≈ 2.09, and the two-sided p-value is about 0.04.

Try it in a tool

  • Statistical Power: The probability that a test detects a real effect of a given size; equal to one minus the type II error rate.
  • P-Value: The probability of seeing a result at least as extreme as the one observed if the null hypothesis were true.
  • Conversion Rate: The share of people at one step who complete a desired next action, such as visitors who buy or trial users who subscribe.
  • Incrementality: The part of an outcome that would not have happened without a marketing action, measured against a comparable group that was not exposed.
  • Type I Error: Rejecting a null hypothesis that is actually true; concluding there is an effect when there is none.

Courses

More in Marketing Analytics

All glossary terms