Priority labels: ImportantNeutralLess important show where to spend revision time.
Always start with a scatterplotImportant
To describe the link between two quantitative variables, put the explanatory variable (x) on the horizontal axis and the response (y) on the vertical axis. Read four things: direction (up or down), form (straight or curved), strength (tight or loose) and unusual points. Numbers such as r come second; a picture can reveal what they hide.
The correlation coefficientImportant
The Pearson correlation measures the strength and direction of a linear association: the average product of the two z-scores.
| Property | Detail |
|---|---|
| Range | −1 ≤ r ≤ +1; the sign gives the direction |
| Units | None; rescaling x or y (kg to lb) does not change r |
| Symmetry | r(x, y) = r(y, x) |
| Outliers | A single extreme point can push r up or down sharply |
| Shape | Measures only linear association; r = 0 does not mean "no relationship" |
Use r only when both variables are quantitative, the form is roughly straight and there are no wild outliers. Report it with the plot.
Correlation is not causationNeutral
In observational data a lurking (confounding) variable may drive both x and y. Children's height and reading skill correlate strongly, largely because both grow with age. Only a randomised experiment supports causal wording.
Why graphs matter: Anscombe and friendsImportant
Anscombe's quartet is four small data sets with practically identical means, spreads, correlation (≈ 0.82) and fitted line (ŷ ≈ 3.0 + 0.5x) but entirely different pictures: one honest straight-line cloud, one clear curve, one line wrecked by a single outlier, and one where all x values are equal except for one point. The "Datasaurus dozen" repeats the trick with a dinosaur, a star and concentric circles sharing the same summary statistics. The regression lab below includes these sets so you can see it yourself.
The linear model and least squaresImportant
A fitted line ŷ = b₀ + b₁x predicts y from x. The least-squares line is the one that makes the sum of squared vertical misses, Σ(y − ŷ)², as small as possible.
- The line always passes through the point (x̄, ȳ).
- The residual e = y − ŷ is the vertical gap between a point and the line; residuals add to zero.
- Slope: each extra unit of x goes with b₁ extra units of predicted y (on average).
- Intercept: the predicted y at x = 0 — often meaningless when x = 0 lies outside the data.
Advertising spend and weekly sales
Eight weeks of data: spend x (k€) = 1, 2, 3, 4, 5, 6, 7, 8 and sales y (k€) = 12, 15, 14, 19, 21, 20, 25, 27. We reuse this data set in chapters 9 and 10.
Summaries
Slope and intercept
Prediction and residual
Each additional €1,000 of spend goes with about €2,083 more weekly sales on average. At 6 k€ the model overshoots by 2.25 k€.
Regression to the meanNeutral
In z-score units the line is simply ẑ_y = r · z_x. Because |r| ≤ 1, the prediction sits nearer to ȳ, in SD units, than x sits to x̄: an exceptional x value tends to be paired with a less exceptional y.
R² — how much variation the line explainsImportant
R² is the share of the variance in y accounted for by the model; 1 − R² is what remains in the residuals. In the sales example R² = 0.935: about 94% of the week-to-week variation in sales is tied to spend. Do not confuse r (direction and strength) with R² (explained share). What counts as "high" depends on the field.
Reality checksNeutral
- Extrapolation: predictions outside the observed x range are speculation; the line may bend or break beyond the data.
- Non-linear patterns: a curved cloud calls for a transformation or a different model (see chapter 10).
- Summary data: correlations built on group averages look stronger than the individual-level truth.
- Multiple regression is previewed in the handbook as a glimpse ahead: several predictors at once, outside this course's depth.
ToolsNeutral
TI-84: store x in L1 and y in L2, draw with STAT PLOT, then STAT ▸ CALC ▸ LinReg (or LinRegTTest, which also gives the slope test of chapter 9). R:
Key takeaways
- Plot first; r only describes linear association and is fragile to outliers.
- b₁ = r·s_y/s_x and the line goes through (x̄, ȳ); residuals sum to zero.
- R² = r² is the explained share of variance; correlation never proves causation.