Experiments and A/B tests for testers
An A/B test shows two versions to two groups and compares one result. A tester checks that users are split as planned, that events are logged and that the test is cleaned up.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: two shop windows on two days. A shop owner wants to know which window brings in more people. On Monday she shows a red hat. On Tuesday she shows a blue hat. Then she counts how many people walk in. She does not ask which hat she likes best. She counts what people did.
Daily List is a to-do list app. Nina, the product owner, wonders if a green upgrade button gets more sign-ups than a blue one. Showing one colour to half the users and the other colour to the other half, at the same time, is a . People often call it an A/B test.
Tom, the tester, does not decide which button wins. He checks that the test is fair and the numbers can be trusted.
The picture has a limit. A shop tries one window per day, so Monday and Tuesday may differ for other reasons. An online test shows both versions at the same time, which is fairer.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Showing two versions to two fair groups at once, counting what people do and checking the numbers can be trusted.
- Split fairly
- Log events
- Watch guardrails
- Check the split
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| Two shop windows | Two versions |
| Counting who walks in | The measured result |
| Which hat the owner likes | An opinion that does not count |
| Counting at the door | Logging events |
WHERE THIS PICTURE STOPS
- A shop tries one window per day. An online test shows both at once.
- A shop counts people only. A test can count many things.
- A shop owner can see the door. A tester must check the logging.
HOOK
Two groups, one count, trust the data.
REMEMBER IT THIS WAY
A rule of thumb: if you see this, think that.
Usually check the test before you read the result. Was the split fair, and can the numbers be trusted?
| In the trick | What it stands for |
|---|---|
| Fair split | Both versions shown at the same time to two groups |
| Trusted numbers | The tester checks the logging |
It misleads if you stop once the split looks fair, since the logging can still be wrong.
TELL A FRIEND
Two shop windows and a count of who walks in. A tester checks the split, the logging and the clean-up.
OFTEN MIXED UP WITH Feature flags and canary releases. The flag lesson shows how to release in steps. This lesson uses flags to compare two versions and asks whether the numbers can be trusted.
PRACTISE AND KEEP
Sources for this topic — 5 sources
- Market practice
Feature Toggles (Martin Fowler) ↗ — Martin Fowler · Experiment toggles support A/B testing: each user is placed in a cohort and the router consistently sends that user down one code path (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Verification supplement, 6 November 2026: Feature Toggles by Pete Hodgson (revised 9 October 2017): actual toggle-point/router/context/configuration overview inspected, with all four dashed arrows and explanatory labels. Illustration permission is in the host FAQ; credit Hodgson and acknowledged diagram assistance by Fernanda Alcocer.
- Market practice
How bucketing works (Optimizely documentation) ↗ — Optimizely · Bucketing hashes the user ID so a user stays in the same variation; changing traffic can move users into other variations (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Sample Ratio Mismatch and Other Trust-Related Guardrail Metrics (Trustworthy Online Controlled Experiments, chapter 21) ↗ — Cambridge University Press · Sample ratio mismatch is when the observed split between variants differs from the designed split; it is a trust-related guardrail (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Microsoft ExP — Diagnosing Sample Ratio Mismatch in A/B Testing ↗ — Microsoft Research · 14 September 2020, SRM detection versus diagnosis; actual article opened 6 November 2026. Planned/observed counts and diagnostic threshold; ExP threshold is platform policy.
Relevant public sections reviewed 6 November 2026 for V11 BA agile/product. See applicability for exact version, scope and access limitations.
- Market practice
Statistical significance (Optimizely support) ↗ — Optimizely · r5g-optimizely-statistical-significance: defines significance as how unusual results would be if variation and baseline performed identically; minimum visitors before a winner. Vendor support page, search excerpt, page not opened. The 'not large or useful' point is standard statistics and is stated without a separate source here.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.