Memra

Scatter plots and covariance

◈ 4 cards

Direction, 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.

ClientIncome Score
135610
248645
352640
461680
570700
684720
795745
8110760

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.

xyxy3561021,3501,225372,1004864530,9602,304416,0255264033,2802,704409,6006168041,4803,721462,4007070049,0004,900490,0008472060,4807,056518,4009574570,7759,025555,02511076083,60012,100577,6005555,500390,92543,0353,801,150x̄ = 555/8 = 69.375, ȳ = 5,500/8 = 687.5. Σxy − n·x̄·ȳ = 9,362.5.
The two-variable sums table. Every quantity in Modules 4 and 13 — covariance, r, the slope, SST — is a combination of these five totals and n = 8.
NORMAL ~/memra/learn/afm-113/scatter-plots-and-covariance utf-8 LF