What does "Sample Space" mean?

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

What is a Sample Space?

In probability theory the sample space is the set of all possible outcomes of a random phenomenon that could be observed, all possible values of the sample X. It can be a set of real numbers or a higher-dimensional vector space, or even a list of non-numerical values such as {Yes,No} (a user converted or not, bounced or not).

For example, the sample space of any type of conversion rate is [0,1] while that of any kind of revenue-based metric is [0,+∞) (unless negative revenue is possible due to refunds).

The sample space is a key concept in frequentist inference wherein in both hypothesis testing and estimation one needs to consider all possible realizations of variable in order to determine how unexpected a given observation is under the null hypothesis (a p-value) or calculate an interval that would contain the true value with a given probability (coverage of a confidence interval). Framed in terms of the statistical model that most closely resembles the true data-generating mechanism the sample space is simply an enumeration of all possible outcomes from the statistical model.

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.

Related A/B Testing terms

Statistical ModelDistribution

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.