Home page for accesible maths 4.2 Parametric confidence intervals

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

4.2.3 Confidence intervals: two-sample tests

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 p-values for these tests, but the confidence interval method discussed above can also be used.

For unpaired data, the 100(1-α)% confidence interval is

((x¯-y¯)-tn+m-2(1-α/2)×sp1/m+1/n,
(x¯-y¯)+tn+m-2(1-α/2)×sp1/m+1/n)
TheoremExample 4.2.4 Loaves of bread

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

H0:μJill=μJack

vs.

H1:μJill<μJack

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

(x¯-y¯)-t16(0.95)×sp1/n+1/m =(498-501)-t16(0.95)×5.82×1/10+1/8
=-3-1.75×5.82×0.474
=-7.82

Similar calculations give the upper end point as

(x¯-y¯)+t16(0.95)×sp×1/n+1/m=1.82.

The 90% confidence interval for μX-μY is (-7.82,1.82)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 100(1-α)% confidence interval for the mean of the differences between the two groups is

(d¯-tn-1(1-α/2)×sd/n,d¯+tn-1(1-α/2)×sd/n)
TheoremExample 4.2.5 Drug comparison

Recall the asthma drug trial in Chapter 3. The effects of two drugs, code-named F and S, on Peak Expiratory Flow (PEF) are compared. Calculate an appropriate confidence interval to test, at the 5% level, the hypothesis

H0:μf=μs

vs.

H1:μfμs.

Because the test is two-tailed, we will use a 95% confidence interval. We calculate this using the above formula:

μd±tn-1(0.975)×sdn =45.38±2.18×40.593.61
=(20.84,69.93).

Since 0 lies outside the confidence interval, we would conclude that there is evidence to reject H0 at the 5% level.