Question 6 of 8: Large-Sample Proportion and Mean — Test and Sample-Size Planning
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Notes on this paper
National Examinations, December 2013 — 04-BS-2 Probability and Statistics, 2 hours, closed book except one hand-written information sheet and an approved calculator. Statistical tables (Normal, t, chi-square, F) are supplied with the paper. The instructions state that any 5 of the 8 questions constitute a complete paper; every question is answered in full below.
Reference texts: Walpole, Myers, Myers & Ye, Probability & Statistics for Engineers and Scientists (9th ed.) — sampling distributions Ch. 8, estimation Ch. 9, hypothesis testing Ch. 10, ANOVA/chi-square Ch. 13–16.
Question 6: Large-Sample Proportion and Mean — Test and Sample-Size Planning (20 marks)
Find. (A)(a) test $H_0:p=0.85$; (A)(b) required $n$ for error 0.01 at 99% confidence. (B)(a) test $H_0:\mu=$$260,000; (B)(b) required $n$ for error $1,000 at 99% confidence.
Approach. Large-sample $z$-tests (Normal approximation, $n$ in the thousands) for both hypothesis tests; invert the margin-of-error formula, $E=z_{\alpha/2}\sqrt{p(1-p)/n}$ or $E=z_{\alpha/2}\,\sigma/\sqrt n$, to solve for $n$.
(A)(a) Test $H_0:p=0.85$ vs. $H_1:p\ne0.85$. $\hat p=1{,}450/1{,}800=0.8056$.
$$z=\dfrac{\hat p-p_0}{\sqrt{p_0(1-p_0)/n}}=\dfrac{0.8056-0.85}{\sqrt{(0.85)(0.15)/1{,}800}}=\dfrac{-0.0444}{0.008416}=\boxed{-5.28}$$
Since $|-5.28|\gg z_{0.025}=1.96$: reject $H_0$ — the true happiness proportion is significantly different from (below) 0.85.
(A)(b) Sample size for a proportion, $E=0.01$, 99% confidence. $z_{0.005}=2.576$. Using the best available estimate $\hat p=0.8056$ (Walpole's "estimated $p$" formula):
$$n=\left(\dfrac{z_{0.005}}{E}\right)^2\hat p(1-\hat p)=\left(\dfrac{2.576}{0.01}\right)^2(0.8056)(0.1944)=(66{,}358)(0.1566)=\boxed{10{,}393\Rightarrow n=10{,}393}$$
(round up to the next integer; using the conservative $p=0.5$ instead would give the upper-bound design value $n=16{,}588$).
(B)(a) Test $H_0:\mu=$$260,000 vs. $H_1:\mu\ne$$260,000. With $n=1{,}800$ large, use $z=\dfrac{\bar x-\mu_0}{s/\sqrt n}=\dfrac{275{,}000-260{,}000}{45{,}000/\sqrt{1{,}800}}=\dfrac{15{,}000}{1{,}060.7}=\boxed{14.14}$. Since $14.14\gg1.96$: reject $H_0$ — the data do not support the financial officer's claim; the true mean salary is significantly higher than $260,000.
(B)(b) Sample size for a mean, $E=$$1,000, 99% confidence.
$$n=\left(\dfrac{(2.576)(45{,}000)}{1{,}000}\right)^2=(115.9)^2=\boxed{13{,}436\Rightarrow n=13{,}436}$$