Find the line y = ax+b which provides the best-t (that is, the least-squares fit) for the data:
(x; y) = (-3; 11); (1;-17); (-2; 3); (4;-1)
SOLUTION: The initial (inconsistent) system of equations is
$\begin{pmatrix}\ -3 &1 \\ 1&1 \\ -2&1\\4&1 \end{pmatrix}\begin{pmatrix} a\\b \end{pmatrix} = \begin{pmatrix} 11\\-17\\3\\-1 \end{pmatrix} $
My question is where did all those 1 came from(the column of 1's) if they arent randomly generated numbers how do you find them? Thank you