Scatter plots and covariance
◈ 4 cardsDirection, form and strength from a scatter plot, and the sample covariance from the shortcut sums — a sign with no meaningful size.
Two variables, one picture
When each unit carries two quantitative measurements, the first move is a scatter plot: the explanatory variable across, the response up, one point per unit. Describe it in three words.
- Direction — positive (the cloud rises left to right), negative (it falls), or none.
- Form — linear (a straight band), curved, or clustered.
- Strength — how tightly the points hug the form: strong, moderate, weak.
And always: any point that sits away from the pattern.
Worked example — Northfield Credit's eight clients
Northfield Credit, a Waterloo lender, pulled eight clients' annual income ($000) and credit score.
| Client | Income | Score |
|---|---|---|
| 1 | 35 | 610 |
| 2 | 48 | 645 |
| 3 | 52 | 640 |
| 4 | 61 | 680 |
| 5 | 70 | 700 |
| 6 | 84 | 720 |
| 7 | 95 | 745 |
| 8 | 110 | 760 |
Plotted, the points climb steadily from (35, 610) to (110, 760) in a narrow band. Positive, linear, strong. One small wrinkle — client 3 earns more than client 2 but scores slightly lower — and nothing that leaves the band.
The sums table, extended
Module 3's habit was and . For two variables the table grows three columns — , and the cross-product — and every quantity in this module and Module 13 reads off its totals:
so and .
Covariance — the direction, in a number
The sample covariance averages the product of the two deviations:
When and are above their means together (or below together) the products are positive; when one is above and the other below, negative. For Northfield:
Positive — the direction the plot showed. But 1,337.5 what? Thousand-dollars-times-points. Re-express income in dollars and the covariance becomes 1,337,500 with nothing about the relationship having changed. Covariance carries the units of both variables, so its size means nothing by itself; only its sign is interpretable. Lesson 4.2 divides the units out.
Reading a flat cloud
A horizontal, shapeless cloud has covariance near zero and is described as showing no linear association. It does not say the variables are unrelated: a U-shaped pattern — cost against batch size, say, high at both extremes — has a covariance near zero and a very real relationship. The plot tells you what the number cannot.