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$

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.

Common mistake

$S$ in the output is the standard deviation of the residuals, not the standard error of the slope; the two differ by a factor of dozens. The $df$ of any inference about a slope is $n-2$, not $n-1$. And "increasing $n$ decreases $SE_b$" is true, but exam questions like to ask it another way: spreading out the $x$ values also decreases $SE_b$ without needing more points.

Key takeaway

$b$ has a sampling distribution centered at $\beta$, with $SE_b=s/(s_x\sqrt{n-1})$. $SE_b$ shrinks when $s$ is small, $s_x$ is large, and $n$ is large. Three different s's: $s$ of the residuals, $s_x$ of $x$, $SE_b$ of the slope. $df=n-2$.

← Testing and Estimating the Slope · All AP Statistics lessons · Practice AP Statistics questions (free, instant scoring) · Confidence Interval for the Slope, Step by Step →