Least Squares Line
This applet demonstrates the usage of the least squares method for determining the line of "best fit".
Move the points around and see the square of the distance between a line and the points. Try to find
adjust this line [red] to make the total as small as possible. The line of best fit [green] is the line that
minimizes this sum using partial differentiation (from calculus).