What does "Sample Size" mean?

Definition of Sample Size in the context of A/B testing (online controlled experiments).

What is Sample Size?

The sample size of an online controlled experiment of any kind is the number of users/sessions/pageviews/emails, etc. that are planned to or have already participated in it. It can be given as sample size per group or as total sample size: the sum of sample sizes for all test groups.

The sample size of an A/B test is influenced by 4 factors: the significance threshold (or confidence level), the required statistical power, the magnitude of the minimum effect of interest and the variance of the data at hand. The higher the required evidential threshold or estimation accuracy, the larger the sample size. Higher statistical power or variance also result in longer tests / larger sample sizes. The MEI is inversely related: increasing its magnitude results in smaller sample size for a test.

Sample size considerations enter during the planning phase of an A/B test since it is a part of the statistical model (a.k.a. "data"). Many simple statistical significance calculations and confidence interval calculations come with the assumption that the sample size has been fixed in advance and lose meaning (become invalid, inaccurate, non-interpretable) if one does not perform only a single calculation at a pre-specified point in time. Failure to do so is called "peeking" and has severe consequences.

In contrast, in sequential testing one can perform multiple evaluations at different points in time, but these still need to be specified in advance, to an extent. For example, in an AGILE A/B Test a maximum sample size is calculated and an approximate number of interim analyses is specified and despite its flexibility significant departures from these specifications can lead to the test ending without a definite conclusion.

Like this glossary entry? For an in-depth and comprehensive reading on A/B testing stats, check out the book "Statistical Methods in Online A/B Testing" by the author of this glossary, Georgi Georgiev.

Articles on Sample Size

20-80% Faster A/B Tests? Is it real?
blog.analytics-toolkit.com

Related A/B Testing terms

Statistical PowerTest DurationEffect SizePower AnalysisSample RatioMinimum Detectable Effect

See this in action

Sample Size CalculatorSample Size Calculator Power & MDE CalculatorPower & MDE Calculator

About the author

Georgi Z. Georgiev

Georgi has over twenty years of experience in online marketing, web analytics, statistics, and design of business experiments.

Author of the book "Statistical Methods in Online A/B Testing", white papers on statistical analysis of A/B tests, and a speaker, he has been distinguished as a winner in the Data & Analytics category of the 2024 Experimentation Thought Leadership Awards.

Purchase Statistical Methods in Online A/B Testing

Statistical Methods in Online A/B Testing

Take your A/B testing program to the next level with the most comprehensive book on user testing statistics in e-commerce.

Learn more

Glossary index by letter

Select a letter to see all A/B testing terms starting with that letter or visit the Glossary homepage to see all.