Scatterplot
Made-up dataTotal area of the squares
My line
Least-squares regression line
Move a line through the scatterplot and watch the squares of the vertical distances from the points to the line. The least-squares regression line makes their total area as small as possible.