Confidence intervals for the population mean under different sampling designs
The same university and population mean: why do different sampling designs give different precision?
One population, three sampling methods
The simulated university has 12 classes of 20 male students, totaling 240 students; each of three years of study has 4 classes.
Hover over a square, or focus the diagram and use the arrow keys to inspect each student's class and height.
- First-year students
- Second-year students
- Third-year students
- Stratified sampling: sample students from each of the three years, then form a weighted estimate.
- Systematic sampling: use a random start and fixed interval; also consider the ordering of the list.
- Cluster sampling: select several classes directly and survey every student in the selected classes.
Each method is demonstrated in full: estimate → standard error → margin of error → confidence interval.
Sampling actions
Try it
Stratified random sampling without replacement: sample 12 of 80 students in each stratum, with stratum weights all 1/3.
Stratified sampling: from stratum means to a confidence interval
Each of three years has 80 students. Randomly sample 12 per stratum without replacement, totaling 36 students.
Sampling diagram · First observe how the sample is drawn
Hover over a square, or focus the diagram and use the arrow keys to inspect each student's class and height.
- First-year students
- Second-year students
- Third-year students
- Selected in this sample
Theoretical formulas and symbols
The full textbook formulas are retained. Use the symbol explanations below to understand each term.
① Point estimate of the population mean
② Standard error
③ Margin of error
④ Full 95% confidence interval
Formula symbols · Understand the letters before substituting values
- Number of strata (3 years of study here)
- Stratum index, h=1, 2, …, H
- Population size (240 students)
- Population size of stratum h (80 students)
- Sample size in stratum h (12 students)
- Weight of stratum h, Wₕ=Nₕ/N
- Sample mean in stratum h
- Stratified estimate of the population mean
- Sample variance in stratum h
- Sum the corresponding terms across strata
- Finite population correction term for sampling without replacement in stratum h
- Population mean, the true parameter to estimate
- Estimated standard error (standard deviation of the statistic's sampling distribution)
- Margin of error (interval half-width), the critical value times SE
- Confidence interval for the population mean
The 95% confidence intervals are two-sided; z=1.96 is the standard normal critical value. Cluster sampling uses a t critical value as a teaching approximation; see the conditions below.
Substitution and calculation for this sample
Reveal the example calculation step by step in the same order as the formulas above, and compare the two.
Sampling actions
Try it
Randomly order the list, then use a random start and select 1 in every 6 students; this joint randomization design is equivalent to simple random sampling without replacement.
Systematic sampling: from sampling interval to confidence interval
Sample 40 of 240 students at an interval of 6; the random start is from 1 to 6.
Sampling diagram · First observe how the sample is drawn
Hover over a square, or focus the diagram and use the arrow keys to inspect each student's class and height.
- First-year students
- Second-year students
- Third-year students
- Selected in this sample
Theoretical formulas and symbols
The full textbook formulas are retained. Use the symbol explanations below to understand each term.
① Sampling interval
② Point estimate of the population mean
③ Standard error (random ordering only)
④ Margin of error
⑤ Full approximate 95% confidence interval
Formula symbols · Understand the letters before substituting values
- Population size (240 students)
- Sample size (40 students)
- Sampling interval, k=N/n (6 here)
- Random start (1 to 6)
- Height of the ith selected student
- Systematic estimate of the population mean
- Sample variance, with denominator n−1
- Sum over the n sample observations
- Finite population correction term for sampling without replacement
- Population mean, the true parameter to estimate
- Estimated standard error (standard deviation of the statistic's sampling distribution)
- Margin of error (interval half-width), the critical value times SE
- Confidence interval for the population mean
The 95% confidence intervals are two-sided; z=1.96 is the standard normal critical value. Cluster sampling uses a t critical value as a teaching approximation; see the conditions below.
Substitution and calculation for this sample
Reveal the example calculation step by step in the same order as the formulas above, and compare the two.
Sampling actions
Try it
Randomly select 4 of 12 equal-size classes and survey all 20 students in each selected class; use class means as the sampling units.
Cluster sampling: calculate an interval using classes as units
Randomly select 4 classes and survey all 20 students in each, totaling 80 students.
Sampling diagram · First observe how the sample is drawn
Hover over a square, or focus the diagram and use the arrow keys to inspect each student's class and height.
- First-year students
- Second-year students
- Third-year students
- Selected in this sample
Theoretical formulas and symbols
The full textbook formulas are retained. Use the symbol explanations below to understand each term.
① Point estimate of the population mean (equal-size clusters)
② Standard error (classes as sampling units)
③ Margin of error
④ Full approximate 95% confidence interval
Formula symbols · Understand the letters before substituting values
- Number of population clusters (12 classes)
- Number of selected clusters (4 classes)
- Selected cluster index, j=1, 2, …, m
- Mean height in selected class j
- Cluster estimate of the population mean
- s²(class means): sample variance of selected class means, with denominator m−1
- t critical value with m−1 degrees of freedom and cumulative probability 0.975
- Sum over the m selected classes
- Finite population correction term for sampling clusters without replacement
- Population mean, the true parameter to estimate
- Estimated standard error (standard deviation of the statistic's sampling distribution)
- Margin of error (interval half-width), the critical value times SE
- Confidence interval for the population mean
The 95% confidence intervals are two-sided; z=1.96 is the standard normal critical value. Cluster sampling uses a t critical value as a teaching approximation; see the conditions below.
Substitution and calculation for this sample
Reveal the example calculation step by step in the same order as the formulas above, and compare the two.
Three sampling designs: formulas, intervals, and conditions
Review how each method goes from a population mean estimate to a 95% confidence interval.
| Sampling method | Population mean estimate | Standard error | Interval estimate |
|---|---|---|---|
| Stratified sampling | Estimate ± 1.96SE | ||
| Systematic (shuffled) | Sample mean | Estimate ± 1.96SE | |
| Cluster (equal-size) | Average of class means | Estimate ± t critical value×SE |
Stratified sampling needs stratum weights and within-stratum variances; systematic sampling must specify list ordering and conditions for variance estimation; cluster sampling requires estimating variance at the cluster level.