Testing and Estimating the Slope
AP Statistics · Appendix — not on the exam from May 2027
Key takeaway
This lesson belongs to the old Unit 9 (inference for the slope) — no longer on the exam from May 2027. It is kept for reviewing past papers or for college study.The test that matters
$$H_0:\beta=0\qquad H_a:\beta\ne0$$$$t=\frac{b-0}{SE_b},\qquad df=n-2$$$H_0:\beta=0$ says the true line is flat — knowing $x$ gives no linear help in predicting $y$. Rejecting it is evidence of a real linear relationship in the population.
Computer output normally gives this $t$ and its two-sided P-value directly, in the slope row. If the alternative is one-sided, halve the printed P-value.
Interval and test agree
A $95\%$ interval for $\beta$ that excludes $0$ corresponds exactly to rejecting $H_0$ at $\alpha=0{,}05$ two-sided.
Worked example: test for the slope
The output gives slope $b=-0.42$, $SE_b=0.18$, $n=20$. Test at $\alpha=0.05$.
Solution
$H_0:\beta=0$; $H_a:\beta\neq0$, where $\beta$ is the true population slope.
$$t=\frac{-0.42}{0.18}\approx-2.33,\qquad df=20-2=18$$With $df=18$, the two-sided $P$ is $\approx0.032$.
Conclusion: $0.032<0.05$ ⇒ reject $H_0$. There is convincing evidence of a linear relationship (negative) between the two variables in the population.