Skip to content

How to get the pseudo left inverse of a singular squarem atrix?

2 messages · alka seltzer, Spencer Graves

#
have >inverse, which by
I >don't know if this is
Andy


The inverse of a Matrix A is defined as a Matrix B
such that B*A=A*B=I and not just B*A=I. But there are
matrices B for singular matrices A such that B*A=I but
A*B != I, therefore there exist "left-inverses" (or
"right-inverses") for non-invertable matrices.

Best Regards

__________________________________
#
The documentation for "ginv" in MASS says it "Calculates the 
Moore-Penrose generalized inverse of a matrix 'X'."  The theory says 
that for each m x n matrix A, there is a unique n x m matrix G 
satisfying AGA = A and GAG = G.  
(http://mathworld.wolfram.com/Moore-PenroseMatrixInverse.html). 

      Consider the following simple example:
[2,]  0.0  0.0
[,1] [,2]
[1,]    1    0
[2,]    1    0
[,1] [,2]
[1,]  0.5  0.5
[2,]  0.0  0.0
[,1] [,2]
[1,]    1    0
[2,]    0    0
[,1] [,2]
[1,]  0.5  0.5
[2,]  0.5  0.5
[,1] [,2]
[1,]    1    0
[2,]    1    0
[,1] [,2]
[1,]  0.5  0.5
[2,]  0.0  0.0

      hope this helps.  spencer graves
alka seltzer wrote: