Correlation and the Least-Squares Line
AP Statistics · Unit 5 — Regression Analysis
What r does and does not say
$r$ measures the strength and direction of a linear association, on $-1\le r\le 1$. It has no units and does not change if you swap $x$ and $y$ or change units.
What $r$ cannot do: detect a curved relationship (a perfect parabola can have $r=0$), resist outliers, or establish causation.
The regression line
$$\hat y=a+bx,\qquad b=r\frac{s_y}{s_x},\qquad a=\bar y-b\bar x$$The line always passes through $\left(\bar x,\bar y\right)$. And $r^2$ is the proportion of variation in $y$ explained by the linear model.
Interpretation templates that earn the points:
- slope: "for each additional [unit of $x$], the predicted [$y$] increases by $b$ [units]"
- $r^2$: "$r^2\%$ of the variation in [$y$] is explained by the linear relationship with [$x$]"
Worked example: reading regression output
A regression table predicts weight (kg) from height (cm): intercept $-52.3$; coefficient of height $0.72$; $s=4.1$; $R\text{-Sq}=64\%$. Interpret the slope and $r^2$, then compute $r$.
Solution
Slope: for each additional $1$ cm of height, the predicted weight increases by $0.72$ kg.
$r^2$: $64\%$ of the variation in weight is explained by the linear relationship with height.
$r$: $r=\pm\sqrt{0.64}=\pm0.8$. The slope is positive, so $r=+0.8$.
Choosing the sign is the step people forget — $r^2$ is always positive, so by itself it cannot tell the direction.