1 Introduction

Short-term, transient population dynamics can differ in important ways from long-term asymptotic dynamics. Just as perturbation analysis (sensitivity and elasticity) of the asymptotic growth rate reveals the effects of the vital rates on long-term growth (Chap. 3), the perturbation analysis of transient dynamics can reveal the determinants of short-term patterns. This chapter presents a comprehensive approach to transient sensitivity analysis that applies to linear time-invariant, time-varying, subsidized, stochastic, nonlinear, and spatial models.

In a constant environment, once a population converges to its stable stage structure, it grows exponentially at a constant rate λ. However, depending on initial conditions, short-term transient dynamics can differ from the asymptotic dynamics. It has long been recognized that a focus on λ alone can obscure these important transient effects (e.g., Lotka 1939; Coale 1972). There have been attempts to develop transient sensitivity analyses using all the eigenvalues of the projection matrix (Fox and Gurevitch 2000), but these are complicated to calculate and limited in application. Matrix calculus allows us to do better (Caswell 2007).

2 Time-Invariant Models

Armed with matrix calculus, consider the linear time-invariant model,

$$\displaystyle \begin{aligned} \mathbf{n}(t+1) = \mathbf{A} \mathbf{n}(t) \qquad \mathbf{n}(0) = {\mathbf{n}}_0. {} \end{aligned} $$
(7.1)

Where n is s × 1 and A is s × s; s the number of stages. Assume that A = A[θ] depends on a p × 1 vector of parameters θ, which could be entries of A, lower-level parameters, or elements of the initial vector.

The sequence of matrices

