0

I am comparing eigenvectors generated from mathematica to matllab. It seems signage of eigenvector generated from Mathematica is opposite from what is generated from matlab. Can anybody review and opine where I am going wrong please?

{vals1, vecs1} = Eigensystem[N[{{1, 0.6, 0.3}, {0.6, 1, 0.5}, {0.3, 
0.5,1}}]]

{{1.94378, 0.706878, 0.349341}, 
{{-0.569985, -0.63719, -0.518754},   
{-0.609114,-0.0960482, 0.787245}, 
{0.55145, -0.764698, 0.333376}}}
J. M.'s missing motivation
  • 124,525
  • 11
  • 401
  • 574
Kausik
  • 197
  • 2
  • 9
  • 1
    You're aware that if $\mathbf x$ is an eigenvector of $\mathbf A$, then $c\mathbf x$ is also an eigenvector, for nonzero $c$? – J. M.'s missing motivation Jul 12 '15 at 03:31
  • yes. I am using the vectors and values to generate correlated random no. If I use different signage my simulated dataset will have opposite correlation from the historical data set. so not sure of I am using vectors with correct signage. – Kausik Jul 12 '15 at 03:58
  • My point is that even if two different programs both give normalized eigenvectors of a symmetric matrix, don't count on the signs of one agreeing with the signs of another. You need some constraint that will determine the right signs in your application. – J. M.'s missing motivation Jul 12 '15 at 04:34
  • Thanks for answers. Very helpful – Kausik Jul 13 '15 at 19:36

0 Answers0