This is “Sample Size Considerations”, section 9.5 from the book Beginning Statistics (v. 1.0).
For more information on the source of this book, or why it is available for free, please see the project's home page. You can browse or download additional books there. You may also download a PDF copy of this book (33 MB) or just this chapter (1 MB), suitable for printing or most e-readers, or a .zip file containing this book's HTML files (for use in a web browser offline).
As was pointed out at the beginning of Section 7.4 "Sample Size Considerations" in Chapter 7 "Estimation", sampling is typically done with definite objectives in mind. For example, a physician might wish to estimate the difference in the average amount of sleep gotten by patients suffering a certain condition with the average amount of sleep got by healthy adults, at 90% confidence and to within half an hour. Since sampling costs time, effort, and money, it would be useful to be able to estimate the smallest size samples that are likely to meet these criteria.
Assuming that large samples will be required, the confidence interval formula for estimating the difference ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ between two population means using independent samples is $\left({\stackrel{-}{x}}_{1}-{\stackrel{-}{x}}_{2}\right)\pm E$, where
$$E={z}_{\alpha \u22152}\sqrt{\frac{{s}_{1}^{2}}{{n}_{1}}+\frac{{s}_{2}^{2}}{{n}_{2}}}$$To say that we wish to estimate the mean to within a certain number of units means that we want the margin of error E to be no larger than that number. The number ${z}_{\alpha \u22152}$ is determined by the desired level of confidence.
The numbers s_{1} and s_{2} are estimates of the standard deviations ${\mathit{\sigma}}_{1}$ and ${\mathit{\sigma}}_{2}$ of the two populations. In analogy with what we did in Section 7.4 "Sample Size Considerations" in Chapter 7 "Estimation" we will assume that we either know or can reasonably approximate ${\mathit{\sigma}}_{1}$ and ${\mathit{\sigma}}_{2}.$
We cannot solve for both n_{1} and n_{2}, so we have to make an assumption about their relative sizes. We will specify that they be equal. With these assumptions we obtain the minimum sample sizes needed by solving the equation displayed just above for ${n}_{1}={n}_{2}.$
The estimated minimum equal sample sizes ${n}_{1}={n}_{2}$ needed to estimate the difference ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ in two population means to within E units at $100\left(1-\alpha \right)$% confidence is
$$\begin{array}{cc}{n}_{1}={n}_{2}=\frac{{({z}_{\alpha \u22152})}^{2}({\mathit{\sigma}}_{1}^{2}+{\mathit{\sigma}}_{2}^{2})}{{E}^{2}}& (\text{rounded}\text{\hspace{0.17em}}\text{up})\end{array}$$In all the examples and exercises the population standard deviations ${\mathit{\sigma}}_{1}$ and ${\mathit{\sigma}}_{2}$ will be given.
A law firm wishes to estimate the difference in the mean delivery time of documents sent between two of its offices by two different courier companies, to within half an hour and with 99.5% confidence. From their records it will randomly sample the same number n of documents as delivered by each courier company. Determine how large n must be if the estimated standard deviations of the delivery times are 0.75 hour for one company and 1.15 hours for the other.
Solution:
Confidence level 99.5% means that $\alpha =1-0.995=0.005$ so $\alpha \u22152=0.0025.$ From the last line of Figure 12.3 "Critical Values of " we obtain ${z}_{0.0025}=2.807.$
To say that the estimate is to be “to within half an hour” means that E = 0.5. Thus
$$n=\frac{{\left({z}_{\alpha \u22152}\right)}^{2}\left({\mathit{\sigma}}_{1}^{2}+{\mathit{\sigma}}_{2}^{2}\right)}{{E}^{2}}=\frac{{\left(2.807\right)}^{2}\left(0.7{5}^{2}+1.1{5}^{2}\right)}{0.{5}^{2}}=59.40953746$$which we round up to 60, since it is impossible to take a fractional observation. The law firm must sample 60 document deliveries by each company.
As we mentioned at the end of Section 9.3 "Comparison of Two Population Means: Paired Samples", if the sample is large (meaning that n ≥ 30) then in the formula for the confidence interval we may replace ${t}_{\alpha \u22152}$ by ${z}_{\alpha \u22152}$, so that the confidence interval formula becomes $\stackrel{-}{d}\pm E$ for
$$E={z}_{\alpha \u22152}\frac{{s}_{d}}{\sqrt{n}}$$The number s_{d} is an estimate of the standard deviations ${\mathit{\sigma}}_{d}$ of the population of differences. We must assume that we either know or can reasonably approximate ${\mathit{\sigma}}_{d}.$ Thus, assuming that large samples will be required to meet the criteria given, we can solve the displayed equation for n to obtain an estimate of the number of pairs needed in the sample.
The estimated minimum number of pairs n needed to estimate the difference ${\mathit{\mu}}_{d}={\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ in two population means to within E units at $100\left(1-\alpha \right)$% confidence using paired difference samples is
$$\begin{array}{cc}n=\frac{{\left({z}_{\alpha \u22152}\right)}^{2}{\mathit{\sigma}}_{d}^{2}}{{E}^{2}}& (\text{rounded}\text{\hspace{0.17em}}\text{up})\end{array}$$In all the examples and exercises the population standard deviation of the differences ${\mathit{\sigma}}_{d}$ will be given.
A automotive tire manufacturer wishes to compare the mean lifetime of two tread designs under actual driving conditions. They will mount one of each type of tire on n vehicles (both on the front or both on the back) and measure the difference in remaining tread after 20,000 miles of driving. If the standard deviation of the differences is assumed to be 0.025 inch, find the minimum samples size needed to estimate the difference in mean depth (at 20,000 miles use) to within 0.01 inch at 99.9% confidence.
Solution:
Confidence level 99.9% means that $\alpha =1-0.999=0.001$ so $\alpha \u22152=0.0005.$ From the last line of Figure 12.3 "Critical Values of " we obtain ${z}_{0.0005}=3.291.$
To say that the estimate is to be “to within 0.01 inch” means that E = 0.01. Thus
$$n=\frac{{\left({z}_{\alpha \u22152}\right)}^{2}{\mathit{\sigma}}_{d}^{2}}{{E}^{2}}=\frac{{\left(3.291\right)}^{2}{\left(0.025\right)}^{2}}{{\left(0.01\right)}^{2}}=67.69175625$$which we round up to 68. The manufacturer must test 68 pairs of tires.
The confidence interval formula for estimating the difference ${p}_{1}-{p}_{2}$ between two population proportions is ${\widehat{p}}_{1}-{\widehat{p}}_{2}\pm E$, where
$$E={z}_{\alpha \u22152}\sqrt{\frac{{\widehat{p}}_{1}\left(1-{\widehat{p}}_{1}\right)}{{n}_{1}}+\frac{{\widehat{p}}_{2}\left(1-{\widehat{p}}_{2}\right)}{{n}_{2}}}$$To say that we wish to estimate the mean to within a certain number of units means that we want the margin of error E to be no larger than that number. The number ${z}_{\alpha \u22152}$ is determined by the desired level of confidence.
We cannot solve for both n_{1} and n_{2}, so we have to make an assumption about their relative sizes. We will specify that they be equal. With these assumptions we obtain the minimum sample sizes needed by solving the displayed equation for ${n}_{1}={n}_{2}.$
The estimated minimum equal sample sizes ${n}_{1}={n}_{2}$ needed to estimate the difference ${p}_{1}-{p}_{2}$ in two population proportions to within E percentage points at $100\left(1-\alpha \right)$% confidence is
$$\begin{array}{cc}{n}_{1}={n}_{2}=\frac{{\left({z}_{\alpha \u22152}\right)}^{2}\left({\widehat{p}}_{1}\left(1-{\widehat{p}}_{1}\right)+{\widehat{p}}_{2}\left(1-{\widehat{p}}_{2}\right)\right)}{{E}^{2}}& (\text{rounded}\text{\hspace{0.17em}}\text{up})\end{array}$$Here we face the same dilemma that we encountered in the case of a single population proportion: the formula for estimating how large a sample to take contains the numbers ${\widehat{p}}_{1}$ and ${\widehat{p}}_{2}$, which we know only after we have taken the sample. There are two ways out of this dilemma. Typically the researcher will have some idea as to the values of the population proportions p_{1} and p_{2}, hence of what the sample proportions ${\widehat{p}}_{1}$ and ${\widehat{p}}_{2}$ are likely to be. If so, those estimates can be used in the formula.
The second approach to resolving the dilemma is simply to replace each of ${\widehat{p}}_{1}$ and ${\widehat{p}}_{2}$ in the formula by 0.5. As in the one-population case, this is the most conservative estimate, since it gives the largest possible estimate of n. If we have an estimate of only one of p_{1} and p_{2} we can use that estimate for it, and use the conservative estimate 0.5 for the other.
Find the minimum equal sample sizes necessary to construct a 98% confidence interval for the difference ${p}_{1}-{p}_{2}$ with a margin of error E = 0.05,
Solution:
Confidence level 98% means that $\alpha =1-0.98=0.02$ so $\alpha \u22152=0.01.$ From the last line of Figure 12.3 "Critical Values of " we obtain ${z}_{0.01}=2.326.$
Since there is no prior knowledge of p_{1} or p_{2} we make the most conservative estimate that ${\widehat{p}}_{1}=0.5$ and ${\widehat{p}}_{2}=0.5.$ Then
$$\begin{array}{c}{n}_{1}={n}_{2}=\frac{{\left({z}_{\alpha \u22152}\right)}^{2}\left({\widehat{p}}_{1}\left(1-{\widehat{p}}_{1}\right)+{\widehat{p}}_{2}\left(1-{\widehat{p}}_{2}\right)\right)}{{E}^{2}}\hfill \\ =\frac{{\left(2.326\right)}^{2}\left(\left(0.5\right)\left(0.5\right)+\left(0.5\right)\left(0.5\right)\right)}{0.0{5}^{2}}\hfill \\ =1082.0552\hfill \end{array}$$which we round up to 1,083. We must take a sample of size 1,083 from each population.
Since ${p}_{1}\approx 0.2$ we estimate ${\widehat{p}}_{1}$ by 0.2, and since ${p}_{2}\approx 0.3$ we estimate ${\widehat{p}}_{2}$ by 0.3. Thus we obtain
$$\begin{array}{c}{n}_{1}={n}_{2}=\frac{{\left({z}_{\alpha \u22152}\right)}^{2}\left({\widehat{p}}_{1}\left(1-{\widehat{p}}_{1}\right)+{\widehat{p}}_{2}\left(1-{\widehat{p}}_{2}\right)\right)}{{E}^{2}}\hfill \\ =\frac{{\left(2.326\right)}^{2}\left(\left(0.2\right)\left(0.8\right)+\left(0.3\right)\left(0.7\right)\right)}{0.0{5}^{2}}\hfill \\ =800.720848\hfill \end{array}$$which we round up to 801. We must take a sample of size 801 from each population.
Estimate the common sample size n of equally sized independent samples needed to estimate ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ as specified when the population standard deviations are as shown.
Estimate the common sample size n of equally sized independent samples needed to estimate ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ as specified when the population standard deviations are as shown.
Estimate the number n of pairs that must be sampled in order to estimate ${\mathit{\mu}}_{d}={\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ as specified when the standard deviation s_{d} of the population of differences is as shown.
Estimate the number n of pairs that must be sampled in order to estimate ${\mathit{\mu}}_{d}={\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ as specified when the standard deviation s_{d} of the population of differences is as shown.
Estimate the minimum equal sample sizes ${n}_{1}={n}_{2}$ necessary in order to estimate ${p}_{1}-{p}_{2}$ as specified.
80% confidence, to within 0.05 (five percentage points)
90% confidence, to within 0.02 (two percentage points)
95% confidence, to within 0.10 (ten percentage points)
Estimate the minimum equal sample sizes ${n}_{1}={n}_{2}$ necessary in order to estimate ${p}_{1}-{p}_{2}$ as specified.
80% confidence, to within 0.02 (two percentage points)
90% confidence, to within 0.05 (two percentage points)
95% confidence, to within 0.10 (ten percentage points)
An educational researcher wishes to estimate the difference in average scores of elementary school children on two versions of a 100-point standardized test, at 99% confidence and to within two points. Estimate the minimum equal sample sizes necessary if it is known that the standard deviation of scores on different versions of such tests is 4.9.
A university administrator wishes to estimate the difference in mean grade point averages among all men affiliated with fraternities and all unaffiliated men, with 95% confidence and to within 0.15. It is known from prior studies that the standard deviations of grade point averages in the two groups have common value 0.4. Estimate the minimum equal sample sizes necessary to meet these criteria.
An automotive tire manufacturer wishes to estimate the difference in mean wear of tires manufactured with an experimental material and ordinary production tire, with 90% confidence and to within 0.5 mm. To eliminate extraneous factors arising from different driving conditions the tires will be tested in pairs on the same vehicles. It is known from prior studies that the standard deviations of the differences of wear of tires constructed with the two kinds of materials is 1.75 mm. Estimate the minimum number of pairs in the sample necessary to meet these criteria.
To assess to the relative happiness of men and women in their marriages, a marriage counselor plans to administer a test measuring happiness in marriage to n randomly selected married couples, record the their test scores, find the differences, and then draw inferences on the possible difference. Let ${\mathit{\mu}}_{1}$ and ${\mathit{\mu}}_{2}$ be the true average levels of happiness in marriage for men and women respectively as measured by this test. Suppose it is desired to find a 90% confidence interval for estimating ${\mathit{\mu}}_{d}={\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ to within two test points. Suppose further that, from prior studies, it is known that the standard deviation of the differences in test scores is ${\mathit{\sigma}}_{d}\approx 10.$ What is the minimum number of married couples that must be included in this study?
A journalist plans to interview an equal number of members of two political parties to compare the proportions in each party who favor a proposal to allow citizens with a proper license to carry a concealed handgun in public parks. Let p_{1} and p_{2} be the true proportions of members of the two parties who are in favor of the proposal. Suppose it is desired to find a 95% confidence interval for estimating ${p}_{1}-{p}_{2}$ to within 0.05. Estimate the minimum equal number of members of each party that must be sampled to meet these criteria.
A member of the state board of education wants to compare the proportions of National Board Certified (NBC) teachers in private high schools and in public high schools in the state. His study plan calls for an equal number of private school teachers and public school teachers to be included in the study. Let p_{1} and p_{2} be these proportions. Suppose it is desired to find a 99% confidence interval that estimates ${p}_{1}-{p}_{2}$ to within 0.05.
${n}_{1}={n}_{2}\approx 80$
${n}_{1}={n}_{2}\approx 34$
${n}_{1}={n}_{2}\approx 769$