Mental model

A/B Testing

A method comparing two versions to see which performs better, using evidence rather than assumptions.

Discover

Your app shows a blue 'Sign Up' button. Your teammate argues it should be green. You change it—and more people sign up. Was this a good test?

What makes a test valid?

Learn what makes a comparison valid.

Understand

Understand

An A/B test compares two versions simultaneously by randomly showing different versions to different people and measuring which performs better. The key is running both versions at the same time—otherwise, you can't be sure what caused any difference you see. For example, an email marketer might send two subject lines to random halves of their list to see which gets more opens. Check this: Look for random assignment whenever someone claims a comparison is an A/B test.

Full explanation

Full explanation

How It Works

A/B testing relies on random assignment to split your audience into two groups that are statistically similar. Both groups experience the same conditions except for one specific change you're testing. This isolates the effect of that change, unlike the blue-to-green button scenario where timing, market conditions, or pure luck could explain the difference.

Key Principles

The comparison must be simultaneous. If you test one version in January and another in February, any difference could stem from seasonal effects, not the change itself. You also need enough people in each group—small samples produce misleading results that look significant but are actually random noise.

Examples in Action

A streaming service tests two recommendation algorithms: half of users see personalized picks based on viewing history, while the other half see trending shows. They measure which group watches more content in the first week. A news website runs headlines on the same story—half of visitors see a factual version, the other half see an emotional version—to understand which drives more engagement while tracking ethical implications.

When It's Stronger

A/B tests shine when you have a clear metric to optimize and enough traffic to reach statistical significance quickly. They're weaker when effects take months to appear or when user interactions spill across groups. The ethical question also matters: just because you can increase clicks doesn't mean you should manipulate emotions to get them.

Research

Research

A/B testing is rooted in the design of experiments framework from agricultural research, where randomized controlled trials established causal inference principles that now underpin modern digital experimentation. The statistical foundation depends on hypothesis testing and the ability to attribute observed differences to the treatment rather than random variation.

  • Kohavi, Thomke, and Liu (2020): Organizations that scale experimentation across thousands of tests per year see significant competitive advantage, with mature experimentation cultures attributing up to 10-25% of their value to experiments [1].
  • Bakshy, Eckles, and Bernstein (2014): Network interference—where users in different treatment groups influence each other—can bias A/B test results, a critical concern for social platforms and networked products [2].
  • Box (1976): The practical question in experimentation is "what can be learned from this study," not formal statistical significance alone, emphasizing effect size and practical relevance over p-values [3].

Limitations

Limitations

A/B tests measure what happened, not why it happened. A color change might increase clicks, but without qualitative research, you won't understand whether users found it more appealing, more noticeable, or simply harder to ignore. These tests also struggle with long-term effects—you can quickly measure which email subject line gets more opens, but tracking whether aggressive tactics damage trust over months requires different methods. Ethical concerns arise when optimization targets narrow metrics like clicks at the expense of user well-being, as with outrage-inducing content that performs well in tests but harms discourse. Finally, A/B tests can only compare options you think to try; they can't discover innovations outside your hypothesis space.

Try it

Synthesize

Choose a pattern from the guide, then pick an action to try with it.

Which pattern stands out?

What will you try?

Choose a pattern above to select an action.

Sources

Sources

Try it

Check your understanding

A food delivery app tests a new feature: half of users in New York get free delivery promotions, while half of users in Los Angeles see the old interface. After a week, New York users order 30% more often. What's the main flaw?

Show the guide's explanation

Answer: The treatment groups differed systematically by location

This isn't a valid A/B test because the groups differ on more than just the feature—location itself affects ordering behavior (different prices, restaurants, competition, weather, etc.). Random assignment should ensure both groups are comparable except for the change you're testing.

Which scenario describes a valid A/B test setup?

Show the guide's explanation

Answer: Randomly assigning website visitors to see different homepage layouts

A valid A/B test requires simultaneous comparison with random assignment. The other options introduce confounding variables: time effects (January vs February), user segment differences (premium vs free), and multi-year changes make 2023-2024 comparisons invalid.

Your team runs an A/B test on a pricing page. Version A shows '$10/month' while Version B shows '$0.83/day.' Version B increases sign-ups by 25%. What's one question an A/B test CANNOT answer?

Show the guide's explanation

Answer: Why did Version B perform better?

A/B tests tell you WHAT works, not WHY it works. Version B might perform better because people perceive daily costs as smaller, because they're more familiar with daily pricing, or for another reason entirely. Understanding the mechanism requires complementary methods like user interviews or surveys.

Keep exploring

Find another idea for the decision in front of you.

The complete Reframo library is free to read. Explore another guide whenever you are ready.

A/B Testing | Reframo