Skip to main content

Section 9.6 Determining Sample Size

Let’s say we want to construct a \(99\%\) confidence interval to estimate the average GPA of students at UCCS. However, we don’t want the margin of error to be too big, and we want to know how many students to survey to get the margin of error that we want.
How large a sample is necessary to make an accurate estimate? The answer is not simple, since it depends on three things:
  1. The confidence level
  2. The standard deviation
  3. The margin of error
The more confident we want to be, the wider we want our interval, but there is a tradeoff. If an interval is too wide, it provides little information. On the other hand, a narrow interval requires a larger sample size and sampling can be a costly procedure. Hence it is handy to be able to be able to calculate ahead of time the sample size required to achieve a specified margin of error. With a bit of algebra on the appropriate margin of error from the confidence interval formula, we can determine the sample size.
\begin{equation*} ME_{\overline{x}}=z_{\alpha/2}\cdot\left(\frac{\sigma}{\sqrt{n}}\right)\text{ and } ME_{\overline{p}}=z_{\alpha/2}\cdot\sqrt{\frac{\overline{p}(1-\overline{p})}{n}} \end{equation*}
  • The formula when working with a mean is:
    \begin{equation*} \boxed{n=\frac{(z_{\alpha/2})^2\cdot\sigma^2}{(ME_{\overline{x}})^2}} \end{equation*}
  • The formula when working with a proportion is:
    \begin{equation*} \boxed{n=\frac{(z_{\alpha/2})^2\cdot(\overline{p}(1-\overline{p}))}{(ME_{\overline{p}})^2}} \end{equation*}
If necessary, round the answer UP to obtain a whole number. If you round down, then you won’t achieve the desired margin of error.

Exercise 9.6.1.

(Donnelly 8.44)
Determine the sample size needed to construct a \(99\%\) confidence interval to estimate the average GPA for the student population at a college with a margin of error equal to \(0.5\text{.}\) Assume the standard deviation of the GPA for the student population is \(2.5\text{.}\)
Answer.
\(ME_{\overline{x}}=0.5\)
\(\sigma=2.5\)
\(1-\alpha=0.99\rightarrow \alpha=0.01\rightarrow \alpha/2=.005\rightarrow z_{.005}=NORM.S.INV(.995)\approx 2.575\)
\begin{equation*} n\approx \frac{(2.575)^2(2.5)^2}{(0.5)^2}\approx 165.87 \end{equation*}
Using the formula, we’ll get \(n\approx 165.87\text{.}\) We always need to round up to guarantee the desired margin of error. So here, we need a sample size of at least \(\boxed{166}\text{.}\)

Exercise 9.6.2.

(Donnelly 8.47)
A certain region would like to estimate the proportion of voters who intend to participate in upcoming elections. A pilot sample of 50 voters found that 39 of them intended to vote in the election. Determine the additional number of voters that need to be sampled to construct a \(96\%\) interval with a margin of error equal to \(0.08\) to estimate the proportion.
Answer.
\(\overline{p}=\frac{39}{50}=0.78\)
\(ME_{\overline{p}}=0.08\)
\(1-\alpha=0.96\rightarrow \alpha=0.04\rightarrow \alpha/2=.02\)
\(z_{.02}=NORM.S.INV(.98)\approx 2.054\)
\begin{equation*} n\approx \frac{(2.054)^2(.78)(1-.78)}{(.08)^2} \end{equation*}
Using the formula (and rounding up), we’ll get that \(n\) needs to be at least \(114\text{.}\) Since the pilot sample included \(50\) voters, to get to \(114\) voters, we need to sample
\begin{equation*} 114-50=\boxed{64\text{ more voters.}} \end{equation*}

Note 9.6.3.

If a pilot sample is not available, then use \(\overline{p}=0.5\text{.}\)