We can also use the sampling distributions of and to create a confidence interval for , {mdframed}
As discussed in Part 1, the confidence interval can be used to test against . The null hypothesis is rejected at the significance level if does not lie in the confidence interval.
To test against the one-tailed alternatives,
. Calculate the confidence interval and reject at the level if lies below the lower bound of the confidence interval;
. Calculate the confidence interval and reject at the level if lies above the upper bound of the confidence interval.
Derive a 95% confidence interval for the regression coefficient representing this relationship between weight and gestational age at birth.
We have all the information to do this from the previous example,
, and .
Then the 95% confidence interval for is
Since zero lies outside this interval, there is evidence at the 5% level to reject , i.e. there is evidence of a relationship between gestational age and weight at birth.
Since zero lies below the confidence interval, we might want to test
vs.
To test at the 5% level, use to calculate a 90% confidence interval and see if zero lies to the left of this confidence interval.
As above,
Since , we conclude that there is evidence for a positive relationship between gestational age and weight at birth.