A/B Testing
Comparing variants with real traffic, which tells you what happened without telling you why.
Definition
An A/B test randomly assigns users to variants and compares a predefined metric. Done properly it gives causal evidence about the effect of a change on that metric, within the tested population and period.
Established research. Originates in published research and has been replicated. The effect is real. Its size in your product still needs measuring.
Requirements for a valid test
- 1.Calculate the sample size in advance from the baseline rate and the smallest effect worth detecting.
- 2.Fix the stopping rule before starting. Stopping when the result looks good inflates false positives substantially.
- 3.Run for whole weeks, so weekday and weekend behaviour are both represented.
- 4.Define one primary metric. Testing many metrics without correction guarantees spurious significance.
- 5.Watch guardrail metrics for damage the primary metric would not show.
- 6.Check for a novelty effect by comparing early and late periods within the test.
In practice
Peeking
Experiment hygieneChecking results daily and stopping at first significance can raise the false positive rate several times above the nominal level. Either fix the sample size in advance or use a sequential method designed for continuous monitoring.
Sources
Where a source establishes something narrower than the popular reading of it, the note says so.
Trustworthy Online Controlled Experiments
R. Kohavi, D. Tang and Y. Xu, Cambridge University Press, 2020
Continue from here
Each link says what the connection is, so you can tell a principle from an alternative from a thing people mix this up with.
Applies when you are designing
Principles behind this
The reasoning this solution is an application of.
- Confirmation BiasCognitive bias
- Status Quo BiasCognitive bias
- Survivorship BiasCognitive bias
- Deceptive PatternsPrinciple
- Mere Exposure EffectPsychology
Commonly confused with
Close enough to be mixed up, different enough to matter.
- Usability TestingResearch method
One tells you why something fails with five people. The other tells you which version wins with thousands, and not why.
Short definition
The one-paragraph version, for when that is all you need.
- A/B TestTerm
- Conversion RateTerm
- Effect SizeTerm
- Feature FlagTerm
- Quantitative ResearchTerm
- Sample SizeTerm
- Statistical SignificanceTerm
Related concept
Connected closely enough to change how you apply this.
- Funnel AnalysisResearch method
- Product AnalyticsResearch method
- SurveysResearch method
- Measuring UXWorkflow