NivaarExam PrepOfficial exam papers ↗

04-BS-2 · May 2018

Question 6 of 8

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

Notes on this paper

04-BS-2 Probability and Statistics — National Examination, May 2018. Closed book (approved calculator + one hand-written information sheet); any 5 of 8 questions constitute a complete paper (only 5 marked) — all 8 are solved below as a complete study resource.

Reference texts: Walpole, Myers, Myers & Ye, Probability and Statistics for Engineers and Scientists (9th ed.), Pearson — used throughout for point-estimation, confidence-interval, and hypothesis-testing formulas; Montgomery & Runger, Applied Statistics and Probability for Engineers, for the regression and correlation-inference formulas in Question 8.

Question 6

Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.

Given. (A) $n=1{,}095$ trucks, $x=365$ failures. (B) $n=900$ bottles, $\bar x=3{,}990$ mL, $s=120$ mL.

Given data
SymbolMeaningValue
$n_A,\ x_A$Trucks tested, failures1,095, 365
$n_B,\ \bar x_B,\ s_B$Bottles, sample mean, sample sd900, 3,990 mL, 120 mL

Find. A(a) test $H_0:p=0.30$; A(b) $n$ for $E=0.01$ at 99% confidence; B(a) test $H_0:\mu=4{,}000$; B(b) $n$ for $E=2$ mL at 99% confidence.

Approach. Both tests use the large-sample $Z$ statistic (proportion and mean respectively); both sample-size questions invert the margin-of-error formula $E=z_{\alpha/2}\cdot(\text{se})$ for $n$.

  1. A(a) Test $H_0:p=0.30$ vs $H_1:p\ne0.30$. $\hat p=365/1{,}095=0.3333$: $$z=\frac{\hat p-p_0}{\sqrt{p_0(1-p_0)/n}}=\frac{0.3333-0.30}{\sqrt{0.30(0.70)/1{,}095}}=\boxed{2.407},\qquad z_{0.025}=1.960.$$ Since $|z|=2.407>1.960$, we reject $H_0$ — the true failure proportion is significantly different from 0.30.
  2. A(b) Sample size, $E=0.01$, 99% confidence. Using $\hat p=0.3333$ as the planning estimate and $z_{0.005}=2.576$: $$n=\frac{z_{0.005}^2\,\hat p(1-\hat p)}{E^2}=\frac{(2.576)^2(0.3333)(0.6667)}{(0.01)^2}=14{,}744.2\ \Rightarrow\ \boxed{n=14{,}745}.$$
  3. B(a) Test $H_0:\mu=4{,}000$ vs $H_1:\mu\ne4{,}000$. $$z=\frac{\bar x-\mu_0}{s/\sqrt n}=\frac{3{,}990-4{,}000}{120/\sqrt{900}}=\frac{-10}{4}=\boxed{-2.50},\qquad z_{0.025}=1.960.$$ Since $|z|=2.50>1.960$, we reject $H_0$ — the mean fill volume is significantly different from (below) the claimed 4,000 mL, so the data do not support the producer's claim.
  4. B(b) Sample size, $E=2$ mL, 99% confidence. Treating $s=120$ mL as the population estimate, $z_{0.005}=2.576$: $$n=\left(\frac{z_{0.005}\,s}{E}\right)^2=\left(\frac{2.576(120)}{2}\right)^2=23{,}885.6\ \Rightarrow\ \boxed{n=23{,}886}.$$
Question 6 — final results
PartResult
A(a) $z$-test, $p=0.30$$z=2.407$, reject
A(b) required $n$14,745
B(a) $z$-test, $\mu=4{,}000$$z=-2.50$, reject
B(b) required $n$23,886