Skip to content
Prev 43819 / 398513 Next

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

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: