VISUAL LESSON · 15 PICTURES

How Covariance Becomes a Regression Slope

Why is the least-squares slope covariance divided by the variance of the input?

MODULE 4 / 6LESSON 18 / 46PICTURE 1 / 15
Progress stays on this device · no login
BEFORE THE FIRST PICTURE

How this lesson unfolds.

Begin with How do paired observations become geometry? The sequence then connects Center every observation around the same reference and builds toward Read a fitted line with four checks.

Picture 1 of 15 · tap to inspect in full resolution
01

How do paired observations become geometry?

INTUITION

Each row (x,y) becomes one point; the point cloud reveals how y tends to move when x moves.

  • Learning goalExplain paired data in the derivation and interpretation of least-squares slope.
  • Helpful foundationsmean · variance · covariance · coordinate plane
  • Common trapRegression slope is not covariance alone and is not generally the slope between any two selected observations.
  • Next connectionCenter every observation around the same reference
More context

The visual connects a formula, three reasoning checks and a paired-data diagram.

Picture 2 of 15 · tap to inspect in full resolution
02

Why subtract the means first?

INTUITION

Centered coordinates measure horizontal and vertical movement from the cloud's balancing point (x-bar,y-bar).

  • Learning goalExplain centering in the derivation and interpretation of least-squares slope.
  • Helpful foundationsmean · variance · covariance · coordinate plane
  • Common trapRegression slope is not covariance alone and is not generally the slope between any two selected observations.
  • Next connectionDeviation signs carry direction
More context

The visual connects a formula, three reasoning checks and a paired-data diagram.

Picture 3 of 15 · tap to inspect in full resolution
03

What does one point contribute?

INTUITION

The product (x-x-bar)(y-y-bar) is positive for same-direction movement and negative for opposite-direction movement.

  • Learning goalExplain signed products in the derivation and interpretation of least-squares slope.
  • Helpful foundationsmean · variance · covariance · coordinate plane
  • Common trapRegression slope is not covariance alone and is not generally the slope between any two selected observations.
  • Next connectionCovariance adds the joint movement
More context

The visual connects a formula, three reasoning checks and a paired-data diagram.

Picture 4 of 15 · tap to inspect in full resolution
04

How do we summarize movement together?

INTUITION

Covariance averages signed products, preserving whether the cloud leans upward or downward.

  • Learning goalExplain covariance in the derivation and interpretation of least-squares slope.
  • Helpful foundationsmean · variance · covariance · coordinate plane
  • Common trapRegression slope is not covariance alone and is not generally the slope between any two selected observations.
  • Next connectionVariance measures the horizontal movement available
More context

The visual connects a formula, three reasoning checks and a paired-data diagram.

Picture 5 of 15 · tap to inspect in full resolution
05

Why does x-variance enter the denominator?

INTUITION

The sum of squared x-deviations measures how much horizontal movement could support a change in y.

  • Learning goalExplain input variance in the derivation and interpretation of least-squares slope.
  • Helpful foundationsmean · variance · covariance · coordinate plane
  • Common trapRegression slope is not covariance alone and is not generally the slope between any two selected observations.
  • Next connectionThe two totals reveal the slope
More context

The visual connects a formula, three reasoning checks and a paired-data diagram.

Picture 6 of 15 · tap to inspect in full resolution
06

What ratio turns shared movement into rate of change?

INTUITION

Least-squares slope equals total joint movement divided by total horizontal squared movement.

MATHEMATICAL STATEMENT
  1. Least-squares slope equals total joint movement divided by total horizontal squared movement.
  • Learning goalExplain slope ratio in the derivation and interpretation of least-squares slope.
  • Helpful foundationsmean · variance · covariance · coordinate plane
  • Common trapRegression slope is not covariance alone and is not generally the slope between any two selected observations.
  • Next connectionSlope is not covariance alone
More context

The visual connects a formula, three reasoning checks and a paired-data diagram.

Picture 7 of 15 · tap to inspect in full resolution
07

Why must shared movement be normalized?

INTUITION

Covariance changes with the scale of x; dividing by Var(X) expresses the response per one input unit.

  • Learning goalExplain normalization in the derivation and interpretation of least-squares slope.
  • Helpful foundationsmean · variance · covariance · coordinate plane
  • Common trapRegression slope is not covariance alone and is not generally the slope between any two selected observations.
  • Next connectionWork the five-point example
More context

The visual connects a formula, three reasoning checks and a paired-data diagram.

Picture 8 of 15 · tap to inspect in full resolution
08

Can the formula recover the visible rise?

INTUITION

For x=10,20,30,40,50 and y=4,6,8,10,12, the centered totals are 200 and 1000, so slope is 0.2.

