Correlation and least-squares regression
AP Statistics · Advanced Placement
Scatterplots and correlation
{{illustration:sr-scatter}}
- Describe direction, form, strength and unusual points. - r lies between −1 and 1 and measures linear association only.
The least-squares line
{{illustration:sr-procedure}}
| Quantity | Formula | Example | |---|---|---| | slope | b = r sy/sx | 0.77 · 0.894/1.58 ≈ 0.6 | | intercept | a = ȳ − b x̄ | 4 − 0.6(3) = 2.2 | | prediction | ŷ = a + b x | x = 4: 4.6 | | residual | y − ŷ | 4 − 4.6 = −0.6 |
Residuals
{{illustration:sr-resid}}
- Residuals sum to zero for the least-squares line. - A residual plot with no pattern supports a linear model.
How much is explained
{{illustration:sr-rvalues}}
- r² is the fraction of variation in y accounted for by the linear relationship with x. - Correlation is not causation; extrapolating beyond the data is risky.