THE LEAST SQUARES LINE

The line is passing in between our points while the sum of the squares of the vertical distances from the data points to the line is as small as possible. The picture to the left shows the least square line passing in between our points, and the distances d1, d2, d3, d4, and d5. The equation of the least square line is found by minimizing the sum: ................
................