The previous two chapters treated the questions of estimating and making inferences about a parameter of a single population. In this chapter we consider a comparison of parameters that belong to two different populations. For example, we might wish to compare the average income of all adults in one region of the country with the average income of those in another region, or we might wish to compare the proportion of all men who are vegetarians with the proportion of all women who are vegetarians.
We will study construction of confidence intervals and tests of hypotheses in four situations, depending on the parameter of interest, the sizes of the samples drawn from each of the populations, and the method of sampling. We also examine sample size considerations.
Suppose we wish to compare the means of two distinct populations. Figure 9.1 "Independent Sampling from Two Populations" illustrates the conceptual framework of our investigation in this and the next section. Each population has a mean and a standard deviation. We arbitrarily label one population as Population 1 and the other as Population 2, and subscript the parameters with the numbers 1 and 2 to tell them apart. We draw a random sample from Population 1 and label the sample statistics it yields with the subscript 1. Without reference to the first sample we draw a sample from Population 2 and label its sample statistics with the subscript 2.
Figure 9.1 Independent Sampling from Two Populations
Samples from two distinct populations are independent if each one is drawn without reference to the other, and has no connection with the other.
Our goal is to use the information in the samples to estimate the difference ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ in the means of the two populations and to make statistically valid inferences about it.
Since the mean ${\stackrel{-}{x}}_{1}$ of the sample drawn from Population 1 is a good estimator of ${\mathit{\mu}}_{1}$ and the mean ${\stackrel{-}{x}}_{2}$ of the sample drawn from Population 2 is a good estimator of ${\mathit{\mu}}_{2}$, a reasonable point estimate of the difference ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ is ${\stackrel{-}{x}}_{1}-{\stackrel{-}{x}}_{2}.$ In order to widen this point estimate into a confidence interval, we first suppose that both samples are large, that is, that both ${n}_{1}\ge 30$ and ${n}_{2}\ge 30.$ If so, then the following formula for a confidence interval for ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ is valid. The symbols ${s}_{1}^{2}$ and ${s}_{2}^{2}$ denote the squares of s_{1} and s_{2}. (In the relatively rare case that both population standard deviations ${\mathit{\sigma}}_{1}$ and ${\mathit{\sigma}}_{2}$ are known they would be used instead of the sample standard deviations.)
The samples must be independent, and each sample must be large: ${n}_{1}\ge 30$ and ${n}_{2}\ge 30.$
To compare customer satisfaction levels of two competing cable television companies, 174 customers of Company 1 and 355 customers of Company 2 were randomly selected and were asked to rate their cable companies on a five-point scale, with 1 being least satisfied and 5 most satisfied. The survey results are summarized in the following table:
Company 1 | Company 2 |
---|---|
${n}_{1}=174$ | ${n}_{2}=355$ |
${\stackrel{-}{x}}_{1}=3.51$ | ${\stackrel{-}{x}}_{2}=3.24$ |
${s}_{1}=0.51$ | ${s}_{2}=0.52$ |
Construct a point estimate and a 99% confidence interval for ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$, the difference in average satisfaction levels of customers of the two companies as measured on this five-point scale.
Solution:
The point estimate of ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ is
$${\stackrel{-}{x}}_{1}-{\stackrel{-}{x}}_{2}=3.51-3.24=0.27.$$In words, we estimate that the average customer satisfaction level for Company 1 is 0.27 points higher on this five-point scale than it is for Company 2.
To apply the formula for the confidence interval, proceed exactly as was done in Chapter 7 "Estimation". The 99% confidence level means that $\alpha =1-0.99=0.01$ so that ${z}_{\alpha \u22152}={z}_{0.005}.$ From Figure 12.3 "Critical Values of " we read directly that ${z}_{0.005}=2.576.$ Thus
$$\left({\stackrel{-}{x}}_{1}-{\stackrel{-}{x}}_{2}\right)\pm {z}_{\alpha \u22152}\sqrt{\frac{{s}_{1}^{2}}{{n}_{1}}+\frac{{s}_{2}^{2}}{{n}_{2}}}=0.27\pm 2.576\sqrt{\frac{0.5{1}^{2}}{174}+\frac{0.5{2}^{2}}{355}}=0.27\pm 0.12$$We are 99% confident that the difference in the population means lies in the interval $\left[0.\mathrm{15,0}.39\right]$, in the sense that in repeated sampling 99% of all intervals constructed from the sample data in this manner will contain ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}.$ In the context of the problem we say we are 99% confident that the average level of customer satisfaction for Company 1 is between 0.15 and 0.39 points higher, on this five-point scale, than that for Company 2.
Hypotheses concerning the relative sizes of the means of two populations are tested using the same critical value and p-value procedures that were used in the case of a single population. All that is needed is to know how to express the null and alternative hypotheses and to know the formula for the standardized test statistic and the distribution that it follows.
The null and alternative hypotheses will always be expressed in terms of the difference of the two population means. Thus the null hypothesis will always be written
$${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}={D}_{0}$$where D_{0} is a number that is deduced from the statement of the situation. As was the case with a single population the alternative hypothesis can take one of the three forms, with the same terminology:
Form of ${H}_{a}$ | Terminology |
---|---|
${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}<{D}_{0}$ | Left-tailed |
${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}>{D}_{0}$ | Right-tailed |
${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}\ne {D}_{0}$ | Two-tailed |
As long as the samples are independent and both are large the following formula for the standardized test statistic is valid, and it has the standard normal distribution. (In the relatively rare case that both population standard deviations ${\mathit{\sigma}}_{1}$ and ${\mathit{\sigma}}_{2}$ are known they would be used instead of the sample standard deviations.)
The test statistic has the standard normal distribution.
The samples must be independent, and each sample must be large: ${n}_{1}\ge 30$ and ${n}_{2}\ge 30.$
Refer to Note 9.4 "Example 1" concerning the mean satisfaction levels of customers of two competing cable television companies. Test at the 1% level of significance whether the data provide sufficient evidence to conclude that Company 1 has a higher mean satisfaction rating than does Company 2. Use the critical value approach.
Solution:
Step 1. If the mean satisfaction levels ${\mathit{\mu}}_{1}$ and ${\mathit{\mu}}_{2}$ are the same then ${\mathit{\mu}}_{1}={\mathit{\mu}}_{2}$, but we always express the null hypothesis in terms of the difference between ${\mathit{\mu}}_{1}$ and ${\mathit{\mu}}_{2}$, hence H_{0} is ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=0.$ To say that the mean customer satisfaction for Company 1 is higher than that for Company 2 means that ${\mathit{\mu}}_{1}>{\mathit{\mu}}_{2}$, which in terms of their difference is ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}>0.$ The test is therefore
$$\begin{array}{ccc}\hfill {H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}& =& 0\\ \hfill \text{\hspace{0.17em}vs.\hspace{0.17em}}\text{\hspace{0.17em}}{H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}& >& 0& @\text{\hspace{0.17em}}\alpha =0.01\end{array}$$Step 2. Since the samples are independent and both are large the test statistic is
$$Z=\frac{\left({\stackrel{-}{x}}_{1}-{\stackrel{-}{x}}_{2}\right)-{D}_{0}}{\sqrt{\frac{{s}_{1}^{2}}{{n}_{1}}+\frac{{s}_{2}^{2}}{{n}_{2}}}}$$Step 3. Inserting the data into the formula for the test statistic gives
$$Z=\frac{\left({\stackrel{-}{x}}_{1}-{\stackrel{-}{x}}_{2}\right)-{D}_{0}}{\sqrt{\frac{{s}_{1}^{2}}{{n}_{1}}+\frac{{s}_{2}^{2}}{{n}_{2}}}}=\frac{\left(3.51-3.24\right)\text{\u2212}0}{\sqrt{\frac{0.5{1}^{2}}{174}+\frac{0.5{2}^{2}}{355}}}=5.684$$Step 4. Since the symbol in H_{a} is “>” this is a right-tailed test, so there is a single critical value, ${z}_{\alpha}={z}_{0.01}$, which from the last line in Figure 12.3 "Critical Values of " we read off as 2.326. The rejection region is $\left[2.326,\infty \right).$
Figure 9.2 Rejection Region and Test Statistic for Note 9.6 "Example 2"
Step 5. As shown in Figure 9.2 "Rejection Region and Test Statistic for " the test statistic falls in the rejection region. The decision is to reject H_{0}. In the context of the problem our conclusion is:
The data provide sufficient evidence, at the 1% level of significance, to conclude that the mean customer satisfaction for Company 1 is higher than that for Company 2.
Perform the test of Note 9.6 "Example 2" using the p-value approach.
Solution:
The first three steps are identical to those in Note 9.6 "Example 2".
Figure 9.3 P-Value for Note 9.7 "Example 3"
Step 5. Since 0.0000 < 0.01, $p\text{\hspace{0.17em}-value}<\alpha $ so the decision is to reject the null hypothesis:
The data provide sufficient evidence, at the 1% level of significance, to conclude that the mean customer satisfaction for Company 1 is higher than that for Company 2.
Construct the confidence interval for ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ for the level of confidence and the data from independent samples given.
90% confidence,
${n}_{1}=45$, ${\stackrel{-}{x}}_{1}=27$, ${s}_{1}=2$
${n}_{2}=60$, ${\stackrel{-}{x}}_{2}=22$, ${s}_{2}=3$
99% confidence,
${n}_{1}=30$, ${\stackrel{-}{x}}_{1}=\text{\u2212}112$, ${s}_{1}=9$
${n}_{2}=40$, ${\stackrel{-}{x}}_{2}=\text{\u2212}98$, ${s}_{2}=4$
Construct the confidence interval for ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ for the level of confidence and the data from independent samples given.
95% confidence,
${n}_{1}=110$, ${\stackrel{-}{x}}_{1}=77$, ${s}_{1}=15$
${n}_{2}=85$, ${\stackrel{-}{x}}_{2}=79$, ${s}_{2}=21$
90% confidence,
${n}_{1}=65$, ${\stackrel{-}{x}}_{1}=\text{\u2212}83$, ${s}_{1}=12$
${n}_{2}=65$, ${\stackrel{-}{x}}_{2}=\text{\u2212}74$, ${s}_{2}=8$
Construct the confidence interval for ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ for the level of confidence and the data from independent samples given.
99.5% confidence,
${n}_{1}=130$, ${\stackrel{-}{x}}_{1}=27.2$, ${s}_{1}=2.5$
${n}_{2}=155$, ${\stackrel{-}{x}}_{2}=38.8$, ${s}_{2}=4.6$
95% confidence,
${n}_{1}=68$, ${\stackrel{-}{x}}_{1}=215.5$, ${s}_{1}=12.3$
${n}_{2}=84$, ${\stackrel{-}{x}}_{2}=287.8$, ${s}_{2}=14.1$
Construct the confidence interval for ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ for the level of confidence and the data from independent samples given.
99.9% confidence,
${n}_{1}=275$, ${\stackrel{-}{x}}_{1}=70.2$, ${s}_{1}=1.5$
${n}_{2}=325$, ${\stackrel{-}{x}}_{2}=63.4$, ${s}_{2}=1.1$
90% confidence,
${n}_{1}=120$, ${\stackrel{-}{x}}_{1}=35.5$, ${s}_{1}=0.75$
${n}_{2}=146$, ${\stackrel{-}{x}}_{2}=29.6$, ${s}_{2}=0.80$
Perform the test of hypotheses indicated, using the data from independent samples given. Use the critical value approach. Compute the p-value of the test as well.
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=3$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}\ne 3$ @ $\alpha =0.05$,
${n}_{1}=35$, ${\stackrel{-}{x}}_{1}=25$, ${s}_{1}=1$
${n}_{2}=45$, ${\stackrel{-}{x}}_{2}=19$, ${s}_{2}=2$
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=\text{\u2212}25$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}<\text{\u2212}25$ @ $\alpha =0.10$,
${n}_{1}=85$, ${\stackrel{-}{x}}_{1}=188$, ${s}_{1}=15$
${n}_{2}=62$, ${\stackrel{-}{x}}_{2}=215$, ${s}_{2}=19$
Perform the test of hypotheses indicated, using the data from independent samples given. Use the critical value approach. Compute the p-value of the test as well.
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=45$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}>45$ @ $\alpha =0.001$,
${n}_{1}=200$, ${\stackrel{-}{x}}_{1}=1312$, ${s}_{1}=35$
${n}_{2}=225$, ${\stackrel{-}{x}}_{2}=1256$, ${s}_{2}=28$
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=\text{\u2212}12$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}\ne \text{\u2212}12$ @ $\alpha =0.10$,
${n}_{1}=35$, ${\stackrel{-}{x}}_{1}=121$, ${s}_{1}=6$
${n}_{2}=40$, ${\stackrel{-}{x}}_{2}=135$, ${s}_{2}=7$
Perform the test of hypotheses indicated, using the data from independent samples given. Use the critical value approach. Compute the p-value of the test as well.
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=0$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}\ne 0$ @ $\alpha =0.01$,
${n}_{1}=125$, ${\stackrel{-}{x}}_{1}=\text{\u2212}46$, ${s}_{1}=10$
${n}_{2}=90$, ${\stackrel{-}{x}}_{2}=\text{\u2212}50$, ${s}_{2}=13$
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=20$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}>20$ @ $\alpha =0.05$,
${n}_{1}=40$, ${\stackrel{-}{x}}_{1}=142$, ${s}_{1}=11$
${n}_{2}=40$, ${\stackrel{-}{x}}_{2}=118$, ${s}_{2}=10$
Perform the test of hypotheses indicated, using the data from independent samples given. Use the critical value approach. Compute the p-value of the test as well.
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=13$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}<13$ @ $\alpha =0.01$,
${n}_{1}=35$, ${\stackrel{-}{x}}_{1}=100$, ${s}_{1}=2$
${n}_{2}=35$, ${\stackrel{-}{x}}_{2}=88$, ${s}_{2}=2$
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=\text{\u2212}10$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}\ne \text{\u2212}10$ @ $\alpha =0.10$,
${n}_{1}=146$, ${\stackrel{-}{x}}_{1}=62$, ${s}_{1}=4$
${n}_{2}=120$, ${\stackrel{-}{x}}_{2}=73$, ${s}_{2}=7$
Perform the test of hypotheses indicated, using the data from independent samples given. Use the p-value approach.
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=57$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}<57$ @ $\alpha =0.10$,
${n}_{1}=117$, ${\stackrel{-}{x}}_{1}=1309$, ${s}_{1}=42$
${n}_{2}=133$, ${\stackrel{-}{x}}_{2}=1258$, ${s}_{2}=37$
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=\text{\u2212}1.5$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}\ne \text{\u2212}1.5$ @ $\alpha =0.20$,
${n}_{1}=65$, ${\stackrel{-}{x}}_{1}=16.9$, ${s}_{1}=1.3$
${n}_{2}=57$, ${\stackrel{-}{x}}_{2}=18.6$, ${s}_{2}=1.1$
Perform the test of hypotheses indicated, using the data from independent samples given. Use the p-value approach.
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=\text{\u2212}10.5$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}>\text{\u2212}10.5$ @ $\alpha =0.01$,
${n}_{1}=64$, ${\stackrel{-}{x}}_{1}=85.6$, ${s}_{1}=2.4$
${n}_{2}=50$, ${\stackrel{-}{x}}_{2}=95.3$, ${s}_{2}=3.1$
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=110$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}\ne 110$ @ $\alpha =0.02$,
${n}_{1}=176$, ${\stackrel{-}{x}}_{1}=1918$, ${s}_{1}=68$
${n}_{2}=241$, ${\stackrel{-}{x}}_{2}=1782$, ${s}_{2}=146$
Perform the test of hypotheses indicated, using the data from independent samples given. Use the p-value approach.
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=50$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}>50$ @ $\alpha =0.005$,
${n}_{1}=72$, ${\stackrel{-}{x}}_{1}=272$, ${s}_{1}=26$
${n}_{2}=103$, ${\stackrel{-}{x}}_{2}=213$, ${s}_{2}=14$
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=7.5$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}\ne 7.5$ @ $\alpha =0.10$,
${n}_{1}=52$, ${\stackrel{-}{x}}_{1}=94.3$, ${s}_{1}=2.6$
${n}_{2}=38$, ${\stackrel{-}{x}}_{2}=88.6$, ${s}_{2}=8.0$
Perform the test of hypotheses indicated, using the data from independent samples given. Use the p-value approach.
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=23$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}<23$ @ $\alpha =0.20$,
${n}_{1}=314$, ${\stackrel{-}{x}}_{1}=198$, ${s}_{1}=12.2$
${n}_{2}=220$, ${\stackrel{-}{x}}_{2}=176$, ${s}_{2}=11.5$
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=4.4$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}\ne 4.4$ @ $\alpha =0.05$,
${n}_{1}=32$, ${\stackrel{-}{x}}_{1}=40.3$, ${s}_{1}=0.5$
${n}_{2}=30$, ${\stackrel{-}{x}}_{2}=35.5$, ${s}_{2}=0.7$
In order to investigate the relationship between mean job tenure in years among workers who have a bachelor’s degree or higher and those who do not, random samples of each type of worker were taken, with the following results.
n | $\stackrel{-}{x}$ | s | |
---|---|---|---|
Bachelor’s degree or higher | 155 | 5.2 | 1.3 |
No degree | 210 | 5.0 | 1.5 |
Records of 40 used passenger cars and 40 used pickup trucks (none used commercially) were randomly selected to investigate whether there was any difference in the mean time in years that they were kept by the original owner before being sold. For cars the mean was 5.3 years with standard deviation 2.2 years. For pickup trucks the mean was 7.1 years with standard deviation 3.0 years.
In previous years the average number of patients per hour at a hospital emergency room on weekends exceeded the average on weekdays by 6.3 visits per hour. A hospital administrator believes that the current weekend mean exceeds the weekday mean by fewer than 6.3 hours.
Construct the 99% confidence interval for the difference in the population means based on the following data, derived from a study in which 30 weekend and 30 weekday one-hour periods were randomly selected and the number of new patients in each recorded.
n | $\stackrel{-}{x}$ | s | |
---|---|---|---|
Weekends | 30 | 13.8 | 3.1 |
Weekdays | 30 | 8.6 | 2.7 |
A sociologist surveys 50 randomly selected citizens in each of two countries to compare the mean number of hours of volunteer work done by adults in each. Among the 50 inhabitants of Lilliput, the mean hours of volunteer work per year was 52, with standard deviation 11.8. Among the 50 inhabitants of Blefuscu, the mean number of hours of volunteer work per year was 37, with standard deviation 7.2.
A university administrator asserted that upperclassmen spend more time studying than underclassmen.
Test this claim against the default that the average number of hours of study per week by the two groups is the same, using the following information based on random samples from each group of students. Test at the 1% level of significance.
n | $\stackrel{-}{x}$ | s | |
---|---|---|---|
Upperclassmen | 35 | 15.6 | 2.9 |
Underclassmen | 35 | 12.3 | 4.1 |
An kinesiologist claims that the resting heart rate of men aged 18 to 25 who exercise regularly is more than five beats per minute less than that of men who do not exercise regularly. Men in each category were selected at random and their resting heart rates were measured, with the results shown.
n | $\stackrel{-}{x}$ | s | |
---|---|---|---|
Regular exercise | 40 | 63 | 1.0 |
No regular exercise | 30 | 71 | 1.2 |
Children in two elementary school classrooms were given two versions of the same test, but with the order of questions arranged from easier to more difficult in Version A and in reverse order in Version B. Randomly selected students from each class were given Version A and the rest Version B. The results are shown in the table.
n | $\stackrel{-}{x}$ | s | |
---|---|---|---|
Version A | 31 | 83 | 4.6 |
Version B | 32 | 78 | 4.3 |
The Municipal Transit Authority wants to know if, on weekdays, more passengers ride the northbound blue line train towards the city center that departs at 8:15 a.m. or the one that departs at 8:30 a.m. The following sample statistics are assembled by the Transit Authority.
n | $\stackrel{-}{x}$ | s | |
---|---|---|---|
8:15 a.m. train | 30 | 323 | 41 |
8:30 a.m. train | 45 | 356 | 45 |
In comparing the academic performance of college students who are affiliated with fraternities and those male students who are unaffiliated, a random sample of students was drawn from each of the two populations on a university campus. Summary statistics on the student GPAs are given below.
n | $\stackrel{-}{x}$ | s | |
---|---|---|---|
Fraternity | 645 | 2.90 | 0.47 |
Unaffiliated | 450 | 2.88 | 0.42 |
Test, at the 5% level of significance, whether the data provide sufficient evidence to conclude that there is a difference in average GPA between the population of fraternity students and the population of unaffiliated male students on this university campus.
In comparing the academic performance of college students who are affiliated with sororities and those female students who are unaffiliated, a random sample of students was drawn from each of the two populations on a university campus. Summary statistics on the student GPAs are given below.
n | $\stackrel{-}{x}$ | s | |
---|---|---|---|
Sorority | 330 | 3.18 | 0.37 |
Unaffiliated | 550 | 3.12 | 0.41 |
Test, at the 5% level of significance, whether the data provide sufficient evidence to conclude that there is a difference in average GPA between the population of sorority students and the population of unaffiliated female students on this university campus.
The owner of a professional football team believes that the league has become more offense oriented since five years ago. To check his belief, 32 randomly selected games from one year’s schedule were compared to 32 randomly selected games from the schedule five years later. Since more offense produces more points per game, the owner analyzed the following information on points per game (ppg).
n | $\stackrel{-}{x}$ | s | |
---|---|---|---|
ppg previously | 32 | 20.62 | 4.17 |
ppg recently | 32 | 22.05 | 4.01 |
Test, at the 10% level of significance, whether the data on points per game provide sufficient evidence to conclude that the game has become more offense oriented.
The owner of a professional football team believes that the league has become more offense oriented since five years ago. To check his belief, 32 randomly selected games from one year’s schedule were compared to 32 randomly selected games from the schedule five years later. Since more offense produces more offensive yards per game, the owner analyzed the following information on offensive yards per game (oypg).
n | $\stackrel{-}{x}$ | s | |
---|---|---|---|
oypg previously | 32 | 316 | 40 |
oypg recently | 32 | 336 | 35 |
Test, at the 10% level of significance, whether the data on offensive yards per game provide sufficient evidence to conclude that the game has become more offense oriented.
Large Data Sets 1A and 1B list the SAT scores for 1,000 randomly selected students. Denote the population of all male students as Population 1 and the population of all female students as Population 2.
http://www.gone.2012books.lardbucket.org/sites/all/files/data1A.xls
http://www.gone.2012books.lardbucket.org/sites/all/files/data1B.xls
Large Data Sets 1A and 1B list the GPAs for 1,000 randomly selected students. Denote the population of all male students as Population 1 and the population of all female students as Population 2.
http://www.gone.2012books.lardbucket.org/sites/all/files/data1A.xls
http://www.gone.2012books.lardbucket.org/sites/all/files/data1B.xls
Large Data Sets 7A and 7B list the survival times for 65 male and 75 female laboratory mice with thymic leukemia. Denote the population of all such male mice as Population 1 and the population of all such female mice as Population 2.
http://www.gone.2012books.lardbucket.org/sites/all/files/data7A.xls
http://www.gone.2012books.lardbucket.org/sites/all/files/data7B.xls
Z = 0.738, $\pm {z}_{0.025}=\pm 1.960$, do not reject H_{0} (no difference)
$Z=\text{\u2212}1.398$, $\text{\u2212}{z}_{0.10}=\text{\u2212}1.282$, reject H_{0} (more offense oriented)
When one or the other of the sample sizes is small, as is often the case in practice, the Central Limit Theorem does not apply. We must then impose conditions on the population to give statistical validity to the test procedure. We will assume that both populations from which the samples are taken have a normal probability distribution and that their standard deviations are equal.
When the two populations are normally distributed and have equal standard deviations, the following formula for a confidence interval for ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ is valid.
The number of degrees of freedom is $df={n}_{1}+{n}_{2}\text{\u2212}2.$
The samples must be independent, the populations must be normal, and the population standard deviations must be equal. “Small” samples means that either ${n}_{1}<30$ or ${n}_{2}<30.$
The quantity ${s}_{p}^{2}$ is called the pooled sample variance. It is a weighted average of the two estimates ${s}_{1}^{2}$ and ${s}_{2}^{2}$ of the common variance ${\mathit{\sigma}}_{1}^{2}={\mathit{\sigma}}_{2}^{2}$ of the two populations.
A software company markets a new computer game with two experimental packaging designs. Design 1 is sent to 11 stores; their average sales the first month is 52 units with sample standard deviation 12 units. Design 2 is sent to 6 stores; their average sales the first month is 46 units with sample standard deviation 10 units. Construct a point estimate and a 95% confidence interval for the difference in average monthly sales between the two package designs.
Solution:
The point estimate of ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ is
$${\stackrel{-}{x}}_{1}-{\stackrel{-}{x}}_{2}=52-46=6$$In words, we estimate that the average monthly sales for Design 1 is 6 units more per month than the average monthly sales for Design 2.
To apply the formula for the confidence interval, we must find ${t}_{\alpha \u22152}.$ The 95% confidence level means that α = 1 − 0.95 = 0.05 so that ${t}_{\alpha \u22152}={t}_{0.025}.$ From Figure 12.3 "Critical Values of ", in the row with the heading df = 11 + 6 − 2 = 15 we read that ${t}_{0.025}=2.131.$ From the formula for the pooled sample variance we compute
$${s}_{p}^{2}=\frac{\left({n}_{1}\text{\u2212}1\right){s}_{1}^{2}+\left({n}_{2}\text{\u2212}1\right){s}_{2}^{2}}{{n}_{1}+{n}_{2}\text{\u2212}2}=\frac{\left(10\right){\left(12\right)}^{2}+\left(5\right){\left(10\right)}^{2}}{15}=129.\stackrel{-}{3}$$Thus
$$({\stackrel{-}{x}}_{1}-{\stackrel{-}{x}}_{2})\pm {t}_{\alpha \u22152}\sqrt{{s}_{p}^{2}\left(\frac{1}{{n}_{1}}+\frac{1}{{n}_{2}}\right)}=6\pm (2.131)\sqrt{129.\stackrel{-}{3}\left(\frac{1}{11}+\frac{1}{6}\right)}\approx 6\pm 12.3$$We are 95% confident that the difference in the population means lies in the interval $\left[\text{\u2212}6.\mathrm{3,18}.3\right]$, in the sense that in repeated sampling 95% of all intervals constructed from the sample data in this manner will contain ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}.$ Because the interval contains both positive and negative values the statement in the context of the problem is that we are 95% confident that the average monthly sales for Design 1 is between 18.3 units higher and 6.3 units lower than the average monthly sales for Design 2.
Testing hypotheses concerning the difference of two population means using small samples is done precisely as it is done for large samples, using the following standardized test statistic. The same conditions on the populations that were required for constructing a confidence interval for the difference of the means must also be met when hypotheses are tested.
The test statistic has Student’s t-distribution with $df={n}_{1}+{n}_{2}\text{\u2212}2$ degrees of freedom.
The samples must be independent, the populations must be normal, and the population standard deviations must be equal. “Small” samples means that either ${n}_{1}<30$ or ${n}_{2}<30.$
Refer to Note 9.11 "Example 4" concerning the mean sales per month for the same computer game but sold with two package designs. Test at the 1% level of significance whether the data provide sufficient evidence to conclude that the mean sales per month of the two designs are different. Use the critical value approach.
Solution:
Step 1. The relevant test is
$$\begin{array}{ccc}\hfill {H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}& =& 0\\ \hfill \text{\hspace{0.17em}vs.\hspace{0.17em}}\text{\hspace{0.17em}}{H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}& \ne & 0& @\text{\hspace{0.17em}}\alpha =0.01\end{array}$$Step 2. Since the samples are independent and at least one is less than 30 the test statistic is
$$T=\frac{({\stackrel{-}{x}}_{1}-{\stackrel{-}{x}}_{2})-{D}_{0}}{\sqrt{{s}_{p}^{2}\left(\frac{1}{{n}_{1}}+\frac{1}{{n}_{2}}\right)}}$$which has Student’s t-distribution with $df=11+6-2=15$ degrees of freedom.
Step 3. Inserting the data and the value ${D}_{0}=0$ into the formula for the test statistic gives
$$T=\frac{({\stackrel{-}{x}}_{1}-{\stackrel{-}{x}}_{2})-{D}_{0}}{\sqrt{{s}_{p}^{2}\left(\frac{1}{{n}_{1}}+\frac{1}{{n}_{2}}\right)}}=\frac{(52-46)\text{\u2212}0}{\sqrt{129.\stackrel{-}{3}\left(\frac{1}{11}+\frac{1}{6}\right)}}=1.040$$Step 4. Since the symbol in H_{a} is “≠” this is a two-tailed test, so there are two critical values, $\pm {t}_{\alpha \u22152}=\pm {t}_{0.005}.$ From the row in Figure 12.3 "Critical Values of " with the heading $df=15$ we read off ${t}_{0.005}=2.947.$ The rejection region is $\left(\text{\u2212}\infty ,\text{\u2212}2.947\right]\cup \left[2.947,\infty \right).$
Figure 9.4 Rejection Region and Test Statistic for Note 9.13 "Example 5"
Step 5. As shown in Figure 9.4 "Rejection Region and Test Statistic for " the test statistic does not fall in the rejection region. The decision is not to reject H_{0}. In the context of the problem our conclusion is:
The data do not provide sufficient evidence, at the 1% level of significance, to conclude that the mean sales per month of the two designs are different.
Perform the test of Note 9.13 "Example 5" using the p-value approach.
Solution:
The first three steps are identical to those in Note 9.13 "Example 5".
Step 4. Because the test is two-tailed the observed significance or p-value of the test is the double of the area of the right tail of Student’s t-distribution, with 15 degrees of freedom, that is cut off by the test statistic T = 1.040. We can only approximate this number. Looking in the row of Figure 12.3 "Critical Values of " headed $df=15$, the number 1.040 is between the numbers 0.866 and 1.341, corresponding to t_{0.200} and t_{0.100}.
The area cut off by t = 0.866 is 0.200 and the area cut off by t = 1.341 is 0.100. Since 1.040 is between 0.866 and 1.341 the area it cuts off is between 0.200 and 0.100. Thus the p-value (since the area must be doubled) is between 0.400 and 0.200.
Step 5. Since $p>0.200>0.01$, $p>\alpha $, so the decision is not to reject the null hypothesis:
The data do not provide sufficient evidence, at the 1% level of significance, to conclude that the mean sales per month of the two designs are different.
In all exercises for this section assume that the populations are normal and have equal standard deviations.
Construct the confidence interval for ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ for the level of confidence and the data from independent samples given.
95% confidence,
${n}_{1}=10$, ${\stackrel{-}{x}}_{1}=120$, ${s}_{1}=2$
${n}_{2}=15$, ${\stackrel{-}{x}}_{2}=101$, ${s}_{2}=4$
99% confidence,
${n}_{1}=6$, ${\stackrel{-}{x}}_{1}=25$, ${s}_{1}=1$
${n}_{2}=12$, ${\stackrel{-}{x}}_{2}=17$, ${s}_{2}=3$
Construct the confidence interval for ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ for the level of confidence and the data from independent samples given.
90% confidence,
${n}_{1}=28$, ${\stackrel{-}{x}}_{1}=212$, ${s}_{1}=6$
${n}_{2}=23$, ${\stackrel{-}{x}}_{2}=198$, ${s}_{2}=5$
99% confidence,
${n}_{1}=14$, ${\stackrel{-}{x}}_{1}=68$, ${s}_{1}=8$
${n}_{2}=20$, ${\stackrel{-}{x}}_{2}=43$, ${s}_{2}=3$
Construct the confidence interval for ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ for the level of confidence and the data from independent samples given.
99.9% confidence,
${n}_{1}=35$, ${\stackrel{-}{x}}_{1}=6.5$, ${s}_{1}=0.2$
${n}_{2}=20$, ${\stackrel{-}{x}}_{2}=6.2$, ${s}_{2}=0.1$
99% confidence,
${n}_{1}=18$, ${\stackrel{-}{x}}_{1}=77.3$, ${s}_{1}=1.2$
${n}_{2}=32$, ${\stackrel{-}{x}}_{2}=75.0$, ${s}_{2}=1.6$
Construct the confidence interval for ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ for the level of confidence and the data from independent samples given.
99.5% confidence,
${n}_{1}=40$, ${\stackrel{-}{x}}_{1}=85.6$, ${s}_{1}=2.8$
${n}_{2}=20$, ${\stackrel{-}{x}}_{2}=73.1$, ${s}_{2}=2.1$
99.9% confidence,
${n}_{1}=25$, ${\stackrel{-}{x}}_{1}=215$, ${s}_{1}=7$
${n}_{2}=35$, ${\stackrel{-}{x}}_{2}=185$, ${s}_{2}=12$
Perform the test of hypotheses indicated, using the data from independent samples given. Use the critical value approach.
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=11$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}>11$ @ $\alpha =0.025$,
${n}_{1}=6$, ${\stackrel{-}{x}}_{1}=32$, ${s}_{1}=2$
${n}_{2}=11$, ${\stackrel{-}{x}}_{2}=19$, ${s}_{2}=1$
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=26$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}\ne 26$ @ $\alpha =0.05$,
${n}_{1}=17$, ${\stackrel{-}{x}}_{1}=166$, ${s}_{1}=4$
${n}_{2}=24$, ${\stackrel{-}{x}}_{2}=138$, ${s}_{2}=3$
Perform the test of hypotheses indicated, using the data from independent samples given. Use the critical value approach.
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=40$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}<40$ @ $\alpha =0.10$,
${n}_{1}=14$, ${\stackrel{-}{x}}_{1}=289$, ${s}_{1}=11$
${n}_{2}=12$, ${\stackrel{-}{x}}_{2}=254$, ${s}_{2}=9$
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=21$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}\ne 21$ @ $\alpha =0.05$,
${n}_{1}=23$, ${\stackrel{-}{x}}_{1}=130$, ${s}_{1}=6$
${n}_{2}=27$, ${\stackrel{-}{x}}_{2}=113$, ${s}_{2}=8$
Perform the test of hypotheses indicated, using the data from independent samples given. Use the critical value approach.
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=\text{\u2212}15$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}<\text{\u2212}15$ @ $\alpha =0.10$,
${n}_{1}=30$, ${\stackrel{-}{x}}_{1}=42$, ${s}_{1}=7$
${n}_{2}=12$, ${\stackrel{-}{x}}_{2}=60$, ${s}_{2}=5$
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=103$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}\ne 103$ @ $\alpha =0.10$,
${n}_{1}=17$, ${\stackrel{-}{x}}_{1}=711$, ${s}_{1}=28$
${n}_{2}=32$, ${\stackrel{-}{x}}_{2}=598$, ${s}_{2}=21$
Perform the test of hypotheses indicated, using the data from independent samples given. Use the critical value approach.
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=75$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}>75$ @ $\alpha =0.025$,
${n}_{1}=45$, ${\stackrel{-}{x}}_{1}=674$, ${s}_{1}=18$
${n}_{2}=29$, ${\stackrel{-}{x}}_{2}=591$, ${s}_{2}=13$
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=\text{\u2212}20$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}\ne \text{\u2212}20$ @ $\alpha =0.005$,
${n}_{1}=30$, ${\stackrel{-}{x}}_{1}=137$, ${s}_{1}=8$
${n}_{2}=19$, ${\stackrel{-}{x}}_{2}=166$, ${s}_{2}=11$
Perform the test of hypotheses indicated, using the data from independent samples given. Use the p-value approach. (The p-value can be only approximated.)
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=12$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}>12$ @ $\alpha =0.01$,
${n}_{1}=20$, ${\stackrel{-}{x}}_{1}=133$, ${s}_{1}=7$
${n}_{2}=10$, ${\stackrel{-}{x}}_{2}=115$, ${s}_{2}=5$
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=46$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}\ne 46$ @ $\alpha =0.10$,
${n}_{1}=24$, ${\stackrel{-}{x}}_{1}=586$, ${s}_{1}=11$
${n}_{2}=27$, ${\stackrel{-}{x}}_{2}=535$, ${s}_{2}=13$
Perform the test of hypotheses indicated, using the data from independent samples given. Use the p-value approach. (The p-value can be only approximated.)
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=38$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}<38$ @ $\alpha =0.01$,
${n}_{1}=12$, ${\stackrel{-}{x}}_{1}=464$, ${s}_{1}=5$
${n}_{2}=10$, ${\stackrel{-}{x}}_{2}=432$, ${s}_{2}=6$
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=4$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}\ne 4$ @ $\alpha =0.005$,
${n}_{1}=14$, ${\stackrel{-}{x}}_{1}=68$, ${s}_{1}=2$
${n}_{2}=17$, ${\stackrel{-}{x}}_{2}=67$, ${s}_{2}=3$
Perform the test of hypotheses indicated, using the data from independent samples given. Use the p-value approach. (The p-value can be only approximated.)
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=50$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}>50$ @ $\alpha =0.01$,
${n}_{1}=30$, ${\stackrel{-}{x}}_{1}=681$, ${s}_{1}=8$
${n}_{2}=27$, ${\stackrel{-}{x}}_{2}=625$, ${s}_{2}=8$
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=35$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}\ne 35$ @ $\alpha =0.10$,
${n}_{1}=36$, ${\stackrel{-}{x}}_{1}=325$, ${s}_{1}=11$
${n}_{2}=29$, ${\stackrel{-}{x}}_{2}=286$, ${s}_{2}=7$
Perform the test of hypotheses indicated, using the data from independent samples given. Use the p-value approach. (The p-value can be only approximated.)
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=\text{\u2212}4$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}<\text{\u2212}4$ @ $\alpha =0.05$,
${n}_{1}=40$, ${\stackrel{-}{x}}_{1}=80$, ${s}_{1}=5$
${n}_{2}=25$, ${\stackrel{-}{x}}_{2}=87$, ${s}_{2}=5$
Test ${H}_{0}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}=21$ vs. ${H}_{a}:{\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}\ne 21$ @ $\alpha =0.01$,
${n}_{1}=15$, ${\stackrel{-}{x}}_{1}=192$, ${s}_{1}=12$
${n}_{2}=34$, ${\stackrel{-}{x}}_{2}=180$, ${s}_{2}=8$
A county environmental agency suspects that the fish in a particular polluted lake have elevated mercury level. To confirm that suspicion, five striped bass in that lake were caught and their tissues were tested for mercury. For the purpose of comparison, four striped bass in an unpolluted lake were also caught and tested. The fish tissue mercury levels in mg/kg are given below.
$$\begin{array}{cc}\hfill \text{Sample}\text{\hspace{0.17em}}\text{1}\text{\hspace{0.17em}}\hfill & \hfill \text{Sample}\text{\hspace{0.17em}}\text{2}\hfill \\ \hfill \text{(from}\text{\hspace{0.17em}}\text{polluted}\text{\hspace{0.17em}}\text{lake)}\hfill & \hfill \text{(from}\text{\hspace{0.17em}}\text{unpolluted}\text{\hspace{0.17em}}\text{lake)}\hfill \\ \hfill 0.580\hfill & \hfill 0.382\hfill \\ \hfill 0.711\hfill & \hfill 0.276\hfill \\ \hfill 0.571\hfill & \hfill 0.570\hfill \\ \hfill 0.666\hfill & \hfill 0.366\hfill \\ \hfill 0.598\hfill & \hfill \hfill \end{array}$$A genetic engineering company claims that it has developed a genetically modified tomato plant that yields on average more tomatoes than other varieties. A farmer wants to test the claim on a small scale before committing to a full-scale planting. Ten genetically modified tomato plants are grown from seeds along with ten other tomato plants. At the season’s end, the resulting yields in pound are recorded as below.
$$\begin{array}{cc}\hfill \text{Sample}\text{\hspace{0.17em}}\text{1}\hfill & \hfill \text{Sample}\text{\hspace{0.17em}}\text{2}\hfill \\ \hfill \text{(genetically}\text{\hspace{0.17em}}\text{modified)}\hfill & \hfill \text{(regular)}\hfill \\ \hfill 20\hfill & \hfill 21\hfill \\ \hfill 23\hfill & \hfill 21\hfill \\ \hfill 27\hfill & \hfill 22\hfill \\ \hfill 25\hfill & \hfill 18\hfill \\ \hfill 25\hfill & \hfill 20\hfill \\ \hfill 25\hfill & \hfill 20\hfill \\ \hfill 27\hfill & \hfill 18\hfill \\ \hfill 23\hfill & \hfill 25\hfill \\ \hfill 24\hfill & \hfill 23\hfill \\ \hfill 22\hfill & \hfill 20\hfill \end{array}$$The coaching staff of a professional football team believes that the rushing offense has become increasingly potent in recent years. To investigate this belief, 20 randomly selected games from one year’s schedule were compared to 11 randomly selected games from the schedule five years later. The sample information on rushing yards per game (rypg) is summarized below.
n | $\stackrel{-}{x}$ | s | |
---|---|---|---|
rypg previously | 20 | 112 | 24 |
rypg recently | 11 | 114 | 21 |
The coaching staff of professional football team believes that the rushing offense has become increasingly potent in recent years. To investigate this belief, 20 randomly selected games from one year’s schedule were compared to 11 randomly selected games from the schedule five years later. The sample information on passing yards per game (pypg) is summarized below.
n | $\stackrel{-}{x}$ | s | |
---|---|---|---|
pypg previously | 20 | 203 | 38 |
pypg recently | 11 | 232 | 33 |
A university administrator wishes to know if there is a difference in average starting salary for graduates with master’s degrees in engineering and those with master’s degrees in business. Fifteen recent graduates with master’s degree in engineering and 11 with master’s degrees in business are surveyed and the results are summarized below.
n | $\stackrel{-}{x}$ | s | |
---|---|---|---|
Engineering | 15 | 68,535 | 1627 |
Business | 11 | 63,230 | 2033 |
A gardener sets up a flower stand in a busy business district and sells bouquets of assorted fresh flowers on weekdays. To find a more profitable pricing, she sells bouquets for 15 dollars each for ten days, then for 10 dollars each for five days. Her average daily profit for the two different prices are given below.
n | $\stackrel{-}{x}$ | s | |
---|---|---|---|
$15 | 10 | 171 | 26 |
$10 | 5 | 198 | 29 |
Suppose chemical engineers wish to compare the fuel economy obtained by two different formulations of gasoline. Since fuel economy varies widely from car to car, if the mean fuel economy of two independent samples of vehicles run on the two types of fuel were compared, even if one formulation were better than the other the large variability from vehicle to vehicle might make any difference arising from difference in fuel difficult to detect. Just imagine one random sample having many more large vehicles than the other. Instead of independent random samples, it would make more sense to select pairs of cars of the same make and model and driven under similar circumstances, and compare the fuel economy of the two cars in each pair. Thus the data would look something like Table 9.1 "Fuel Economy of Pairs of Vehicles", where the first car in each pair is operated on one formulation of the fuel (call it Type 1 gasoline) and the second car is operated on the second (call it Type 2 gasoline).
Table 9.1 Fuel Economy of Pairs of Vehicles
Make and Model | Car 1 | Car 2 |
---|---|---|
Buick LaCrosse | 17.0 | 17.0 |
Dodge Viper | 13.2 | 12.9 |
Honda CR-Z | 35.3 | 35.4 |
Hummer H 3 | 13.6 | 13.2 |
Lexus RX | 32.7 | 32.5 |
Mazda CX-9 | 18.4 | 18.1 |
Saab 9-3 | 22.5 | 22.5 |
Toyota Corolla | 26.8 | 26.7 |
Volvo XC 90 | 15.1 | 15.0 |
The first column of numbers form a sample from Population 1, the population of all cars operated on Type 1 gasoline; the second column of numbers form a sample from Population 2, the population of all cars operated on Type 2 gasoline. It would be incorrect to analyze the data using the formulas from the previous section, however, since the samples were not drawn independently. What is correct is to compute the difference in the numbers in each pair (subtracting in the same order each time) to obtain the third column of numbers as shown in Table 9.2 "Fuel Economy of Pairs of Vehicles" and treat the differences as the data. At this point, the new sample of differences ${d}_{1}=0.0,\dots ,{d}_{9}=0.1$ in the third column of Table 9.2 "Fuel Economy of Pairs of Vehicles" may be considered as a random sample of size n = 9 selected from a population with mean ${\mathit{\mu}}_{d}={\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}.$ This approach essentially transforms the paired two-sample problem into a one-sample problem as discussed in the previous two chapters.
Table 9.2 Fuel Economy of Pairs of Vehicles
Make and Model | Car 1 | Car 2 | Difference |
---|---|---|---|
Buick LaCrosse | 17.0 | 17.0 | 0.0 |
Dodge Viper | 13.2 | 12.9 | 0.3 |
Honda CR-Z | 35.3 | 35.4 | −0.1 |
Hummer H 3 | 13.6 | 13.2 | 0.4 |
Lexus RX | 32.7 | 32.5 | 0.2 |
Mazda CX-9 | 18.4 | 18.1 | 0.3 |
Saab 9-3 | 22.5 | 22.5 | 0.0 |
Toyota Corolla | 26.8 | 26.7 | 0.1 |
Volvo XC 90 | 15.1 | 15.0 | 0.1 |
Note carefully that although it does not matter what order the subtraction is done, it must be done in the same order for all pairs. This is why there are both positive and negative quantities in the third column of numbers in Table 9.2 "Fuel Economy of Pairs of Vehicles".
When the population of differences is normally distributed the following formula for a confidence interval for ${\mathit{\mu}}_{d}={\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}$ is valid.
where there are n pairs, $\stackrel{-}{d}$ is the mean and s_{d} is the standard deviation of their differences.
The number of degrees of freedom is $df=n\text{\u2212}1.$
The population of differences must be normally distributed.
Using the data in Table 9.1 "Fuel Economy of Pairs of Vehicles" construct a point estimate and a 95% confidence interval for the difference in average fuel economy between cars operated on Type 1 gasoline and cars operated on Type 2 gasoline.
Solution:
We have referred to the data in Table 9.1 "Fuel Economy of Pairs of Vehicles" because that is the way that the data are typically presented, but we emphasize that with paired sampling one immediately computes the differences, as given in Table 9.2 "Fuel Economy of Pairs of Vehicles", and uses the differences as the data.
The mean and standard deviation of the differences are
$$\begin{array}{ccc}\stackrel{-}{d}=\frac{\mathrm{\Sigma}d}{n}=\frac{1.3}{9}=0.1\stackrel{-}{4}& \text{and}& {s}_{d}=\sqrt{\frac{\mathrm{\Sigma}{d}^{2}-\frac{1}{n}{\left(\mathrm{\Sigma}d\right)}^{2}}{n\text{\u2212}1}}=\sqrt{\frac{0.41-\frac{1}{9}{\left(1.3\right)}^{2}}{8}}=0.1\stackrel{-}{6}\end{array}$$The point estimate of ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}={\mathit{\mu}}_{d}$ is
$$\stackrel{-}{d}=0.14$$In words, we estimate that the average fuel economy of cars using Type 1 gasoline is 0.14 mpg greater than the average fuel economy of cars using Type 2 gasoline.
To apply the formula for the confidence interval, we must find ${t}_{\alpha \u22152}.$ The 95% confidence level means that $\alpha =1-0.95=0.05$ so that ${t}_{\alpha \u22152}={t}_{0.025}.$ From Figure 12.3 "Critical Values of ", in the row with the heading $df=9-1=8$ we read that ${t}_{0.025}=2.306.$ Thus
$$\stackrel{-}{d}\pm {t}_{\alpha \u22152}\frac{{s}_{d}}{\sqrt{n}}=0.14\pm 2.306\left(\frac{0.1\stackrel{-}{6}}{\sqrt{9}}\right)\approx 0.14\pm 0.13$$We are 95% confident that the difference in the population means lies in the interval $\left[0.\mathrm{01,0}.27\right]$, in the sense that in repeated sampling 95% of all intervals constructed from the sample data in this manner will contain ${\mathit{\mu}}_{d}={\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}.$ Stated differently, we are 95% confident that mean fuel economy is between 0.01 and 0.27 mpg greater with Type 1 gasoline than with Type 2 gasoline.
Testing hypotheses concerning the difference of two population means using paired difference samples is done precisely as it is done for independent samples, although now the null and alternative hypotheses are expressed in terms of ${\mathit{\mu}}_{d}$ instead of ${\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}.$ Thus the null hypothesis will always be written
$${H}_{0}:{\mathit{\mu}}_{d}={D}_{0}$$The three forms of the alternative hypothesis, with the terminology for each case, are:
Form of ${H}_{a}$ | Terminology |
---|---|
${H}_{a}:{\mathit{\mu}}_{d}<{D}_{0}$ | Left-tailed |
${H}_{a}:{\mathit{\mu}}_{d}>{D}_{0}$ | Right-tailed |
${H}_{a}:{\mathit{\mu}}_{d}\ne {D}_{0}$ | Two-tailed |
The same conditions on the population of differences that was required for constructing a confidence interval for the difference of the means must also be met when hypotheses are tested. Here is the standardized test statistic that is used in the test.
where there are n pairs, $\stackrel{-}{d}$ is the mean and s_{d} is the standard deviation of their differences.
The test statistic has Student’s t-distribution with $df=n\text{\u2212}1$ degrees of freedom.
The population of differences must be normally distributed.
Using the data of Table 9.2 "Fuel Economy of Pairs of Vehicles" test the hypothesis that mean fuel economy for Type 1 gasoline is greater than that for Type 2 gasoline against the null hypothesis that the two formulations of gasoline yield the same mean fuel economy. Test at the 5% level of significance using the critical value approach.
Solution:
The only part of the table that we use is the third column, the differences.
Step 1. Since the differences were computed in the order $\text{\hspace{0.17em}Type\hspace{0.17em}1\hspace{0.17em}mpg}-\text{\hspace{0.17em}Type\hspace{0.17em}2\hspace{0.17em}mpg}$, better fuel economy with Type 1 fuel corresponds to ${\mathit{\mu}}_{d}={\mathit{\mu}}_{1}-{\mathit{\mu}}_{2}>0.$ Thus the test is
$$\begin{array}{ccc}\hfill {H}_{0}:{\mathit{\mu}}_{d}& =& 0\\ \hfill \text{\hspace{1em}vs.}\text{\hspace{0.17em}}{H}_{a}:{\mathit{\mu}}_{d}& >& 0& @\text{\hspace{0.17em}}\alpha =0.05\end{array}$$(If the differences had been computed in the opposite order then the alternative hypotheses would have been ${H}_{a}:{\mathit{\mu}}_{d}<0.$)
Step 2. Since the sampling is in pairs the test statistic is
$$T=\frac{\stackrel{-}{d}-{D}_{0}}{{s}_{d}\u2215\sqrt{n}}$$Step 3. We have already computed $\stackrel{-}{d}$ and s_{d} in the previous example. Inserting their values and ${D}_{0}=0$ into the formula for the test statistic gives
$$T=\frac{\stackrel{-}{d}-{D}_{0}}{{s}_{d}\u2215\sqrt{n}}=\frac{0.1\stackrel{-}{4}}{0.1\stackrel{-}{6}\u22153}=2.600$$Step 5. As shown in Figure 9.5 "Rejection Region and Test Statistic for " the test statistic falls in the rejection region. The decision is to reject H_{0}. In the context of the problem our conclusion is:
Figure 9.5 Rejection Region and Test Statistic for Note 9.20 "Example 8"
The data provide sufficient evidence, at the 5% level of significance, to conclude that the mean fuel economy provided by Type 1 gasoline is greater than that for Type 2 gasoline.
Perform the test of Note 9.20 "Example 8" using the p-value approach.
Solution:
The first three steps are identical to those in Note 9.20 "Example 8".
Step 4. Because the test is one-tailed the observed significance or p-value of the test is just the area of the right tail of Student’s t-distribution, with 8 degrees of freedom, that is cut off by the test statistic T = 2.600. We can only approximate this number. Looking in the row of Figure 12.3 "Critical Values of " headed $df=8$, the number 2.600 is between the numbers 2.306 and 2.896, corresponding to t_{0.025} and t_{0.010}.
The area cut off by t = 2.306 is 0.025 and the area cut off by t = 2.896 is 0.010. Since 2.600 is between 2.306 and 2.896 the area it cuts off is between 0.025 and 0.010. Thus the p-value is between 0.025 and 0.010. In particular it is less than 0.025. See Figure 9.6.
Figure 9.6 P-Value for Note 9.21 "Example 9"
Step 5. Since 0.025 < 0.05, $p<\alpha $ so the decision is to reject the null hypothesis:
The data provide sufficient evidence, at the 5% level of significance, to conclude that the mean fuel economy provided by Type 1 gasoline is greater than that for Type 2 gasoline.
The paired two-sample experiment is a very powerful study design. It bypasses many unwanted sources of “statistical noise” that might otherwise influence the outcome of the experiment, and focuses on the possible difference that might arise from the one factor of interest.
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}.$ For hypothesis testing when the number of pairs is at least 30, we may use the same statistic as for small samples for hypothesis testing, except now it follows a standard normal distribution, so we use the last line of Figure 12.3 "Critical Values of " to compute critical values, and p-values can be computed exactly with Figure 12.2 "Cumulative Normal Probability", not merely estimated using Figure 12.3 "Critical Values of ".
In all exercises for this section assume that the population of differences is normal.
Use the following paired sample data for this exercise.
$$\begin{array}{cccccccc}\text{Population}\text{\hspace{0.17em}}1\hfill & \hfill 35\hfill & \hfill 32\hfill & \hfill 35\hfill & \hfill 35\hfill & \hfill 36\hfill & \hfill 35\hfill & \hfill 36\hfill \\ \text{Population}\text{\hspace{0.17em}}2\hfill & \hfill 28\hfill & \hfill 26\hfill & \hfill 27\hfill & \hfill 26\hfill & \hfill 29\hfill & \hfill 27\hfill & \hfill 29\hfill \end{array}$$Use the following paired sample data for this exercise.
$$\begin{array}{ccccc}\text{Population}\text{\hspace{0.17em}}1\hfill & \hfill 103\hfill & \hfill 127\hfill & \hfill 96\hfill & \hfill 110\hfill \\ \text{Population}\text{\hspace{0.17em}}2\hfill & \hfill 81\hfill & \hfill 106\hfill & \hfill 73\hfill & \hfill 88\hfill \end{array}$$ $$\begin{array}{ccccc}\text{Population}\text{\hspace{0.17em}}1\hfill & \hfill 90\hfill & \hfill 118\hfill & \hfill 130\hfill & \hfill 106\hfill \\ \text{Population}\text{\hspace{0.17em}}2\hfill & \hfill 70\hfill & \hfill 95\hfill & \hfill 109\hfill & \hfill 83\hfill \end{array}$$Use the following paired sample data for this exercise.
$$\begin{array}{lllll}\text{Population}\text{\hspace{0.17em}}1\hfill & \hfill 40\hfill & \hfill 27\hfill & \hfill 55\hfill & \hfill 34\hfill \\ \text{Population}\text{\hspace{0.17em}}2\hfill & \hfill 53\hfill & \hfill 42\hfill & \hfill 68\hfill & \hfill 50\hfill \end{array}$$Use the following paired sample data for this exercise.
$$\begin{array}{llllll}\text{Population}\text{\hspace{0.17em}}1\hfill & \hfill 196\hfill & \hfill 165\hfill & \hfill 181\hfill & \hfill 201\hfill & \hfill 190\hfill \\ \text{Population}\text{\hspace{0.17em}}2\hfill & \hfill 212\hfill & \hfill 182\hfill & \hfill 199\hfill & \hfill 210\hfill & \hfill 205\hfill \end{array}$$Each of five laboratory mice was released into a maze twice. The five pairs of times to escape were:
Mouse | 1 | 2 | 3 | 4 | 5 |
---|---|---|---|---|---|
First release | 129 | 89 | 136 | 163 | 118 |
Second release | 113 | 97 | 139 | 85 | 75 |
Eight golfers were asked to submit their latest scores on their favorite golf courses. These golfers were each given a set of newly designed clubs. After playing with the new clubs for a few months, the golfers were again asked to submit their latest scores on the same golf courses. The results are summarized below.
Golfer | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
---|---|---|---|---|---|---|---|---|
Own clubs | 77 | 80 | 69 | 73 | 73 | 72 | 75 | 77 |
New clubs | 72 | 81 | 68 | 73 | 75 | 70 | 73 | 75 |
A neighborhood home owners association suspects that the recent appraisal values of the houses in the neighborhood conducted by the county government for taxation purposes is too high. It hired a private company to appraise the values of ten houses in the neighborhood. The results, in thousands of dollars, are
House | County Government | Private Company |
---|---|---|
1 | 217 | 219 |
2 | 350 | 338 |
3 | 296 | 291 |
4 | 237 | 237 |
5 | 237 | 235 |
6 | 272 | 269 |
7 | 257 | 239 |
8 | 277 | 275 |
9 | 312 | 320 |
10 | 335 | 335 |
In order to cut costs a wine producer is considering using duo or 1 + 1 corks in place of full natural wood corks, but is concerned that it could affect buyers’s perception of the quality of the wine. The wine producer shipped eight pairs of bottles of its best young wines to eight wine experts. Each pair includes one bottle with a natural wood cork and one with a duo cork. The experts are asked to rate the wines on a one to ten scale, higher numbers corresponding to higher quality. The results are:
Wine Expert | Duo Cork | Wood Cork |
---|---|---|
1 | 8.5 | 8.5 |
2 | 8.0 | 8.5 |
3 | 6.5 | 8.0 |
4 | 7.5 | 8.5 |
5 | 8.0 | 7.5 |
6 | 8.0 | 8.0 |
7 | 9.0 | 9.0 |
8 | 7.0 | 7.5 |
Engineers at a tire manufacturing corporation wish to test a new tire material for increased durability. To test the tires under realistic road conditions, new front tires are mounted on each of 11 company cars, one tire made with a production material and the other with the experimental material. After a fixed period the 11 pairs were measured for wear. The amount of wear for each tire (in mm) is shown in the table:
Car | Production | Experimental |
---|---|---|
1 | 5.1 | 5.0 |
2 | 6.5 | 6.5 |
3 | 3.6 | 3.1 |
4 | 3.5 | 3.7 |
5 | 5.7 | 4.5 |
6 | 5.0 | 4.1 |
7 | 6.4 | 5.3 |
8 | 4.7 | 2.6 |
9 | 3.2 | 3.0 |
10 | 3.5 | 3.5 |
11 | 6.4 | 5.1 |
A marriage counselor administered a test designed to measure overall contentment to 30 randomly selected married couples. The scores for each couple are given below. A higher number corresponds to greater contentment or happiness.
Couple | Husband | Wife |
---|---|---|
1 | 47 | 44 |
2 | 44 | 46 |
3 | 49 | 44 |
4 | 53 | 44 |
5 | 42 | 43 |
6 | 45 | 45 |
7 | 48 | 47 |
8 | 45 | 44 |
9 | 52 | 44 |
10 | 47 | 42 |
11 | 40 | 34 |
12 | 45 | 42 |
13 | 40 | 43 |
14 | 46 | 41 |
15 | 47 | 45 |
16 | 46 | 45 |
17 | 46 | 41 |
18 | 46 | 41 |
19 | 44 | 45 |
20 | 45 | 43 |
21 | 48 | 38 |
22 | 42 | 46 |
23 | 50 | 44 |
24 | 46 | 51 |
25 | 43 | 45 |
26 | 50 | 40 |
27 | 46 | 46 |
28 | 42 | 41 |
29 | 51 | 41 |
30 | 46 | 47 |
Large Data Set 5 lists the scores for 25 randomly selected students on practice SAT reading tests before and after taking a two-week SAT preparation course. Denote the population of all students who have taken the course as Population 1 and the population of all students who have not taken the course as Population 2.
http://www.gone.2012books.lardbucket.org/sites/all/files/data5.xls
Large Data Set 12 lists the scores on one round for 75 randomly selected members at a golf course, first using their own original clubs, then two months later after using new clubs with an experimental design. Denote the population of all golfers using their own original clubs as Population 1 and the population of all golfers using the new style clubs as Population 2.
http://www.gone.2012books.lardbucket.org/sites/all/files/data12.xls
Consider the previous problem again. Since the data set is so large, it is reasonable to use the standard normal distribution instead of Student’s t-distribution with 74 degrees of freedom.
Suppose we wish to compare the proportions of two populations that have a specific characteristic, such as the proportion of men who are left-handed compared to the proportion of women who are left-handed. Figure 9.7 "Independent Sampling from Two Populations In Order to Compare Proportions" illustrates the conceptual framework of our investigation. Each population is divided into two groups, the group of elements that have the characteristic of interest (for example, being left-handed) and the group of elements that do not. We arbitrarily label one population as Population 1 and the other as Population 2, and subscript the proportion of each population that possesses the characteristic with the number 1 or 2 to tell them apart. We draw a random sample from Population 1 and label the sample statistic it yields with the subscript 1. Without reference to the first sample we draw a sample from Population 2 and label its sample statistic with the subscript 2.
Figure 9.7 Independent Sampling from Two Populations In Order to Compare Proportions
Our goal is to use the information in the samples to estimate the difference ${p}_{1}-{p}_{2}$ in the two population proportions and to make statistically valid inferences about it.
Since the sample proportion ${\widehat{p}}_{1}$ computed using the sample drawn from Population 1 is a good estimator of population proportion p_{1} of Population 1 and the sample proportion ${\widehat{p}}_{2}$ computed using the sample drawn from Population 2 is a good estimator of population proportion p_{2} of Population 2, a reasonable point estimate of the difference ${p}_{1}-{p}_{2}$ is ${\widehat{p}}_{1}-{\widehat{p}}_{2}.$ In order to widen this point estimate into a confidence interval we suppose that both samples are large, as described in Section 7.3 "Large Sample Estimation of a Population Proportion" in Chapter 7 "Estimation" and repeated below. If so, then the following formula for a confidence interval for ${p}_{1}-{p}_{2}$ is valid.
The samples must be independent, and each sample must be large: each of the intervals
$$[{\widehat{p}}_{1}-3\text{\hspace{0.17em}}\sqrt{\frac{{\widehat{p}}_{1}(1-{\widehat{p}}_{1})}{{n}_{1}}},\text{\hspace{0.17em}}{\widehat{p}}_{1}+3\text{\hspace{0.17em}}\sqrt{\frac{{\widehat{p}}_{1}(1-{\widehat{p}}_{1})}{{n}_{1}}}\text{\hspace{0.17em}}]$$and
$$[{\widehat{p}}_{2}-3\text{\hspace{0.17em}}\sqrt{\frac{{\widehat{p}}_{2}(1-{\widehat{p}}_{2})}{{n}_{2}}},\text{\hspace{0.17em}}{\widehat{p}}_{2}+3\text{\hspace{0.17em}}\sqrt{\frac{{\widehat{p}}_{2}(1-{\widehat{p}}_{2})}{{n}_{2}}}\text{\hspace{0.17em}}]$$must lie wholly within the interval $\left[\mathrm{0,1}\text{\hspace{0.17em}}\right].$
The department of code enforcement of a county government issues permits to general contractors to work on residential projects. For each permit issued, the department inspects the result of the project and gives a “pass” or “fail” rating. A failed project must be re-inspected until it receives a pass rating. The department had been frustrated by the high cost of re-inspection and decided to publish the inspection records of all contractors on the web. It was hoped that public access to the records would lower the re-inspection rate. A year after the web access was made public, two samples of records were randomly selected. One sample was selected from the pool of records before the web publication and one after. The proportion of projects that passed on the first inspection was noted for each sample. The results are summarized below. Construct a point estimate and a 90% confidence interval for the difference in the passing rate on first inspection between the two time periods.
$$\begin{array}{lll}\text{No}\text{\hspace{0.17em}}\text{public}\text{\hspace{0.17em}}\text{web}\text{\hspace{0.17em}}\text{access}\hfill & {n}_{1}=500\hfill & {\widehat{p}}_{1}=0.67\hfill \\ \text{Public}\text{\hspace{0.17em}}\text{web}\text{\hspace{0.17em}}\text{access}\hfill & {n}_{2}=100\hfill & {\widehat{p}}_{2}=0.80\hfill \end{array}$$Solution:
The point estimate of ${p}_{1}-{p}_{2}$ is
$${\widehat{p}}_{1}-{\widehat{p}}_{2}=0.67-0.80=\text{\u2212}0.13$$Because the “No public web access” population was labeled as Population 1 and the “Public web access” population was labeled as Population 2, in words this means that we estimate that the proportion of projects that passed on the first inspection increased by 13 percentage points after records were posted on the web.
The sample sizes are sufficiently large for constructing a confidence interval since for sample 1:
$$3\text{\hspace{0.17em}}\sqrt{\frac{{\widehat{p}}_{1}\left(1-{\widehat{p}}_{1}\right)}{{n}_{1}}}=3\text{\hspace{0.17em}}\sqrt{\frac{\left(0.67\right)\left(0.33\right)}{500}}=0.06$$so that
$$\begin{array}{c}\left[{\widehat{p}}_{1}\text{\u2212}3\text{\hspace{0.17em}}\sqrt{\frac{{\widehat{p}}_{1}\left(1-{\widehat{p}}_{1}\right)}{{n}_{1}}},\text{\hspace{0.17em}}{\widehat{p}}_{1}+3\text{\hspace{0.17em}}\sqrt{\frac{{\widehat{p}}_{1}\left(1-{\widehat{p}}_{1}\right)}{{n}_{1}}}\right]\hfill \\ =\left[0.67-0.\mathrm{06,0}.67+0.06\text{\hspace{0.17em}}\right]=\left[0.\mathrm{61,0}.73\text{\hspace{0.17em}}\right]\subset \left[\mathrm{0,1}\text{\hspace{0.17em}}\right]\hfill \end{array}$$and for sample 2:
$$3\text{\hspace{0.17em}}\sqrt{\frac{{\widehat{p}}_{1}\left(1-{\widehat{p}}_{1}\right)}{{n}_{1}}}=3\text{\hspace{0.17em}}\sqrt{\frac{\left(0.8\right)\left(0.2\right)}{100}}=0.12$$so that
$$\begin{array}{c}\left[{\widehat{p}}_{2}\text{\u2212}3\text{\hspace{0.17em}}\sqrt{\frac{{\widehat{p}}_{2}\left(1-{\widehat{p}}_{2}\right)}{{n}_{2}}},\text{\hspace{0.17em}}{\widehat{p}}_{2}+3\text{\hspace{0.17em}}\sqrt{\frac{{\widehat{p}}_{2}\left(1-{\widehat{p}}_{2}\right)}{{n}_{2}}}\right]\hfill \\ =\left[0.8-0.\mathrm{12,0}.8+0.12\text{\hspace{0.17em}}\right]=\left[0.\mathrm{68,0}.92\text{\hspace{0.17em}}\right]\subset \left[\mathrm{0,1}\text{\hspace{0.17em}}\right]\hfill \end{array}$$To apply the formula for the confidence interval, we first observe that the 90% confidence level means that $\alpha =1-0.90=0.10$ so that ${z}_{\alpha \u22152}={z}_{0.05}.$ From Figure 12.3 "Critical Values of " we read directly that ${z}_{0.05}=1.645.$ Thus the desired confidence interval is
$$\begin{array}{ccc}\hfill \left({\widehat{p}}_{1}-{\widehat{p}}_{2}\right)& \pm & {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}}}\\ \hfill & =& \text{\u2212}0.13\pm 1.645\sqrt{\frac{\left(0.67\right)\left(0.33\right)}{500}+\frac{\left(0.8\right)\left(0.2\right)}{100}}\text{\hspace{0.17em}}\\ \hfill & =& \text{\u2212}0.13\pm 0.07\text{\hspace{0.17em}}\end{array}$$The 90% confidence interval is $\left[\text{\u2212}0.20,\text{\u2212}0.06\text{\hspace{0.17em}}\right].$ We are 90% confident that the difference in the population proportions lies in the interval $\left[\text{\u2212}0.20,\text{\u2212}0.06\text{\hspace{0.17em}}\right]$, in the sense that in repeated sampling 90% of all intervals constructed from the sample data in this manner will contain ${p}_{1}-{p}_{2}.$ Taking into account the labeling of the two populations, this means that we are 90% confident that the proportion of projects that pass on the first inspection is between 6 and 20 percentage points higher after public access to the records than before.
In hypothesis tests concerning the relative sizes of the proportions p_{1} and p_{2} of two populations that possess a particular characteristic, the null and alternative hypotheses will always be expressed in terms of the difference of the two population proportions. Hence the null hypothesis is always written
$${H}_{0}:{p}_{1}-{p}_{2}={D}_{0}$$The three forms of the alternative hypothesis, with the terminology for each case, are:
Form of ${H}_{a}$ | Terminology |
---|---|
${H}_{a}:{p}_{1}-{p}_{2}<{D}_{0}$ | Left-tailed |
${H}_{a}:{p}_{1}-{p}_{2}>{D}_{0}$ | Right-tailed |
${H}_{a}:{p}_{1}-{p}_{2}\ne {D}_{0}$ | Two-tailed |
As long as the samples are independent and both are large the following formula for the standardized test statistic is valid, and it has the standard normal distribution.
The test statistic has the standard normal distribution.
The samples must be independent, and each sample must be large: each of the intervals
$$[{\widehat{p}}_{1}-3\text{\hspace{0.17em}}\sqrt{\frac{{\widehat{p}}_{1}(1-{\widehat{p}}_{1})}{{n}_{1}}},\text{\hspace{0.17em}}{\widehat{p}}_{1}+3\text{\hspace{0.17em}}\sqrt{\frac{{\widehat{p}}_{1}(1-{\widehat{p}}_{1})}{{n}_{1}}}\text{\hspace{0.17em}}]$$and
$$[{\widehat{p}}_{2}-3\text{\hspace{0.17em}}\sqrt{\frac{{\widehat{p}}_{2}(1-{\widehat{p}}_{2})}{{n}_{2}}},\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}{\widehat{p}}_{2}+3\text{\hspace{0.17em}}\sqrt{\frac{{\widehat{p}}_{2}(1-{\widehat{p}}_{2})}{{n}_{2}}}\text{\hspace{0.17em}}]$$must lie wholly within the interval $\left[\mathrm{0,1}\text{\hspace{0.17em}}\right].$
Using the data of Note 9.25 "Example 10", test whether there is sufficient evidence to conclude that public web access to the inspection records has increased the proportion of projects that passed on the first inspection by more than 5 percentage points. Use the critical value approach at the 10% level of significance.
Solution:
Step 1. Taking into account the labeling of the populations an increase in passing rate at the first inspection by more than 5 percentage points after public access on the web may be expressed as ${p}_{2}>{p}_{1}+0.05$, which by algebra is the same as ${p}_{1}-{p}_{2}<\text{\u2212}0.05.$ This is the alternative hypothesis. Since the null hypothesis is always expressed as an equality, with the same number on the right as is in the alternative hypothesis, the test is
$$\begin{array}{ccc}\hfill {H}_{0}:{p}_{1}-{p}_{2}& =& \text{\u2212}0.05\\ \hfill \text{\hspace{0.17em}}\text{\hspace{1em}vs.}\text{\hspace{0.17em}}{H}_{a}:{p}_{1}-{p}_{2}& <& \text{\u2212}0.05& @\text{\hspace{0.17em}}\text{\hspace{0.17em}}\alpha =0.10\end{array}$$Step 2. Since the test is with respect to a difference in population proportions the test statistic is
$$Z=\frac{\left({\widehat{p}}_{1}-{\widehat{p}}_{2}\right)-{D}_{0}}{\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}}}}$$Step 3. Inserting the values given in Note 9.25 "Example 10" and the value ${D}_{0}=\text{\u2212}0.05$ into the formula for the test statistic gives
$$Z=\frac{\left({\widehat{p}}_{1}-{\widehat{p}}_{2}\right)-{D}_{0}}{\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}}}}=\frac{\left(\text{\u2212}0.13\right)-\left(\text{\u2212}0.05\right)}{\sqrt{\frac{\left(0.67\right)\left(0.33\right)}{500}+\frac{\left(0.8\right)\left(0.2\right)}{100}}}=\text{\u2212}1.770$$Step 5. As shown in Figure 9.8 "Rejection Region and Test Statistic for " the test statistic falls in the rejection region. The decision is to reject H_{0}. In the context of the problem our conclusion is:
The data provide sufficient evidence, at the 10% level of significance, to conclude that the rate of passing on the first inspection has increased by more than 5 percentage points since records were publicly posted on the web.
Figure 9.8 Rejection Region and Test Statistic for Note 9.27 "Example 11"
Perform the test of Note 9.27 "Example 11" using the p-value approach.
Solution:
The first three steps are identical to those in Note 9.27 "Example 11".
Finally a common misuse of the formulas given in this section must be mentioned. Suppose a large pre-election survey of potential voters is conducted. Each person surveyed is asked to express a preference between, say, Candidate A and Candidate B. (Perhaps “no preference” or “other” are also choices, but that is not important.) In such a survey, estimators ${\widehat{p}}_{A}$ and ${\widehat{p}}_{B}$ of p_{A} and p_{B} can be calculated. It is important to realize, however, that these two estimators were not calculated from two independent samples. While ${\widehat{p}}_{A}-{\widehat{p}}_{B}$ may be a reasonable estimator of ${p}_{A}-{p}_{B}$, the formulas for confidence intervals and for the standardized test statistic given in this section are not valid for data obtained in this manner.
Construct the confidence interval for ${p}_{1}-{p}_{2}$ for the level of confidence and the data given. (The samples are sufficiently large.)
90% confidence,
${n}_{1}=1670$, ${\widehat{p}}_{1}=0.42$
${n}_{2}=900$, ${\widehat{p}}_{2}=0.38$
95% confidence,
${n}_{1}=600$, ${\widehat{p}}_{1}=0.84$
${n}_{2}=420$, ${\widehat{p}}_{2}=0.67$
Construct the confidence interval for ${p}_{1}-{p}_{2}$ for the level of confidence and the data given. (The samples are sufficiently large.)
98% confidence,
${n}_{1}=750$, ${\widehat{p}}_{1}=0.64$
${n}_{2}=800$, ${\widehat{p}}_{2}=0.51$
99.5% confidence,
${n}_{1}=250$, ${\widehat{p}}_{1}=0.78$
${n}_{2}=250$, ${\widehat{p}}_{2}=0.51$
Construct the confidence interval for ${p}_{1}-{p}_{2}$ for the level of confidence and the data given. (The samples are sufficiently large.)
80% confidence,
${n}_{1}=300$, ${\widehat{p}}_{1}=0.255$
${n}_{2}=400$, ${\widehat{p}}_{2}=0.193$
95% confidence,
${n}_{1}=3500$, ${\widehat{p}}_{1}=0.147$
${n}_{2}=3750$, ${\widehat{p}}_{2}=0.131$
Construct the confidence interval for ${p}_{1}-{p}_{2}$ for the level of confidence and the data given. (The samples are sufficiently large.)
99% confidence,
${n}_{1}=2250$, ${\widehat{p}}_{1}=0.915$
${n}_{2}=2525$, ${\widehat{p}}_{2}=0.858$
95% confidence,
${n}_{1}=120$, ${\widehat{p}}_{1}=0.650$
${n}_{2}=200$, ${\widehat{p}}_{2}=0.505$
Perform the test of hypotheses indicated, using the data given. Use the critical value approach. Compute the p-value of the test as well. (The samples are sufficiently large.)
Test ${H}_{0}:{p}_{1}-{p}_{2}=0$ vs. ${H}_{a}:{p}_{1}-{p}_{2}>0$ @ $\alpha =0.10$,
${n}_{1}=1200$, ${\widehat{p}}_{1}=0.42$
${n}_{2}=1200$, ${\widehat{p}}_{2}=0.40$
Test ${H}_{0}:{p}_{1}-{p}_{2}=0$ vs. ${H}_{a}:{p}_{1}-{p}_{2}\ne 0$ @ $\alpha =0.05$,
${n}_{1}=550$, ${\widehat{p}}_{1}=0.61$
${n}_{2}=600$, ${\widehat{p}}_{2}=0.67$
Perform the test of hypotheses indicated, using the data given. Use the critical value approach. Compute the p-value of the test as well. (The samples are sufficiently large.)
Test ${H}_{0}:{p}_{1}-{p}_{2}=0.05$ vs. ${H}_{a}:{p}_{1}-{p}_{2}>0.05$ @ $\alpha =0.05$,
${n}_{1}=1100$, ${\widehat{p}}_{1}=0.57$
${n}_{2}=1100$, ${\widehat{p}}_{2}=0.48$
Test ${H}_{0}:{p}_{1}-{p}_{2}=0$ vs. ${H}_{a}:{p}_{1}-{p}_{2}\ne 0$ @ $\alpha =0.05$,
${n}_{1}=800$, ${\widehat{p}}_{1}=0.39$
${n}_{2}=900$, ${\widehat{p}}_{2}=0.43$
Perform the test of hypotheses indicated, using the data given. Use the critical value approach. Compute the p-value of the test as well. (The samples are sufficiently large.)
Test ${H}_{0}:{p}_{1}-{p}_{2}=0.25$ vs. ${H}_{a}:{p}_{1}-{p}_{2}<0.25$ @ $\alpha =0.005$,
${n}_{1}=1400$, ${\widehat{p}}_{1}=0.57$
${n}_{2}=1200$, ${\widehat{p}}_{2}=0.37$
Test ${H}_{0}:{p}_{1}-{p}_{2}=0.16$ vs. ${H}_{a}:{p}_{1}-{p}_{2}\ne 0.16$ @ $\alpha =0.02$,
${n}_{1}=750$, ${\widehat{p}}_{1}=0.43$
${n}_{2}=600$, ${\widehat{p}}_{2}=0.22$
Perform the test of hypotheses indicated, using the data given. Use the critical value approach. Compute the p-value of the test as well. (The samples are sufficiently large.)
Test ${H}_{0}:{p}_{1}-{p}_{2}=0.08$ vs. ${H}_{a}:{p}_{1}-{p}_{2}>0.08$ @ $\alpha =0.025$,
${n}_{1}=450$, ${\widehat{p}}_{1}=0.67$
${n}_{2}=200$, ${\widehat{p}}_{2}=0.52$
Test ${H}_{0}:{p}_{1}-{p}_{2}=0.02$ vs. ${H}_{a}:{p}_{1}-{p}_{2}\ne 0.02$ @ $\alpha =0.001$,
${n}_{1}=2700$, ${\widehat{p}}_{1}=0.837$
${n}_{2}=2900$, ${\widehat{p}}_{2}=0.854$
Perform the test of hypotheses indicated, using the data given. Use the p-value approach. (The samples are sufficiently large.)
Test ${H}_{0}:{p}_{1}-{p}_{2}=0$ vs. ${H}_{a}:{p}_{1}-{p}_{2}<0$ @ $\alpha =0.005$,
${n}_{1}=1100$, ${\widehat{p}}_{1}=0.22$
${n}_{2}=1300$, ${\widehat{p}}_{2}=0.27$
Test ${H}_{0}:{p}_{1}-{p}_{2}=0$ vs. ${H}_{a}:{p}_{1}-{p}_{2}\ne 0$ @ $\alpha =0.01$,
${n}_{1}=650$, ${\widehat{p}}_{1}=0.35$
${n}_{2}=650$, ${\widehat{p}}_{2}=0.41$
Perform the test of hypotheses indicated, using the data given. Use the p-value approach. (The samples are sufficiently large.)
Test ${H}_{0}:{p}_{1}-{p}_{2}=0.15$ vs. ${H}_{a}:{p}_{1}-{p}_{2}>0.15$ @ $\alpha =0.10$,
${n}_{1}=950$, ${\widehat{p}}_{1}=0.41$
${n}_{2}=500$, ${\widehat{p}}_{2}=0.23$
Test ${H}_{0}:{p}_{1}-{p}_{2}=0.10$ vs. ${H}_{a}:{p}_{1}-{p}_{2}\ne 0.10$ @ $\alpha =0.10$,
${n}_{1}=220$, ${\widehat{p}}_{1}=0.92$
${n}_{2}=160$, ${\widehat{p}}_{2}=0.78$
Perform the test of hypotheses indicated, using the data given. Use the p-value approach. (The samples are sufficiently large.)
Test ${H}_{0}:{p}_{1}-{p}_{2}=0.22$ vs. ${H}_{a}:{p}_{1}-{p}_{2}>0.22$ @ $\alpha =0.05$,
${n}_{1}=90$, ${\widehat{p}}_{1}=0.72$
${n}_{2}=75$, ${\widehat{p}}_{2}=0.40$
Test ${H}_{0}:{p}_{1}-{p}_{2}=0.37$ vs. ${H}_{a}:{p}_{1}-{p}_{2}\ne 0.37$ @ $\alpha =0.02$,
${n}_{1}=425$, ${\widehat{p}}_{1}=0.772$
${n}_{2}=425$, ${\widehat{p}}_{2}=0.331$
Perform the test of hypotheses indicated, using the data given. Use the p-value approach. (The samples are sufficiently large.)
Test ${H}_{0}:{p}_{1}-{p}_{2}=0.50$ vs. ${H}_{a}:{p}_{1}-{p}_{2}<0.50$ @ $\alpha =0.10$,
${n}_{1}=40$, ${\widehat{p}}_{1}=0.65$
${n}_{2}=55$, ${\widehat{p}}_{2}=0.24$
Test ${H}_{0}:{p}_{1}-{p}_{2}=0.30$ vs. ${H}_{a}:{p}_{1}-{p}_{2}\ne 0.30$ @ $\alpha =0.10$,
${n}_{1}=7500$, ${\widehat{p}}_{1}=0.664$
${n}_{2}=1000$, ${\widehat{p}}_{2}=0.319$
In all the remaining exercsises the samples are sufficiently large (so this need not be checked).
Voters in a particular city who identify themselves with one or the other of two political parties were randomly selected and asked if they favor a proposal to allow citizens with proper license to carry a concealed handgun in city parks. The results are:
Party A | Party B | |
---|---|---|
Sample size, n | 150 | 200 |
Number in favor, x | 90 | 140 |
To investigate a possible relation between gender and handedness, a random sample of 320 adults was taken, with the following results:
Men | Women | |
---|---|---|
Sample size, n | 168 | 152 |
Number of left-handed, x | 24 | 9 |
A local school board member randomly sampled private and public high school teachers in his district to compare the proportions of National Board Certified (NBC) teachers in the faculty. The results were:
Private Schools | Public Schools | |
---|---|---|
Sample size, n | 80 | 520 |
Proportion of NBC teachers, $\widehat{p}$ | 0.175 | 0.150 |
In professional basketball games, the fans of the home team always try to distract free throw shooters on the visiting team. To investigate whether this tactic is actually effective, the free throw statistics of a professional basketball player with a high free throw percentage were examined. During the entire last season, this player had 656 free throws, 420 in home games and 236 in away games. The results are summarized below.
Home | Away | |
---|---|---|
Sample size, n | 420 | 236 |
Free throw percent, $\widehat{p}$ | 81.5% | 78.8% |
Randomly selected middle-aged people in both China and the United States were asked if they believed that adults have an obligation to financially support their aged parents. The results are summarized below.
China | USA | |
---|---|---|
Sample size, n | 1300 | 150 |
Number of yes, x | 1170 | 110 |
Test, at the 1% level of significance, whether the data provide sufficient evidence to conclude that there exists a cultural difference in attitude regarding this question.
A manufacturer of walk-behind push mowers receives refurbished small engines from two new suppliers, A and B. It is not uncommon that some of the refurbished engines need to be lightly serviced before they can be fitted into mowers. The mower manufacturer recently received 100 engines from each supplier. In the shipment from A, 13 needed further service. In the shipment from B, 10 needed further service. Test, at the 10% level of significance, whether the data provide sufficient evidence to conclude that there exists a difference in the proportions of engines from the two suppliers needing service.
Large Data Sets 6A and 6B record results of a random survey of 200 voters in each of two regions, in which they were asked to express whether they prefer Candidate A for a U.S. Senate seat or prefer some other candidate. Let the population of all voters in region 1 be denoted Population 1 and the population of all voters in region 2 be denoted Population 2. Let p_{1} be the proportion of voters in Population 1 who prefer Candidate A, and p_{2} the proportion in Population 2 who do.
http://www.gone.2012books.lardbucket.org/sites/all/files/data6A.xls
http://www.gone.2012books.lardbucket.org/sites/all/files/data6B.xls
Large Data Set 11 records the results of samples of real estate sales in a certain region in the year 2008 (lines 2 through 536) and in the year 2010 (lines 537 through 1106). Foreclosure sales are identified with a 1 in the second column. Let all real estate sales in the region in 2008 be Population 1 and all real estate sales in the region in 2010 be Population 2.
http://www.gone.2012books.lardbucket.org/sites/all/files/data11.xls
Z = 4.498, $\pm {z}_{0.005}=\pm 2.576$, reject H_{0} (different)
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$