$$\displaystyle \begin{aligned} {d \mathbf{n}(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \qquad t=1,2,\ldots {} \end{aligned} $$
(7.2)

gives the effect of all the parameters on all the entries of n(t). From it we can calculate the sensitivities and elasticities of other dependent variables (Sect. 7.3).

We differentiate the model (7.1), obtaining

$$\displaystyle \begin{aligned} d \mathbf{n}(t+1) = \mathbf{A} \; d \mathbf{n}(t) + \left( d \mathbf{A} \right) \mathbf{n}(t), \end{aligned} $$
(7.3)

and then apply the vec operator to both sides, remembering that since n is a vector, vec n = n,

$$\displaystyle \begin{aligned} d \mathbf{n}(t+1) = \mathbf{A} d \mathbf{n}(t) + \left( {\mathbf{n}}^{\mbox{\textsf{ T}}} (t) \otimes {\mathbf{I}}_s \right) d \mbox{vec} \, \mathbf{A}. {} \end{aligned} $$
(7.4)

Then the first identification theorem and the chain rule, from Eqs. (2.47) and (2.18), give the sensitivity of n(t + 1) to the elements of A,

$$\displaystyle \begin{aligned} {d \mathbf{n}(t+1) \over d \mbox{vec} \,^{\mbox{\textsf{ T}}} \mathbf{A}} = \mathbf{A} {d \mathbf{n}(t) \over d \mbox{vec} \,^{\mbox{\textsf{ T}}} \mathbf{A}} + \left( {\mathbf{n}}^{\mbox{\textsf{ T}}} (t) \otimes {\mathbf{I}}_s \right).\vspace{-3pt} {} \end{aligned} $$
(7.5)

The chain rule extends (7.5) to give the sensitivity to lower-level parameters,

$$\displaystyle \begin{aligned} \begin{array}{rcl} {d \mathbf{n}(t+1) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} &\displaystyle =&\displaystyle {d \mathbf{n}(t+1) \over d \mbox{vec} \,^{\mbox{\textsf{ T}}} \mathbf{A}} {d \mbox{vec} \, \mathbf{A} \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \\ {} &\displaystyle =&\displaystyle \mathbf{A} {d \mathbf{n}(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} + \left( {\mathbf{n}}^{\mbox{\textsf{ T}}} (t) \otimes {\mathbf{I}}_s \right) {d \mbox{vec} \, \mathbf{A} \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}}. {}\vspace{-3pt} \end{array} \end{aligned} $$
(7.6)

Equations (7.5) and (7.6) are matrix difference equations in the sensitivities of n(t) to the elements of vec A or of θ. If we know d n(t)∕d θ T and n(t), we can calculate d n(t + 1)∕d θ T and n(t + 1) and continue this iteration to obtain the transient sensitivities at any time. If the parameters in θ affect the vital rates but not the initial population, the appropriate initial condition for this iteration is

$$\displaystyle \begin{aligned} {d \mathbf{n}(0) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = {\mathbf{0}}_{s \times p}. \end{aligned} $$
(7.7)

If θ affects only the initial population, then

$$\displaystyle \begin{aligned} {d \mathbf{n}(0) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = {\mathbf{I}}_s\end{aligned} $$
(7.8)

gives the sensitivity of transient dynamics to a change in initial conditions.

3 Sensitivity of What? Choosing Dependent Variables

The sensitivity of other dependent variables may be more interesting than that of n(t). In an early (and relatively crude) transient analysis, Caswell and Werner (1978) analyzed the transient dynamics of the plant teasel (Dipsacus sylvestris) in terms of rosette area at time t (which might affect resistance to invasion by later successional species) and cumulative seed production up to time t (which might affect colonization of new sites). For a weedy species like teasel, either of these dependent variables might be more relevant than the asymptotic growth rate.

Here are some other biologically interesting dependent variables. They are easy to calculate from d n(t)∕d θ T.

  1. 1.

    Population density, as measured by a weighted sum of stage densities. Let c ≥ 0 be a weight vector. Then population density is N(t) = c Tn(t). This includes total density (c = 1 s, a vector of ones), the density of a subset of stages (c i = 1 for stages to be counted; c i = 0 otherwise), biomass (c i is the biomass of stage i), basal area, metabolic rate, etc. The sensitivity of N(t) is

    $$\displaystyle \begin{aligned} {d N(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = {\mathbf{c}}^{\mbox{\textsf{ T}}} {d \mathbf{n}(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}}. {} \end{aligned} $$
    (7.9)
  2. 2.

    Ratios measuring the relative abundances of different stages:

    $$\displaystyle \begin{aligned} R(t) = \frac{{\mathbf{a}}^{\mbox{\textsf{ T}}} \mathbf{n}(t)}{{\mathbf{b}}^{\mbox{\textsf{ T}}} \mathbf{n}(t)}. \end{aligned} $$
    (7.10)

    where a and b are weight vectors. Examples include the dependency ratio (in human demography, the ratio of the individuals below 15 or above 65 to those between 15 and 65), the sex ratio in a two-sex model, and the ratio of juveniles to adults, which is important in wildlife management (Williams et al. 2002; Skalski et al. 2005). The sensitivity of R(t) is

    $$\displaystyle \begin{aligned} {d R(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = \left( \frac{{\mathbf{b}}^{\mbox{\textsf{ T}}} \mathbf{n}(t) {\mathbf{a}}^{\mbox{\textsf{ T}}} - \mathbf{ a}^{\mbox{\textsf{ T}}} \mathbf{n}(t) {\mathbf{b}}^{\mbox{\textsf{ T}}}}{\left( {\mathbf{b}}^{\mbox{\textsf{ T}}} \mathbf{n}(t) \right)^2} \right) {d \mathbf{n}(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}}. \end{aligned} $$
    (7.11)
  3. 3.

    Cumulative density up to a specified time,

    $$\displaystyle \begin{aligned} C(t) = \sum_{i=0}^t {\mathbf{c}}^{\mbox{\textsf{ T}}} \mathbf{n}(i), {} \end{aligned} $$
    (7.12)

    the sensitivity of which is

    $$\displaystyle \begin{aligned} {d C(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = {\mathbf{c}}^{\mbox{\textsf{ T}}} \sum_{i=0}^t {d \mathbf{n}(i) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}}. {} \end{aligned} $$
    (7.13)
  4. 4.

    Average density over an interval,

    $$\displaystyle \begin{aligned} \bar N(t_1,t_2) = \frac{1}{t_2-t_1} \sum_{i=t_1}^{t_2} N(i), \end{aligned} $$
    (7.14)

    the sensitivity of which is

    $$\displaystyle \begin{aligned} {d \bar N(t_1,t_2) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = \frac{1}{t_2-t_1} \sum_{i=t_1}^{t_2} {\mathbf{c}}^{\mbox{\textsf{ T}}} {d \mathbf{n}(i) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}}. \end{aligned} $$
    (7.15)
  5. 5.

    Maximum (or minimum) density over an interval,

    $$\displaystyle \begin{aligned} M(t_1,t_2)= \max_{t_1 \le i \le t_2} N(i). \end{aligned} $$
    (7.16)

    Let \(\tilde t\) be the time such that \(M(t_1,t_2) = N(\tilde t)\). Then, except in the unlikely event of ties,

    $$\displaystyle \begin{aligned} {d M(t_1,t_2) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = {\mathbf{c}}^{\mbox{\textsf{ T}}} {d \mathbf{n}(\tilde t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} {} \end{aligned} $$
    (7.17)

    with a similar expression for the minimum.

  6. 6.

    Variance in density over an interval t 1 ≤ t ≤ t 2,

    $$\displaystyle \begin{aligned} V(t_1,t_2) = \frac{1}{t_2 - t_1} \sum_{i=t_1}^{t_2} N^2(i) - \left[ \bar N(t_1,t_2) \right]^2. \end{aligned} $$
    (7.18)

    The sensitivity of V  is

    $$\displaystyle \begin{aligned} \begin{array}{rcl} {d V(t_1,t_2) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} &\displaystyle =&\displaystyle \frac{2}{t_2 - t_1} \left[ \sum_{i=t_1}^{t_2} N(i) {d N(i) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} - \bar N(t_1,t_2)\sum_{i=t_1}^{t_2} {d N(i) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \right] \end{array} \end{aligned} $$
    (7.19)
    $$\displaystyle \begin{aligned} \begin{array}{rcl} &\displaystyle =&\displaystyle \frac{2}{t_2 - t_1} \left[ \sum_{i=t_1}^{t_2} \left( \rule{0in}{3ex} N(i) - \bar N(t_1,t_2) \right) {d N(i) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \right]. \end{array} \end{aligned} $$
    (7.20)
  7. 7.

    The transient population growth rate at time t,

    $$\displaystyle \begin{aligned} r(t) = \log \frac{N(t+1)}{N(t)}. \end{aligned} $$
    (7.21)

    The sensitivity of r is

    $$\displaystyle \begin{aligned} {d r(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = \frac{{\mathbf{c}}^{\mbox{\textsf{ T}}}}{N(t+1)} {d \mathbf{n}(t+1) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} - \frac{{\mathbf{c}}^{\mbox{\textsf{ T}}}}{N(t)} {d \mathbf{n}(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}}. \end{aligned} $$
    (7.22)
  8. 8.

    Average growth rate over an interval t 1 ≤ t ≤ t 2,

    $$\displaystyle \begin{aligned} \bar r(t_1,t_2) = \frac{1}{t_2-t_1} \log \frac{N(t_2)}{N(t_1)}, \end{aligned} $$
    (7.23)

    the sensitivity of which is

    $$\displaystyle \begin{aligned} {d \bar r(t_1,t_2) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = \frac{1}{t_2-t_1}\left( \frac{{\mathbf{c}}^{\mbox{\textsf{ T}}}}{N(t_2)} {d \mathbf{n}(t_2) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} - \frac{{\mathbf{c}}^{\mbox{\textsf{ T}}}}{N(t_1)} {d \mathbf{n}(t_1) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \right). {} \end{aligned} $$
    (7.24)

4 Elasticity Analysis

Transient elasticities are easily calculated from the sensitivities. The elasticity of n i(t) to θ j is

$$\displaystyle \begin{aligned} {\epsilon n_i \over \epsilon \theta_j} = \frac{\theta_j}{n_i(t)} {d n_i(t) \over d \theta_j}. \end{aligned} $$
(7.25)

Creating a matrix of these elasticities requires multiplying column j of d nd θ T by θ j and dividing row i by n i. This is just

$$\displaystyle \begin{aligned} \mathcal{D}\, \left[\mathbf{n}(t)\right]^{-1} \; {d \mathbf{n}(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \; \mathcal{D}\, [\boldsymbol{\theta}], {} \end{aligned} $$
(7.26)

where \(\mathcal {D}\, [\mathbf {x}]\) is a matrix with x on the diagonal and zeros elsewhere. The elasticity of any other (scalar- or vector-valued) dependent variable f(n(t)) is given by

$$\displaystyle \begin{aligned} \mathcal{D}\, \left[ \rule{0in}{2.5ex} f(\mathbf{n}(t))\right]^{-1} \; {d f(\mathbf{n}(t)) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \; \mathcal{D}\, [\boldsymbol{\theta}]. {} \end{aligned} $$
(7.27)

Example: A transient outbreak: elasticity to lower-level parameters

Consider a hypothetical size-classified population with

$$\displaystyle \begin{aligned} \mathbf{A}= \left(\begin{array}{cccc} 0.3763 & 0 & 0.8431 & 8.4312 \\ 0.1939 & 0.5421 & 0 & 0 \\ 0 & 0.1177 & 0.5240 & 0 \\ 0 & 0 & 0.1291 & 0.5254 \end{array}\right). {} \end{aligned} $$
(7.28)

The asymptotic growth rate calculated as the dominant eigenvalue of A is λ = 0.92, so the population is headed for eventual decline. However, the initial condition

$$\displaystyle \begin{aligned} {\mathbf{n}}_0 = \left(\begin{array}{cccc} 0 & 0 & 0 & 1 \end{array}\right)^{\mbox{\textsf{ T}}} \end{aligned} $$
(7.29)

(introduction of a large adult) produces a dramatic transient outbreak (Fig. 7.1), during which total population increases by over 900% and remains above its initial value for about 25 years.Footnote 1

Fig. 7.1
figure 1

Dynamics of a transient population outbreak. The projection matrix (7.28) has λ = 0.92, but an initial condition of a single adult leads to a rapid outbreak that lasts for over 25 years

If this was a pest its asymptotic fate (extinction) would be reassuring, but λ would reveal nothing about the transient outbreak. A manager might want to know how changes in the lower-level survival probabilities σ i, growth probabilities γ i, and fertilities f i would affect the outbreak, where the elements of A are

$$\displaystyle \begin{aligned} \begin{array}{rclcl} a_{ii} &=& \sigma_i (1-\gamma_i) & \quad & i=1,\ldots,4\\ a_{i+1,i} &=& \sigma_i \gamma_i & \quad & i=1,\ldots,3 \\ a_{1i} &=& f_i &\quad & i=3,4. \end{array} {} \end{aligned} $$
(7.30)

If the impact of the pest was related to size, the manager might measure population density with weights, say \({\mathbf {c}}^{\mbox{\textsf { T}}} = \left (\begin {array}{cccc} 1&2&3&4 \end {array}\right )\). Two measures of damage might be the maximum of the outbreak and the cumulative population size over the entire outbreak. Finally, to put everything on a proportional basis, the manager might want to use elasticities.

Define θ as the 9 × 1 vector whose entries are σ 1σ 4, γ 1γ 3, and f 3f 4. The derivatives dvec Ad θ T are obtained from (7.30). The sensitivity of n(t) to changes in θ is given by (7.6). Using (7.9) and (7.27) we obtain the elasticity of N(t) to θ as

$$\displaystyle \begin{aligned} {\epsilon N(t) \over \epsilon \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = \frac{1}{N(t)} \; {\mathbf{c}}^{\mbox{\textsf{ T}}} {d \mathbf{n}(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \; \mathcal{D}\,(\boldsymbol{\theta}). \end{aligned} $$
(7.31)

The peak of the outbreak occurs at t = 2; thus (7.17) gives the elasticity of the peak density to θ as

$$\displaystyle \begin{aligned} {\epsilon N(2) \over \epsilon \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} =\frac{1}{N(2)} \; c^{\mbox{\textsf{ T}}} {d \mathbf{n}(2) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \; \mathcal{D}\,(\boldsymbol{\theta}). \end{aligned} $$
(7.32)

The cumulative density up to time t is given by (7.12) and the sensitivity by (7.13), so the elasticity is

$$\displaystyle \begin{aligned} \frac{1}{{\mathbf{c}}^{\mbox{\textsf{ T}}} \sum_0^t \mathbf{n}(t)} \; {\mathbf{c}}^{\mbox{\textsf{ T}}} \sum_{i=0}^t {d \mathbf{n}(i) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \; \mathcal{D}\,(\boldsymbol{\theta}). \end{aligned} $$
(7.33)

Results are shown in Fig. 7.2. The elasticities of the maximum outbreak density are very different from those of λ. The elasticity of the cumulative density over the first 5 years has a similar pattern, also very different from that of λ. However, by the end of the outbreak (25 years) the elasticity of cumulative density is quite similar to that of λ, so management over this time scale could reasonably rely on the elasticity of λ to compare control tactics. Intermediate steps and Matlab code are found in an appendix to Caswell (2007).

Fig. 7.2
figure 2

The elasticities of the maximum population density, of the cumulative densities up to t = 5 and t = 25, and of λ to the lower-level demographic parameters, for the outbreak shown in Fig. 7.1

5 Sensitivity of Time-Varying Models

Now consider the time-varying model

$$\displaystyle \begin{aligned} \mathbf{n}(t+1) = {\mathbf{A}}_t \mathbf{n}(t) \qquad \mathbf{n}(0) = {\mathbf{n}}_0, {} \end{aligned} $$
(7.34)

where A t, t = 1, …, T is a specified sequence of matrices.

Take the differential of both sides of (7.34)

$$\displaystyle \begin{aligned} d \mathbf{n}(t+1) = {\mathbf{A}}_t d \mathbf{n}(t) + \left( d {\mathbf{A}}_t \right) \mathbf{n}(t), \end{aligned} $$
(7.35)

and apply the vec operator to obtain

$$\displaystyle \begin{aligned} d \mathbf{n}(t+1) = {\mathbf{A}}_t d \mathbf{n}(t) + \left( {\mathbf{n}}^{\mbox{\textsf{ T}}} (t) \otimes {\mathbf{I}}_s \right)\left( d \mbox{vec} \, {\mathbf{A}}_t \right). {} \end{aligned} $$
(7.36)

Not only the transient behavior of the population, but also the parameter vector θ, the matrix A t, and the perturbation applied to θ may change over time. The sensitivity analysis must reflect both types of variation. So, let us treat A t as a function of θ(t), and consider a perturbation of θ at some time u. Applying the chain rule to (7.36), we obtain

$$\displaystyle \begin{aligned} {d \mathbf{n}(t+1) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)} = {\mathbf{A}}_t {d \mathbf{n}(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)} + \left( {\mathbf{n}}^{\mbox{\textsf{ T}}} (t) \otimes {\mathbf{I}}_s \right) {d \mbox{vec} \, {\mathbf{A}}_t \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)} {} \end{aligned} $$
(7.37)

which has the same form as (7.6) except that the matrix and the matrix derivative vary over time.

Some useful simplifications follow from this formulation.

  1. 1.

    Perturbation of matrix elements. If θ(t) consists of the elements of vec A t, then

    $$\displaystyle \begin{aligned} {d \mbox{vec} \, {\mathbf{A}}_t \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}} (t)} = {\mathbf{I}}_{s^2} \end{aligned} $$
    (7.38)

    and can be eliminated from the expressions where it appears.

  2. 2.

    No time travel. Suppose that θ(t) is perturbed at some time t = u. Then

    $$\displaystyle \begin{aligned} {d \mbox{vec} \, {\mathbf{A}}_t \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}} (u)} = {\mathbf{0}}_{s^2 \times p} \qquad \mbox{for }t < u\end{aligned} $$
    (7.39)

    However, the effects of the perturbation continue after t = u, so that d n(t)∕d θ T(u) will generally be non-zero for t > u.

  3. 3.

    Perturbations at every time. A permanent modification of the parameters can be considered a perturbation of θ(t) for every time t = 0, 1, …, so that

    $$\displaystyle \begin{aligned} \boldsymbol{\theta}(t) \longrightarrow \boldsymbol{\theta}(t) + d \boldsymbol{\theta}. \end{aligned} $$
    (7.40)

    The sensitivity of the population vector is then

    $$\displaystyle \begin{aligned} {d \mathbf{n}(t+1) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = {\mathbf{A}}_t {d \mathbf{n}(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} + \left( {\mathbf{n}}^{\mbox{\textsf{ T}}} (t) \otimes {\mathbf{I}}_s \right) {d \mbox{vec} \, {\mathbf{A}}_t \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} {} \end{aligned} $$
    (7.41)
  4. 4.

    Perturbation over a range of times. One might be interested in perturbation over some time period T 1 ≤ t ≤ T 2. The effect of such a perturbation on transient dynamics is

    $$\displaystyle \begin{aligned} {d \mathbf{n}(t+1) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)} = {\mathbf{A}}_t {d \mathbf{n}(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)} + \left( {\mathbf{n}}^{\mbox{\textsf{ T}}} (t) \otimes {\mathbf{I}}_s \right) J(t) {d \mbox{vec} \, {\mathbf{A}}_t \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)} {} \end{aligned} $$
    (7.42)

    where J(t) is an indicator variable

    $$\displaystyle \begin{aligned} J(t) = \left\{ \begin{array}{ll} 1 & T_1 \le t \le T_2 \\ 0 & \mbox{otherwise} \end{array} \right. \end{aligned} $$
    (7.43)

These calculations have been extended to apply to population projections (Caswell and Sanchez Gassen 2015; Sanchez Gassen and Caswell 2018); see Sect. 7.8 below.

6 Sensitivity of Subsidized Populations

An interesting special case of time-varying models is that of subsidized populations (e.g., Pascual and Caswell 1991), (which receive an input of individualsFootnote 2

$$\displaystyle \begin{aligned} \mathbf{n}(t+1) = {\mathbf{A}}_t \mathbf{n}(t) + \mathbf{b}(t).\end{aligned} $$
(7.44)

The subsidy vector b(t) might represent immigration, or the introduction of individual animals from a captive release program, or dispersal of the larvae of marine invertebrates or the seeds of plants. If b(t) < 0, then it could represent the removal or harvest of individuals from the population (e.g., Hauser et al. 2006).Footnote 3

Differentiating gives:

$$\displaystyle \begin{aligned} {d \mathbf{n}(t+1) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = {\mathbf{A}}_t {d \mathbf{n}(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} + \left( \mathbf{ n}^{\mbox{\textsf{ T}}}(t) \otimes {\mathbf{I}}_s \right) {d \mbox{vec} \, {\mathbf{A}}_t \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} + {d \mathbf{b}(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}}. {} \end{aligned} $$
(7.45)

If θ affects only the vital rates and not the subsidy process, then d n(t)∕θ T reduces to (7.37), and subsidy affects the sensitivity only through its effect on (n T(t) ⊗I s). On the other hand, setting θ = b gives the effect of changes in the subsidy process:

$$\displaystyle \begin{aligned} {d \mathbf{n}(t+1) \over d {\mathbf{b}}^{\mbox{\textsf{ T}}}} = {\mathbf{A}}_t {d \mathbf{n}(t) \over d {\mathbf{b}}^{\mbox{\textsf{ T}}}} + {\mathbf{I}}_s. \end{aligned} $$
(7.46)

Example: A subsidized model for the reintroduction of the Griffon vulture

The griffon vulture (Gyps fulvus) was once widely distributed in Europe, but has been eliminated from many areas, due primarily to poisoning and shooting. A reintroduction program has re-established a population in the Massif Central of southern France; Sarrazin and Legendre (2000) have analyzed this program. Reintroduction programs are increasingly important in conservation biology (Sarrazin and Barbault 1996; Snyder and Snyder 2000), and will become an important application of subsidized models. Transient dynamics are naturally critical for evaluating reintroduction programs, because the programs are of finite duration and are evaluated by short-term measures of success at, or shortly after, their conclusion.

In the case of the griffon vulture, birds can be introduced as juveniles or adults. Adults introduced from captivity have lower fertility and lower survival than wild adults. Here I use a simplification of the Sarrazin-Legendre model to show how transient sensitivity analysis could be used. The life cycle contains four age classes and a stage representing captive-reared adults (Fig. 7.3a). The survival of released adults is a fraction p of that of wild adults, and their fertility a fraction q of that of the wild adults. I assume these costs persist indefinitely; Sarrazin and Legendre (2000) explore both short- and long-term costs. Suppose that a manager is interested in the effects of the annual number b 1 of juveniles released, the number b 5 of adults released, and the relative survival p and relative fertility q of captive-reared adults.

Fig. 7.3
figure 3

(a) The life cycle graph and (b) the transient elasticity of stable equivalent population size N(t) = v Tn(t) to changes in juvenile introductions (b 1), adult introductions (b 5), adult survival costs (p), and adult fertility costs (q) for the Griffon vulture. Parameter values from Sarrazin and Legendre (2000); σ j = 0.86, σ a = 0.98, f = 0.33, p = 0.75, q = 0.51

One measure of success will be the population size at the end of the introduction program. The best such population, in terms of future population size, would be one with the highest total reproductive value, N = v Tn (also called the stable equivalent population; see Chapters 8–9 of Keyfitz and Caswell 2005). The elasticity of stable equivalent population sizeFootnote 4 is

$$\displaystyle \begin{aligned} {\epsilon N \over \epsilon \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = \frac{1}{{\mathbf{v}}^{\mbox{\textsf{ T}}} \mathbf{n}(t)} {\mathbf{v}}^{\mbox{\textsf{ T}}} {d \mathbf{n}(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \mathcal{D}\,(\boldsymbol{\theta}) \qquad t=1,\ldots,T \end{aligned} $$
(7.47)

where v is the reproductive value vector from A and \(\boldsymbol {\theta }^{\mbox{\textsf { T}}} = \left (\begin {array}{cccc} b_1 & b_5& p & q \end {array}\right )\).

Using parameter values in Sarrazin and Legendre (2000) and setting b 1 = b 5 (i.e., evaluating the value of juveniles and adults from a situation where they are introduced in equal numbers) gives the result in Fig. 7.3b, for an introduction program duration of up to 20 years.

It is always better to increase the number of juveniles relative to the number of adults introduced. The benefits of reducing survival and fertility costs (i.e., increasing p or q) increases with the duration of the program, as they have longer times available to operate. Reductions in the survival cost would have more impact than reductions in the fertility costs. These results are strongly influenced by the fact that the reproductive value of captive-reared adults is lower than that of newly fledged or released juveniles, which is reflected in the high elasticity of N(t) to juvenile releases.

7 Sensitivity of Nonlinear Models

In density- or frequency-dependent models, the vital rates depend on the parameters θ and current population density n(t):

$$\displaystyle \begin{aligned} \mathbf{n}(t+1) = \mathbf{A}[\boldsymbol{\theta}, \mathbf{n}(t) ]\; \mathbf{n}(t). {}\end{aligned} $$
(7.48)

Changes in θ affect dynamics directly, through A, and indirectly, through n(t). The transient sensitivity of n(t) to parameter changes must include both effects.

Differentiating both sides of (7.48) and applying the vec operator gives the familiar differential expression

$$\displaystyle \begin{aligned} d \mathbf{n}(t+1) = \mathbf{A} [\boldsymbol{\theta}, \mathbf{n}(t) ] d \mathbf{n}(t) + \left( {\mathbf{n}}^{\mbox{\textsf{ T}}} (t) \otimes {\mathbf{I}}_s \right) d \mbox{vec} \, \mathbf{A}[\boldsymbol{\theta},\mathbf{n}(t) ]. {} \end{aligned} $$
(7.49)

But now, unlike in the linear case, dvec A includes both direct effects through θ and indirect effects through n, so the total differential is

$$\displaystyle \begin{aligned} d \mbox{vec} \, \mathbf{A} = {\partial \mbox{vec} \, \mathbf{A} \over \partial \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} d \boldsymbol{\theta} + {\partial \mbox{vec} \, \mathbf{A} \over \partial {\mathbf{n}}^{\mbox{\textsf{ T}}}} {\partial \mathbf{n}(t) \over \partial \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} d \boldsymbol{\theta}. {} \end{aligned} $$
(7.50)

Substituting (7.50) into (7.49) gives

$$\displaystyle \begin{aligned} \begin{array}{rcl} {d \mathbf{n}(t+1) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} &\displaystyle =&\displaystyle \mathbf{A}[\boldsymbol{\theta}, \mathbf{n}(t) ] \; {d \mathbf{n}(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \\ {} &\displaystyle &\displaystyle + \left( {\mathbf{n}}^{\mbox{\textsf{ T}}} (t) \otimes {\mathbf{I}}_s \right) \; {\partial \mbox{vec} \, \mathbf{A}[\boldsymbol{\theta}, \mathbf{n}(t) ] \over \partial \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \\ {} &\displaystyle &\displaystyle + \left( {\mathbf{n}}^{\mbox{\textsf{ T}}} (t) \otimes {\mathbf{I}}_s \right) \; {\partial \mbox{vec} \, \mathbf{A}[\boldsymbol{\theta}, \mathbf{n}(t) ] \over \partial {\mathbf{n}}^{\mbox{\textsf{ T}}} (t)} \, {d \mathbf{n}(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}}. \end{array} \end{aligned} $$
(7.51)

The first two terms are familiar from the density-independent case; the third term accounts for the effects of θ on A through its effects on n(t). Rearranging terms gives the transient sensitivity,

$$\displaystyle \begin{aligned} \begin{array}{rcl} {d \mathbf{n}(t+1) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} &\displaystyle =&\displaystyle \left\{ \mathbf{A}[\boldsymbol{\theta}, \mathbf{n}(t) ] + \left( {\mathbf{n}}^{\mbox{\textsf{ T}}} (t) \otimes {\mathbf{I}}_s \right) {\partial \mbox{vec} \, \mathbf{A}[\boldsymbol{\theta}, \mathbf{n}(t) ] \over \partial {\mathbf{n}}^{\mbox{\textsf{ T}}} (t)} \right\} \; {d \mathbf{n}(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \\ {} &\displaystyle &\displaystyle + \left( {\mathbf{n}}^{\mbox{\textsf{ T}}} (t) \otimes {\mathbf{I}}_s \right) {\partial \mbox{vec} \, \mathbf{A}[\boldsymbol{\theta}, \mathbf{n}(t) ] \over \partial \boldsymbol{\theta}^{\mbox{\textsf{ T}}}}. {} \end{array} \end{aligned} $$
(7.52)

Example: Transient sensitivity of Tribolium

Flour beetles of the genus Tribolium have been used for a series of models of, and experiments on, nonlinear dynamics, reviewed by Cushing et al. (2003). Tribolium lives in stored flour. Adults and larvae cannibalize eggs, and adults cannibalize pupae; these interactions provide the density-dependence, and are captured in a three-stage (larvae, pupae, and adults) model, with

$$\displaystyle \begin{aligned} \mathbf{A}[\boldsymbol{\theta}, \mathbf{n}] = \left(\begin{array}{ccc} 0 & 0 & b \exp(-c_{el}n_1 - c_{ea}n_3) \\ 1-\mu_l & 0 & 0\\ 0 & \exp(-c_{pa}) n_3 & 1-\mu_a \end{array}\right) \end{aligned} $$
(7.53)

where b is the clutch size, c ea, c el, and c pa are cannibalism rates (of eggs by adults, eggs by larvae, and pupae by adults), and μ l and μ a are larval and adult mortalities. Parameter values from experiments reported by Costantino et al. (1997) give the transient dynamics in Fig. 7.4, following introduction of a single adult.

Fig. 7.4
figure 4

(a) The transient dynamics of the Tribolium model following introduction of a single adult. Parameters from Costantino et al. (1997). (b) The transient elasticity of the metabolic population size N m(t) to each of the parameters of the Tribolium model, for the first 20 time steps following the introduction of a single adult

The sensitivity of this transient behavior requires the derivatives of A[θ, n] to the parameters and to the densities. Substituting these derivatives into (7.52) gives the transient sensitivities by a simple iteration. The derivative matrices are given in an appendix to Caswell (2007).

Tribolium is a pest. The damage it causes might, I suppose, be related to its consumption, which might be measured by the metabolic rate. Emekci et al. (2001) estimated the per capita metabolic rate of larvae, pupae, and adults. Using their results, we define the metabolic population size as N m(t) = c Tn(t) where \({\mathbf {c}}^{\mbox{\textsf { T}}} = \left (\begin {array}{ccc} 9 & 1 & 4.5 \end {array}\right )\) μl CO2 h−1. The elasticities of N m(t) to the parameters are

$$\displaystyle \begin{aligned} {\epsilon N_m \over \epsilon \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} = \frac{1}{N_m(t)} \; {\mathbf{c}}^{\mbox{\textsf{ T}}} {d \mathbf{n}(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}} \; \mathcal{D}\,({\boldsymbol{\theta}}). \end{aligned} $$
(7.54)

for t = 1, …, 20.

The results are shown in Fig. 7.4. For the first 5 or so iterations, N m is more elastic to the clutch size than to the cannibalism or mortality rates. After that, the impact of b declines and the impact (negative) of the cannibalism coefficients increases. Beyond 10 time steps, N m is affected primarily by b (positively) and c ea(negatively). Changes in mortality (μ a and μ l) have only small effects. Such changes in the relative impact of the parameters over short periods of time are typical of transient sensitivities. Interestingly, the elasticities of total population size \(N_{\mathrm {tot}}=\sum n_i\) (not shown) show a similar pattern, but lack the period-2 fluctuation evident in Fig. 7.4. This reflects the interaction of the weighting pattern (much more uneven in the calculation of N m than N tot) and transient fluctuations in the stage distribution. Asymptotic sensitivity calculations are unaffected by such differences.

The parameter values used here lead to a stable equilibrium, but the transient calculations apply equally to other types of dynamics.

8 Sensitivity of Population Projections

The most common transient analyses of populations appear in the population projections provided by local, national, and international offices. These projections are usually carried out by the cohort component method, which uses mortality, fertility, and migration to describe the dynamics of each age×sex combination. The calculations are transient because the begin with the current, rather than an asymptotic, age-sex distribution and are carried out over a short time horizon (usually a few decades). In the first issue of the first volume of the then-new journal Demography, Nathan Keyfitz described the “population projection as a matrix operator” (Keyfitz 1964). He showed that population projections using the cohort component method could be written as matrix population models, and emphasized the value in doing so to focus attention on the mathematical structure of the projection, inviting deeper analyses of its properties with more powerful mathematical tools. Considering projections as matrix operators allows the use of matrix calculus methods to develop a thorough perturbation analysis of population projections (Caswell and Sanchez Gassen 2015; Sanchez Gassen and Caswell 2018).

To present the basics of projection sensitivity analysis, we begin with a simple one-sex model, but we focus most of our attention on a two-sex model that includes separate rates for males and females.

The single-sex projection can be written as

$$\displaystyle \begin{aligned} \mathbf{n}(t+1) = \mathbf{A}(t) \mathbf{n}(t) + \mathbf{b}(t) \qquad \mathbf{n}(0) = {\mathbf{n}}_0 {} \end{aligned} $$
(7.55)

where n(t) is a vector whose entries are the numbers of individuals in each age class or stage at time t, A(t) is a projection matrix incorporating the vital rates at time t, and b(t) is a vector giving the number of immigrants in each age class or stage at time t. The projection begins with a specified initial condition, denoted n 0, and is carried out until some target time T.

To develop a two-sex projection, we define population vectors n f and n m, and projection matrices A f and A m, for females and males, respectively. We assume that reproduction is female dominant,Footnote 5 so all fertility is attributed to females. We decompose the projection matrices for females and males into

$$\displaystyle \begin{aligned} \begin{array}{rcl} {\mathbf{A}}_f(t) &\displaystyle =&\displaystyle {\mathbf{U}}_f(t) + \phi \mathbf{F}(t) \end{array} \end{aligned} $$
(7.56)
$$\displaystyle \begin{aligned} \begin{array}{rcl} {\mathbf{A}}_m(t)&\displaystyle =&\displaystyle {\mathbf{U}}_m(t) \end{array} \end{aligned} $$
(7.57)

where U describes transitions and survival of extant individuals and F describes the production of new individuals by reproduction.

In an age-classified model, F will have effective fertilities (including infant and maternal survival as appropriate) on the first row and zeros elsewhere. A proportion ϕ of the offspring are female. This model attributes reproduction to females; hence there is no need to create separate fertility matrices for reproduction by males and females.

The male component of the population is projected by the survival matrix U m; the input of new individuals comes from the female population. The projection model becomes

$$\displaystyle \begin{aligned} \begin{array}{rcl} {\mathbf{n}}_f(t+1) &\displaystyle =&\displaystyle \left[ \rule{0in}{2.5ex} {\mathbf{U}}_f (t) + \phi \mathbf{F} (t) \right] {\mathbf{n}}_f(t) + {\mathbf{b}}_f(t) {} \end{array} \end{aligned} $$
(7.58)
$$\displaystyle \begin{aligned} \begin{array}{rcl} {\mathbf{n}}_m(t+1) &\displaystyle =&\displaystyle {\mathbf{U}}_m (t) {\mathbf{n}}_m(t) + (1-\phi) \mathbf{F} (t) {\mathbf{n}}_f(t) + {\mathbf{b}}_m(t) {} \end{array} \end{aligned} $$
(7.59)

The sensitivity of the two-sex projection is given by the two derivatives,

$$\displaystyle \begin{aligned} {d {\mathbf{n}}_f(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)} \quad \mbox{and} \quad {d {\mathbf{n}}_m(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)} \qquad t,u = 0,\ldots,T. \end{aligned}$$

These sensitivities are obtained from dynamic expressions, for the female population

$$\displaystyle \begin{aligned} \begin{array}{rcl} \underbrace{{d {\mathbf{n}}_f(t+1) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)}}_{\mbox{sensitivity at }t+1} &\displaystyle =&\displaystyle \underbrace{\left( \rule{0in}{2.5ex} {\mathbf{U}}_f(t) + \phi \mathbf{F}(t) \right) {d {\mathbf{n}}_f(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)} }_{\mbox{sensitivity at }t} + \underbrace{\left( {\mathbf{n}}_f^{\mbox{\textsf{ T}}} (t) \otimes {\mathbf{I}}_\omega \right) \left( \rule{0in}{2.5ex} {d \mbox{vec} \, {\mathbf{U}}_f(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)} + \phi{d \mbox{vec} \, \mathbf{F}(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)} \right)}_{\mbox{effects via female transitions and fertility} } \\ {} &\displaystyle &\displaystyle + \underbrace{ {d {\mathbf{b}}_f(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)} }_{\mbox{effects via immigration}} {} \end{array} \end{aligned} $$
(7.60)

and the male population

$$\displaystyle \begin{aligned} \begin{array}{rcl} \underbrace{{d {\mathbf{n}}_m(t+1) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)}}_{\mbox{sensitivity at }t+1 } &\displaystyle =&\displaystyle \underbrace{{\mathbf{U}}_m(t) {d {\mathbf{n}}_m(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)} + (1-\phi) \mathbf{F}(t) {d {\mathbf{n}}_f(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)}}_{\mbox{sensitivities at }t} + \underbrace{\left( {\mathbf{n}}_m^{\mbox{\textsf{ T}}} (t) \otimes {\mathbf{I}}_\omega \right) {d \mbox{vec} \, {\mathbf{U}}_m (t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)}}_{\mbox{effects via male transitions }} \\ {} &\displaystyle &\displaystyle + \underbrace{(1-\phi) \left( {\mathbf{n}}_f^{\mbox{\textsf{ T}}} (t) \otimes {\mathbf{I}}_\omega \right) {d \mbox{vec} \, \mathbf{F}(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)}}_{\mbox{effects via female fertility}} \;\; + \underbrace{{d {\mathbf{b}}_m(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)}}_{\mbox{effects via immigration }} {} \end{array} \end{aligned} $$
(7.61)

Equations (7.60) and (7.61) are iterated from initial conditions

$$\displaystyle \begin{aligned} {d {\mathbf{n}}_f(0) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)} = {d {\mathbf{n}}_m(0) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)} = {\mathbf{0}}_{\omega \times p} \end{aligned} $$
(7.62)

along with the iteration of equations (7.58) and (7.59) for the population vectors n f(t) and n m(t). For complete details, see Caswell and Sanchez Gassen (2015).

The terms in (7.61) are labelled to show how the processes of transitions, fertility and migration, for males and females, combine to produce sensitivity of a transient population. As before, the sensitivity at t + 1 depends on the sensitivity at time t and on the effects of the parameter vector on the transition and fertility matrices and on the immigration vector. In the next section we turn to the calculation of these derivatives.

The elasticities of n f(t) are given by

$$\displaystyle \begin{aligned} {\epsilon {\mathbf{n}}_f(t) \over \epsilon \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)} = \mathcal{D}\, \left[ \rule{0in}{2.128ex} {\mathbf{n}}_f(t) \right]^{-1} {d \mathbf{ n}_f(t) \over d \boldsymbol{\theta}^{\mbox{\textsf{ T}}}(u)} \; \mathcal{D}\,\left[ \rule{0in}{2.13ex} \boldsymbol{\theta}(u) \right] \end{aligned} $$
(7.63)

with a similar expression for n m.

Caswell and Sanchez Gassen (2015) present a detailed analysis of a projection for the population of Spain, published by the Instituto Nacional de Estadística (INE), for the years 2012–2052. They calculated the sensitivity and elasticity of total population, male and female population, the school age population (6–16 years), the part of the population expected to suffer from dementia, and the dependency and support ratios. All these outcomes are calculated from the basic projection using the methods in Sect. 7.3. In a more extensive comparison, Sanchez Gassen and Caswell (2018) have applied the approach to the Europop2013 projections for the 28 member states of the European Union, plus Iceland, Norway, and Sweden, for the years 2013–2080.

9 Discussion

In addition to their obvious role in population projections, transient effects are critically important in studies of climate change and other short term management issues (Ezard et al. 2010). A recent study found that simulations of invasive species were strongly influenced by transient effects (Muthukrishnan et al. 2018). Matrix calculus makes transient sensitivity analysis straightforward and applicable to a wide range of models and perturbations. The approach calculates sensitivities and elasticities as a dynamic system, iterated in parallel with the dynamics of the transient solution itself.

This dynamic approach reveals the fundamental structure underlying the sensitivity calculation. The results bear a striking family resemblance, from the linear, time-invariant case (7.6), to the time-varying case (7.41), the case of subsidized populations (7.45), the nonlinear case (7.52), and the time-varying, two-sex, subsidized model that forms the basis for the cohort component method of population projection in equations (7.61) and (7.60).

The examples here sound like stories—suppose that someone (e.g., a manager) is interested in some aspect of the population (e.g., its total size, or variance, or average growth,…) over some time interval. Or suppose that mortality, fertility, and immigration develop in the following way. This emphasizes the flexibility of this approach, and also the importance about thinking clearly about the dependent variables and time scales of interest. The list of dependent variables in Sect. 7.3 can no doubt be extended. It may be repeating the obvious, but transient sensitivity analysis depends on initial conditions. Each of the examples had to choose an initial condition and argue for its relevance.

Section 10.2.6 in Chap. 10 briefly considers the sensitivity analysis of equilibria to continuous-time systems. Richard et al. (2015) have developed a very general sensitivity analysis of transient dynamics in continuous systems (both linear and nonlinear). They point out and nicely demonstrate the parallels between continuous-time models and the discrete-time models considered here, the link being the creation of a dynamic model for the sensitivities that is solved along with the dynamics of the system itself.