Pseudoinverse
Taught to me by Kajanan. it’s not that deep.
The pseudoinverse of a matrix is a generalization of the inverse matrix, very useful for Least Squares if the matrix is not invertible / not square.
The pseudoinverse of A is defined as a matrix
Practical algorithms compute the pseudoinverse as
- Where and are the Singular Value Decomposition of ()
- of a diagonal matrix is obtained by taking the reciprocal of its non-zero elements, then taking the transpose of the resulting matrix
If is , then is .
On :
- When has more columns than rows, then solving a linear equation using the pseudoinverse provides one of the many possible solutions. Specifically, it provides the solution with minimal Euclidean norm among all possible solutions.
- When A has more rows than columns, it is possible for there to be no solution. In this case, using the pseudoinverse gives us the x for which Ax is as close as possible to y in terms of Euclidean norm