Docsity

Analyzing Eigenvalues and Eigenvectors for Demographic Matrix - Prof. C. Horvitz, Study notes of Ecology and Environment

Toggle sidebar
bg1
The demography of your invented creature.
The demography of your invented creature.
Eigenvalues and eigenvectors.
Before answering these exercises,
Study and then run “mat2valvecs_08.m”
1. Obtain all the eigenvectors and eigenvalues for your matrix, using the MATLAB function
«eig». Type «help eig» to learn how to get all these and to read them. Study the example of
the turtle demography in the m-script. For example, if your matrix is named «mymat» then
you should type «[V,D] = eig(mymat)». The columns of V will be the eigenvectors and the
diagonal of D will be the eigenvalues. You will want eigenvalues, eigenvectors, absolute
magnitudes of the eigenvalues, and you will want to convert the appropriate vectors to: stable
stage distribution, reproductive values and population growth rates, but first you will
investigate them more fully.
a) There is a list of eigenvalues; there are more eigenvalues than the dominant one! Some are real
numbers and some are complex numbers. Recall that a complex number is written a+bi, where a
is the real part and bi is the imaginary part and i is the square root of -1. Complex numbers occur
in conjugate pairs: a+bi and a-bi. Identify the real and the complex eigenvalues.
b) There are several eigenvectors. Each eigenvector is associated with its own eigenvalue.
Real eigenvalues have real eigenvectors, while complex eigenvalues have complex eigenvectors.
Eigenvectors are “directions” and eigenvalues are the “speeds” associated with each direction.
Both complex and real numbers affect dynamics. To understand the dynamics over time, one
needs to consider how “fast” the system will move in each direction.
2. Write the solution to the projection equation (Caswell 2001, Equation 4.49) for your matrix.
Don't try to find a numerical representation of the c's, just use the symbols for the c's. The rest of
the numbers can be found from a consideration of what is on your printout. Give a word-meaning
for the projection equation. Save the eigenvalues and eigenvectors of your creature in a “*.mat”
file, so you can call them up again when you need them.
3. Investigate eigenvalues that are real numbers in the MATLAB work space, you can just work
in the command window, then write down the results for each lambda suggested here. Make a
table in which the left hand column is the sequence: λ1, λ2, λ,3λ4, λ 5,λ 6. Across the top of the table,
enter the following column headings: λ =2, λ =1, λ =1/2, λ =-1/2, λ =-1, λ =-2. Fill in the
table. What happens as λ is raised to successively higher powers? Make some general rules: if
λ>1, if λ =1, if λ is positive but <1, if λ is negative but >-1, if λ =-1, if λ <-1., do the powers of λ
increase exponentially, decrease exponentially, exhibit damped oscillation, exhibit undamped
oscillation, exhibit diverging oscillation?
4. What about complex numbers? Evaluate the behavior of a complex number that is raised to
successively higher powers in the MATLAB command window, you don’t need a file, but you
should visualize what’s happening in the complex plane using the compass command. Try the
complex number 2+.5i; next try the complex number .5+.5i. Plot the values of successively higher
pf3

Partial preview of the text

Download Analyzing Eigenvalues and Eigenvectors for Demographic Matrix - Prof. C. Horvitz and more Study notes Ecology and Environment in PDF only on Docsity!

