1 Introduction

Periodic matrix models are often used to study cyclical temporal variation (seasonal or interannual), sometimes as a (perhaps crude) approximation to stochastic models. However, formally periodic models also appear when multiple processes (e.g., demography and dispersal) operate within a single projection interval. The models take the form of periodic matrix products. A familiar example is when population projection over an annual interval is described as a product of seasonal operators. The perturbation analysis of periodic models (Caswell and Trevisan 1994; Lesnoff et al. 2003; Caswell and Shyu 2012) must specify both the vital rates affected by the perturbation and the timing of the perturbation within the cycle. This chapter presents a general approach to the perturbation analysis of both linear and nonlinear periodic models. The results consist of a series of analyses of some of the most commonly encountered periodic models.

If the environment is time-invariant on the scale of a chosen projection interval (e.g., from year to year), the result is a periodic matrix population model in which the seasonal product repeats itself. Such a model can be written as

$$\displaystyle \begin{aligned} \mathbf{n}(t+1) = {\mathbf{B}}_p \cdots {\mathbf{B}}_2 {\mathbf{B}}_1 \mathbf{n}(t) {} \end{aligned} $$
(8.1)

Here, B i is the matrix at phase i of the cycle and p is the period. The period is the number of phases in the cycle; i.e., the number of matrices in the periodic matrix product in (8.1). Neither the identities nor the number of stages need be the same from one phase to the next, so the matrices B i may be rectangular rather than square. The phases need not be the same length, so the period may or may not be measured in units of time. For example, in the model of Pico et al. (2002), each season is of 2 months duration, and the period (p = 6) corresponds directly to a time scale. In contrast, the model of Hunter and Caswell (2005a) has three phases, with durations of 3 weeks, 5 weeks, and 10 months, respectively. The period (p = 3) of that model does not correspond to a time scale, but it identifies the number of matrices in the periodic product and appears in calculations in the same role as p = 6 in the model of Pico et al. (2002).

The projection matrix over the entire periodic cycle isFootnote 1

$$\displaystyle \begin{aligned} \mathbf{A} = {\mathbf{B}}_p \cdots {\mathbf{B}}_2 {\mathbf{B}}_1 {} \end{aligned} $$
(8.2)

The earliest studies of periodic matrix models were due to Darwin and Williams (1964), Skellam (1966), and MacArthur (1968). In recent years, with little fanfare, periodic models have emerged as an important tool for incorporating multiple processes within a single projection interval. Uses of periodic models include the following.

  1. 1.

    Seasonal variation. Plants and animals experience obvious and dramatic seasonal variation in their demographic rates. Periodic models have been used to describe this variation, with seasons variously defined in terms of monthly periods, calendar seasons, or in terms of environmental events such as rainfall or flood patterns (e.g., Smith et al. 2005).

    Although annual or near-annual species are obvious candidates for periodic models, within-year time scales may also be important for long-lived species. For example, Hunter and Caswell (2005a) incorporated chick development events on a time scale of weeks into a periodic model for the sooty shearwater, which has a lifetime of decades. Similarly, Jenouvrier et al. (2010, 2014) have used periodic models to capture the timing of events in the breeding cycle within a portion of the year in the long-lived emperor penguin.

  2. 2.

    Periodic interannual variability. Periodic models based on sequences of annual observations have been used to study effects of inter-event intervals, where events include fires, floods, ENSO events, etc.

  3. 3.

    Harvest and management. These activities often take place at specified points within an annual or interannual cycle. Periodic models have been used to study the effects of their timing; one of the earliest periodic models being devoted to seasonal harvesting (Darwin and Williams 1964).

  4. 4.

    Conditional probabilities. Periodic matrix products appear when models are written as products of conditional probabilities. In stage-classified models, for example, a transition matrix U, is written as the product of a diagonal matrix Σ (with survival probabilities σ on the diagonal) and a matrix G of transition probabilities conditional on survival:

    $$\displaystyle \begin{aligned} \mathbf{U} = \mathbf{G} \boldsymbol{\Sigma} {} \end{aligned} $$
    (8.3)

    which creates a period-2 periodic matrix product within the model.

  5. 5.

    Multistate vec-permutation models. When individuals are classified by two or more criteria (e.g., stage and location), the dynamics over the projection interval can be described in terms of the processes affecting each criterion (e.g., transitions and movement). The result is a periodic model that uses the vec-permutation matrix to generate a block-structured projection matrix over the entire interval. See Chap. 6 for analysis of such models.

  6. 6.

    Nonlinear models. Henson and Cushing (1997) developed a model for Tribolium in an experimental system in which container size was varied periodically. Shyu et al. (2013) developed a nonlinear seasonal model of an invasive plant to account for the timing of both density effects and management actions within the year. In such models, cyclic dynamics can be produced both by the environmental periodicity and the nonlinearities (e.g., Cushing 2006).

Table 8.1 Table of symbols in this chapter

1.1 Perturbation Analysis

As in Fig. 8.1, we suppose that in phase i of the cycle, the parameter vector takes on the value θ i and determines the matrix B i. The projection matrix A is the product, in the specified order, of the B i. Although the output ξ is calculated from A, the parameter dependence operates through the B i (Fig. 8.1). The sensitivity of ξ to the elements of A is in general not of interest, because those elements are complicated expressions involving the elements of all the B i, and thus mix disparate biological processes. Here we calculate the sensitivity of demographic outcomes to the entries of the B i.

Fig. 8.1
figure 1

A vector θ of parameters determines an output variable ξ, which may be a scalar, vector, or matrix. The parameter vector will generally take on different values at each phase in the cycle, and determine the phase-specific matrix B i. These matrices determine the projection matrix A as a periodic matrix product; the output variable is computed from A. The perturbation problem is to compute the sensitivity or elasticity of ξ to θ

In this chapter we analyze linear periodic models of the form (8.1) and the cyclic dynamics of nonlinear seasonal models with delayed density effects. We will briefly discuss the generalization of the multistate age×stage-classified models explored in Chap. 6 to an arbitrary number of classifications. We extend the LTRE decomposition analysis to the periodic case, making it possible to analyze effects of parameter changes at any point in a periodic environment.

2 Linear Models

Consider the basic model (8.1) with projection matrix (8.2). The period of the cycle is p. To allow for differences in the state vector at different phases within the cycle, define the number of stages at phase i as s i. Thus the matrix B i is of dimension s i+1 × s i, with the subscript i interpreted mod(p) (that is, (p + 1) mod(p) = 1).

Let ξ (dimension m × 1) denote an output variable calculated from A, where ξ might be a scalar, a vector, or a vectorized matrix. Let θ be a parameter vector (dimension q × 1). The derivative of ξ with respect to θ is the m × q matrix

