Statistics / Unit 4: Two-Variable Data
4.3 The Least-Squares Regression Line
Notes
The least-squares regression line $\hat{y} = a + bx$ is the line that makes the sum of squared vertical distances to the points as small as possible.
- Slope: $\displaystyle b = r\,\frac{s_y}{s_x}$. Intercept: $a = \bar{y} - b\bar{x}$. The line always passes through $(\bar{x}, \bar{y})$.
- Slope interpretation: for each 1-unit increase in $x$, the predicted $y$ changes by $b$ units.
- Intercept interpretation: the predicted $y$ when $x = 0$ (it may not make sense in context).
- Example: $r = 0.8$, $s_x = 5$, $s_y = 10$, $\bar{x} = 20$, $\bar{y} = 50$ give $\displaystyle b = 0.8 \cdot \frac{10}{5} = 1.6$ and $a = 50 - 1.6(20) = 18$.
Practice
Data have $r = 0.6$, $s_x = 2$ and $s_y = 10$. What is the slope of the regression line?
$\displaystyle b = r\,\frac{s_y}{s_x} = 0.6 \cdot \frac{10}{2} = 3$.
The line $\hat{y} = 25 + 4x$ predicts exam score from hours studied. The correct interpretation of the slope is:
The slope is the change in predicted $y$ for each 1-unit increase in $x$.
The slope is $3$, with $\bar{x} = 10$ and $\bar{y} = 45$. What is the intercept?
$a = \bar{y} - b\bar{x} = 45 - 3(10) = 15$.
Ready for more? Take the Unit 4 test.