Linear Regression notes (AP Statistics)
Correlation, regression lines, and residuals.
The big question
ŷ = a + bx
What line best fits the data? The least-squares regression line!
Learn it, step by step
1. The line and the residuals
The least-squares line makes the sum of squared residuals as small as possible.
A residual is actual minus predicted.

2. Interpret slope and intercept
Slope: for each extra unit of x, the predicted y changes by b.
Say predicted, and use context.
ŷ = 1.2 + 0.84x
each +1 hour → +0.84 points predicted

3. r and r squared
r measures the strength and direction of a linear relationship, from negative 1 to 1.
r squared is the fraction of variation in y explained by the line.
r: −1 to 1
r²: % of variation explained

Watch out: Association, not causation
A strong regression line does not prove that x causes y.
Wrong: r = 0.9 → x causes y. Right: r = 0.9 → strong association.
Your turn
A student scored 70 and the line predicted 74. What is the residual?
actual 70, predicted 74
Answer: −4. 70 minus 74 is negative 4!
Remember
The least-squares line minimizes squared residuals. Interpret in context with "predicted".
residual = y − ŷ
Watch the Linear Regression lesson and practice · Printable worksheet