Question
A bakery produces 300 loaves on its day shift and 100 on its night shift. To estimate the average weight of all 400 loaves, the quality manager independently draws a simple random sample of 30 day-shift loaves and 20 night-shift loaves, without replacement in either shift.
The day sample has mean 502 g and sample variance 100 g²; the night sample has mean 490 g and sample variance 400 g². In both cases the variance uses the usual divisor \(n-1\).
Give the appropriate estimate of the full day's mean weight and an estimated standard error, including finite-population corrections. A colleague instead averages the 50 sampled weights as though they were a single random sample. What does that give, and in what sense can it be biased?
Get hint
Hint 1
The day and night shifts represent 75% and 25% of production, despite supplying 60% and 40% of the sample.
Check your answer
Solution
A loaf selected uniformly from all production belongs to the day shift with probability \(300/400=3/4\) and the night shift with probability \(1/4\). The stratified estimator is therefore
\(\widehat\mu=\tfrac34(502)+\tfrac14(490)=\boxed{499\text{ g}}\).
Within a stratum, a simple random sample without replacement gives \(\operatorname{Var}(\bar X_h)=(1-n_h/N_h)S_h^2/n_h\), where \(S_h^2\) is the finite-population variance with denominator \(N_h-1\). Replacing it with the usual unbiased sample variance \(s_h^2\), and using independence of the two samples, gives
\(\widehat{\operatorname{Var}}(\widehat\mu)=(3/4)^2(1-30/300)(100/30)+(1/4)^2(1-20/100)(400/20)=27/16+1=43/16\text{ g}^2\).
Thus the estimated standard error is \(\sqrt{43}/4\approx1.639\) g. The ordinary sample mean of all 50 measured loaves is \((30\cdot502+20\cdot490)/50=497.2\) g. Across repeated within-shift samples, its expectation is \(0.6\mu_D+0.4\mu_N\), while the true production mean is \(0.75\mu_D+0.25\mu_N\). Its bias is therefore \(0.15(\mu_N-\mu_D)\), generally nonzero when shift means differ. Plugging in the observed means suggests a difference of \(-1.8\) g, but it is not the exact unknown design bias. Equal or unequal sample counts cannot replace the production weights.
Assumptions
Loaf production counts are fixed and known, and sampling within each shift is uniform without replacement.
The two stratum samples are independently selected.
Given \(s^{2}\) values are conventional within-stratum unbiased sample variances.
Final Answer
Population-weighted estimate: 499 g; estimated SE: \(\sqrt{43}/4\approx1.639\) g. Naively pooling samples gives 497.2 g, with bias \(0.15(\mu_N-\mu_D)\) for true shift means \(\mu_D,\mu_N\).