# A/B Testing

> Source: https://modeladay.com/models/a-b-testing/
> Category: principle | Topics: causality, business | Difficulty: 3/5

## Definition

Split users randomly into groups, show each a different version, and compare key metrics to judge which version wins under controlled experiment. Button-color tests, copy duels, randomized gray releases, multi-armed bandits.

## Core Rule

Randomly split users into two (or more) groups, show each a different version, and compare key metrics to determine "which version is better" through a controlled experiment. Common forms: button color A/B tests, copy comparisons, random canary rollouts, multi-armed bandits.

## Opening Context

The Obama campaign once handed different visitors different versions of its signup page. You might open it and see a video, while somebody else saw a photo. Some people on the team expected the video to win. The most signups came from a family photo beside a Learn More button.

All of those visitors came to the same campaign with the same chance to sign up. What made that one change matter, and how much could the team learn from the result?

A/B Testing randomly sends people to versions running at the same time and compares them on a measure picked in advance. We'll see what the campaign changed and what it counted, then ask when a win like that is enough to make a decision.

## How It Works (Preview)

Go back to December of two thousand seven. The campaign wanted more people to leave an email address when they visited. In Dan Siroker's account of running the test, the team prepared four button labels and six things to show, including videos and photos.

That made twenty-four combinations. Each visitor was randomly shown one and the team recorded whether they signed up. Think of assigning seed varieties by lottery across plots in a field. The plots nearest the water are less likely to all end up growing the same seed.

## When It Fails (Preview)

A page can have a clear winner while larger questions remain open. A well-run test can still give you a precise answer to the wrong question.

## Full Lesson, Audio & Practice

Get the full A/B Testing breakdown, 5-minute audio lesson, interactive mechanism animation, and decision checklist in the ConceptFlow app:
- iOS App Store: https://apps.apple.com/app/conceptflow-mental-models/id6756862333
- Google Play: https://play.google.com/store/apps/details?id=com.juxianyp.conceptflow
- Web page: https://modeladay.com/models/a-b-testing/

## Related Mental Models

- [Network effect](https://modeladay.com/models/network-effect/)
- [Global vs Local Optimum](https://modeladay.com/models/global-vs-local-optimum/)
- [Explore-Exploit Trade-off](https://modeladay.com/models/explore-exploit-trade-off/)
