Squared residuals

This diagram represents the squared residuals by the areas of red squares.

Drag the three red arrows to position the plane. Try to make the residual sum of squares as small as possible.

Click Least squares to show the least squares estimates.