Topic contents

Lesson 9

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.

Student readout: move with ← → ↑ ↓, use Home/End to jump to the first or last, and Esc to hide

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
Population of male students' heights (illustration) (Each 80 students represent one year of study)
Class discussion: with similar numbers of sampled students, must different sampling methods give identical confidence intervals?
  • 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

Student readout: move with ← → ↑ ↓, use Home/End to jump to the first or last, and Esc to hide

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
Three light colors represent the three years of study; dark blue indicates students selected in this sample. Each square represents one student.
Each stratum has weight 1/3 in this example; simple random sampling without replacement is conducted independently in each stratum.
First click “Draw a sample” to observe the selection animation, then reveal the calculation step by step.

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

xˉst=∑h=1HWh xˉh\bar{x}_{\text{st}}=\sum_{h=1}^{H}W_h\,\bar{x}_h

② Standard error

SE=∑h=1HWh2(1−nhNh)sh2nh\mathrm{SE}=\sqrt{\sum_{h=1}^{H}W_h^{2}\left(1-\frac{n_h}{N_h}\right)\frac{s_h^{2}}{n_h}}

③ Margin of error

Δ=1.96×SE\Delta=1.96\times\mathrm{SE}

④ Full 95% confidence interval

CI=[xˉst−1.96×SE, xˉst+1.96×SE]\mathrm{CI}=\left[\bar{x}_{\text{st}}-1.96\times\mathrm{SE},\ \bar{x}_{\text{st}}+1.96\times\mathrm{SE}\right]

Formula symbols · Understand the letters before substituting values

