Skip to content

Same eigenvalues but different eigenvectors using 'prcomp' and 'principal' commands

3 messages · Arlindo Meque, Ben Bolker, John Fox

#
Arlindo Meque <mequitomz <at> yahoo.com.br> writes:
[snip]


  eigenvectors are only defined up to a scale factor.  prcomp is
scaling them so that the sum of squares is 1; I haven't bothered
to see how principal() is scaling them (maybe the documention says).

(1,1) and (-1,1)   , or (1,1) and (1,-1), would have been
equally valid choices.

  Ben Bolker
#
Dear Arlindo,

When, as here, the eigenvalues are distinct, corresponding eigenvectors are defined only up to multiplication by a nonzero constant. As you can verify, the first set of eigevectors is normalized to length 1 while the second set is normalized to have length equal to the corresponding eigenvalues.

I hope this helps,
 John

------------------------------------------------
John Fox
Sen. William McMaster Prof. of Social Statistics
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
http://socserv.mcmaster.ca/jfox/

On Thu, 14 Mar 2013 01:01:56 -0700 (PDT)
Arlindo Meque <mequitomz at yahoo.com.br> wrote: