Research Methods · Simplified

Why It Is Called Least Squares

The squares are not a metaphor. Move the line by hand and watch the area you are trying to get rid of.

Your turn

Fit the line yourself first

Twelve observations, and a line you control with two numbers. Every observation gets a square whose side is how far the line missed it. Make the total area as small as you can, then find out how close you got.

Key terms
Intercept
Where the line crosses the vertical axis: the predicted value of Y when X is zero.
Slope
How much the predicted Y changes for a one-unit rise in X.
Residual
The vertical distance from an observation to the line. The side of its square.
R squared
How much better your line does than simply predicting the average of Y for everybody. It is 0 for a line no better than the average and it can go negative for one that is worse.
Your line
15

Where the line starts on the left.

0.20

How steeply it rises.

Twelve observations with your line and a square drawn on each residual

Each square has its side equal to that observation's residual, so its area is the residual squared. Adding up those twelve areas gives the number below. Regression is the line that makes that total as small as it can possibly be.