Use the least square approximation to find the closest line (the line of "Best Fit") to the points:
$$(-6,-1), \quad (-2,2), \quad (1,1), \quad (7,6)$$
I'm attempting to use the least squares approximation formulation that is as follows:
$$A^TAx = A^Tb$$
However, I'm confused because I'm given four vectors. Does that mean I can use the first three vectors $(-6,-1),(-2,2),(1,1)$ to create my matrix A, and then use the last vector $(7,6)$ for the "$b$" value? I understand the process is very straight forward once proper substitution has been done, but I tried the method I described above and got the wrong answer.Thank you guys.