Data Marks

Sample size. Revelation

Eltsefon Mark's avatar
Eltsefon Mark
Apr 09, 2025
∙ Paid

Before diving into the actual sample size formula, let’s take a moment to refresh the foundations of hypothesis testing in the context of A/B tests.

Basics

Let’s start with the basics.

When we run an A/B test, we compare two groups—Group A (control) and Group B (variant)—to see if there's a statistically significant difference between them.

This comparison is framed through two competing hypotheses:

  1. Null Hypothesis (H₀): There is no difference.

  1. Alternative Hypothesis (H₁): There is a difference.

Data Marks is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.

Concepts

  • Type I Error (α): Rejecting the null hypothesis when it is actually true (false positive). In other words, we detect the difference when, in reality, no difference exists.

  • Type II Error (β): Failing to reject the null hypothesis when the alternative is true (false negative). In other words, we miss detecting a difference even though a true effect exists.

  • Power (1 - β): The probability of correctly rejecting the null when there is a true effect. In other words, it’s our ability to detect a difference when one actually exists.

  • Minimum Detectable Effect (MDE): The smallest difference we want to reliably detect.

Distributions

Keep reading with a 7-day free trial

Subscribe to Data Marks to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Eltsefon Mark
Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture