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
Intro
A/B Testing and Experimentation
A/B testing is an online controlled experiment. Eligible units are randomly assigned to a control, A, or a treatment, B. Both groups run at the same time. The difference in their outcomes estimates the causal effect of the treatment under the experiment's assumptions.
This design separates a treatment effect from changes that happen at the same time, such as seasonality, marketing campaigns, and shifts in the user population. A before-and-after comparison cannot provide the same protection because time and treatment change together.
The experiment system
An online experiment connects five parts:
- Hypothesis and decision rule. A falsifiable statement names the treatment, target population, expected direction, primary metric, minimum useful effect, guardrails, and action for each result.
- Assignment. A stable randomization key maps each eligible unit to a variant. The randomization unit might be a user, account, device, session, or cluster.
- Delivery and exposure. The product serves the assigned variant. An exposure event records that the unit encountered the treatment, not merely that it was eligible.
- Measurement. Outcome events become a primary metric, guardrail metrics, diagnostic metrics, and data-quality checks.
- Analysis and decision. The analysis estimates effect size and uncertainty, checks validity, and applies the rule chosen before results were visible.
These parts form one causal measurement system. Correct statistics cannot repair biased assignment, missing exposures, or a metric that does not represent the decision.
From population to estimate
The target population is the group to which the decision should apply. Eligibility rules select an experiment population from it. Random assignment then creates groups that are comparable in expectation.
Continue the course
This section is part of the paid course.
See pricing to subscribe, or log in if you already have access.
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