HH
Number of strata (3 years of study here)
hh
Stratum index, h=1, 2, …, H
NN
Population size (240 students)
NhN_h
Population size of stratum h (80 students)
nhn_h
Sample size in stratum h (12 students)
WhW_h
Weight of stratum h, Wₕ=Nₕ/N
xˉh\bar{x}_h
Sample mean in stratum h
xˉst\bar{x}_{\text{st}}
Stratified estimate of the population mean
sh2s_h^{2}
Sample variance in stratum h
Σ\Sigma
Sum the corresponding terms across strata
1−nh/Nh1-n_h/N_h
Finite population correction term for sampling without replacement in stratum h
μ\mu
Population mean, the true parameter to estimate
SE\mathrm{SE}
Estimated standard error (standard deviation of the statistic's sampling distribution)
Δ\Delta
Margin of error (interval half-width), the critical value times SE
CI\mathrm{CI}
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.

First click “Draw a sample” to show the full calculation for this sample here.

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

Student readout: move with ← → ↑ ↓, use Home/End to jump to the first or last, and Esc to hide

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
After sampling, squares follow the actual sampling list order; dark blue positions are always 6 apart.
The list must first be randomly ordered to use this standard error formula under the example's joint randomization design; it cannot be applied directly to a list ordered by height.
First click “Draw a sample” to observe the selection animation, then reveal the calculation step by step.

Theoretical formulas and symbols

The full textbook formulas are retained. Use the symbol explanations below to understand each term.

① Sampling interval

k=Nnk=\frac{N}{n}

② Point estimate of the population mean

xˉsys=∑i=1nxin\bar{x}_{\text{sys}}=\frac{\sum_{i=1}^{n}x_i}{n}

③ Standard error (random ordering only)

SE=(1−nN)s2n\mathrm{SE}=\sqrt{\left(1-\frac{n}{N}\right)\frac{s^{2}}{n}}

④ Margin of error

Δ=1.96×SE\Delta=1.96\times\mathrm{SE}

⑤ Full approximate 95% confidence interval

CI=[xˉsys−1.96×SE, xˉsys+1.96×SE]\mathrm{CI}=\left[\bar{x}_{\text{sys}}-1.96\times\mathrm{SE},\ \bar{x}_{\text{sys}}+1.96\times\mathrm{SE}\right]

Formula symbols · Understand the letters before substituting values

NN
Population size (240 students)
nn
Sample size (40 students)
kk
Sampling interval, k=N/n (6 here)
rr
Random start (1 to 6)
xix_i
Height of the ith selected student
xˉsys\bar{x}_{\text{sys}}
Systematic estimate of the population mean
s2s^{2}
Sample variance, with denominator n−1
Σ\Sigma
Sum over the n sample observations
1−n/N1-n/N
Finite population correction term for sampling without replacement
μ\mu
Population mean, the true parameter to estimate
SE\mathrm{SE}
Estimated standard error (standard deviation of the statistic's sampling distribution)
Δ\Delta
Margin of error (interval half-width), the critical value times SE
CI\mathrm{CI}
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.

First click “Draw a sample” to show the full calculation for this sample here.

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

Student readout: move with ← → ↑ ↓, use Home/End to jump to the first or last, and Esc to hide

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
Three light colors represent the three years of study; dark blue indicates students selected in this sample. Each square represents one student.
Here M=12 and m=4; the t critical value is approximately 3.182. With few clusters, even a t interval is only a teaching approximation; the 80 students cannot be treated directly as a simple random sample.
First click “Draw a sample” to observe the selection animation, then reveal the calculation step by step.

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)

xˉcl=∑j=1mxˉjm\bar{x}_{\text{cl}}=\frac{\sum_{j=1}^{m}\bar{x}_j}{m}

② Standard error (classes as sampling units)

SE=(1−mM)sxˉ2m\mathrm{SE}=\sqrt{\left(1-\frac{m}{M}\right)\frac{s_{\bar{x}}^{2}}{m}}

③ Margin of error

Δ=t0.975, m−1×SE\Delta=t_{0.975,\,m-1}\times\mathrm{SE}

④ Full approximate 95% confidence interval

CI=[xˉcl−t0.975, m−1×SE, xˉcl+t0.975, m−1×SE]\mathrm{CI}=\left[\bar{x}_{\text{cl}}-t_{0.975,\,m-1}\times\mathrm{SE},\ \bar{x}_{\text{cl}}+t_{0.975,\,m-1}\times\mathrm{SE}\right]

Formula symbols · Understand the letters before substituting values

MM
Number of population clusters (12 classes)
mm
Number of selected clusters (4 classes)
jj
Selected cluster index, j=1, 2, …, m
xˉj\bar{x}_j
Mean height in selected class j
xˉcl\bar{x}_{\text{cl}}
Cluster estimate of the population mean
sxˉ2s^{2}_{\bar{x}}
s²(class means): sample variance of selected class means, with denominator m−1
t0.975, m−1t_{0.975,\,m-1}
t critical value with m−1 degrees of freedom and cumulative probability 0.975
Σ\Sigma
Sum over the m selected classes
1−m/M1-m/M
Finite population correction term for sampling clusters without replacement
μ\mu
Population mean, the true parameter to estimate
SE\mathrm{SE}
Estimated standard error (standard deviation of the statistic's sampling distribution)
Δ\Delta
Margin of error (interval half-width), the critical value times SE
CI\mathrm{CI}
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.

First click “Draw a sample” to show the full calculation for this sample here.

Three sampling designs: formulas, intervals, and conditions

Review how each method goes from a population mean estimate to a 95% confidence interval.

The previous three sections give the full textbook formulas. When reviewing, write them in this order: point estimate—standard error—margin of error—lower and upper interval limits.
Sampling methodPopulation mean estimateStandard errorInterval estimate
Stratified sampling∑Whxˉh\sum W_h\bar{x}_h∑Wh2(1−fh) sh2/nh\sqrt{\sum W_h^{2}(1-f_h)\,s_h^{2}/n_h}Estimate ± 1.96SE
Systematic (shuffled)Sample mean(1−f) s2/n\sqrt{(1-f)\,s^{2}/n}Estimate ± 1.96SE
Cluster (equal-size)Average of class means(1−m/M) s2(class means)/m\sqrt{(1-m/M)\,s^{2}(\text{class means})/m}Estimate ± t critical value×SE
Class summary: interval forms are similar across sampling methods, but estimators, standard errors, and conditions for use are not all the same.

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.