Sample Size — Definition, Formula & Examples
Sample size is the number of individual data points or observations collected from a larger population. It is represented by the variable in statistics formulas.
In inferential statistics, the sample size denotes the count of independently selected observations drawn from a population of size , where . A larger generally reduces sampling error and yields more precise estimates of population parameters.
Key Formula
Where:
- = Sample size — the total number of observations in the sample
- = The value of the $i$-th observation
- = The sample mean
How It Works
When you conduct a survey or experiment, you rarely measure every member of the population. Instead, you select a subset — your sample — and tells you how many members that subset contains. A larger sample size tends to produce results that more closely reflect the true population values. However, increasing also increases cost and effort, so researchers balance precision against practical constraints. In many statistics formulas, appears in the denominator, which is why it directly controls how tight or wide your estimates are.
Worked Example
Problem: A teacher records quiz scores for 5 students: 80, 90, 85, 95, and 100. What is the sample size, and what is the sample mean?
Identify n: Count the number of observations collected.
Sum the values: Add all quiz scores together.
Calculate the mean: Divide the sum by the sample size .
Answer: The sample size is , and the sample mean is 90.
Why It Matters
In AP Statistics and introductory college courses, nearly every confidence interval and hypothesis test formula includes . Choosing an appropriate sample size before collecting data is a critical skill in fields like public health, market research, and quality control, where under-sampling leads to unreliable conclusions and over-sampling wastes resources.
Common Mistakes
Mistake: Confusing sample size with population size .
Correction: is the total number of members in the entire population; is the count you actually observe. In most real studies is much smaller than .
