Using the example of the population mean, we can now establish the link between confidence intervals and hypothesis testing.
Generally for a parameter , suppose that interest is in testing the null hypothesis against a one- or two-tailed alternative at the % level. Instead of calculating a test statistic and looking at a critical region or -value, we could instead calculate the % confidence interval. The null hypothesis can be rejected at the % level if
and lies below the % confidence interval.
and lies above the % confidence interval.
and lies outside the % confidence interval.
The additional benefits of this approach are
The confidence interval on its own is an informative measure of uncertainty in the estimate of .
Different alternative hypotheses can be tested from a single confidence interval, without needing to recalculate test statistics.
For the sample of Arctic sea ice data, we wanted to test, at the 5% level,
vs.
Carry out this test by calculating an appropriate confidence interval.
Since the alternative hypothesis is one-tailed, and we want to test at the 5% level, we need to calculate a 90% confidence interval.
Assume that is unknown, we use the formula in equation (4.1). Since , we have
As 6.5 lies within this confidence interval, there is no evidence to reject and we conclude, as before, that there is no evidence that the mean of the minimum Arctic sea ice extent is less than 6.5 million .
In example 3.2.3, we tested the null hypothesis that the mean November rainfall in Durham is 70mm, against the two-tailed alternative.
Using the same data as in this example, calculate an appropriate confidence interval and use this to carry out the above test at the 5% level.
Because we want to test at the 5% level, and the alternative hypothesis is two-tailed, we will construct a 95% confidence interval. From example 3.2.3, and . The degrees of freedom are .
Since , the 95% confidence interval is given by
Since 70mm lies outside of the confidence interval, we conclude that there is enough evidence to reject , i.e. there is evidence that the mean rainfall differs from 70mm. The confidence interval provides the additional information that the mean rainfall is less than 70mm.