Review your notes.

Click a passage to open its comment and worked example.

8.2 · Least squares regressionPage 317
Original textbook page: least squares regression at Elmhurst College

OpenIntro Statistics, fourth edition · CC BY-SA 3.0David Diez, Mine Çetinkaya-Rundel & Christopher Barr. Original page; our highlights and comments are added.

Comments 3

The page compares family income with gift aid for 50 students. Higher income tends to accompany lower aid; the reported correlation is −0.499.

Example from this page 50 observations · $1,000s

Student 1: income is 8.86k below average; aid is 1.78k above average. The opposite signs contribute negatively to r.

Correlation r = −0.499A downward association, not a claim about causation.

How these points become a correlation

Subtract each variable’s average from every observation. Multiply the two deviations for each student, then add the 50 products. Opposite signs pull that sum down; matching signs pull it up.

Divide by the two variables’ total spread to get a unit-free value between −1 and 1. Here r ≈ −0.499 indicates a moderate negative linear association. It does not mean aid falls by 49.9%, or establish what causes that association.

Recommended courseCo-movement and correlation ↗

A direct foundation for reading the pattern in this figure.

A residual is observed aid minus predicted aid. Taking its absolute value measures the size of the miss without letting positive and negative misses cancel.

Recommended courseRegression and residual checks ↗

Practise predictions, signed errors and their interpretation.

Squaring gives larger misses more weight. The solid line in the figure minimises this total across the same 50 observations.

Recommended courseThe fitting objective ↗

Learn how an error becomes the objective used to fit a line.