Recall from Chapter 3 that we can also use hypothesis testing to compare the means of two separate populations; for example the mean reaction times of individuals before and after a full night of sleep. We saw how to find critical regions and calculate -values for these tests, but the confidence interval method discussed above can also be used.
For unpaired data, the confidence interval is
Recall the baker who wanted to test whether Jack and Jill were baking loaves of a consistent weight.
Calculate a 90% confidence intervals for the difference in mean loaf weights between the two bakers. Use your confidence interval to test the hypothesis
vs.
State the significance level of the test.
Using the equation above, and the sample means and variances calculated in Chapter 3, the lower end-point of the confidence interval is
Similar calculations give the upper end point as
The 90% confidence interval for is grams. Since zero lies inside the confidence interval, there is no evidence to reject the null hypothesis at the 5% level. We conclude that there is no evidence that the mean weight of loaves baked by Jill is less than the mean weight of loaves baked by Jack.
For paired data, the confidence interval for the mean of the differences between the two groups is
Recall the asthma drug trial in Chapter 3. The effects of two drugs, code-named and , on Peak Expiratory Flow (PEF) are compared. Calculate an appropriate confidence interval to test, at the 5% level, the hypothesis
vs.
Because the test is two-tailed, we will use a 95% confidence interval. We calculate this using the above formula:
Since 0 lies outside the confidence interval, we would conclude that there is evidence to reject at the 5% level.