Test whether a regression slope differs from zero
State the slope test's null and statistic. The idea in plain words, a worked example, and a check with the answers shown — part of the free Statistics guides.
The standard question about a fitted line is whether the population slope could be zero — that is, whether the response changes with the predictor at all.
The hypotheses are against the alternative of interest (usually two-sided). The statistic is the estimate divided by its standard error:
and under the null it follows a t distribution with degrees of freedom — two because the line spent one on the intercept and one on the slope.
For a single predictor this test and the F test of the whole regression are the same test: is. That is why the two p-values always agree.
The statistic compares an estimate with its standard error, and the standard error is built from, which has degrees of freedom.
Those two degrees of freedom are the line's: one for the intercept, one for the slope. Using instead would overstate the degrees of freedom, which makes the p-value too small — a mistake in the direction of finding relationships that are not there.
With more predictors the count becomes, the same accounting as everywhere else in the chapter.
A fit gives with on degrees of freedom.
. Comparing with a printed critical value of about at the percent level for degrees of freedom, the null is rejected: there is evidence the response changes with the predictor.
The corresponding F would be on and degrees of freedom — the same evidence in the other form.
- State the slope test's null and statistic
- Assign its degrees of freedom
- Relate it to the F test
- Read a decision correctly
- 1. State the null and the statistic for a slope test.
- 2. How many degrees of freedom does a simple regression's slope test have?
- 3. How does the F test of the same regression relate to it?
Answers
- 1.;.
- 2..
- 3., with the same p-value.