All modules

Module 07 · Determining sample size

Sample size for a population mean (unknown σ)

Use the sample standard deviation sp from a pilot study to plan your sample. The t critical value adjusts with the planned number of observations.

See how precision improves

Pilot estimate · sp

Plan your sample

95.0%

Planned sample size99
Estimated margin of error1.99

Intermediate calculations:

α20.025
Degrees of freedom n−198
Critical value t1−α/2,n−11.984
Estimated standard error spn1.0050

Plan for 99 observations. Using the pilot standard deviation, the estimated margin of error is approximately 1.99; the final sample may have a different spread and margin of error.

With pilot standard deviation 10, target margin of error 2, and 95 percent confidence, the planned sample size is 99. The planned degrees of freedom are 98, the t critical value is 1.984, and the estimated margin of error is approximately 1.99. This is a planning estimate based on the pilot spread.

The idea

When σ is unknown, a representative pilot study provides an estimate sp. Enter its sample standard deviation, calculated using the pilot’s sample size minus one in the variance denominator. Use the same measurement units as your target margin of error E.

The planner finds the smallest whole number n≥2 satisfying t1−α/2,n−1spn≤E. Because the critical value itself depends on n, the calculation checks candidate sizes rather than rounding a single fixed-critical-value formula.

The t degrees of freedom are n−1 for the planned study. The pilot supplies the spread estimate. With sp=10, E=2, and 95% confidence, the resulting plan is 99 observations.

TRY THIS More precision, more data

Reduce the target margin from 2 to 1 while holding the pilot standard deviation and confidence level fixed. The required count rises to roughly four times as many observations. The relation is approximate here because the t critical value also changes with the planned sample size.

E is half the interval’s total width. This plan treats sp as the future spread estimate: a more variable final sample can produce a wider interval than the target. Consider whether the pilot represents the population and conditions of the planned study.

The planned interval assumes independent observations and a normal population or an adequate approximation for the mean; a small or unrepresentative pilot can give an unreliable spread estimate. Reference: Penn State STAT 800, sample-size computation ↗

Next, use sampling uncertainty to evaluate a claim.Explore hypothesis testing