01 / 20
A B

A/B Testing
Data-Driven Decisions

Learn how to design experiments that compare two versions of a marketing element and use real data to choose the winner.

Marketing

What Is A/B Testing?

An A/B test is a controlled experiment where you show two versions of something: a Control (A) and a Variant (B): to randomly split groups of people, then measure which version performs better on a specific metric.

Audience 50% 50% Group A Control Group B Variant Compare Metrics

Key Vocabulary

Hypothesis
A testable prediction: "Changing X will improve Y."
Variant
The changed version (B) compared against the original Control (A).
Metric
The number you measure to declare a winner: clicks, sign-ups, purchases.

Why A/B Testing Matters

Without testing, marketing decisions rely on opinions and guesses. A/B testing replaces gut feelings with evidence. Even small improvements compound over time.

1
Removes bias: data, not the loudest voice in the room, decides the direction.
2
Reduces risk: test on a sample before rolling a change out to everyone.
3
Drives growth: a \(2\%\) lift in conversion rate on millions of visitors adds up to massive revenue.

The Core Formula

The primary metric in most marketing A/B tests is the conversion rate:

To decide if B beats A, we compare their rates and check whether the difference is statistically significant: meaning unlikely to be caused by random chance alone.

Visualizing Conversion Rates

0% 2% 4% 6%
\(3.2\%\)
Control (A)
\(4.7\%\)
Variant (B)
\(+47\%\)
lift

A/B Test vs. Multivariate Test

A/B Test Multivariate Test
Variables changed One Multiple
Versions tested 2 (A and B) Many combinations
Traffic needed Lower Much higher
Complexity Simple Complex
Best for Single change Interaction effects

How to Design an A/B Test

1
State your hypothesis: "Changing the CTA button from grey to green will increase clicks."
2
Define your metric: click-through rate (CTR), sign-up rate, purchase rate.
3
Create the variant: change only one element so you know what caused the result.
4
Split traffic randomly: 50/50 between Control and Variant.
5
Run until significant: wait for enough data before declaring a winner.

Example 1: Email Subject Line

Control (A)
"Check out our new arrivals"
Variant (B)
"You won't believe what just dropped"

Example 2: Landing Page CTA

Version A Sign Up
\(2.1\%\)
conversion rate Version B Start Free Trial
\(3.4\%\)
conversion rate VS

Example 3: Interpreting Results

A subscription box company tests two pricing page layouts. Here are the raw results after 2 weeks:

Control (A) Variant (B)
Visitors 12,400 12,350
Sign-ups 310 358
Conversion Rate \(2.50\%\) \(2.90\%\)
p-value 0.12

Understanding Statistical Significance

Control (A) Variant (B) Overlap Conversion Rate Is this gap real or random?

Why Sample Size Matters

Too Small
50 visitors per group: results swing wildly. A single unusual visitor skews everything. No confidence.
Borderline
500 visitors per group: you can detect large differences (e.g., 5% vs. 10%), but not small lifts.
Sufficient
5,000+ visitors per group: you can confidently detect even a \(0.5\%\) difference in conversion rates.

Common Mistakes

✕ Peeking Too Early
Checking results after 1 day and declaring a winner. Small samples are unreliable: random noise looks like real trends.
✕ Testing Multiple Changes
Changing the headline, image, and button at once. You cannot tell which change caused the result.
✕ Ignoring Significance
Declaring B the winner because it "looks better" even when the p-value is above 0.05. The difference may be random.

A/B Testing Cheat Sheet

Step What to Do Example
1. Hypothesis Predict the outcome "Green CTA will lift CTR"
2. Metric Choose one KPI Click-through rate
3. Variant Change one element Button color only
4. Split Randomly assign 50/50 Tools handle this
5. Analyze Check significance \( p < 0.05 \) = winner

Question 1 of 5

In an A/B test, the "control" refers to:

Question 2 of 5

A company runs an A/B test on their checkout page. Version A has 8,000 visitors and 240 purchases. What is Version A's conversion rate?

Question 3 of 5

An A/B test shows Variant B has a higher conversion rate than Control A, but the p-value is 0.23. What should you do?

Question 4 of 5

Which of the following is the biggest flaw in this A/B test design: "We changed the headline, hero image, and CTA button, then measured which page got more sign-ups"?

Question 5 of 5

Version A converts at 5% and Version B converts at 6.5%. What is the relative lift of B over A?