$$\displaystyle \begin{aligned} {d \boldsymbol{\xi} \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = \left(\begin{array}{c} \displaystyle {d \xi_i \over d \theta_j} \end{array}\right) \qquad i=1,\ldots, m;~ j=1,\ldots,q \end{aligned} $$
(8.4)

By the chain rule, the effects of the parameters on ξ are captured in the matrix product

$$\displaystyle \begin{aligned} {d \boldsymbol{\xi} \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = {d \boldsymbol{\xi} \over d \mbox{vec} \,^{\mbox{\textsf{ T}}} \mathbf{A}} {d \mbox{vec} \, \mathbf{A} \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}}. {} \end{aligned} $$
(8.5)

The first term in (8.5) is the derivative of the output variable ξ with respect to the matrix A from which it is calculated. The second term in (8.5) is the derivative of the periodic product matrix A with respect to the parameter vector θ. To obtain this, differentiate (8.2), to obtain

$$\displaystyle \begin{aligned} \begin{array}{rcl} d \mathbf{A} &\displaystyle =&\displaystyle {\mathbf{B}}_p \cdots {\mathbf{B}}_2 \left( d {\mathbf{B}}_1 \right) \\ &\displaystyle &\displaystyle + {\mathbf{B}}_p \cdots \left( d {\mathbf{B}}_2 \right) {\mathbf{B}}_1 \\ &\displaystyle &\displaystyle \vdots \\ &\displaystyle &\displaystyle + \left( d {\mathbf{B}}_p \right) {\mathbf{B}}_{p-1} \cdots {\mathbf{B}}_1 {} \end{array} \end{aligned} $$
(8.6)

It is convenient to define the matrix \({\mathbf {C}}_i^j\) as the ordered product (from right to left) of the B matrices from i up to j:

$$\displaystyle \begin{aligned} {\mathbf{C}}_i^j = {\mathbf{B}}_j \cdots {\mathbf{B}}_i \qquad i \le j \end{aligned} $$
(8.7)

and set \({\mathbf {C}}_1^0 = {\mathbf {C}}_{p+1}^p = {\mathbf {I}}_{s_1}\). Then (8.6) becomes

$$\displaystyle \begin{aligned} d \mathbf{A} = {\mathbf{C}}_2^p \left( d {\mathbf{B}}_1 \right) + {\mathbf{C}}_3^p \left( d {\mathbf{B}}_2 \right) {\mathbf{C}}_1^1 \cdots + \left( d {\mathbf{B}}_p \right) {\mathbf{C}}_1^{p-1} \end{aligned} $$
(8.8)

Applying the vec operator to both sides gives

$$\displaystyle \begin{aligned} d \mbox{vec} \, \mathbf{A} = \sum_{i=1}^p \left[ \left( {\mathbf{C}}_1^{i-1} \right)^{\mbox{\textsf{ T}}} \otimes {\mathbf{C}}_{i+1}^p \right] \; d \mbox{vec} \, \mathbf{ B}_i {} \end{aligned} $$
(8.9)

Equation (8.9) accounts automatically for the possibly different dimensions of the B i. The resulting derivative with respect to the parameter vector θ is

$$\displaystyle \begin{aligned} {d \mbox{vec} \, \mathbf{A} \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = \sum_{i=1}^p \left[ \left( {\mathbf{C}}_1^{i-1} \right)^{\mbox{\textsf{ T}}} \otimes {\mathbf{C}}_{i+1}^p \right] \; {d \mbox{vec} \, {\mathbf{B}}_i \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} . {} \end{aligned} $$
(8.10)

where dvec B id θ T is the derivative of the matrix B i with respect to the parameter vector θ, evaluated at θ i. Equation (8.10) sums the contributions of the derivatives of all of the phase-specific matrices B i with respect to θ, thus accounting for all the ways in which θ may affect the demographic rates at each point in the cycle. As written, (8.10) gives the result of perturbing θ at each point in the cycle. The effect of a phase-specific perturbation is easily obtained by summing only over phases in which θ i is modified.

Substituting (8.10) into the formula (8.5) gives the general expression for the sensitivity of ξ to changes affecting any or all of the B i:

$$\displaystyle \begin{aligned} {d \boldsymbol{\xi} \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = {d \boldsymbol{\xi} \over d \mbox{vec} \,^{\mbox{\textsf{ T}}} \mathbf{A}} \left( \sum_{i=1}^p \left[ \left( {\mathbf{C}}_1^{i-1} \right)^{\mbox{\textsf{ T}}} \otimes {\mathbf{C}}_{i+1}^p \right] \; {d \mbox{vec} \, {\mathbf{B}}_i \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \right) . {} \end{aligned} $$
(8.11)

The elasticity of ξ to θ is the matrix

$$\displaystyle \begin{aligned} \begin{array}{rcl} {\epsilon \boldsymbol{\xi} \over \epsilon \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} &=& \left(\begin{array}{c} \displaystyle \frac{\theta_j}{\xi_i} {d \xi_i \over d \theta_j} \end{array}\right) \end{array} \end{aligned} $$
(8.12)
$$\displaystyle \begin{aligned} \begin{array}{rcl} &=& \mathcal{D}\,( \boldsymbol{\xi})^{-1} \; {d \boldsymbol{\xi} \over d \mbox{vec} \,^{\mbox{\textsf{ T}}} \mathbf{A}} \left( \sum_{i=1}^p \left[ \left( \mathbf{ C}_1^{i-1} \right)^{\mbox{\textsf{ T}}} \otimes {\mathbf{C}}_{i+1}^p \right] \; {d \mbox{vec} \, {\mathbf{B}}_i \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \right) \mathcal{D}\, \left( \boldsymbol{\theta} \right) {} \end{array} \end{aligned} $$
(8.13)

where \(\mathcal {D}\,(\mathbf {x})\) is a diagonal matrix with x on the diagonal and zeros elsewhere. Because elasticities are logarithmic derivatives, they apply only when ξ > 0 and θ ≥ 0.

2.1 A Simple Harvest Model

The projection matrix for a simple harvest model (e.g., Hauser et al. 2006) can be written

$$\displaystyle \begin{aligned} \mathbf{A} = \mathbf{B} \left( \mathbf{I} - \mathbf{H} \right). {} \end{aligned} $$
(8.14)

The matrix B describes demography in the absence of harvest. The matrix \(\mathbf {H} = \mathcal {D}\, (\mathbf {h})\) is a harvest matrix, where h i is the probability that an individual of stage i is harvested.Footnote 2 Either B, H, or both may be functions of a vector θ of parameters. Differentiating (8.14) and applying the vec operator gives

$$\displaystyle \begin{aligned} d \mbox{vec} \, \mathbf{A} = - \left( {\mathbf{I}}_s \otimes \mathbf{B} \right) d \mbox{vec} \, \mathbf{H} + \left[ \left( \mathbf{I} - \mathbf{H} \right)^{\mbox{\textsf{ T}}} \otimes {\mathbf{I}}_s \right] d \mbox{vec} \, \mathbf{B}. {} \end{aligned} $$
(8.15)

The diagonal matrix H can be written

$$\displaystyle \begin{aligned} \mathbf{H} = {\mathbf{I}}_s \circ \left( {\mathbf{1}}_s {\mathbf{h}}^{\mbox{\textsf{ T}}} \right) {} \end{aligned} $$
(8.16)

where 1 s is a s × 1 vector of ones and ∘ denotes the Hadamard product. The differential of H in (8.16) is

$$\displaystyle \begin{aligned} d \mbox{vec} \, \mathbf{H} = \mathcal{D}\, \left( \mbox{vec} \, {\mathbf{I}}_s \right) \left({\mathbf{I}}_s \otimes {\mathbf{1}}_s \right) d \mathbf{h} . {} \end{aligned} $$
(8.17)

Combining (8.16) and (8.15) and applying the chain rule gives the derivative with respect to θ:

$$\displaystyle \begin{aligned} {d \mbox{vec} \, \mathbf{A} \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = \underbrace{ - \left( {\mathbf{I}}_s \otimes \mathbf{B} \right) \mathcal{D}\, \left( \mbox{vec} \, {\mathbf{I}}_s \right) \left( {\mathbf{I}}_s \otimes {\mathbf{1}}_s \right) {d \mathbf{h} \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} }_{\mbox{perturbations of} \mathbf{h}} + \underbrace{ \left[ \left( \mathbf{I} - \mathbf{H}\right)^{\mbox{\textsf{ T}}} \otimes {\mathbf{I}}_s \right] {d \mbox{vec} \, \mathbf{B} \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} }_{\mbox{perturbations of} \mathbf{B}}. {} \end{aligned} $$
(8.18)

The conditional probability model (8.3) has the same form as the harvest model (8.14), so a similar analysis applies to it as well:

$$\displaystyle \begin{aligned} d \mbox{vec} \, \mathbf{U} = \left(\mathbf{I} \otimes \mathbf{G} \right) \mathcal{D}\, \left(\mbox{vec} \, \mathbf{I} \right) \left( \mathbf{I} \otimes \mathbf{1} \right) d \boldsymbol{\sigma} + \left( \boldsymbol{\Sigma} \otimes \mathbf{I} \right) d \mbox{vec} \, \mathbf{G} . {} \end{aligned} $$
(8.19)

However, the conditional transition matrix G is column-stochastic (all columns sum to 1), because all loss of individuals is accounted for by Σ. Thus relevant perturbations must be parameterized so that the stochasticity is preserved. For example, if G describes growth in the standard size-classified model (Caswell 2001, Section 4.2), e.g.,

$$\displaystyle \begin{aligned} \mathbf{G} = \left(\begin{array}{ccc} 1-\gamma_1 & 0 & 0 \\ \gamma_1 & 1-\gamma_2 & 0 \\ 0 & \gamma_2 & 1-\gamma_3 \end{array}\right) \end{aligned} $$
(8.20)

then perturbations of the γ i will preserve stochasticity of G. If G has no such convenient parameterization, then changes in the entries of G must be compensated for by changes elsewhere in the same column (see Caswell 2001; Hill et al. 2004; Theorem 4.5 of Caswell 2013). For explicit formulas for compensation, see Chap. 11 of this volume; for an application, see van Daalen and Caswell (2017).

The harvest model (8.14) can be extended to describe harvest imposed at a specified phase within a p-cycle. Suppose that harvest takes place between phase m and phase m + 1, so that

$$\displaystyle \begin{aligned} \mathbf{A} = {\mathbf{B}}_p \cdots {\mathbf{B}}_{m+1} \; \left( \mathbf{I} - \mathbf{H} \right) \; {\mathbf{B}}_m \cdots {\mathbf{B}}_1 \end{aligned} $$
(8.21)

(see Darwin and Williams (1964) for an early example of this kind of seasonal harvest model). Using the same approach, it can be shown that

$$\displaystyle \begin{aligned} \begin{array}{rcl} {d \mbox{vec} \, \mathbf{A} \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} &\displaystyle =&\displaystyle - \left[ \left( {\mathbf{C}}_1^m \right)^{\mbox{\textsf{ T}}} \otimes \mathbf{ C}_{m+1}^p \right] {d \mbox{vec} \, \mathbf{H} \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \\ &\displaystyle &\displaystyle + \left[{\mathbf{I}}_{s_1} \otimes {\mathbf{C}}_{m+1}^p \left( \mathbf{I} - \mathbf{H} \right) \right] \sum_{i=1}^m \left[ \left( {\mathbf{C}}_1^{i-1} \right)^{\mbox{\textsf{ T}}} \otimes {\mathbf{C}}_{i+1}^m \right] {d \mbox{vec} \, {\mathbf{B}}_i \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \\ &\displaystyle &\displaystyle + \left[ \left( \left( \mathbf{I} - \mathbf{H} \right) {\mathbf{C}}_1^m \right)^{\mbox{\textsf{ T}}} \otimes {\mathbf{I}}_{s_1} \right] \sum_{i=m+1}^p \left[ \left( {\mathbf{C}}_{m+1}^{i-1} \right)^{\mbox{\textsf{ T}}} \otimes {\mathbf{C}}_{i+1}^p \right] {d \mbox{vec} \, {\mathbf{B}}_i \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}}\\ {} \end{array} \end{aligned} $$
(8.22)

The expression (8.17) can be substituted for dvec H in (8.22), and the resulting expression for dvec Ad θ T substituted into (8.5).

3 Multistate Models

We have encountered several examples of models in which individuals are classified by two criteria (age and stage, stage and environmental state, stage and location, etc.). These multistate models can be constructed by the vec-permutation matrix approach; see Chaps. 5 and 6 or Hunter and Caswell (2005b) and Caswell et al. (2018).

Suppose individuals classified by two criteria; e.g., stages (1, …, s) and locations (1, …, r). One might describe population dynamics in terms of stage transitions within locations, and spatial movement within stages, with the two processes acting sequentially. Thus individuals first survive and reproduce according to their stage-specific demography, and then disperse among locations, and then repeat. Let B i be the s × s matrix describing transitions and reproduction within location i, and M j the r × r matrix describing movement probabilities for stage j. Let \(\mathbb {B}\) and \(\mathbb {M}\) be the sr × sr block diagonal matrices with the B i and the M j, respectively, on the diagonal.

The population is projected by

$$\displaystyle \begin{aligned} \mathbf{n}(t+1) = {\mathbf{K}}^{\mbox{\textsf{ T}}} \mathbb{M} \mathbf{K} \mathbb{B} \; \mathbf{n}(t). . {} \end{aligned} $$
(8.23)

The matrix K is the vec-permutation matrix, or commutation matrix, (Henderson and Searle 1981; Magnus and Neudecker 1979), which satisfies

$$\displaystyle \begin{aligned} \mbox{vec} \, \mathcal{N}^{\mbox{\textsf{ T}}} = \mathbf{K} \; \mbox{vec} \, \mathcal{N} \end{aligned} $$
(8.24)

For the calculation of K, see Sect. 2.2.3 .

The model (8.23) is formally periodic, with the operation of \(\mathbb {B}\) and \(\mathbb {M}\) alternating; thus the projection matrix is

$$\displaystyle \begin{aligned} \mathbf{A} = {\mathbf{K}}^{\mbox{\textsf{ T}}} \mathbb{M} \mathbf{K} \mathbb{B} . {} \end{aligned} $$
(8.25)

The dependence of A on the parameters θ can take place through \({\mathbf {B}}_i \left [ \boldsymbol {\theta } \right ]\), \({\mathbf {M}}_i \left [\boldsymbol {\theta } \right ]\), or both.

The general sensitivity formula (8.5) requires the derivative d Ad θ T. Differentiating (8.25) gives

$$\displaystyle \begin{aligned} d \mathbf{A} = {\mathbf{K}}^{\mbox{\textsf{ T}}} \left( d \mathbb M \right) \mathbf{K} \mathbb B + {\mathbf{K}}^{\mbox{\textsf{ T}}} \mathbb M \mathbf{K} \left( d \mathbb B \right). \end{aligned} $$
(8.26)

Applying the vec operator gives

$$\displaystyle \begin{aligned} d \mbox{vec} \, \mathbf{A} = \left( \mathbb B^{\mbox{\textsf{ T}}} {\mathbf{K}}^{\mbox{\textsf{ T}}} \otimes {\mathbf{K}}^{\mbox{\textsf{ T}}} \right) d \mbox{vec} \, \mathbb M + \left( {\mathbf{I}}_{sp} \otimes {\mathbf{K}}^{\mbox{\textsf{ T}}} \mathbb M \mathbf{K} \right) d \mbox{vec} \, \mathbb B {} \end{aligned} $$
(8.27)

We want to express \(d \mbox{vec} \, \mathbb {B}\) and \(d \mathbb {M}\) in terms of the derivatives of their diagonal entries B i and M j. This can be done using equations (14) and (15) of Caswell and van Daalen (2016). Define the matrices P i and Q i, of dimension rs × s and s × rs, respectively,

$$\displaystyle \begin{aligned} {\mathbf{P}}_i = \left(\begin{array}{c} {\mathbf{0}}_{s(i-1) \times s} \\ {\mathbf{I}}_s \\ {\mathbf{0}}_{s(r -i) \times s} \end{array}\right) \qquad {\mathbf{Q}}_i = \left(\begin{array}{ccc} {\mathbf{0}}_{s \times (i-1)s} & {\mathbf{I}}_s & {\mathbf{0}}_{s \times (r -i)s} \end{array}\right) . {} \end{aligned} $$
(8.28)

Then

$$\displaystyle \begin{aligned} d \mbox{vec} \, \mathbb{B} = \sum_{i=1}^r\left( {\mathbf{Q}}_i^{\mbox{\textsf{ T}}} \otimes {\mathbf{P}}_i \right) d \mbox{vec} \, {\mathbf{B}}_i . {} \end{aligned} $$
(8.29)

Similarly, for \(\mathbb {M}\), define matrices R i and S i

$$\displaystyle \begin{aligned} {\mathbf{R}}_i = \left(\begin{array}{c} {\mathbf{0}}_{r(i-1) \times r} \\ {\mathbf{I}}_r \\ {\mathbf{0}}_{r(s -i) \times r} \end{array}\right) \qquad {\mathbf{S}}_i = \left(\begin{array}{ccc} {\mathbf{0}}_{r \times (i-1)r} & {\mathbf{I}}_r & {\mathbf{0}}_{r \times (s -i)r} \end{array}\right) . {} \end{aligned} $$
(8.30)

Then

$$\displaystyle \begin{aligned} d \mbox{vec} \, \mathbb{M} = \sum_{i=1}^s \left( {\mathbf{S}}_i^{\mbox{\textsf{ T}}} \otimes {\mathbf{R}}_i \right) \mbox{vec} \, {\mathbf{M}}_i . {} \end{aligned} $$
(8.31)

Substituting (8.29) and (8.31) into the expression (8.27) for dvec A gives the final result

$$\displaystyle \begin{aligned} {d \mbox{vec} \, \mathbf{A} \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = \underbrace{{\mathbf{X}}_1 \sum_{j=1}^s \left( {\mathbf{S}}_j^{\mbox{\textsf{ T}}} \otimes {\mathbf{R}}_j \right) {d \mbox{vec} \, {\mathbf{M}}_j \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} }_{\mbox{perturbations of the }{\mathbf{M}}_j} \; + \; \rule{0in}{3ex} \underbrace{{\mathbf{X}}_2 \sum_{i=1}^r \left( {\mathbf{Q}}_i^{\mbox{\textsf{ T}}} \otimes P_i \right) {d \mbox{vec} \, {\mathbf{B}}_i \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} }_{\mbox{perturbations of the }{\mathbf{B}}_i } {} \end{aligned} $$
(8.32)

where X 1 and X 2 are constant matrices,

$$\displaystyle \begin{aligned} \begin{array}{rcl} {\mathbf{X}}_1 &\displaystyle =&\displaystyle \left( \mathbb{B}^{\mbox{\textsf{ T}}} {\mathbf{K}}^{\mbox{\textsf{ T}}} \otimes {\mathbf{K}}^{\mbox{\textsf{ T}}} \right) \end{array} \end{aligned} $$
(8.33)
$$\displaystyle \begin{aligned} \begin{array}{rcl} {\mathbf{X}}_2 &\displaystyle =&\displaystyle \left( {\mathbf{I}}_{sr} \otimes {\mathbf{K}}^{\mbox{\textsf{ T}}} \mathbb{M} \mathbf{K} \right) \end{array} \end{aligned} $$
(8.34)

that need be calculated only once. Although X 1, X 2, and the Kronecker products appearing in the summations are large, they are also extremely sparse. The sparse matrix capabilities in Matlab can take advantage of this fact. Substituting (8.32) into (8.5) gives the sensitivity of an output variable ξ to changes in parameters that perturb any or all of the M j and B i.

4 Nonlinear Models and Delayed Density Dependence

Anticipating the more extensive treatment in Chap. 10 , we consider the effects of nonlinearity in periodic models. You may want to return to this section after Sect. 10.7 , which analyzes periodic oscillations arising from time-invariant nonlinearities. When periodic environmental changes interact with such oscillations, the results can be complicated, and such interactions are the focus of the present section.

In a periodic nonlinear model, each of the B i in (8.2) may depend on density. Especially in seasonal models, the vital rates in the matrix B i may depend on densities not only at phase i, but at previous phases within the cycle as well. For example, in a study of the invasive plant garlic mustard (Alliaria petiolata) Shyu et al. (2013) found that seed production of fruiting plants in the fall reflected the density experienced by vegetative rosettes in the early spring.

To develop a model including such delayed density dependence, define

$$\displaystyle \begin{aligned} {\mathbf{n}}_i(t) = \mbox{population at season }i\text{ in year }t \end{aligned} $$
(8.35)

Starting at season 1, the dynamics are given by

$$\displaystyle \begin{aligned} \begin{array}{rcl} {\mathbf{n}}_1(t+1) &\displaystyle =&\displaystyle {\mathbf{B}}_p {\mathbf{n}}_p(t) \\ {\mathbf{n}}_2(t) &\displaystyle =&\displaystyle {\mathbf{B}}_1 {\mathbf{n}}_1(t) \\ &\displaystyle \vdots&\displaystyle {} \\ {\mathbf{n}}_p(t) &\displaystyle =&\displaystyle {\mathbf{B}}_{p-1} {\mathbf{n}}_{p-1}(t) \end{array} \end{aligned} $$
(8.36)

Density-dependence, in a general form, means that the matrices B i may be functions of densities over one cycle prior to season i:

$$\displaystyle \begin{aligned} \begin{array}{rcl} {\mathbf{B}}_1 &\displaystyle =&\displaystyle {\mathbf{B}}_1 \left[ \rule{0in}{2ex} {\mathbf{n}}_1(t), {\mathbf{n}}_p(t-1), \ldots, {\mathbf{n}}_2(t-1) \right] \\ {} {\mathbf{B}}_2 &\displaystyle =&\displaystyle {\mathbf{B}}_2 \left[ \rule{0in}{2ex} {\mathbf{n}}_2(t), {\mathbf{n}}_1(t), {\mathbf{n}}_p(t-1), \ldots, {\mathbf{n}}_3(t-1) \right] \\ &\displaystyle \vdots&\displaystyle \\ {\mathbf{B}}_p &\displaystyle =&\displaystyle {\mathbf{B}}_p \left[ \rule{0in}{2ex} {\mathbf{n}}_p(t), {\mathbf{n}}_{p-1}(t), \ldots, {\mathbf{n}}_1(t) \right] \end{array} \end{aligned} $$
(8.37)

A fixed point on the interannual time scale, from t to t + 1, is a p-cycle on the seasonal scale, satisfying

$$\displaystyle \begin{aligned} \begin{array}{rcl} \hat{\mathbf{n}}_1 &\displaystyle =&\displaystyle {\mathbf{B}}_p \left[ \hat{\mathbf{n}}_1, \ldots, \hat{\mathbf{n}}_p \right] \; \hat{\mathbf{n}}_p \\ {} \hat{\mathbf{n}}_2 &\displaystyle =&\displaystyle {\mathbf{B}}_1 \left[ \hat{\mathbf{n}}_1, \ldots, \hat{\mathbf{n}}_p \right] \; \hat{\mathbf{n}}_1 \\ &\displaystyle \vdots&\displaystyle {}\\ \hat{\mathbf{n}}_p &\displaystyle =&\displaystyle {\mathbf{B}}_{p-1} \left[ \hat{\mathbf{n}}_1, \ldots, \hat{\mathbf{n}}_p \right] \; \hat{\mathbf{n}}_{p-1} \end{array} \end{aligned} $$
(8.38)

A k-cycle on the interannual time scale is a kp-cycle on the seasonal time scale, the points of which are numbered \(\hat {\mathbf {n}}_1,\ldots ,\hat {\mathbf { n}}_{kp}\). The corresponding sequence of matrices, in which the annual cycle B 1, …, B p is repeated k times, is defined as B 1, …, B kp. With this notation, (8.38) still holds, with kp instead of p entries.

Differentiating (8.38) yields

$$\displaystyle \begin{aligned} d \hat{\mathbf{n}}_i = \left( d {\mathbf{B}}_{i-1} \right) \hat{\mathbf{n}}_{i-1} + {\mathbf{B}}_{i-1} \left( d \hat{\mathbf{n}}_{i-1} \right) \qquad i=1,\ldots,p {} \end{aligned} $$
(8.39)

where the subscripts on \(\hat {\mathbf {n}}\) and B are interpreted modulo p. Applying the vec operator to (8.39) yields

$$\displaystyle \begin{aligned} d \hat{\mathbf{n}}_i = \left( \hat{\mathbf{n}}_{i-1}^{\mbox{\textsf{ T}}} \otimes {\mathbf{I}}_s \right) d \mbox{vec} \, {\mathbf{B}}_{i-1} + {\mathbf{B}}_{i-1} d \hat{\mathbf{ n}}_{i-1}. {} \end{aligned} $$
(8.40)

The sensitivity analysis of the cycle involves a set of block-structured matrices, the form of which is easily generalized from the special case with p = 3. Assuming p = 3 and noting that B depends on all the \(\hat {\mathbf {n}}_i\) as well as on the parameter vector θ, the total differential of B i−1 in (8.40) is

$$\displaystyle \begin{aligned} d \mbox{vec} \, {\mathbf{B}}_{i-1} = {\partial \mbox{vec} \, {\mathbf{B}}_{i-1} \over \partial {\mathbf{n}}_1^{\mbox{\textsf{ T}}}} d \hat{\mathbf{n}}_1 + {\partial \mbox{vec} \, {\mathbf{B}}_{i-1} \over \partial {\mathbf{n}}_2^{\mbox{\textsf{ T}}}} d \hat{\mathbf{n}}_2 + {\partial \mbox{vec} \, {\mathbf{B}}_{i-1} \over \partial {\mathbf{n}}_3^{\mbox{\textsf{ T}}}} d \hat{\mathbf{n}}_3 + {\partial \mbox{vec} \, {\mathbf{B}}_{i-1} \over \partial \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} d \boldsymbol{\theta} {} \end{aligned} $$
(8.41)

For notational convenience, define the matrices

$$\displaystyle \begin{aligned} {\mathbf{H}}_i = \left( \hat{\mathbf{n}}_i^{\mbox{\textsf{ T}}} \otimes {\mathbf{I}}_s \right) \qquad i=1,\ldots,p \end{aligned} $$
(8.42)

Substituting (8.41) into (8.40) produces the set of equations

$$\displaystyle \begin{aligned} \begin{array}{rcl} d \hat{\mathbf{n}}_1 &\displaystyle =&\displaystyle {\mathbf{H}}_3 {\partial \mbox{vec} \, {\mathbf{B}}_3 \over \partial \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} d \boldsymbol{\theta} + {\mathbf{H}}_3 \sum_{j=1}^p {\partial \mbox{vec} \, {\mathbf{B}}_3 \over \partial {\mathbf{n}}_j^{\mbox{\textsf{ T}}}} d \hat{\mathbf{n}}_j + {\mathbf{B}}_3 d \hat{\mathbf{n}}_3 \\ d \hat{\mathbf{n}}_2 &\displaystyle =&\displaystyle {\mathbf{H}}_1 {\partial \mbox{vec} \, {\mathbf{B}}_1 \over \partial \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} d \boldsymbol{\theta} + {\mathbf{H}}_1 \sum_{j=1}^p {\partial \mbox{vec} \, {\mathbf{B}}_1 \over \partial {\mathbf{n}}_j^{\mbox{\textsf{ T}}}} d \hat{\mathbf{n}}_j + {\mathbf{B}}_1 d \hat{\mathbf{n}}_1 {} \\ d \hat{\mathbf{n}}_1 &\displaystyle =&\displaystyle {\mathbf{H}}_2 {\partial \mbox{vec} \, {\mathbf{B}}_2 \over \partial \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} d \boldsymbol{\theta} + {\mathbf{H}}_2 \sum_{j=1}^p {\partial \mbox{vec} \, {\mathbf{B}}_2 \over \partial {\mathbf{n}}_j^{\mbox{\textsf{ T}}}} d \hat{\mathbf{n}}_j + {\mathbf{B}}_2 d \hat{\mathbf{n}}_2 \end{array} \end{aligned} $$
(8.43)

This set of equations can be reduced to a single equation by collecting all the points on the kp-cycle into a single vector. Write an array (of dimension sp × k)

(8.44)

Then write the vector (of dimension spk × 1)

$$\displaystyle \begin{aligned} \mathbb{N}= \mbox{vec} \, \mathcal{N} \end{aligned} $$
(8.45)

In terms of this vector, the set of equations (8.43) can be rewritten

$$\displaystyle \begin{aligned} {d \mathbb{N} \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = \left[ {\mathbf{I}}_{skp} - \mathbb{B} - \mathbb{H} \mathbb{C} \right]^{-1} \mathbb{H} \mathbb{D}. {} \end{aligned} $$
(8.46)

where \(\mathbb {H}\) and \(\mathbb {B}\) are the block-circulant matrices

$$\displaystyle \begin{aligned} \begin{array}{rcl} \mathbb{H} &=& \left(\begin{array}{ccc} 0 & 0 & {\mathbf{H}}_3 \\ {\mathbf{H}}_1 & 0 & 0 \\ 0 & {\mathbf{H}}_2 & 0 \end{array}\right) \end{array} \end{aligned} $$
(8.47)
$$\displaystyle \begin{aligned} \begin{array}{rcl} \mathbb{B} &=& \left(\begin{array}{ccc} 0 & 0 & {\mathbf{B}}_3 \\ {\mathbf{B}}_1 & 0 & 0 \\ 0 & {\mathbf{B}}_2 & 0 \end{array}\right) , \end{array} \end{aligned} $$
(8.48)

and \(\mathbb {C}\) and \(\mathbb {D}\) are the block matrices

$$\displaystyle \begin{aligned} \begin{array}{rcl} \mathbb{C} &=& \left(\begin{array}{ccc} \displaystyle {\partial \mbox{vec} \, {\mathbf{B}}_1 \over \partial {\mathbf{n}}_1^{\mbox{\textsf{ T}}}} & \cdots & \displaystyle {\partial \mbox{vec} \, {\mathbf{B}}_1 \over \partial {\mathbf{n}}_3^{\mbox{\textsf{ T}}}} \\ \vdots & \ddots & \vdots \\ \displaystyle {\partial \mbox{vec} \, {\mathbf{B}}_3 \over \partial {\mathbf{n}}_1^{\mbox{\textsf{ T}}}} & \ldots & \displaystyle {\partial \mbox{vec} \, {\mathbf{B}}_3 \over \partial {\mathbf{n}}_3^{\mbox{\textsf{ T}}}} \end{array}\right) {} \end{array} \end{aligned} $$
(8.49)
$$\displaystyle \begin{aligned} \begin{array}{rcl} \mathbb{D} &=& \left(\begin{array}{c} \displaystyle {\partial \mbox{vec} \, {\mathbf{B}}_1 \over \partial \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \\ {} \displaystyle {\partial \mbox{vec} \, {\mathbf{B}}_2 \over \partial \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \\ {} \displaystyle {\partial \mbox{vec} \, {\mathbf{B}}_3 \over \partial \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \end{array}\right). {} \end{array} \end{aligned} $$
(8.50)

All the derivatives are evaluated at \(\hat {\mathbf {n}}_1,\ldots , \hat {\mathbf {n}}_3\).

4.1 Averages

The vector \(d \mathbb {N}/ d \boldsymbol {\theta }^{\mbox{\textsf { T}}}\) created by (8.46) contains the sensitivities of all s stages, at each of p seasons within the year, for each of the k years within the inter-annual k-cycle. If this is too much information, one can calculate the sensitivity of averages, or other linear combinations, taken in various ways.

To write these averages, let b m be a m × 1 vector of weights. For a simple average of m quantities, each entry of b m is 1∕m; for a weighted average, the entries of b m would be non-negative numbers summing to 1. More generally, b may contain arbitrary weights, such as biomass, metabolic rate, economic value, etc. See Chaps. 7 and 10 . To calculate averages from \(\mathbb {N}\), first apply these vectors to average over rows or columns of \(\mathcal{N}\) and then apply the vec operator to express the results as averages over \(\mathbb {N}\).

Annual fixed point

If the dynamics are a fixed point on the annual time scale, averages can be calculated over stages (using a vector b s), over seasons (using a vector b p), or both. The p × 1 vector of averages over stages is

$$\displaystyle \begin{aligned} \begin{array}{rcl} \mbox{avg. over stages} &\displaystyle =&\displaystyle \mbox{vec} \, \left( {\mathbf{b}}_s^{\mbox{\textsf{ T}}} \mathcal{N} \right) \end{array} \end{aligned} $$
(8.51)
$$\displaystyle \begin{aligned} \begin{array}{rcl} &\displaystyle =&\displaystyle \left( {\mathbf{I}}_p \otimes {\mathbf{b}}_s^{\mbox{\textsf{ T}}} \right) \mathbb{N} \end{array} \end{aligned} $$
(8.52)

The s × 1 vector of averages over seasons is

$$\displaystyle \begin{aligned} \mbox{avg. over seasons} = \left( {\mathbf{b}}_p^{\mbox{\textsf{ T}}} \otimes {\mathbf{I}}_s \right) \mathbb{N} \end{aligned} $$
(8.53)

The average over both seasons and stages (a scalar) is

$$\displaystyle \begin{aligned} \mbox{avg. over stages and seasons} = \left( {\mathbf{b}}_p^{\mbox{\textsf{ T}}} \otimes {\mathbf{b}}_s^{\mbox{\textsf{ T}}} \right) \mathbb{N} \end{aligned} $$
(8.54)

Because the average is a linear operator, the sensitivities of these averages are obtained by applying the same weights to the derivative \(d \mathbb {N} / d \boldsymbol {\theta }^{\mbox{\textsf { T}}}\) in (8.46):

$$\displaystyle \begin{aligned} \begin{array}{rcl} \mbox{sensitivity of avg. over stages} &\displaystyle =&\displaystyle \left( {\mathbf{I}}_p \otimes {\mathbf{b}}_s^{\mbox{\textsf{ T}}} \right) {d \mathbb{N} \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} {} \end{array} \end{aligned} $$
(8.55)
$$\displaystyle \begin{aligned} \begin{array}{rcl} \mbox{sensitivity of avg. over seasons} &\displaystyle =&\displaystyle \left( {\mathbf{b}}_p^{\mbox{\textsf{ T}}} \otimes {\mathbf{I}}_s \right) {d \mathbb{N} \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} {} \end{array} \end{aligned} $$
(8.56)
$$\displaystyle \begin{aligned} \begin{array}{rcl} \mbox{sensitivity of avg. over both} &\displaystyle =&\displaystyle \left( {\mathbf{b}}_p^{\mbox{\textsf{ T}}} \otimes {\mathbf{b}}_s^{\mbox{\textsf{ T}}} \right) {d \mathbb{N} \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \end{array} \end{aligned} $$
(8.57)

Annual k-cycle

When the dynamics produce a k-cycle on the annual time scale, averages can be calculated over any desired combination of stages, seasons, and years. Table 8.2 gives the resulting expressions for the averages. As in the case of equations (8.55) and (8.56), the sensitivities of these averages to parameters are obtained by applying the same weights to \(d \mathbb {N} / d \boldsymbol {\theta }^{\mbox{\textsf { T}}}\).

Table 8.2 Calculation of averages of attractors of nonlinear periodic matrix population models. The upper half of the table shows averages over stages and over seasons when the dynamics are a fixed point on the inter-annual time scale, and thus a p-cycle on the seasonal time scale. The lower half of the table shows averages over all combinations of stages, seasons, and years, when the dynamics are a k-cycle on the inter-annual time scale, and thus a kp-cycle on the seasonal time scale

4.2 A Nonlinear Example

As an example of the calculations for nonlinear systems, imagine an organism with two stages: immature juveniles and reproducing adults. Suppose that the year contains two seasons: a benign, reproduction-heavy Season 1 and a harsh, mortality-heavy Season 2. The life cycle graph is shown in Fig. 8.2. Adults in Season 1 all survive to Season 2 and give birth to new juveniles with per-capita fertility f, which depends on adult density in Season 1 according to \(f[{\mathbf {n}}_1] = a e ^{-b n_2}\), where a and b are the maximum fertility and the strength of density-dependence, respectively, and n 2 is the adult density in Season 1. In the harsher Season 2, juveniles and adults survive with probabilities s j and s a. A juvenile that survives to Season 1 matures into an adult.

Fig. 8.2
figure 2

A periodic life cycle graph for a simple two-stage, two-season nonlinear model. J and A denote juveniles and adults, respectively

This life cycle produces seasonal transition matrices B 1 and B 2:

$$\displaystyle \begin{aligned} \begin{array}{rcl} {\mathbf{B}}_1[{\mathbf{n}}_1] &=& \left(\begin{array}{cc} 0 & f[{\mathbf{n}}_1] \\ 0 & 1 \\ \end{array}\right) \end{array} \end{aligned} $$
(8.58)
$$\displaystyle \begin{aligned} \begin{array}{rcl} {\mathbf{B}}_{2} &=& \left(\begin{array}{cc} 0 & 0 \\ s_j & s_a \\ \end{array}\right) \end{array} \end{aligned} $$
(8.59)

and the nonlinear periodic model

$$\displaystyle \begin{aligned} \begin{array}{rcl} {\mathbf{n}}_1(t+1) &\displaystyle =&\displaystyle {\mathbf{B}}_2 {\mathbf{n}}_2(t) \\ {} {\mathbf{n}}_2(t) &\displaystyle =&\displaystyle {\mathbf{B}}_1 \left[ {\mathbf{n}}_1(t) \right] {\mathbf{n}}_1(t) {} \end{array} \end{aligned} $$
(8.60)

Figure 8.3 is a bifurcation diagram for the system (8.60) in response to changes in adult survival s a. When adults are long-lived (s a ≳ 0.22) there is a 2-cycle on the seasonal scale, corresponding to a fixed point on the annual time scale, satisfying

$$\displaystyle \begin{aligned} \begin{array}{rcl} \hat{\mathbf{n}}_1 &\displaystyle =&\displaystyle {\mathbf{B}}_2 \hat{\mathbf{n}}_2 \end{array} \end{aligned} $$
(8.61)
$$\displaystyle \begin{aligned} \begin{array}{rcl} \hat{\mathbf{n}}_2 &\displaystyle =&\displaystyle {\mathbf{B}}_1[\hat{\mathbf{n}}_1] \hat{\mathbf{n}}_1 \end{array} \end{aligned} $$
(8.62)

At s a ≈ 0.22 this 2-cycle bifurcates to a 4-cycle on the seasonal time scale, corresponding to a 2-cycle on the annual scale.

Fig. 8.3
figure 3

A bifurcation diagram on the seasonal time scale for the two-season, two-stage model of Fig. 8.2. Total densities are plotted for Season 1 (•) and 2 (+ ). Parameters: a = 20, b = 1, s j = 0.5; s a varied from 0 to 1

To derive the block matrices \(\mathbb {C}\) and \(\mathbb {D}\) in Eqs. (8.49) and (8.50), define the parameter vector as

$$\displaystyle \begin{aligned} \boldsymbol{\theta} = \left(\begin{array}{cccc} s_j & s_a & a & b \end{array}\right)^{\mbox{\textsf{ T}}} . \end{aligned} $$
(8.63)

The derivative matrices are

$$\displaystyle \begin{aligned} \begin{array}{rcl} {d \mbox{vec} \, {\mathbf{B}}_1 \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} &=& \left(\begin{array}{cccc} 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 \\ 0 & 0 & e^{-b \hat n_2} & -a \hat n_2 e^{-b \hat n_2} \\ 0 & 0 & 0 & 0 \end{array}\right) \end{array} \end{aligned} $$
(8.64)
$$\displaystyle \begin{aligned} \begin{array}{rcl} {d \mbox{vec} \, {\mathbf{B}}_2 \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} &=& \left(\begin{array}{cccc} 0 & 0 & 0 & 0 \\ 1 & 0 & 0 & 0\\ 0 & 0 & 0 & 0\\ 0 & 1 & 0 & 0 \end{array}\right) \end{array} \end{aligned} $$
(8.65)
$$\displaystyle \begin{aligned} \begin{array}{rcl} {d \mbox{vec} \, {\mathbf{B}}_1 \over d {\mathbf{n}}^{\mbox{\textsf{ T}}}} &=& \left(\begin{array}{cc} 0 & 0 \\ 0 & 0 \\ 0 & -ab e^{-b \hat n_2} \\ 0 & 0 \end{array}\right) \end{array} \end{aligned} $$
(8.66)
$$\displaystyle \begin{aligned} \begin{array}{rcl} {d \mbox{vec} \, {\mathbf{B}}_2 \over d {\mathbf{n}}^{\mbox{\textsf{ T}}}} &=& \mathbf{0} \qquad \mbox{(dimension }4 \times 2) \end{array} \end{aligned} $$
(8.67)

We calculate the sensitivities of the equilibrium population at each phase of the cycle using Eq. (8.46) with s a = 0.4 (a 2-cycle on the seasonal time scale; see Fig. 8.3) and with s a = 0.1 (a 4-cycle on the seasonal time scale). The results, and the sensitivities of several averages, are shown in Fig. 8.4.

Fig. 8.4
figure 4

Sensitivities of equilibrium total population size in Seasons 1 and 2, as well as the annual population average, to the demographic parameters s j, s a, a, and b. Left: sensitivities when s a = 0.4 (seasonal 2-cycle, annual equilibrium). Right: sensitivities when s j = 0.1 (seasonal 4-cycle, annual 2-cycle)

At the seasonal 2-cycle (annual fixed point), increases in s j or s a increase density in Season 1 and reduce density in Season 2, and have little effect on the density averaged over seasons. The maximum fertility level a has little effect at either season, and the density-dependent parameter b has large negative effects throughout.

At the 4-point seasonal cycle (2-cycle on the annual time scale), the patterns are more complicated. We describe them in terms of the kp = 4 seasons in the cycle. The maximum fertility a has little effect at any point. The survival probabilities s j and s a have effects that are opposite in sign: an increase in s j increases the density in seasons 1 and 4, and reduces it in seasons 2 and 3. An increase in s a has the opposite effect. Averaged over years, both s a and s j increase density in season 1 and reduce it in season 2, thus increasing the amplitude of the oscillation. Averaged over seasons, s a and s j have opposite effects. When averaged over stages, seasons, and years, the effects of s a cancel each other out, and only s j and b have appreciable effects.

Even in this simple example, it is clear that parameter changes can have effects that differ among seasons and years. A set of Matlab scripts to carry out these calculations appears in an online supplement to Caswell and Shyu (2012).

5 LTRE Decomposition Analysis

The LTRE decomposition analysis introduced in Sects. 2.9 and 4.5 can be extended to obtain the contributions, to any given outcome, of differences in parameters at each phase of the cycle.

Suppose that ξ is a m × 1 dependent variable (scalar or vector-valued), a function of a parameter vector θ that takes on values θ 1, …, θ p over the cycle. Use superscripts to denote two conditions,Footnote 3 which produce results ξ (1) and ξ (2):

$$\displaystyle \begin{aligned} \begin{array}{rcl} \boldsymbol{\theta}_1^{(1)}, \ldots, \boldsymbol{\theta}_p^{(1)} &\displaystyle \rightarrow&\displaystyle \boldsymbol{\xi}^{(1)} \end{array} \end{aligned} $$
(8.68)
$$\displaystyle \begin{aligned} \begin{array}{rcl} \boldsymbol{\theta}_1^{(2)}, \ldots, \boldsymbol{\theta}_p^{(2)} &\displaystyle \rightarrow&\displaystyle \boldsymbol{\xi}^{(2)}\vspace{-3pt} \end{array} \end{aligned} $$
(8.69)

To first order, the effect on ξ is

$$\displaystyle \begin{aligned} \boldsymbol{\xi}^{(2)} - \boldsymbol{\xi}^{(1)} \approx \sum_{k=1}^p {d \boldsymbol{\xi} \over d \boldsymbol{\theta}_k^{\mbox{\textsf{ T}}}} \left( \boldsymbol{\theta}_k^{(2)} - \boldsymbol{\theta}_k^{(1)} \right)\vspace{-3pt} {} \end{aligned} $$
(8.70)

The kth term in the summation in (8.70) is the total contribution, over all of the parameters in θ, of parameter differences in phase k of the cycle.

Define R k as a m × p contribution matrix whose entries are the contributions of parameter θ j in phase k to the effects on outcome variable ξ i. Then

$$\displaystyle \begin{aligned} {\mathbf{R}}_k = {d \boldsymbol{\xi} \over d \boldsymbol{\theta}_k^{\mbox{\textsf{ T}}}}\, \mathcal{D}\, \left( \boldsymbol{\theta}_k^{(2)} - \boldsymbol{\theta}_k^{(1)} \right) {} \end{aligned} $$
(8.71)

where the derivative is evaluated at the average of θ (1) and θ (2). These contributions are a decomposition of the approximate effect in (8.70),

$$\displaystyle \begin{aligned} \boldsymbol{\xi}^{(2)} - \boldsymbol{\xi}^{(1)} \approx \sum_{k=1}^p {\mathbf{R}}_k {\mathbf{1}}_p \end{aligned} $$
(8.72)

The contribution matrix (8.71) requires \(d \boldsymbol {\xi } / d \boldsymbol {\theta }_k^{\mbox{\textsf { T}}}\), that is, the derivative of ξ to the parameter at phase k of the cycle. In the linear model (8.2), this is given by the kth term in the summation in (8.11). In the case of the nonlinear model (8.36), the derivative is obtained from Eq. (8.46) by setting all blocks of \(\mathbb {D}\), except those corresponding to phase k, to zero.

6 Discussion

The distinguishing feature of periodic models is that the dynamics over a projection interval are given by a periodic product of matrices. The periodic product may reflect the existence of multiple timescales (e.g., seasonal and annual), or the operation of multiple processes (e.g., demography and harvest), or express conditional probabilities, or arise from classifying individuals by multiple criteria. The sensitivity analysis of periodic models must account for the chain of causation (Fig. 8.1) from demographic parameters at each phase in the cycle to the corresponding projection matrices, and thence to the periodic matrix product over the whole cycle, and finally to demographic outcome ξ. Matrix calculus makes this easy to do, starting with a simple chain rule expression (see Eq. (8.5)) and then using an appropriate version of (8.9) to calculate the derivative dvec Ad θ T.