STAT 1010 - Fall 2022
\[ \hat{p} \sim N(\mu = p, \sigma^2 = \frac{p(1-p)}{n}) \]
\[\hat{p} \pm z_{\alpha/2} \cdot \sqrt{\hat{p}(1-\hat{p})/n} \] For \(95\%\) CI, \(z_{\alpha/2} = 1.96\)
As confidence level increases, interval widens
In R
: qnorm(0.025)
Let \(\hat{p}= 0.14\) and \(n = 350\), find a \(95\%\) CI for the proportion
\(\begin{aligned} se(\hat{p}) &= \sqrt{\frac{\hat{p}(1-\hat{p})}{n}} &= \sqrt{\frac{0.14(1-0.14)}{350}}\end{aligned} \approx 0.0185\)
lower value: \(\hat{p} - 1.96 \cdot 0.0185 \approx 0.10374\)
upper value: \(\hat{p} + 1.96 \cdot 0.0185 \approx 0.17626\)
An auditor checks a sample of 225 randomly chosen transactions from among the thousands processed in an office. Thirty-five contains errors in crediting or debiting the appropriate account
a. Does this situation meet the conditions required for a \(z\)-interval for the proportion?
b. Find the \(95\%\) confidence interval for \(p\), the proportion of all transactions processed in the this office that have these errors.
c. Managers claim that the proportion of errors is about \(10\%\). Does that seem reasonable?
yes, \(\hat{p} = 35/225 \approx 0.156\) so \(n\hat{p}, n(1-\hat{p})> 10\) and we assume sampled \(<10\%\)
\(\begin{aligned} \hat{p} \pm z_{\alpha/2} \cdot \sqrt{\hat{p}(1-\hat{p})/n} &= 0.156 \pm 1.96 \sqrt{0.156(1-0.156)/225}\\ &= 0.156 \pm 1.96 \cdot 0.0242 \\ &= 0.156 \pm 0.047\\ & [0.109, 0.203]\end{aligned}\)
No \(10\%\) is too low, with \(95\%\) confidence it is higher
\[\bar{x} \pm t_{\alpha/2, n-1} \cdot \frac{s}{\sqrt{n}} \]
Let \(\bar{x}= \$3285\), \(n = 150\), and \(s = \$238\) find a \(95\%\) CI for the mean
\(\begin{aligned} se(\bar{x}) &= s/\sqrt{n} &= 238/\sqrt{150}\end{aligned} \approx 19.43262\)
qt(.025, df = 149)
\(\approx -1.976\)
lower value: \(3285 - 1.976 \cdot 19.43262 \approx \$3,320\)
upper value: \(3285 + 1.976 \cdot 19.43262 \approx \$3,247\)
3285 + qt(.025, df = 149)* 238/sqrt(150)
Office administrators claim that the average amount on a purchase order is $6,000. A SRS of 49 purchase orders averages \(\bar{x} = \$4,200\) with \(s = \$3,500\).
\(N(\mu, \sigma^2/49)\)
\[\begin{aligned} 4200 \pm 2.01 \cdot 3500/\sqrt{49} &= 4200 \pm 2.01 \cdot 500 \\ &= 4200 \pm -1005.317 \\ &\approx [3195, 5205]\end{aligned}\]
No \(\$6,00\) is way above the \(95\%\) confidence interval
“We can be 95% confident that the average purchase order handled by this office lies between $3195 and $5205.”
In example from means. How could we update the CI if we know we had 10 offices with similar purchase patterns.
If \([L \text{ to } U]\) is a \(100(1 – \alpha)%\) confidence interval for \(\mu\)
then \([c \cdot L \text{ to } c \cdot U]\) is a \(100 (1 – \alpha)%\) confidence interval for \(c \cdot \mu\)
and \([c + L \text{ to } c + U]\) is a \(100(1 – \alpha)%\) confidence interval for \(c + \mu\).
\(10 \cdot [3195, 5205] = [31950, 52050]\)
\[\bar{x} \pm \frac{2s}{\sqrt{n}} \]
\[n = \frac{4s^2}{\text{(Margin of error)}^2} \]
Click here or the qr code below