Table of Contents

Population matrix models - Tutorial in spreadsheets

Leslie/Leftkovitch Matrices

matrizleslie.jpeg The growth of a population with an age structure can the projected using matrix algebra. Leslie matrices have the information about birth and death rates of different age classes of a population and are a robust way of figuring out the population growth and make projections for different scenarios. A generalization of the Leslie matrix occurs when the population is classified due to development stages instead of age classes (Lefkovitch matrices). In this scenario, an individual may reproduce, die, grow from one stage to another, or stay in the same stage. In this generalization, the basic vital rates are built into the transition matrix elements, which are used to figure out the effect that individuals from having a number of individuals in each class on the number of individuals in each class at the next time step.

Objective

The objective of this exercise is understand how can we study structured populations with these matrix models.

Before that, let's make some matrix multiplications in a spreadsheet.

Multiplying Matrices

Let's use one of the examples in Chapter 5 of the book Vegetable Ecology (Gurevitch et al. 2009) (see bibliography).

Don't panic!

If the formula results only in the result of the first cell, you must do the following:
  1. Select the cell of the first class result along with the cells where the values ​​relative to each of the other classes should be (in the “N2” vector);
  2. after that press the F2 key (to open the formula) and then Control + Shift + Enter (command to paste the formula into the selection cells).

That should solve! The three rows of the column referring to the vector “N2” must be filled at the end of this operation.
Note: If you have a MacOS computer, the sequence of keys to be pressed is a bit different. Press the control + U keys and then command + return (or command + enter)

Do not panic!

If your worksheet enters VORTEX INFINITE mode (that is, Excel has taken over the computer and sends you an error message every time you breathe) press the ESC key several times until the worksheet quits of the trance.

matrizleslie2.png

Is palm heart extraction sustainable?

matrizleslie3.png

Understanding the worksheet

The individuals were classified into seven stages, according to their size (diameter at soil height - DAS). Transition and fertility rates were estimated at one-year intervals, based on population-based monitoring data for three years. Adults are the trees of the last stage and are the only ones to reproduce. The authors estimated that each adult produces, on average, 98 individuals from the first stage from one year to another. Note that transition rates vary widely across classes. Identify fertility and transition values ​​in the matrix.

Note that the matrix is ​​based on stages of development rather than age classes, so it is possible for individuals to remain in the same class from one time to another. In these cases, the transition matrix (called the Leftkovitch Matrix) also has probabilities of permanence. Find the probabilities of staying in the matrix.

SHORTCUT

  • If you _already have experience with formulas in Excel_ and want an alternate path to automate calculation, avoiding COPY / PASTE SPECIAL errors, follow the steps below:
  • Repeat steps 1 through 5 of the previous section (cactus exercise) to multiply the matrices. Set the percentage extraction values ​​of the formula in the cell L12 using the $ . The formula should look like this: = K12 * (100- $ M $ 2) / 100 . Copy and paste the cells K6: L12 (you can select the two columns at the same time) in the M6 cell. Two new columns of numbers should appear. The second column represents the population values ​​after extraction. Repeat this procedure by always pasting the cells side by side.
  • In the RESULTS TABLE, simply put in the cell C18 the formula = L6 , enter and drag to complete all the cells referring to the size classes at time t2. For time t3, in cell D18 type = N6 and copy to other size classes, for time t4, in cell E18 type = P6 and copy to the other size classes, and so on, always remembering to skip a column.
  • NOTE: If you are not experienced with formulas in Excel, do not waste time trying to understand this shortcut. Try at home later!

To learn more

Gotelli, N. J. 2007. Ecologia. Cap.3- Crescimento Populacional Estruturado. Pp. 49-82. Ed. Planta.

Gurevitch, J, Scheiner, S.M, Fox, G.A. 2009. Ecologia Vegetal. Cap. 5 - Ed. Artmed, São Paulo.

An Intuitive Guide to Linear Algebra, from Better explained.

Freckleton, R.P., Silva Matos, D.M., Bovi, M.L.A & Watkinson, A.R. 2003. Predicting the impacts of harvesting using structured population models: the importance of density-dependence and timing of harvest for a tropical palm tree. Journal of Applied Ecology, 40: 846-858.

Silva Matos, D.M., Freckleton, R.P. & Watkinson, A.R. 1999. The role of density dependence in the population dynamics of a tropical palm. Ecology, 80: 2635-2650.

Stubben, C., & Milligan, B. (2007). Estimating and analyzing demographic models using the popbio package in R. Journal of Statistical Software, 22(11), 1-23.