Question 1
A. Is there evidence to support the claim that battery life exceeds 40 hours? Use \(\alpha=0.05\).
\(H_0:\mu\leq40\)
\(H_a:\mu>40\)
Given:
\(\sigma=1.25\) hours
\(n=10\) batteries
\(\bar{x}=40.5\) hours
\(\mu=40\) hours
\(\alpha=0.05\)
\[ Z_0=\frac{\bar{x}-\mu}{\frac{\sigma}{\sqrt{n}}} \] \[ =\frac{40.5-40}{\frac{1.25}{\sqrt{10}}} \] \[ =1.264911064\approx1.26 \]
\[ P-value=1-\Phi(Z_0)=1-\Phi(1.26)=1-0.896165=0.103835 \]
\(\therefore\) There is not enough evidence to say that the battery life exceeds 40 hours.
B. What is the \(P\)-value for the test in part A?
\[ P-value=1-\Phi(Z_0)=1-\Phi(1.26)=1-0.896165=0.103835 \]
We can also use code chunks in R to find this value.
p <- 1 - pnorm(q=1.26);
p## [1] 0.1038347
\(\therefore\) The \(P\)-value is 0.103835.
C. What is the \(\beta\)-error for the text in part B if the true mean life is 42 hours?
Given:
\(\alpha=0.05\)
\(\delta=\mu-\mu_0=42-40=2\)
\(n=10\)
\(\sigma=1.25\)
\[ \beta=\Phi(z_\alpha-\frac{\delta\sqrt{n}}{\sigma})=\Phi(1.64-\frac{2\sqrt{10}}{1.25})=\Phi(-3.419644256)=\Phi(-3.42)=0.000313 \]
Again, we can also use code chunks in R to find its value.
beta <- pnorm(q=-3.42);
beta## [1] 0.0003131057
\(\therefore\) The \(\beta\)-error is 0.000313.
D. What sample size would be required to ensure that \(\beta\) does not exceed 0.10 if the true mean is 44 hours?
Given:
\(\beta=0.10\)
\(\sigma=1.25\)
\(\delta=\mu-\mu_0=44-40=4\)
\[ n=\frac{(Z_\alpha+Z_\beta)^2\sigma^2}{\delta^2}=\frac{(1.64+1.28)^2(1.25)^2}{4^2}=0.83265625\approx1 \]
\(\therefore\) A sample size of 1 is required to ensure that the \(\beta\)-error does not exceed 0.10.
E. Explain how you could answer the question in part A by calculating an appropriate confidence bound on battery life.
Given:
\(\bar{x}=40.5\)
\(\alpha=0.05\)
\(\sigma=1.25\)
\(n=10\)
\[ \bar{x}+Z_\alpha(\frac{\sigma}{\sqrt{n}})=40.5+(1.64)(\frac{1.25}{\sqrt{10}})=41.14826692\approx41.15 \]
\(\therefore\) There is not enough evidence to reject the claim that the battery life exceeds 40 hours.