Skip to content

Q: Problems with eigen() vs. svd()

3 messages · ralle, Brian Ripley, Paul Gilbert

#
Hi,
I have a problem understanding what is going on with eigen() for
nonsymmetric matrices.
Example:
h<-rnorm(6)
[1] 1.56216542 0.07147773
[1] 2.85537780 0.03910517

And now:
# squared eigenvalues of Pi
[1] 8.153182389 0.001529214
[1] 8.153182389 0.001529214
Indeed:
diag(svd(Pi)$d) %*% diag(svd(Pi)$d)
         [,1]        [,2]
[1,] 8.153182 0.000000000
[2,] 0.000000 0.001529214

I conclude that eigen() works correctly for symmetric matrices only (or
makes sense ...).
Do I have misconceptions about the relationship between the results of
eigen()$values and
svd()$d and my conclusion is wrong ?
The VR-Book "Modern Applied Statistics" (1994) states explicitly that
eigen() is for
symmetric matrices.

Can anybody help me to clarify this point ?


Thank you

	Ralph
#
On Wed, 10 May 2000, ralle wrote:

            
It does not on any of the pages indexed under `eigen', and on those pages
it "explicitly" discusses simplifications if the matrix is symmetric and
the `symmetric' argument!
#
As I recall, eigen() in Splus did only work for symmetric matrices sometime in
the last millenium. I believe it changed around 1994. I don't think R had
eigen() until around 1996, and I believe it may not have worked with
non-symmetric matrices at first, but that changed very quickly. History buffs
please correct me. I work with time series but I'm not good at remembering
dates.

Paul Gilbert

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._