[R] Matrix question

GIDEON WASSERBERG wasserberg at wisc.edu
Wed Apr 14 01:28:31 CEST 2004


Dear Friends

I am doing a simple matrix analysis to calculate the eigenvalue, eigenvector using R for the below matrix, and comparing the result to those obtained from a projection (using excel)

THE MATRIX:
> c
     [,1] [,2] [,3]
[1,]  0.0  2.0    2
[2,]  0.8  0.0    0
[3,]  0.0  0.8    0


The dominant eigenvalue comes out comparable to that calculated numerically, but the eigenvectors do not( see below)!


EIGENVALUES (calculated by R):

> eigen(c)
$values
[1]  1.5564082+0.000000i -0.7782041+0.465623i -0.7782041-0.465623i

EIGENVALUE numerically calculated: 1.556408145


EIGENVECTORS (calculated by R):
$vectors
              [,1]                  [,2]                  [,3]
[1,] -0.8658084+0i  0.6476861+0.0000000i  0.6476861+0.0000000i
[2,] -0.4450290+0i -0.4902997-0.2933611i -0.4902997+0.2933611i
[3,] -0.2287467+0i  0.2382837+0.4441499i  0.2382837-0.4441499i

Stable age distribution (calculated numerically):

0.562365145
0.289057934
0.148576921


My questions are:
1. Both eigenvalue and eigenvectors are associated with some imaginary value (i). How should I relate to that information? 2. More importantly, a. I presume the 1st eigenvector collumn [,1] should correspond to the dominant eigenvalue. How come then that it comes out different from the one calculated numerically? Is there some conversion I should do?

Many thanks

Gideon


Gideon Wasserberg (Ph.D.)
Wildlife research unit,
Department of wildlife ecology,
University of Wisconsin
218 Russell labs, 1630 Linden dr.,
Madison, Wisconsin 53706, USA.
Tel.:608 265 2130, Fax: 608 262 6099




More information about the R-help mailing list