Theorem · Regression
Standard error and hypothesis test for the slope
Theorem from the chapter Linear regression and correlation of Statistics and probability, with the exercises in which it is used.
Standard error and hypothesis test for the slope
In the fixed-predictor model with independent errors , , and , the error variance is estimated by the residual variance
and its square root is called the residual standard deviation. The divisor is , and not , because the residuals satisfy the two normal equations and ; for example, with five observations, once three residuals are known the other two follow from the two equations. Therefore residuals remain free, called degrees of freedom, like the deviations from the mean in Chapter 8. For the five observations, and .
The estimated standard error of the slope, that is, the estimate of the standard deviation of , which changes from one sample to another, is
For the five observations, . For the same , predictor values that are more spread out give a larger and therefore a more precise slope.
In this theorem , , and denote the quantities calculated from a sample yet to be observed, and are therefore random variables. Under the null hypothesis , the statistic
has distribution , Student’s t with degrees of freedom. The significance level is written here as (read gamma), because the letter , used for the level in Chapters 10 and 11, is already the intercept of the model. Write for the quantile of order of Student’s t distribution with degrees of freedom. With the two-sided alternative , reject if
The most common case is . The hypothesis says that the mean response is the same for every ; if it is rejected, the data indicate that the mean response changes linearly with . For the five observations, and, at level , ; since , is rejected.
A confidence interval with confidence level for is
For the five observations, at , gives about . The half-width is proportional to , so, at the same confidence level, halving the standard error halves the interval.
Read it in the chapter Linear regression and correlation →
Exercises where this theorem is used
Worked examples
Practice exercises
All the definitions and theorems of Statistics and probability → · All the theorems on the site →