Least Squares Demonstration
Try to find the line that best fits the points. Drag point P1 to change the y-intercept of the line. Drag point P2 to change the slope of the line.
Least Squares Demonstration
Information: Least Squares Demonstration