Sample Size
& Power
Learn how sample size drives the reliability of business decisions and how statistical power protects you from missing real effects.
What Is a Sample?
In business analytics, we rarely have access to the entire population: every customer, every transaction, or every product unit. Instead, we collect a sample: a smaller subset we can actually measure.
What Is Statistical Power?
Statistical power is the probability that your test correctly detects a real effect when one exists. Formally, power equals \( 1 - \beta \), where \( \beta \) is the probability of a Type II error (failing to reject a false null hypothesis).
Why Sample Size & Power Matter
Every business decision backed by data depends on having enough data to trust the conclusion. Too small a sample leads to unreliable results; too large wastes time and money.
The Four Levers of Power
Power is not just about sample size. Four factors interact to determine whether your test will detect a real effect:
The Sample Size Formula
For estimating a population mean with a desired margin of error \( E \), the required sample size is:
Visualizing Power
Power is the green shaded area under the alternative hypothesis distribution that falls beyond the critical value. As \( n \) grows, distributions narrow and the overlap shrinks.
Type I vs Type II Errors
Understanding errors is essential. Power directly addresses Type II error, but it trades off with Type I error.
| Type I (\( \alpha \)) | Type II (\( \beta \)) | |
|---|---|---|
| What happens | Reject \( H_0 \) when it is true | Fail to reject \( H_0 \) when it is false |
| Also called | False positive | False negative |
| Business example | Launching a campaign that has no real impact | Missing a campaign that would have worked |
| Controlled by | Choosing \( \alpha \) (e.g., 0.05) | Increasing power (\( 1 - \beta \)) |
Understanding Effect Size
Effect size measures how large the real difference is, standardized by variability. Cohen's \( d \) is the most common measure:
How \( n \) Drives Power
As sample size increases, the sampling distribution becomes narrower. This means the overlap between \( H_0 \) and \( H_1 \) shrinks, and power rises.
How to Determine Sample Size
Example 1: Customer Survey
A retailer wants to estimate average customer satisfaction within \( E = 2 \) points at 95% confidence. Past data shows \( \sigma = 12 \).
Example 2: A/B Test
An e-commerce team wants to detect a 5-percentage-point lift in conversion (from 10% to 15%). They want 80% power at \( \alpha = 0.05 \) (two-tailed).
Example 3: Tighter Precision
What happens if the retailer from Example 1 wants a tighter margin of error: \( E = 1 \) instead of \( E = 2 \)?
Common Mistakes
Summary: Key Relationships
| If you increase... | Effect on Power | Effect on Required \( n \) |
|---|---|---|
| Sample size \( n \) | ↑ Increases | — |
| Significance \( \alpha \) | ↑ Increases | ↓ Decreases |
| Effect size \( d \) | ↑ Increases | ↓ Decreases |
| Variability \( \sigma \) | ↓ Decreases | ↑ Increases |
| Margin of error \( E \) | — | ↓ Decreases |
Question 1 of 5
Statistical power is defined as the probability of:
Question 2 of 5
Using \( n = \left(\frac{z \cdot \sigma}{E}\right)^{2} \) with \( z = 1.96 \), \( \sigma = 10 \), and \( E = 2 \), what is the minimum sample size?
Question 3 of 5
Which of the following will increase the power of a hypothesis test?
Question 4 of 5
A researcher halves the margin of error from \( E = 4 \) to \( E = 2 \) while keeping everything else constant. How does the required sample size change?
Question 5 of 5
A Type II error in an A/B test means: