oloolo
2009-07-30 16:23:48 UTC
by understanding the operations behind a matrix inversion, we certainly can
resort to SVD algorithm
SVD on a square matrix X is
X=UEV'
and once we got matrix U, E, V, we can obtain the inverse of X as
inv(X)=UE^{-1}V'
since matrix E is an diagonal matrix, its inverse is simply inversion of
its diagonal scalar elements which can be easily done, taking numerical
stability into consideration.
Well, I've also point out a way in SAS to do SVD (hence generalized
inverse) without IML (but you do need SAS/STAT) at
sas-programming.blogspot.com
now you don't IML or other software and the overhead in exchange data
between them.
On Thu, 7 Jun 2001 14:21:18 -0700, David L. Cassell
good job on some matrix and stat functions? I believe there is an ACM
paper of last year in which two authors tested Excel on NIST test data
sets for stats and it did wretchedly. I wouldn't use Excel to invert a
matrix
without substantial testing first. And if the matrix is ill-conditioned,
Excel [or most non-matrix/stat software for that matter] may do a *ghastly*
job of inverting the matrix properly. BTW, this is not just another MS
slam,
because I wouldn't trust any of the popular spreadsheets to do this well
without
testing first.
OTOH, there are realtively inexpensive matrix mainpulation and stats
packages
which could be used in place of Excel here. GLIM comes to mind, as does
Perl's PDL module [which is free - if you can get it to compile on your
OS!]
and the R system [also free].
David
--
David Cassell, CSC
Senior computing specialist
mathematical statistician
resort to SVD algorithm
SVD on a square matrix X is
X=UEV'
and once we got matrix U, E, V, we can obtain the inverse of X as
inv(X)=UE^{-1}V'
since matrix E is an diagonal matrix, its inverse is simply inversion of
its diagonal scalar elements which can be easily done, taking numerical
stability into consideration.
Well, I've also point out a way in SAS to do SVD (hence generalized
inverse) without IML (but you do need SAS/STAT) at
sas-programming.blogspot.com
now you don't IML or other software and the overhead in exchange data
between them.
On Thu, 7 Jun 2001 14:21:18 -0700, David L. Cassell
Here's an alternative.
You probably have Excel.
Excel has a function (MINVERSE) for inverting matrices.
You could put the data into Excel, do the calculation, then get the data
back into SAS.
Very clever [as usual]. But are you aware that Excel does *not* do aYou probably have Excel.
Excel has a function (MINVERSE) for inverting matrices.
You could put the data into Excel, do the calculation, then get the data
back into SAS.
good job on some matrix and stat functions? I believe there is an ACM
paper of last year in which two authors tested Excel on NIST test data
sets for stats and it did wretchedly. I wouldn't use Excel to invert a
matrix
without substantial testing first. And if the matrix is ill-conditioned,
Excel [or most non-matrix/stat software for that matter] may do a *ghastly*
job of inverting the matrix properly. BTW, this is not just another MS
slam,
because I wouldn't trust any of the popular spreadsheets to do this well
without
testing first.
OTOH, there are realtively inexpensive matrix mainpulation and stats
packages
which could be used in place of Excel here. GLIM comes to mind, as does
Perl's PDL module [which is free - if you can get it to compile on your
OS!]
and the R system [also free].
David
--
David Cassell, CSC
Senior computing specialist
mathematical statistician