A/B Testing and Experimentation
A/B testing is a randomized comparison of two product experiences. It assigns comparable users to a control or treatment, measures a predefined outcome, and uses the difference to estimate whether the change caused an effect.
itArtificial intelligence and machine learning | OpenSkills.info
Course pathWalk it in order
Look it upDip in anytime
Go furtherLeaves this page
Don't Panic
Don't Panic — A/B Testing and Experimentation
Ship the change on Tuesday, read the numbers on Friday, declare victory. The flaw is that Tuesday also brought a campaign, a payday, a heatwave and a competitor's outage. Time and the change moved together, so nothing could pull them apart.
The fix is structural rather than clever. Run both versions at once, on people picked at random, and let the same week hit both. The control is the existing experience and the treatment is the changed one; the gap between them estimates what the change caused rather than what the week did.
Everything after that is bookkeeping, which is precisely where experiments die.
Eligible, assigned and exposed are three different things. Somebody can qualify for the test, get sorted into a variant, and still never encounter what changed — and only the last of those says anything about the change itself.
The randomization unit is whatever gets independently sorted into a variant: one person, one company account, one session, or a whole cluster of connected users. It has to be large enough to contain the ways those units affect each other, and the larger it gets the fewer independent observations remain.
Every metric has exactly one job. The primary one decides. Guardrail metrics cap the harm the change may do, such as errors or refunds. Diagnostics explain where behaviour shifted, and data-quality metrics say whether to believe any of the rest.
The arithmetic is less forgiving than it looks. The number of people needed grows with the square of the effect being looked for, so halving that effect quadruples the traffic. That sum is a power calculation, it belongs before anything gets built, and it should be expected to rule ideas out.
Then the part that reframes the whole enterprise. Roughly two-thirds of carefully argued ideas that teams actually built failed to move the metric they were designed to move. That is the point rather than a scandal: what an experiment buys is not confirmation but the right to be wrong cheaply.
Which means a team whose experiments mostly win is not unusually gifted. It has a measurement fault, a habit of stopping the moment results look good, or it is testing changes nobody doubted. A healthy programme looks faintly disappointing on a dashboard.
Statistics cannot repair bad input, so sample ratio mismatch — the two groups ending up further apart in size than chance explains — gets diagnosed before anyone reads an outcome at all.
And "not significant" does not mean "the same". A result is one of four things: ship, do not ship, inconclusive, or invalid. The last two are honest answers rather than failures to produce one.
If you read only one more tab, make it Field Notes — it has what all this costs once real traffic is involved. The Intro works through the causal machinery slowly, and the Cheatsheet holds the design card.
Where this skill leads
Relevant careers
See how this topic contributes to broader role-level skill maps.
Sources
- https://www.itl.nist.gov/div898/handbook/ppc/section1/ppc136.htm
Supports
- Designed experiments as the basis for cause-and-effect conclusions
- distinction from observational process data
- https://www.itl.nist.gov/div898/handbook/pri/section1/pri14.htm
Supports
- Planning objectives
- selecting variables and design
- executing
- checking assumptions
- analysis
- interpretation
- and iterative experimentation
- https://www.itl.nist.gov/div898/handbook/eda/section3/eda352.htm
Supports
- Relationship between confidence intervals and two-sided hypothesis tests
- interval width increasing with outcome variation
- https://www.itl.nist.gov/div898/handbook/prc/section1/prc131.htm
Supports
- Hypothesis-test structure
- significance level
- critical regions
- statistical versus engineering significance
- https://www.itl.nist.gov/div898/handbook/prc/section2/prc241.htm
Supports
- Equivalence testing as a distinct design with specified limits rather than a failed difference test
- https://www.itl.nist.gov/div898/handbook/prc/section4/prc47.htm
Supports
- Multiple-comparison problem and simultaneous comparison procedures
- https://ai.stanford.edu/~ronnyk/2009controlledExperimentsOnTheWebSurvey.pdf
Supports
- Online controlled experiment terminology
- concurrent control and treatment
- random assignment
- units
- metrics
- power
- A/A tests
- practical limitations
- https://link.springer.com/article/10.1007/s10618-008-0114-1
Supports
- Online publication date and 2009 issue details for the controlled-experiments survey timeline event
- https://www.microsoft.com/en-us/research/?p=680556
Supports
- Falsifiable hypotheses
- metric families
- power and traffic implications
- randomization-unit choices
- pre-experiment trust patterns
- ExP history context
- https://www.microsoft.com/en-us/research/group/experimentation-platform-exp/articles/patterns-of-trustworthy-experimentation-during-experiment-stage/
Supports
- Primary and overall criteria
- guardrail
- diagnostic
- and data-quality metric roles
- monitoring
- early peeking and multiple-testing precautions
- https://www.microsoft.com/en-us/research/articles/patterns-of-trustworthy-experimentation-post-experiment-stage/
Supports
- Metric-integrity review
- rerunning doubtful results
- archival practices
- post-experiment decisions
- https://www.microsoft.com/en-us/research/articles/diagnosing-sample-ratio-mismatch-in-a-b-testing/
Supports
- SRM definition
- validity impact
- count-based detection
- causes across assignment execution logs and analysis
- diagnosis before outcome interpretation
- https://www.microsoft.com/en-us/research/publication/diagnosing-sample-ratio-mismatch-in-online-controlled-experiments-a-taxonomy-and-rules-of-thumb-for-practitioners/
Supports
- 2019 KDD publication date
- SRM taxonomy and practitioner rules
- timeline milestone
- https://www.microsoft.com/en-us/research/publication/a-dirty-dozen-twelve-common-metric-interpretation-pitfalls-in-online-controlled-experiments/
Supports
- Metric interpretation pitfalls
- power and practical-effect concerns
- multiple testing
- August 2017 publication milestone
- https://www.microsoft.com/en-us/research/articles/a-b-testing-across-products/
Supports
- Randomization and analysis units
- bias from conditioning on treatment-affected participation
- https://robotics.stanford.edu/~ronnyk/ExPThinkWeek2009Public.pdf
Supports
- Formation of the Microsoft Experimentation Platform team in March 2006 and its shared-platform purpose
- https://research.google/pubs/overlapping-experiment-infrastructure-more-better-faster-experimentation/
Supports
- 2010 publication
- overlapping experiment infrastructure
- namespaces
- tooling and education for experimentation at scale
- https://research.google/pubs/designing-ab-tests-in-a-collaboration-network/
Supports
- Interference and contamination in connected-user experiments
- randomization-unit choice for collaboration networks
- https://robotics.stanford.edu/~ronnyk/2013-02CUPEDImprovingSensitivityOfControlledExperiments.pdf
Supports
- CUPED introduction in 2013
- use of pre-experiment data for variance reduction and improved sensitivity
- https://doi.org/10.1109/ICSA.2018.00009
Supports
- 2018 platform architecture milestone
- portal execution log-processing and analysis service components
- https://repository.rothamsted.ac.uk/item/8v61q/the-arrangement-of-field-experiments
Supports
- 1926 publication date
- rational field-experiment principles
- precision and valid error estimation
- precursor to Design of Experiments
- https://www.bmj.com/content/bmj/2/4582/790.full.pdf
Supports
- October 30 1948 publication of the controlled streptomycin trial and its randomized allocation procedure
- https://amplitude.com/docs/feature-experiment/overview
Supports
- Experiment workflow
- unit bucketing
- allocation
- feature and web experiments
- fixed t-test and sequential analysis options
- https://amplitude.com/docs/feature-experiment/under-the-hood/event-tracking
Supports
- Distinction and roles of assignment and exposure events
- https://launchdarkly.com/docs/guides/experimentation
Supports
- Feature-flag experimentation
- design topics
- consistency
- sample-size and statistical-method documentation
- https://launchdarkly.com/docs/home/experimentation/events
Supports
- Evaluation events as assignment/exposure evidence and metric events as measured outcomes
- https://docs.developers.optimizely.com/feature-experimentation/docs/introduction
Supports
- Feature flags
- A/B experiments
- targeting and rollout in Optimizely Feature Experimentation
- https://vwo.com/pricing/
Supports
- VWO A/B
- split-URL
- multivariate
- feature rollout and feature-experiment capabilities
- https://docs.abtasty.com/
Supports
- AB Tasty web and feature experimentation developer tools and experiment calculators
- https://experienceleague.adobe.com/en/docs/target/using/activities/abtest/test-ab
Supports
- Manual A/B tests
- traffic allocation
- conversion metrics
- Auto-Allocate and Auto-Target distinctions
- https://www.kameleoon.com/
Supports
- Kameleoon product destination and web and feature experimentation placement
- https://github.com/sindresorhus/awesome
Supports
- Required Awesome discovery starting point and its Analytics list
- https://github.com/0xnr/awesome-analytics
Supports
- Discovery of GrowthBook and PostHog as relevant experimentation ecosystem projects
- https://docs.growthbook.io/
Supports
- GrowthBook learner destination
- warehouse-connected experimentation and feature-flag documentation
- https://www.growthbook.io/
Supports
- GrowthBook product destination
- managed and self-hosted deployment
- experimentation and feature-flag market placement
- https://posthog.com/docs/experiments
Supports
- PostHog learner destination
- feature-flag exposure
- event funnel ratio and warehouse experiment metrics
- https://posthog.com/
Supports
- PostHog product destination
- feature flags experiments product analytics and usage-based free tier
