In least-squares, what if ${\bf X}^\top {\bf X}$ is not invertible?

1.4k Views Asked by At

In least-squares, when solving the normal equation, we calculate the inverse of ${\bf X}^\top {\bf X}$. What if this matrix is not invertible?