The least squares regression line
The regression line of y on x, y=a+bx, is the straight line that makes the squared vertical distances from the points as small as possible. Its gradient is b=SxxSxy and it always passes through (xˉ,yˉ), so a=yˉ−bxˉ.
≈ 35 min