Where the Slope's Standard Error Comes From
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 slope is a statistic with a sampling distribution
Every new sample from the same population gives a slightly different least-squares slope $b$. Across all possible samples, $b$ has a sampling distribution centred at the true slope $\beta$ (unbiased), approximately normal when the LINER conditions hold, with standard deviation estimated by
$$SE_b=\frac{s}{s_x\sqrt{n-1}},\qquad s=\sqrt{\frac{\sum(y-\hat y)^2}{n-2}}$$Here $s$ is the standard deviation of the residuals (the typical prediction error, labelled "S" in output) and $s_x$ is the ordinary standard deviation of the $x$-values.
Three levers on $SE_b$
- Smaller $s$ — points hugging the line give a more precise slope.
- Larger $s_x$ — spreading the $x$-values out makes the line harder to tilt; this is the one you can control when designing a study.
- Larger $n$ — more points, through $\sqrt{n-1}$.
Example: $s=2{,}5$, $s_x=4$, $n=26$ give $SE_b=\dfrac{2{,}5}{4\sqrt{25}}=0{,}125$. Doubling the spread of $x$ halves it; quadrupling $n$ also halves it.
Three different "s" in one output
Output tables list $s$ (residual SD), the standard error of the slope $SE_b$ (in the coefficient row, "SE Coef"), and sometimes the SE of the intercept. Questions that ask to "interpret $s$" want: "the actual $y$-values typically differ from the predicted values by about $s$ units". Questions about the precision of the slope want $SE_b$. Confusing them is the single most common slope-inference error.
Worked example: compute $SE_b$ from the output and build the t statistic
A regression of final exam score on hours of self-study for $n=20$ students gives $\hat y=41.2+1.4x$, $S=3.2$. The standard deviation of self-study hours is $s_x=6.0$. (a) Compute the standard error of the slope. (b) Compute the $t$ statistic to test $H_0:\beta=0$ and state $df$. (c) Interpret $S=3.2$.
Solution
(a) $SE_b=\dfrac{s}{s_x\sqrt{n-1}}=\dfrac{3.2}{6.0\sqrt{19}}=\dfrac{3.2}{26.15}\approx0.122$ points per hour. This is the number the output table will print in the "SE Coef" column of the slope row.
(b) $t=\dfrac{b-0}{SE_b}=\dfrac{1.4}{0.122}\approx11.5$ with $df=n-2=18$. A $t$ this large gives a $P$-value close to $0$: very strong evidence of a linear relationship between study hours and score, assuming the LINER conditions have been checked with the residual plot.
(c) A student's actual final exam score typically differs from the score predicted from study hours by about $3.2$ points.
Compare: three different numbers — $3.2$ is $s$, $6.0$ is $s_x$, $0.122$ is $SE_b$ — each with its own role; they are not interchangeable.