The demography of your invented creature. The demography of your invented creature. Eigenvalues and eigenvectors. Before answering these exercises , Study and then run “mat2valvecs_08.m”

  1. Obtain all the eigenvectors and eigenvalues for your matrix, using the MATLAB function «eig». Type «help eig» to learn how to get all these and to read them. Study the example of the turtle demography in the m-script. For example, if your matrix is named «mymat» then you should type «[V,D] = eig(mymat)». The columns of V will be the eigenvectors and the diagonal of D will be the eigenvalues. You will want eigenvalues, eigenvectors, absolute magnitudes of the eigenvalues, and you will want to convert the appropriate vectors to: stable stage distribution, reproductive values and population growth rates, but first you will investigate them more fully. a) There is a list of eigenvalues; there are more eigenvalues than the dominant one! Some are real numbers and some are complex numbers. Recall that a complex number is written a+bi , where a is the real part and bi is the imaginary part and i is the square root of -1. Complex numbers occur in conjugate pairs: a+bi and a-bi. Identify the real and the complex eigenvalues. b) There are several eigenvectors. Each eigenvector is associated with its own eigenvalue. Real eigenvalues have real eigenvectors, while complex eigenvalues have complex eigenvectors. Eigenvectors are “directions” and eigenvalues are the “speeds” associated with each direction. Both complex and real numbers affect dynamics. To understand the dynamics over time, one needs to consider how “fast” the system will move in each direction.
  2. Write the solution to the projection equation (Caswell 2001, Equation 4.49) for your matrix. Don't try to find a numerical representation of the c 's, just use the symbols for the c 's. The rest of the numbers can be found from a consideration of what is on your printout. Give a word-meaning for the projection equation. Save the eigenvalues and eigenvectors of your creature in a “*.mat” file, so you can call them up again when you need them.
  3. Investigate eigenvalues that are real numbers in the MATLAB work space, you can just work in the command window, then write down the results for each lambda suggested here. Make a table in which the left hand column is the sequence: λ^1 , λ^2 , λ,^3 λ^4 , λ 5 ,λ 6. Across the top of the table, enter the following column headings: λ =2, λ =1, λ =1/2, λ =-1/2, λ =-1, λ =-2. Fill in the table. What happens as λ is raised to successively higher powers? Make some general rules: if λ>1, if λ =1, if λ is positive but <1, if λ is negative but >-1, if λ =-1, if λ <-1., do the powers of λ increase exponentially, decrease exponentially, exhibit damped oscillation, exhibit undamped oscillation, exhibit diverging oscillation?
  4. What about complex numbers? Evaluate the behavior of a complex number that is raised to successively higher powers in the MATLAB command window, you don’t need a file, but you should visualize what’s happening in the complex plane using the compass command. Try the complex number 2+.5 i ; next try the complex number .5+.5 i. Plot the values of successively higher

powers λ in the complex plane. Consider the complex number λ, λ = a + b i. It can also be written in polar coordinates, a length and an angle, λ = the absolute magnitude of (λ) * (cos( θ) ) + i sin ( θ) )) the absolute magnitude of (λ) = sqrt(a^2 + b^2 ) and θ = tan –1(b/a) Note that the points can be plotted by their polar coordinates or by their x-y ( a-b ) coordinates. The points will be in the same place , no matter which of the two coordinate systems is laid out on the space. It is just as in the field, you could use a compass and a meter tape or two meter tapes to get to any given point in a plot.

  1. Study the example of human demography of the United States population of 1966 from Caswell 2001 (Example 4.3 and Figure 4.6). The angle θ) Caswell’s example is given in radians. NOTE: the number in the table is not θ) , it is θ) /π. To get θ) you have to multiply the number in the table by π. . Recall that 2*π radians=360 degrees; radians *(180/π)=degrees.π radians=360 degrees; radians *π radians=360 degrees; radians *(180/π)=degrees.(180/π)=degrees. (For example: 45 degrees=.7853 radians; 90 degress=1.571 radians; 180 degrees=3.1416 radians; 270 degrees= 2.4314 radians; 360 degrees= 6.2832 radians ) 6 Returning to your own creature’s matrix analysis, call up the eigenvectors and eigenvalues. Calculate all the absolute magnitudes and the angles of rotation for all of your eigenvalues. The absolute magnitude is given by the square root of ( a^2 + b^2 ). The angle is given by tan-1(b/a). Plot the eigenvalue spectrum for your matrix in the complex plane.
  2. Find the eigenvalue with the largest absolute magnitude and the second largest absolute magnitude. Find the real eigenvalue with the largest value (dominant eigenvalue). This gives the asymptotic population growth rate. Compare it to the results you got when you projected your matrix. Calculate the damping ratio and discuss the time to convergence (Caswell p. 95). Discuss briefly the difference between transient dynamics and asymptotic behavior for your matrix.
  3. Find the eigenvector associated with the eigenvalue of largest absolute magnitude (right eigenvector associated with the dominant eigenvalue). Each eigenvector is defined by the relative