MATHEMATICAL STATEMENT
  1. For x=10,20,30,40,50 and y=4,6,8,10,12, the centered totals are 200 and 1000, so slope is 0.2.
  • Learning goalExplain worked example in the derivation and interpretation of least-squares slope.
  • Helpful foundationsmean · variance · covariance · coordinate plane
  • Common trapRegression slope is not covariance alone and is not generally the slope between any two selected observations.
  • Next connectionGeometry and statistics agree
More context

The visual connects a formula, three reasoning checks and a paired-data diagram.

Picture 9 of 15 · tap to inspect in full resolution
09

How does rise over run match covariance over variance?

INTUITION

Perfectly aligned data give rise/run = 8/40 = 0.2 and Cov(X,Y)/Var(X) = 200/1000 = 0.2.

MATHEMATICAL STATEMENT
  1. Perfectly aligned data give rise/run = 8/40 = 0.2 and Cov(X,Y)/Var(X) = 200/1000 = 0.2.
  • Learning goalExplain two views in the derivation and interpretation of least-squares slope.
  • Helpful foundationsmean · variance · covariance · coordinate plane
  • Common trapRegression slope is not covariance alone and is not generally the slope between any two selected observations.
  • Next connectionUnits explain the division
More context

The visual connects a formula, three reasoning checks and a paired-data diagram.

Picture 10 of 15 · tap to inspect in full resolution
10

What units should a slope have?

INTUITION

Covariance has units x-times-y; dividing by x-squared leaves y-units per x-unit.

  • Learning goalExplain units in the derivation and interpretation of least-squares slope.
  • Helpful foundationsmean · variance · covariance · coordinate plane
  • Common trapRegression slope is not covariance alone and is not generally the slope between any two selected observations.
  • Next connectionThe line passes through the data centre
More context

The visual connects a formula, three reasoning checks and a paired-data diagram.

Picture 11 of 15 · tap to inspect in full resolution
11

Once slope is known, where does the line sit?

INTUITION

The least-squares intercept b0=y-bar-b1 x-bar makes the fitted line pass through (x-bar,y-bar).

MATHEMATICAL STATEMENT
  1. The least-squares intercept b0=y-bar-b1 x-bar makes the fitted line pass through (x-bar,y-bar).
  • Learning goalExplain intercept in the derivation and interpretation of least-squares slope.
  • Helpful foundationsmean · variance · covariance · coordinate plane
  • Common trapRegression slope is not covariance alone and is not generally the slope between any two selected observations.
  • Next connectionResiduals choose the best line
More context

The visual connects a formula, three reasoning checks and a paired-data diagram.

Picture 12 of 15 · tap to inspect in full resolution
12

What does least squares minimize?

INTUITION

The fitted coefficients minimize the sum of squared vertical residuals between observations and predictions.

  • Learning goalExplain least squares in the derivation and interpretation of least-squares slope.
  • Helpful foundationsmean · variance · covariance · coordinate plane
  • Common trapRegression slope is not covariance alone and is not generally the slope between any two selected observations.
  • Next connectionTwo-point slope and regression slope are different ideas
More context

The visual connects a formula, three reasoning checks and a paired-data diagram.

Picture 13 of 15 · tap to inspect in full resolution
13

When can rise over run mislead?

INTUITION

Two points determine one geometric line; regression listens to every point and balances all residuals.

  • Learning goalExplain distinction in the derivation and interpretation of least-squares slope.
  • Helpful foundationsmean · variance · covariance · coordinate plane
  • Common trapRegression slope is not covariance alone and is not generally the slope between any two selected observations.
  • Next connectionA zero denominator means no slope can be learned
More context

The visual connects a formula, three reasoning checks and a paired-data diagram.

Picture 14 of 15 · tap to inspect in full resolution
14

What if every x-value is the same?

INTUITION

If Var(X)=0, there is no horizontal variation, so Cov(X,Y)/Var(X) is undefined and the slope is not identifiable.

MATHEMATICAL STATEMENT
  1. If Var(X)=0, there is no horizontal variation, so Cov(X,Y)/Var(X) is undefined and the slope is not identifiable.
  • Learning goalExplain failure case in the derivation and interpretation of least-squares slope.
  • Helpful foundationsmean · variance · covariance · coordinate plane
  • Common trapRegression slope is not covariance alone and is not generally the slope between any two selected observations.
  • Next connectionRead a fitted line with four checks
More context

The visual connects a formula, three reasoning checks and a paired-data diagram.

Picture 15 of 15 · tap to inspect in full resolution
15

How should we interpret a regression slope responsibly?

INTUITION

Check direction, magnitude and units, the observed x-range, and whether a straight-line summary is appropriate.

  • Learning goalExplain interpretation in the derivation and interpretation of least-squares slope.
  • Helpful foundationsmean · variance · covariance · coordinate plane
  • Common trapRegression slope is not covariance alone and is not generally the slope between any two selected observations.
  • Next connectionUse slope as one part of a complete regression diagnosis
More context

The visual connects a formula, three reasoning checks and a paired-data diagram.