Hostname: page-component-cd9895bd7-dzt6s Total loading time: 0 Render date: 2024-12-27T11:48:47.126Z Has data issue: false hasContentIssue false

Mortality forecasting using a Lexis-based state-space model

Published online by Cambridge University Press:  11 September 2020

Patrik Andersson*
Affiliation:
Department of Statistics, Uppsala University, Uppsala, Sweden
Mathias Lindholm
Affiliation:
Department of Mathematics, Stockholm University, Stockholm, Sweden
*
*Corresponding author. E-mail: [email protected]
Rights & Permissions [Opens in a new window]

Abstract

A new method of forecasting mortality is introduced. The method is based on the continuous-time dynamics of the Lexis diagram, which given weak assumptions implies that the death count data are Poisson distributed. The underlying mortality rates are modelled with a hidden Markov model (HMM) which enables a fully likelihood-based inference. Likelihood inference is done by particle filter methods, which avoids approximating assumptions and also suggests natural model validation measures. The proposed model class contains as special cases many previous models with the important difference that the HMM methods make it possible to estimate the model efficiently. Another difference is that the population and latent variable variability can be explicitly modelled and estimated. Numerical examples show that the model performs well and that inefficient estimation methods can severely affect forecasts.

Type
Original Research Paper
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution, and reproduction in any medium, provided the original work is properly cited.
Copyright
© Institute and Faculty of Actuaries 2020

1 Introduction

Understanding and forecasting mortality is an important part of demographic research and policy making, due to its connection to, for example, pensions, taxation and public health. A closely related area of application is within actuarial science and, in particular, life insurance. A first step in understanding mortality patterns is to construct a model describing observed death counts or mortality rates, or “force of mortality”, across age groups (“period mortality”) or within cohorts (indexed with respect to time of birth).

One of the earliest contributions to the area of mortality forecasting is the so-called “Gompertz law of mortality” (Gompertz, Reference Gompertz1825), see also the survey Pitacco (Reference Pitacco2018) and the references therein for more on other mortality laws. A more recent important contribution to the area is the Lee–Carter model (Lee & Carter, Reference Lee and Carter1992), where a log-linear multivariate Gaussian model is assumed for the mortality rates, across age groups and calendar time. The model is a factor model, where the factor loadings are given by the first component in a principal component decomposition, thus inducing dependencies across age groups as well as reducing the dimension of the problem. Concerning forecasting, the model assumes that the calendar time effect is governed by a one-dimensional Gaussian random walk with drift. Consequently, the Lee–Carter model treats the mortality rates as a stochastic process. An alternative, and very natural, interpretation of the Lee–Carter model is as a Gaussian hidden Markov model (HMM), see, for example, De Jong & Tickle (Reference De Jong and Tickle2006); Fung et al. (Reference Fung, Peters and Shevchenko2017) for a discussion in a mortality context and Cappé et al. (Reference Cappé, Moulines and Rydén2006); Durbin & Koopman (Reference Durbin and Koopman2012) for comprehensive introductions to HMMs (also known as state-space models.) For a survey of various extensions of the Lee–Carter model, see Booth & Tickle (Reference Booth and Tickle2008); Haberman & Renshaw (Reference Haberman and Renshaw2011); Carfora et al. (Reference Carfora, Cutillo and Orlando2017) and the references therein. Another line of work is the Gaussian Bayesian extension of the Lee–Carter model treated in Pedroza (Reference Pedroza2006), where models with random drifts are discussed.

However, a major criticism of the Lee–Carter model is that it treats mortality by a two-step method; first, standard point estimates of mortality rates are obtained; and second, given these rates, a (discrete time) stochastic process is fitted. Compared to the MLE used in this paper, the two-step estimation in the Lee–Carter model ignores the uncertainty and estimation error from the first step, thus making the estimators inefficient. In the Lee–Carter model, it is also not possible to explicitly distinguish between the finite sample noise of the mortality estimates (Poisson) and the noise from the underlying latent variables. Thus, there may be a misattribution of variance that will affect the accuracy of the forecasts. Also this critique is addressed in the present paper. Other modelling approaches that discuss this issue are given in Brouhns et al. (Reference Brouhns, Denuit and Vermunt2002); Ekheden & Hössjer (Reference Ekheden and Hössjer2014, Reference Ekheden and Hössjer2015).

The main contribution of this paper is that a probabilistic model of mortality is introduced and that the MLE of the parameters in the model are computed using particle filter techniques. The model is simple; the main assumption is that mortality can be modelled as the first event of a Poisson process with intensity equal for all individuals of the same age in the same year. The intensity is described by a latent factor model where the latent variables are modelled as a Gaussian process in discrete time. Moreover, it is shown that this model corresponds to a model on a Lexis diagram where only the population level number of deaths and the exposure to risk is observed. These data are generally available on country level.

The model can be thought of as an HMM with non-Gaussian observations and therefore particle filters, in particular the forward filtering backward smoothing algorithm, can be used for the calculation of the posterior distribution of the latent variables. Stochastic approximation EM (SAEM) is then used to find estimates of the unknown parameters in the model.

The remainder of the paper is organised as follows: In section 2, the individual-level mortality model is introduced, and it is shown how this relates to the population level model. In section 3, the estimation of the model is discussed in detail. This includes the dimension reduction using exponential family principal component analysis (EPCA), particle filtering and smoothing together with the use of SAEM for the likelihood maximisation. In section 4, it is argued that model performance should be assessed with respect to death counts or scalings thereof. Therefore, model validation criteria which are based on (proper) scoring rules are discussed. They are applicable to both training and validation data, hence allowing for model selection based on predictive performance. In particular, an $R^2$ -like measure defined in terms of deviance is introduced. In section 5, different ways of forecasting, depending on the application, are discussed. For illustration purposes, a number of examples based on Swedish and US data are given in section 6. It is seen that the forecasting performance is satisfactory with respect to both in-sample (training) and out-of-sample (validation) data. These numerical examples illustrate the importance of separating between the finite sample variation and the latent mortality rate process variation – for Swedish data (with smaller population), it is clearly seen that the majority of the variation stems from population variation. It is also illustrated that the Lee–Carter model in this situation will make an erroneous attribution of variation to the latent mortality rate process, which confirms the criticism of two-step methods that does not properly capture finite population dynamics.

2 Probabilistic Mortality Model

The probabilistic model that is introduced in the present paper is based on the population dynamics as it is summarised in a Lexis diagram, see Figure 1. On the horizontal axis is calendar year and on the vertical axis is age. An individual’s life is represented by a $45^\circ$ straight line. Since most individuals are not born on January 1, the time spent in each square will differ from individual to individual. As an example, consider the shaded area in Figure 1: The oldest individual, the one closest to the top-left corner of the shaded region is $a+2$ years old at the beginning of calendar year 1902 and turn $a+3$ during the year 1902. The second oldest individual will turn $a+2$ during year 1902 and is alive at the end of the year 1902. The youngest individual will turn $a+2$ during 1902 and will die before the end of 1902.

Figure 1 Example of a Lexis diagram.

More specifically, with respect to mortality, the life of an individual, say i, can be characterised by the time of birth $B_i$ and the time of death $Q_i$ , where $0\leq B_i\le Q_i$ , and time is measured in years.

Moreover, let $[\underline{t},\overline{t}]$ be the time period when individuals are observed in the data set, and let n denote the total number of individuals that have been alive in $[\underline{t},\overline{t}]$ . That is, only individuals for whom ${\left[\underline t,\overline t\right]}\cap {\left[B_i,Q_i\right]}\neq \emptyset$ are considered. Further, the age of individual i at calendar time t is denoted by $A_i(t) \,:\!= t - B_i, B_i \le t \le Q_i$ .

The life history of individual i can be described by a counting process, $D_i(t) \in \{0, 1\}$ , where 0 means that the individual is alive. The process can be defined in terms of a multiplicative intensity process (see Andersen et al. (Reference Andersen, Borgan, Gill and Keiding1993); Aalen et al. (Reference Aalen, Borgan and Gjessing2008)): Let $m(a, t) \ge 0,$ denote the hazard rate at age a and calendar time t. Using the introduced notation, the intensity process can be expressed as

\begin{equation*} \lambda_i(t) = m(A_i(t), t)\mathbb{1}{\left({Q_i-B_i\ge A_i(t), B_i \le t}\right)}= m(A_i(t), t)Y_i(t)\end{equation*}

That is, $Y_i(t)$ is 1 if individual i is alive at t and is usually referred to as the “at-risk” indicator of individual i. That is, $Y_i(t) = 1 - D_i(t)$ .

Hence, the total number of individuals who experience the event “death” up until t, $\underline{t} \le t \le \overline{t}$ , denoted D(t), is given by

\begin{equation*} D(t) = \sum_{i \in \mathcal I } D_i(t)\end{equation*}

where $\mathcal I$ denotes the set of all individuals. This is a counting process with intensity process

\begin{equation*}\lambda(t) = \sum_{i \in \mathcal I }m(A_i(t), t)Y_i(t)\end{equation*}

Continuing, the main interest is to describe the process of deaths within yearly Lexis squares: The Lexis squares of interest are of the form

\begin{equation*} \mathcal{S}_{a,t} = [a,a+1)\times [t,t+1)\subset \mathbb R^2,\quad a,t\in\mathbb N,\quad \underline{t}\leq t \leq \overline{t}\end{equation*}

Let $\mathcal{A}$ denote the set of relevant ages and let $\mathcal{T}$ denote the set of relevant calendar years. The collection of all relevant Lexis squares, $\bar{\mathcal S}$ , is then given by

\begin{equation*}\bar{\mathcal S} \,:\!= \{\mathcal{S}_{a,t} \mid (a, t) \in \mathcal{A} \times \mathcal{T}\}\end{equation*}

A general lexis square, without specifying a and t, will be denoted as $\mathcal S$ . Then, $D_i(t;\, \mathcal S)$ , which denotes the counting process which may register a single death for individual i in the Lexis square $\mathcal S$ , has intensity process given by

\begin{align*}\lambda_i(t;\, \mathcal{S}) &= m(A_i(t), t)Y_i(t)\mathbb{1}{\left({{\left({A_i(t),t}\right)} \in \mathcal{S}}\right)}\\&= m(A_i(t), t)Y_i\big(t;\, \mathcal{S}\big)\end{align*}

where $Y_i(t;\, \mathcal{S})\,:\!= Y_i(t)\mathbb{1}{\big({{\left({A_i(t),t}\right)} \in \mathcal{S}}\big)}$ . The total number of observed death counts in $\mathcal{S}$ is given by the counting process

\begin{equation*}D(t;\,\mathcal{S}) = \sum_{i \in \mathcal I } D_i(t;\, \mathcal{S})\end{equation*}

with intensity process

\begin{equation*}\lambda(t;\,\mathcal{S}) =\sum_{i \in \mathcal I } m(A_i(t), t)Y_i(t;\, \mathcal{S})\end{equation*}

Moreover, due to that census data, typically, are only publicly available at integer ages and on yearly basis, the approach taken in the present paper is to model the hazard rates m(a, t) as constants within yearly Lexis squares, that is, $m(a, t)=m_{\mathcal{S}}$ if $(a,t)\in \mathcal{S}$ . That is, $D(t;\,\mathcal{S})$ has a multiplicative intensity process

\begin{equation*}\lambda(t;\,\mathcal{S}) = \sum_{i \in \mathcal I } m_{S}Y_i(t;\,\mathcal{S})\end{equation*}

Furthermore, by introducing $D_\mathcal{S}$ , the stochastic number of deaths in $\mathcal S$ , as

\begin{equation*}D_\mathcal{S} = \sum_{i \in \mathcal I } \mathbb{1}{\left({(Q_i-B_i,Q_i)\in \mathcal{S}}\right)}\end{equation*}

and the total amount of time that individuals have been alive in $\mathcal{S}$ , the so-called “exposure to risk”, $E_\mathcal{S}$ , by

\begin{align*}E_\mathcal{S} = \sum_{i \in \mathcal I } \int_{\underline{t}}^{\overline{t}} Y_i(t;\,\mathcal{S}) t\end{align*}

it is possible to state the following lemma relating to observed data:

Lemma 2.1. Assuming independence between individuals, the log-likelihood for the total population is,

(1) \begin{equation}l(\mathcal{M}) = \sum_{\mathcal{S} \in \bar{\mathcal S}} (d_\mathcal{S} \log m_{\mathcal{S}} - e_\mathcal{S}m_{\mathcal{S}})\end{equation}

where $\mathcal{M} = {\left\{{m_{\mathcal{S}} \mid \mathcal S \in \bar{\mathcal S}}\right\}}$ is the collection of unknown piecewise constant mortality rate parameters, $d_\mathcal{S}$ is the observed number of deaths and $e_\mathcal{S}$ is the observed exposure to risk in $\mathcal{S}$ . This corresponds to the likelihood function of the Poisson distribution.

For more on likelihood inference on Lexis diagrams, see Keiding (Reference Keiding1991) and the references therein. Note that Lemma 2.1 and its derivation adjusts for partial information due to right censoring. The proof is given in Appendix C.

Now, consider the following probability model: For each $\mathcal{S}$ , there is an independent Poisson process with constant intensity $m_{\mathcal{S}}$ , running for time $e_\mathcal{S}$ , during which $d_\mathcal{S}$ events are observed. The total log-likelihood of this model is equivalent to equation (1). Thus, by the likelihood principle, it is enough to consider this simpler model, where only the number of deaths and the exposure to risk in each Lexis square need to be observed, not the individual-level data. Also note that the model implied by (1) has no explicit dependence on the time of birth or death of specific individuals, since the exposure to risk summarises all this information. Thus, it is enough to have access to, for example, country-level mortality data. For later use, note that (1) gives the following maximum likelihood estimator (MLE) of $m_{\mathcal{S}}$

(2) \begin{align}\widehat{m}_{\mathcal{S}} = \frac{d_\mathcal{S}}{e_\mathcal{S}}\end{align}

In section 2.1, a state-space model is introduced, where $m_{\mathcal{S}}$ is treated as an unobservable, latent, stochastic process, $M_\mathcal{S}$ , and the total number of deaths observed in $\mathcal S$ is Poisson distributed given $M_\mathcal{S} = m_{\mathcal{S}}$ and $e_\mathcal{S}$ . A consequence of this modelling approach is that the latent $M_\mathcal{S}$ process is independent of population size. On the other hand, since $\widehat{m}_{\mathcal{S}}$ depends on the population size, these estimates will display more variation than that, typically, seen in the randomness of the latent $M_{\mathcal{S}}$ in itself. This effect is something that will be discussed further in section 6 where a numerical illustration is given.

2.1 Mortality model

In this section, the probabilistic model of mortality that will be used in our analysis will be defined. First, however, the notation will be introduced:

\begin{equation*} \begin{array}{l | l} \textrm{Number of age categories}\quad & \quad k \\[2pt] \textrm{Number of observation years}\quad & \quad n\\[2pt] \textrm{Number of factors}\quad & \quad p\\[2pt] \textrm{Number of deaths in}\ \mathcal S\quad & \quad D_\mathcal{S}\in\mathbb N_0\\[2pt] \textrm{Exposure to risk in}\ \mathcal S\quad & \quad e_\mathcal{S} \in[0,\infty)\\[2pt] \textrm{Death intensity in}\ \mathcal S\quad & \quad M_\mathcal{S} \in \mathbb R\\[2pt] \textrm{Factor loadings}\quad & \quad \in \mathbb R^{k\times p}\\[2pt] \textrm{Factor in year}\ t\quad & \quad X_t \in \mathbb R^p\\[2pt] \textrm{State transition matrix}\quad & \quad \Gamma \in \mathbb R^{p\times p}\\[2pt] \textrm{Transition covariance matrix}\quad & \quad \Sigma \in \mathbb R^{p\times p}\\[2pt] \textrm{Random mean in year}\ t\quad & \quad K_t \in \mathbb R^p\\[2pt] \textrm{Mean transition matrix}\quad & \quad \Gamma^K \in \mathbb R^{p\times p}\\[2pt] \textrm{Mean transition covariance matrix \quad}\quad & \quad \Sigma^K \in \mathbb R^{p\times p}\\[2pt] \textrm{Mean level}\quad & \quad \mu \in \mathbb R^p\\ \end{array} \end{equation*}

All vectors are column vectors. Also, $D_t\in \mathbb N_0^k$ denotes the vector of number of deaths in year t, and similarly for $e_t$ and $m_t$ . The corresponding variables without subscripts are the matrices with the observation years in the columns and ages in the rows, for example, $D\in \mathbb N_0^{k\times n}$ . The parameters $\Upsilon$ , $\Gamma$ , $\Sigma$ and $\mu$ will in general be unknown and are to be estimated. Also, $\Upsilon_a$ denotes the a:th row of $\Upsilon$ . The procedure for estimation is described in section 3.

We define a Poisson model with linear Gaussian signal. For $t\in{\left\{{0,\ldots,n}\right\}}$ ,

(M1) \begin{gather}\left .\begin{aligned}D_\mathcal{S} \mid M_\mathcal{S} &\sim \textsf{Po}(e_\mathcal{S} M_\mathcal{S} )\\M_{\mathcal{S}_{a,t}} &=\exp{\left\{{\Upsilon_a X_t}\right\}}\\X_{t+1} &= \Gamma X_{t} + \mu + U_t, U_t\sim \textsf{N}(0,\Sigma)\\X_0 &\sim \textsf{N}(\mu_0,\Sigma_0)\\\end{aligned}\right \}\end{gather}

This is an HMM with non-Gaussian observations and linear Gaussian state equation. One can note that the dependence between ages is introduced by $M_{\mathcal{S}_{a,t}}$ . That is, conditioned on $M_{\mathcal{S}_{a,t}}$ , all ages are independent. Further, as argued in the previous section, under rather weak assumptions, a reasonable model for the number of deaths in a given year for a given age category is independent Poisson with intensity proportional to the exposure. The model specifies an exponential link function. It is certainly possible to choose a different link function and for the method described below, the exponential link function is not crucial. However, since this link function has been widely used in mortality studies going back to Lee & Carter (Reference Lee and Carter1992) (or even Gompertz (Reference Gompertz1825)) and also corresponds to the canonical link in terms of exponential families it is a natural choice. The matrix $\Upsilon$ contains the factor loadings associated with the time-varying factor scores $X_t$ . This has two purposes: First, it seems intuitive that individuals of similar age at the same time should experience a similar mortality rate. Therefore, to model $M_{\mathcal{S}_{a,t}}$ independently for each a does not seem reasonable. Second, since we usually are concerned with a large number of ages (say about 100), it is impractical to estimate a mortality rate process for each age independently. Thus, $\Upsilon$ also provides a dimension reduction that simplifies the estimation problem and may be thought of as a non-parametric alternative to basis functions. The model for $X_t$ is a linear Gaussian model, although non-linear models are certainly also possible to analyse, but they are not considered in this paper. However, even under the restriction of linear and Gaussian signals, (M1) should in many cases have enough flexibility so that it is possible to find a specific model that fits well with data.

For the purpose of the numerical illustration, a slight variation of Model (M1) will also be considered:

(M2) \begin{gather}\left .\begin{aligned}D_\mathcal{S} \mid M_\mathcal{S} &\sim \textsf{Po}(e_\mathcal{S} M_\mathcal{S} )\\M_{\mathcal{S}_{a,t}} &=\exp{\left\{{\Upsilon_a X_t}\right\}}\\X_{t+1} &= \Gamma X_{t} + K_{t} + \mu + U_t, U_t\sim \textsf{N}(0,\Sigma)\\K_{t+1} &= \Gamma^K K_{t} + V_t, V_t\sim \textsf{N}(0,\Sigma^K)\\X_0 &\sim \textsf{N}(\mu_0,\Sigma_0)\\K_0 &\sim \textsf{N}(\mu_0^K,\Sigma_0^K)\end{aligned}\right \}\end{gather}

Clearly (M1) is a special case of (M2). The difference is that in (M2) the drift is a stochastic process, while in (M1) it is a fixed parameter. Empirical evidence for including a random drift, in the context of mortality forecasts, is discussed in Pedroza (Reference Pedroza2006).

To make it easier to follow our numerical illustration, explicit formulas will, when necessary, be provided also for this model.

3 Model Fitting

The modelling approach taken in the present paper is based on a certain class of non-Gaussian HMMs, as described in section 2.1. In this section, the fitting of such models using maximum likelihood and particle filters is discussed. For easy comparison with the literature on HMMs, see, for example, Barber et al. (Reference Barber, Cemgil and Chiappa2011), we will adopt the standard notation $x_{0:n} = (x_0, \ldots, x_n)$ .

As defined in section 2.1, the following parameters are to be fitted: $\Upsilon,\mu, \Gamma$ and $\Sigma$ . Concerning, $\mu_0$ and $\Sigma_0$ , these will be set to deterministic values. For more on how this may be done, see the numerical illustration in section 6. Letting $\psi = (\mu, \Gamma, \Sigma)$ , the complete data likelihood can be defined as

(3) \begin{align}p_{\Upsilon,\psi}(x_{0:n},d_{0:n}) = v (x_0)g_\Upsilon(d_0 \mid x_0)\prod_{t=1}^n f_\psi(x_t \mid x_{t-1})g_\Upsilon(d_t \mid x_t)\end{align}

where

(4) \begin{align}\left\{\begin{array}{ll}v (x_0) &= {\left({2\pi}\right)}^{-\frac{p}{2}}|\Sigma_0| ^{-\frac{1}{2} } \exp\left\{-\dfrac{1}{2}(x_0 - \mu_0)^{\prime}\Sigma_0^{-1}(x_0 - \mu_0)\right\},\\[3pt] g_\Upsilon(d_t \mid x_t ) &= \prod_{a=1}^k \exp\left\{-e_{a,t} \exp{\left({\Upsilon_a x_t}\right)}\right\}\dfrac{\left(e_{a,t}\exp{\left({\Upsilon_a x_t}\right)}\right)^{d_{a,t}}}{d_{a,t}!},\\[3pt] f_\psi (x_t \mid x_{t-1}) &= {\left({2\pi}\right)}^{-\frac{p}{2}}|\Sigma|^{-\frac{1}{2} } \exp\left\{-\dfrac{1}{2}(x_t - \Gamma x_{t-1} - \mu)^{\prime}\Sigma^{-1}(x_t - \Gamma x_{t-1}- \mu )\right\}\end{array}\right.\end{align}

Note that $v (x_0)$ is the density of the starting point $X_0$ , which we have assumed to be known. Since $x_{0:t}$ corresponds to unobservable, stochastic, state vectors, the likelihood function that we want to maximise is the one given by

(5) \begin{align}p_{\Upsilon,\psi}(d_{0:n}) = \int p_{\Upsilon,\psi}(x_{0:n},d_{0:n})|{\textrm{d}} x_{0:n}\end{align}

which in general is hard to evaluate. The present paper makes use of particle filter techniques and, in particular, the SAEM algorithm which is based on approximating (5) using simulation, see Cappé et al. (Reference Cappé, Moulines and Rydén2006, Ch. 11.1.6). Apart from this, the SAEM procedure is closely related to the standard EM algorithm and will in this context correspond to iterating between sampling unknown states and updating of parameter estimates. A more detailed description of the particle filter techniques and sampling of unknown states is given in sections 3.23.4. Provided that the complete data likelihood will have low-dimensional sufficient statistics, the SAEM method can be described as a simple updating procedure in terms of these sufficient statistics. This is a nice feature of the method since it avoids the need to store all simulated trajectories. Therefore, before describing the SAEM technique in more detail, which is done in section 3.5, the properties of the complete data likelihood will be discussed.

First, one can note that the complete data likelihood from (3) may be written according to

\begin{equation*}p_{\Upsilon,\psi}(x_{0:n},d_{0:n}) = g_\Upsilon(d_{0:n} \mid x_{0:n})f_\psi(x_{0:n})\end{equation*}

where

(6) \begin{align}g_\Upsilon(d_{0:n} \mid x_{0:n}) \,:\!=\,& g_\Upsilon(d_0 \mid x_0)\prod_{t=1}^n g_\Upsilon(d_t \mid x_t) \end{align}
(7) \begin{align}f_\psi(x_{0:n}) \,:\!=\,& v (x_0)\prod_{t=1}^n f_\psi(x_t \mid x_{t-1}). \\[6pt]\nonumber\end{align}

From the definition of $g_\Upsilon(d_{0:n} \mid x_{0:n})$ , it is clear that $g_\Upsilon(d_{0:n} \mid x_{0:n})$ is a concave function in terms of $\Upsilon$ (see Lemma 3.2), but there is no low-dimensional statistic available for estimating $\Upsilon$ . Hence, the estimation of $\Upsilon$ is not suitable for inclusion in the SAEM algorithm. Note, however, that the role of $\Upsilon$ may be thought of as a non-parametric basis function used in order to introduce dependence across ages in $X_t$ and to reduce the dimension of the problem. Thus, excluding the estimation of $\Upsilon$ from the SAEM algorithm and estimating $\Upsilon$ in isolation can be seen as conducting an EPCA. This is described in more detail in section 3.1. Consequently, the SAEM algorithm is used to estimate $\psi$ by optimising $p_{\widehat\Upsilon,\psi}(d_{0:n})$ via the corresponding complete data likelihood $p_{\widehat\Upsilon,\psi}(x_{0:n},d_{0:n})$ . Moreover, the Gaussian part of $p_{\widehat\Upsilon,\psi}(x_{0:n},d_{0:n})$ , that is $f_\psi(x_{0:n})$ , will produce estimators and low-dimensional statistics that can be written explicitly:

Lemma 3.1. In both Models (M1) and (M2), the joint distribution of $x_{0:n}$ and $d_{0:n}$ defines a curved exponential family. The complete data maximum likelihood estimate, conditional on $x_{0:n}$ and $d_{0:n}$ , can therefore be expressed in terms of low-dimensional sufficient statistics.

The proof of Lemma 3.1 is given in Appendix C.2, where explicit formulas for the MLEs can be found. Recall from the beginning of section 3 that $\mu_0$ and $\Sigma_0$ are being treated as constants, hence being outside of the estimation procedure. For more on how to assign values to $\mu_0$ and $\Sigma_0$ , see section 6.

3.1 Dimension reduction using EPCA – estimating $\Upsilon$

As mentioned in sections 2.1 and 3, the matrix $\Upsilon$ may be thought of as a non-parametric choice of basis functions, that is, $\Upsilon$ is a matrix of factor loadings. The approach to estimate $\Upsilon$ in the present paper is closely connected to standard principal component analysis (PCA), but adapted to count data. The method that will be used consists of optimising the Poisson part of the complete data likelihood, that is, $g_\Upsilon(d_{0:n} \mid x_{0:n})$ from (6). Recall, from section 2.1, that both $\Upsilon$ and $x_{0:n}$ are unobservable quantities. One way of handling this is to estimate $\Upsilon$ and $x_{0:n}$ jointly, given $d_{0:n}$ , by maximising $g_\Upsilon(d_{0:n} \mid x_{0:n})$ . This is what is referred to as EPCA. There are many variations of EPCA, see Lu et al. (Reference Lu, Huang and Qian2016) for a review of some. Here the method introduced in Collins et al. (Reference Collins, Dasgupta and Schapire2001) is used (there called generalised PCA). One can, however, note the close connection to the approach taken in Brouhns et al. (Reference Brouhns, Denuit and Vermunt2002), where a similar procedure is suggested within a Poisson GLM. A completely different interpretation of the approach from Collins et al. (Reference Collins, Dasgupta and Schapire2001) is to view the problem in a Bayesian setting and treat $x_{0:n}$ as having an improper (“flat”) prior, that is, constant density, which is independent of $\Upsilon$ :

\begin{align*}L_{\Upsilon,x_{0:n}}(d_{0:n}) \propto g_\Upsilon(d_{0:n} \mid x_{0:n})\end{align*}

Regardless of the interpretation of the objective function $g_\Upsilon(d_{0:n} \mid x_{0:n})$ in the EPCA optimisation, it is possible to show the following:

Lemma 3.2. The function $-\log g_\Upsilon(d_{0:n} \mid x_{0:n})$ is convex in $\Upsilon$ given $x_{0:n}$ , and convex in $x_{0:n}$ given $\Upsilon$ , but not jointly (globally) convex in both $\Upsilon$ and $x_{0:n}$ .

The proof of Lemma 3.2 is given in Appendix C. To see the effect of Lemma 3.2, one can note that for example $g_{\Upsilon/c}(d_{0:n} \mid c x_{0:n}) = g_\Upsilon(d_{0:n} \mid x_{0:n})$ for all $c \in \mathbb{R}_+$ . Note that the above “marginal” convexity property corresponds to so-called “bi-convexity”, see Gorski et al. (Reference Gorski, Pfeuffer and Klamroth2007, Definition 1.1, 1.2). Moreover, in Gorski et al. (Reference Gorski, Pfeuffer and Klamroth2007), conditions are given for when minimisation of a bi-convex function using so-called alternate convex search methods, which is a special case of cyclic coordinate methods, will converge, see (Gorski et al. Reference Gorski, Pfeuffer and Klamroth2007, Theorem. 4.7, 4.9, Corollary 4.10). For more on cyclic coordinate methods and convergence, see Bazaraa et al. (Reference Bazaraa, Sherali and Shetty2006, Ch. 8.5).

Regarding the practical implementation, denote the fitted values by $\hat \Upsilon$ and $\widehat{x}_{0:t}$ and also note the non-uniqueness of these. We therefore suggest to do as follows: Let $\widehat\Sigma$ denote the empirical $p \times p$ -dimensional covariance matrix of $\widehat{x}_{0:t}$ , and make a Cholesky factorisation of $\widehat\Sigma$ expressed in terms of $\widehat\sigma$ , that is, $\widehat\Sigma = \widehat\sigma\widehat\sigma^{\prime}$ . Then, set

\begin{equation*}\widehat{\widehat{\Upsilon}} \,:\!= \widehat\Upsilon\widehat\sigma\end{equation*}

and

\begin{equation*}\widehat{\widehat{x}}_{0:t} \,:\!= \widehat\sigma^{-1}\widehat{x}_{0:t}\end{equation*}

that is,

\begin{equation*}\widehat\Upsilon \widehat{x}_{0:t} = \widehat{\widehat\Upsilon} \widehat{\widehat{x}}_{0:t}\end{equation*}

but $\widehat{\widehat{x}}_{0:t}$ will now have an empirical covariance which is a $p\times p$ -dimensional identity matrix. Note that this procedure is a slight violation of the original EPCA optimisation: The suggested scaling does not affect the value of the loss function used in the optimisation, but it will affect its derivative. As a compromise, we propose to refit $\widehat\Upsilon$ , given $\widehat{\widehat{x}}_{0:t}$ . The advantage of this procedure is that it is natural to use the identity matrix as starting guess for $\Sigma$ in the numerical optimisation that follow below.

Before ending this section, note that as opposed to classical PCA, the EPCA components are not orthogonal. Therefore, when increasing the number of components all the components may change.

3.2 Particle filtering

Having estimated $\Upsilon$ , as explained in the previous section, it remains to estimate $\psi$ . Since the likelihood $p_{\psi}(d_{0:n})$ is not directly computable, approximations are needed. In the present paper, this will be done using simulation techniques, in particular, using particle filtering and smoothing. For more detailed accounts of these methods, see, for example, the book by Cappé et al. (Reference Cappé, Moulines and Rydén2006) or the survey by Kantas et al. (Reference Kantas, Doucet, Singh, Maciejowski and Chopin2015).

In this section, it is assumed that all parameters are known, so that the task is to, for $0\leq t \leq n$ , find the filtering distribution

\begin{equation*} p(x_{0:t}\mid d_{0:t})\end{equation*}

and, in the next section, the smoothing distribution

\begin{equation*} p(x_{0:t}\mid d_{0:n})\end{equation*}

Note here that the difference between the filtering and smoothing distribution is up to what time it is conditioned, that is, the smoothing distribution assumes full knowledge of all available data – including future observations, seen from time t. The filtering distribution is the distribution of $x_{0:t}$ conditioned on the observations. On the other hand, the smoothing distribution conditions on all observations up to present time.

To start off, the filtering recursion equation can be written as,

\begin{equation*} p(x_{0:t}\mid d_{0:t}) = p(x_{0:t-1}\mid d_{0:t-1})\frac{g(d_t\mid x_t)f(x_t\mid x_{t-1})}{p(d_t\mid d_{0:t-1})} \propto p(x_{0:t-1}\mid d_{0:t-1})g(d_t\mid x_t)f(x_t\mid x_{t-1})\end{equation*}

Further, assume that an approximation of $p(x_{0:t-1}\mid d_{0:t-1})$ of the form

(8) \begin{equation} \hat p(x_{0:t-1}\mid d_{0:t-1}) = \sum_{i=1}^r w_{t-1}^i \delta_{X^i_{0:t-1}}(x_{0:t-1})\end{equation}

where $w_{t-1}^i$ are the weights and where $\delta$ is the Kronecker-delta function, is available. Moreover, let $q(x_t\mid d_t,x_{t-1})$ denote an importance density function from which it is possible to draw samples from. It then follows that

\begin{equation*} \hat p(x_{0:t}\mid d_{0:t}) \propto \frac{g(d_t\mid x_t)f(x_t\mid x_{t-1})}{q(x_t\mid d_t,x_{t-1})}q(x_t\mid d_t,x_{t-1})\hat p(x_{0:t-1}\mid d_{0:t-1}) \end{equation*}

As the above approximate recursion is iterated, the weights in (8) will be multiplied. Therefore, the variance of the method will increase rapidly with t. A partial remedy for this is to include an additional resampling step. That is, by introducing $\overline X_{0:t-1}$ , denoting the random sample drawn from $\hat p(x_{0:t-1}\mid d_{0:t-1})$ , the following approximation is obtained

\begin{equation*} \hat p(x_{0:t-1}\mid d_{0:t-1}) = \sum_{i=1}^r \delta_{\overline X^i_{0:t-1}}(x_{0:t-1}) \end{equation*}

The recursion outlined above corresponds to the so-called sequential importance sampling resampling (SISR) algorithm, which is summarised in Algorithm 1. For more details concerning the derivation of this algorithm, see Cappé et al. (Reference Cappé, Moulines and Rydén2006, Ch. 9.6) and Kantas et al. (Reference Kantas, Doucet, Singh, Maciejowski and Chopin2015).

Note that as a by-product of using the SISR algorithm, it follows that the likelihood may be estimated according to

(9) \begin{equation} \hat p(d_{0:n}) = \prod_{t=0}^n \frac{1}{r} \sum_{i=1}^r w_t^i\end{equation}

see Kantas et al. (Reference Kantas, Doucet, Singh, Maciejowski and Chopin2015).

3.3 Particle smoothing

In section 3.2, the SISR algorithm for obtaining the filtering distribution was described. Here one can recall that this algorithm was derived from Bayes’ rule as a recursion going forward in time. Likewise, one could just as well consider similar recursive relationships based on that the time is reversed. This is what will be used in order to obtain the smoothing distribution,

\begin{equation*} p(x_{0:t}\mid d_{0:n})\end{equation*}

First note that an application of Bayes’ rule yields the following relation:

\begin{align*} p(x_{0:n}\mid d_{0:n}) &= p(x_n\mid d_{0:n}) p(x_{0:n-1}\mid d_{0:n},x_n)= p(x_n\mid d_{0:n}) p(x_{0:n-1}\mid d_{0:n-1},x_n) \\ & = p(x_n\mid d_{0:n}) p(x_{n-1}\mid d_{0:n-1},x_n) p(x_{0:n-2}\mid d_{0:n-2},x_{n-1}) \\ &= p(x_n\mid d_{0:n}) \prod_{k=0}^{n-1} p(x_{k}\mid d_{0:k},x_{k+1})\end{align*}

where

\begin{equation*} p(x_{k}\mid d_{0:k},x_{k+1}) = \frac{f(x_{k+1}\mid x_k)p(x_k\mid d_{0:k})}{p(x_{k+1}\mid d_{0:k})} \propto f(x_{k+1}\mid x_k)p(x_k\mid d_{0:k})\end{equation*}

Recall from section 3.2 that Algorithm 1 produces an approximation of $p(x_k\mid d_{0:k})$ . Thus, a combination of these observations suggests Algorithm 2 for sampling from the approximate smoothing distribution, which is the forward filtering backward sampling (FFBS) algorithm from Godsill et al. (Reference Godsill, Doucet and West2004).

3.4 Choosing the importance distribution

Recall that the particle filter algorithms, Algorithms 1 and 2, assume that there is an importance distribution $q(x_t\mid d_t,x_{t-1})$ from which it is possible to draw random samples. How to choose such a distribution is what will be discussed next. In order for Algorithms 1 and 2 to have small variances, the importance distribution should be chosen to be a close approximation of $g(d_t\mid x_t)f(x_t\mid x_{t-1})$ . One way of doing this is as follows: Recall that as a by-product of the EPCA estimation of $\widehat\Upsilon$ , an estimated state vector $\widehat x_{0:n}$ is produced. Given the estimated state vector, one can make a second-order Taylor expansion of $\log g(d_t\mid x_t)$ in $x_t$ around $ \widehat{x}_{t}$ . For model (M1), this approach results in the following approximation

(10) \begin{align}\log g(d_t\mid x_t)& \approx \log g(d_t\mid \hat x_t) + \frac{1}{2}(x_t-\widehat x_t)^{\prime}H_t(x_t-\widehat x_t) \propto \frac{1}{2}(x_t-\widehat x_t)^{\prime}H_t(x_t-\widehat x_t)\end{align}

where “ $\propto$ ” corresponds to removing normalisation constants not depending on $x_t$ , and where $H_t \,:\!= H_t(d_t, \widehat x_t, \widehat\Upsilon)$ denotes the Hessian of $\log g(d_t | \cdot)$ , evaluated at $\widehat x_t$ , which typically is obtained as a by-product from the EPCA optimisation. The first-order term is 0 since $\widehat x_t$ is obtained as the optimal value of the EPCA algorithm. Further, note that from section 3.1, it follows that $-H_t$ is positive semi-definite. Thus, (10) is the un-normalised log density, with $x_t$ as argument, of a multivariate Gaussian distribution with mean $\widehat x_{t}$ and covariance $(-H_t)^{-1}$ . Finally, by combining the above, the approximation of $\log (g(d_t\mid x_t)f(x_t\mid x_{t-1}))$ becomes

\begin{align*} \log & \left( g(d_t\mid x_t)f(x_t\mid x_{t-1}) \right)\\ &\approx \log g(d_t\mid \widehat x_t) - \frac{1}{2}(x_t-\widehat x_t)^{\prime}(-H_t)(x_t-\widehat x_t) - \frac{1}{2}(x_{t}-\Gamma x_{t-1}-\mu)^{\prime}\Sigma^{-1}(x_t-\Gamma x_{t-1}-\mu)\\ &\propto -\frac{1}{2} {\left({x_t - {\left({-H_t\widehat x_t + \Sigma^{-1}{\left({\Gamma x_{t-1}+\mu}\right)}}\right)}}\right)^{\prime}}{\left({-H_t + \Sigma^{-1}}\right)}{\left({x_t - {\left({-H_t\widehat x_t + \Sigma^{-1}{\left({\Gamma x_{t-1}+\mu}\right)}}\right)}}\right)}\\ &\propto \log(q(x_t\mid d_t,x_{t-1}))\end{align*}

where $q(x_t\mid d_t,x_{t-1})$ is the density of a multivariate Gaussian distribution with mean $-H_t\widehat x_t + \Sigma^{-1}{\left({\Gamma x_{t-1}+\mu}\right)}$ and covariance $(-H_t + \Sigma^{-1})^{-1}$ .

Analogously, for Model (M2), the approximation of $\log {\left({ g(d_t\mid x_t)f(x_t,k_t\mid x_{t-1},k_{t-1}) }\right)}$ instead becomes

\begin{align*} \log & \left( g(d_t\mid x_t)f(x_t,k_t\mid x_{t-1},k_{t-1}) \right)\\ &\approx \log g(d_t\mid \widehat x_t) - \frac{1}{2}(x_t-\widehat x_t)^{\prime}(-H_t)(x_t-\widehat x_t) \\ &\quad - \frac{1}{2}(x_{t}-\Gamma x_{t-1}-k_{t-1}-\mu)^{\prime}\Sigma^{-1}(x_t-\Gamma x_{t-1}-k_{t-1}-\mu)\\ &\quad - \frac{1}{2}(k_{t}-\Gamma^K k_{t-1})^{\prime}(\Sigma^K)^{-1}(k_{t}-\Gamma^K k_{t-1})\\ &\propto -\frac{1}{2}\left(\left(\begin{array}{l} x_t \\[4pt] k_t \end{array}\right) - \left(\begin{array}{l} \nu_t \\[4pt] \nu^K_t \end{array}\right)\right)^{\prime} \left(\begin{array}{cc} -H_t + \Sigma^{-1} & 0\\[4pt] 0 & (\Sigma^K)^{-1} \end{array}\right) \left(\left(\begin{array}{l} x_t \\[4pt] k_t \end{array}\right) - \left(\begin{array}{l} \nu_t \\[4pt] \nu^K_t \end{array}\right)\right)\\ &\propto \log(q(x_t, k_t \mid d_t,x_{t-1}, k_{t-1}))\end{align*}

where $q(x_t, k_t \mid d_t,x_{t-1}, k_{t-1})$ is the density of a multivariate Gaussian distribution with mean $\widetilde \nu_t = (\nu_t, \nu_t^K)^{\prime}$ and covariance $\widetilde \Sigma$ given by

\begin{align*}\widetilde \nu_t &= \left(\begin{array}{c} -H{\widehat{x_t}} + \Sigma^{-1}{\left({\Gamma x_{t-1}+k_{t-1}+\mu}\right)} \\[9pt] \Gamma^K k_{t-1} \end{array}\right)\\\widetilde \Sigma &= \left(\begin{array}{cc} -H_t + \Sigma^{-1} & 0\\[9pt] 0 & (\Sigma^K)^{-1} \end{array}\right)^{-1}\end{align*}

In practice, to ensure a finite variance, a t-distribution with 3 degrees of freedom with location vector $\widetilde \nu_t$ and shape matrix $\widetilde \Sigma$ is used instead.

3.5 Parameter estimation

As described in the beginning of section 3, given that it is possible to obtain approximate samples from the smoothing distribution $p(x_{0:t}\mid d_{0:n})$ , the suggested approach to fit the parameter vector $\psi$ is to use the stochastic approximation expectation maximisation (SAEM) algorithm. The description of this method outlined below is primarily based on Cappé et al. (Reference Cappé, Moulines and Rydén2006), where further references can be found.

To start off, recall the EM-algorithm: At step l:

  1. 1. E-step: $Q(\psi^{(l)},\psi) = \int \log p_\psi(x_{0:n},d_{0:n})p_{\psi^{(l)}}(x_{0:n}\mid d_{0:n}) |{\textrm{d}} x_{0:n}$ .

  2. 2. M-step: $\psi^{(l+1)} = \text{argmax}_\psi Q(\psi^{(l)},\psi)$ .

Under certain conditions, the sequence $\psi^{(l)}$ is guaranteed to converge to the maximum likelihood estimate of $\psi$ , see Cappé et al. (Reference Cappé, Moulines and Rydén2006, Ch. 10.5). Here $p_\psi(x_{0:n},d_{0:n})$ is given by (3). Therefore, disregarding terms not depending on $\psi$ ,

\begin{equation*} Q(\psi^{(l)},\psi) = \int \sum_{t=0}^n \log f_\psi(x_t\mid x_{t-1})p_{\psi^{(l)}}(x_{0:n}\mid d_{0:n}) |{\textrm{d}} x_{0:n}\end{equation*}

Recall that the models in the current paper have multivariate Gaussian densities $f(x_t \mid x_{t-1})$ , belonging to the exponential family, which makes it possible to write the M-step explicitly using the ML estimators from Lemma 3.1. That is, the M-step can be written in terms of a low-dimensional sufficient statistic $S(x_{0:n})$ .

To obtain a better estimate $\widehat Q(\psi^{(l)},\psi)$ , one could draw a large number of replicates of $X_{0:n}$ . This is often referred to as the Monte Carlo EM algorithm.

An alternative is to combine a stochastic approximation algorithm with the EM algorithm, which is known as the SAEM algorithm. In practice, this leads to an algorithm where the sufficient statistic is updated in each step by taking a weighted average of the current value and the sufficient statistic obtained by sampling from the smoothing distribution given the current estimates. The SAEM algorithm is described in Algorithm 3.

Here $c_l \geq 0 $ , $\sum_l c_l = \infty$ and $\sum_l c_l^2 < \infty$ . Under certain assumptions, $\psi^{(l)}$ is guaranteed to almost surely converge to a stationary point of the log likelihood, as $l\to \infty$ , see Cappé et al. (Reference Cappé, Moulines and Rydén2006, Ch. 11.1.6) for details.

For easy reference, we summarise the proposed model fitting strategy in section A.

4 Model Validation

Recall from Lemma 2.1 that one may think of the data as coming from an experiment where a Poisson process is observed for a fixed time, the exposure to risk, during which d deaths occur. This is to be used when fitting the model and may also be used when evaluating the model. Therefore, when validating our model, the exposure to risk will be thought of as a fixed quantity, corresponding to a sample size. Then the observed d will be compared to the predictive distribution of the number of deaths in a Lexis square, denoted by P. In this setting, it is natural to consider splitting the data into a training and validation part, where parameters and state vectors are estimated based on the training data, and the model validation is based on the out-of-sample performance in the validation part of the data. That is, the out-of-sample performance is evaluated, given that the exposure to risk is assumed to be known.

On the other hand, when forecasting future values, the exposure to risk is yet to be observed, the situation is different and this problem is discussed in section 5.

In the present paper, the predictive distribution will be evaluated using (proper) scoring rules, see Gneiting & Raftery (Reference Gneiting and Raftery2007); Czado et al. (Reference Czado, Gneiting and Held2009). Loosely speaking, a scoring rule is a function that assigns a numerical value to the quality of a candidate predictive distribution, P, with respect to observed data, d. A scoring rule is said to be “proper” if there exists a unique optimal value, and it is “strictly proper” if the optimal value is attained for a unique P. It can be noted that many of the classical loss functions used for model evaluation are scoring rules. One such which will be used in the present paper is the absolute error

\begin{equation*} \text{AE}(P,d) \,:\!= |d-\mu|\end{equation*}

where $\mu$ is a point prediction based on P. Observe that this is a proper, but not strictly proper, scoring rule since any predictive distribution with the same point forecast, for example, median, will give the same absolute error. Note that AE is a negatively oriented scoring rule, that is, the aim is to minimise $\textrm{AE}$ . A more informative measure, which is a proper, negatively oriented, scoring rule, is the interval score (IS) defined according to

\begin{align*}\operatorname{IS}_\gamma(P, d) \,:\!= (u-l) + \frac{2}{\gamma}(l-d)1_{\{d < l\}} + \frac{2}{\gamma}(d-u)1_{\{d > u\}}\end{align*}

where l and u denote lower and upper $100(1-\gamma)\%$ percentiles, respectively, of the distribution P, see Gneiting & Raftery (Reference Gneiting and Raftery2007). The $\operatorname{IS}$ measure is a generalisation of the standard probability coverage measure. In practice, the average of these losses will be analysed, corresponding to the “Mean $\operatorname{AE}$ ” (MAE) and “Mean $\operatorname{IS}$ ” (MIS), and it is, hence, clear that reducing $\operatorname{MAE}$ and $\operatorname{MIS}$ still corresponds to improving model performance compared with observed data. Moreover, both measures may be used for model selection purposes based on both in-sample (training) and out-of-sample (validation) performance.

Furthermore, recall that the parameters in model (M1) (and model (M2)) are estimated by maximising the log likelihood, which is equivalent to maximising the logarithmic score (see Gneiting & Raftery Reference Gneiting and Raftery2007; Czado et al. Reference Czado, Gneiting and Held2009)

\begin{equation*} \text{logs} (P,d) \,:\!= \log P(d)\end{equation*}

where P(d) is the probability mass of the observation d in a predictive distribution, which is as proper scoring rule. That is, maximising the likelihood is equivalent to maximising

\begin{equation*}l(d_{0:n}) = \sum_\mathcal{S} \text{logs}(P_\mathcal{S}, d_\mathcal{S})\end{equation*}

which is a proper scoring rule. Here one can note that compared with (M)AE and (M)IS, where the optimal value is 0, the logarithmic score only tells us that a higher value is better. Still, scaling and translation of a proper scoring rule using constants is still a proper rule. One choice of scaling and translation of the logarithmic score suggested in Cameron & Windmeijer (Reference Cameron and Windmeijer1996) which produces an R-squared like measure is the following:

(11) \begin{align} \text{R}^2_{\text{Dev}} \,:\!= \frac{\sum_\mathcal{S}\text{logs} (P_\mathcal{S},d_\mathcal{S}) -\sum_\mathcal{S} \text{logs} (\overline P_\mathcal{S},d_\mathcal{S})}{\sum_\mathcal{S}\text{logs} (\widehat P_\mathcal{S}, d_\mathcal{S}) - \sum_\mathcal{S}\text{logs} (\overline P_\mathcal{S}, d_\mathcal{S}) }\end{align}

where “Dev” refers to that both the numerator and the denominator are deviance residuals. Further, $\bar P$ denotes the likelihood in a model with only a constant intercept. In the present case, this will be taken as the model with one constant death rate per age. The likelihood $\widehat P$ is the saturated model, that is, where the number of parameters are equal to the number of observations. The sums are taken over all the observed lexis squares. Note that it is clear that $\text{R}^2_{\text{Dev}} \le 1$ , but unlike a standard $\text{R}^2$ it is not certain that $\text{R}^2_{\text{Dev}} \ge 0$ , since this will depend on whether $\bar P$ is a sub-model of P or not.

Moreover, $\text{R}^2_{\text{Dev}}$ is possible to calculate both on the training and the validation part of the data, by calculating the model likelihood, $P_\mathcal{S}$ , according to equation (9). From the calculation of $P_\mathcal{S}$ using (9) it follows that this can only be done easily for the total likelihood. That is, it is not possible to calculate logs or $\text{R}^2_{\text{Dev}}$ for a particular age or calendar year – something which often is of interest when assessing predictive model performance. In order to, at least partly, overcome this shortcoming, the following scoring rule is suggested

\begin{align*}\text{logs}^*(P, d) \,:\!= {\textsf{E}}_{X \mid D}[\log P(X,d)]\end{align*}

which is equivalent to the “E”-step of the EM algorithm, described in section 3.5. The core of the EM algorithm is that by improving $\text{logs}^*(P, d)$ it follows that logs is improved as well, see Dempster et al. (Reference Dempster, Laird and Rubin1977) or (Cappé et al. Reference Cappé, Moulines and Rydén2006, Ch. 10.1.2). Moreover, $\text{logs}^*$ is easy to calculate for a single age or calendar year, since it only amounts to drawing approximate samples from $p(x_{0:t} \mid d_{0:n})$ , where $t \le n^{\prime}$ , with n being the last observed year in the validation data and n being the last observed year in the training data, that is, $n \le n^{\prime}$ . Here it is important to note that the influence of $d_{0:n}$ on $x_t$ , $n < t \le n^{\prime}$ is via the evolution of $x_{n^{\prime}+1: t}$ based on the state vector $x_{0:n^{\prime}}$ – an evolution entirely governed by the dynamics of the latent Gaussian $X_t$ process. That is, given the observed exposure to risk, the Poisson variation is not time dependent. Furthermore, by using $\text{logs}^*$ it is natural to introduce

(12) \begin{align} \text{R}^{2,*}_{\text{Dev}} \,:\!= \frac{\sum_\mathcal{S}\text{logs}^* (P_\mathcal{S},d_\mathcal{S}) -\sum_\mathcal{S} \text{logs} (\overline P_\mathcal{S},d_\mathcal{S})}{\sum_\mathcal{S}\text{logs} (\widehat P_\mathcal{S}, d_\mathcal{S}) - \sum_\mathcal{S}\text{logs} (\overline P_\mathcal{S}, d_\mathcal{S}) }\end{align}

which follows by noting that $\text{logs}^*(\cdot) = \text{logs}(\cdot)$ unless P is used, and again note that $\text{R}^{2,*}_{\text{Dev}} \le 1$ , but $\text{R}^{2,*}_{\text{Dev}}$ may be smaller than 0, due to the same reasons as for $\text{R}^{2}_{\text{Dev}}$ .

Another method of validating the model is use a lookback window on which the estimates are based, comparing forecasts with observations, moving the window forward and repeating. The methods discussed in this section could then be used, or as in Dowd et al. (Reference Dowd, Cairns, Blake, Coughlan, Epstein and Khalaf-Allah2010) by verifying that the residuals are consistent with the model assumptions. However, since the current model fitting approach is computationally expensive this latter approach is not practically feasible. Still, in section 6, apart from using the above measures, both in-sample and out-sample performances are illustrated graphically with respect to the main quantities of interest.

5 Forecasting

The main goal of the present paper is to forecast mortality. In this section, a number of complications related to this are discussed. The specifics of the forecast depend on what is assumed to be known and what one wants to forecast. For example:

  1. 1. The perhaps most basic quantity of interest when forecasting, regardless of the size of the population, is the mean or (distribution) of $M_{\mathcal{S}_{a,t}}$ .

  2. 2. When making forecasts for sub-populations, for example, individuals in an insurance portfolio, the actual number of deaths is of interest and not only the mortality rate. In this situation, the randomness from the Poisson process should be taken into account. Here, typically, individual-level information is available.

  3. 3. When forecasting mortality in larger populations, the actual number of deaths may also be of interest, for example, when making country-level demographic forecasts. In this situation, however, information on individual level may not be available or may be impractical to incorporate.

Having fitted the model and obtained the filtering distribution of the state variables at present time, forecasting the state variables is simple. One may either use Monte Carlo simulation to iterate the recursion equation for the state variables, starting at the particle approximation of the present time filtering distribution, to obtain approximations of the distribution at a future time. Or, since the state variables are Gaussian, conditioned on each particle, the forecast will also be Gaussian for each particle, with mean and covariance recursively calculable. In this way, it is possible to obtain the predictive distribution of future $M_{\mathcal{S}_{a,t}}$ , which covers Case 1 above.

Considering Case 2, assume that a forecast of $M_{\mathcal{S}_{a,t}} = m_{\mathcal{S}_{a,t}}$ has been produced, and the corresponding forecasted death count will be conditioned on this value. Further, recall that the current modelling approach is motivated by the structure of a Lexis diagram. This means that a single individual of age $a \ge 1$ at year t, can experience one of the following three events during year t:

  1. (a) With probability $p_{a,t}^{\operatorname{a}}$ , die while being of age a.

  2. (b) With probability $p_{a,t}^{\operatorname{b}}$ , live until becoming of age $a+1$ , but die before the end of year t.

  3. (c) With probability $p_{a,t}^{\operatorname{c}}$ , live throughout the entire year t.

Concerning the age $a = 0$ , it is clear that $p_{0,t}^{\operatorname{a}} = 1 - p_{0,t}^{\operatorname{c}}$ . Further, note that an individual i, born at calendar time $b_i$ , which is a years old at the start of year t, was born in calendar year $y_i = \lfloor b_i\rfloor = t - (a+1)$ . Thus, the time point during year $y_i$ at which individual i was born is given by $u_i = b_i - y_i = b_i - t + (a+1) \in [0,1]$ . That is, in order to specify $p_{a,t}^{\operatorname{a}}, p_{a,t}^{\operatorname{b}}$ and $p_{a,t}^{\operatorname{c}}$ explicitly, it suffices to know $a\in \mathbb N$ , $t\in \mathbb N$ , $u \in [0,1]$ , and $m_{\mathcal{S}_{a,t}}$ :

Lemma 5.1. The probabilities for a single individual born at time $b = t - (a+1) + u$ , calculated under the assumptions underlying Lemma 2.1, conditional on $m_{\mathcal{S}_{a,t}}$ and u, are given by

\begin{align*}\left\{\begin{array}{ll}p_{a,t}^{\operatorname{a}}(m_{\mathcal{S}},u) &= 1-e^{-um_{\mathcal{S}_{a,t}}}\\[4pt] p_{a,t}^{\operatorname{b}}(m_{\mathcal{S}},u) &= e^{-um_{\mathcal{S}_{a,t}}}(1-e^{-(1-u)m_{S_{a+1,t}}})\\[4pt] p_{a,t}^{\operatorname{c}}(m_{\mathcal{S}},u) &= e^{-um_{\mathcal{S}_{a,t}}}e^{-(1-u)m_{S_{a+1,t}}}\end{array}\right.\end{align*}

for $a \ge 1$ . For $a = 0$ it holds that

\begin{equation*}p_{0,t}^{\operatorname{a}}(m_{\mathcal{S}},u) = 1-e^{-um_{\mathcal{S}_{0,t}}}\end{equation*}

and $p_{0,t}^{\operatorname{c}}(m_{\mathcal{S}},u) = 1 - p_{0,t}^{\operatorname{a}}(m_{\mathcal{S}},u)$ .

The proof is a simple application of the probabilities used in the derivation of Lemma 2.1.

Therefore, given Lemma 5.1, it follows that an individual which is a years old at the start of calendar year t that experiences event (a) will contribute to the death count of a-year-olds. But if the same individual instead experiences event (b), will contribute to the death count of $a+1$ -year-olds. Thus, if $D_{a,t}$ denotes the total number of deaths in age group a during year t it follows that

(13) \begin{align}D_{a,t} \mid m_{\mathcal{S}} \sim \sum_{i=1}^{n_{a,t}}\textrm{Be}(p_{a,t}^{\operatorname{a}}(m_{\mathcal{S}},u_i)) + \sum_{i=1}^{n_{a-1,t}}\textrm{Be}(p_{a-1,t}^{\operatorname{b}}(m_{\mathcal{S}},u_i))\end{align}

where $\text{Be}(p)$ denotes independent Bernoulli distributed random variables with probability of success p and $n_{a,t}$ is the number of a-year-old individuals alive at January 1st of year t. Note that this forecast is only applicable for one year ahead forecasts. After that, the number of individuals alive becomes random. But it is straightforward to implement multi-year forecasts either by doing bookkeeping of which individual is alive after each forecasted year, or by forecasting each individual’s path in the Lexis diagram separately.

In Case 3, we do not assume complete information on each individual, and we are also only interested in the aggregate number of deaths each year. However, one needs to make assumptions on the distribution of time of birth of the individuals. A simplification commonly used in this situation is to assume that all individuals are born midyear, that is, $u_i \equiv 0.5$ for all individuals i. Another possible simplification is to assume that individuals are born uniformly during each year, see Wilmoth et al. (Reference Wilmoth, Andreev, Jdanov, Glei, Boe, Bubenheim, Philipov, Shkolnikov and Vachon2017, Sect. 2). These assumptions can of course be questioned, but are in many situations satisfactory approximations. By assuming that the stochastic birth time during a year, U, is uniform, that is, $U \sim U(0,1)$ , it follows that $p_{a,t}^{\operatorname{a}}$ and $p_{a,t}^{\operatorname{b}}$ from Lemma 5.1 simplifies to

(14) \begin{align}\left\{\begin{array}{ll}\widetilde{p}_{a,t}^{\operatorname{a}}(m_{\mathcal{S}}) &= {\textsf{E}}[p_{a,t}^{\operatorname{a}}(m_{\mathcal{S}},U) \mid m_{\mathcal{S}}] = 1-\frac{1}{m_{\mathcal{S}_{a,t}}}\left(1-e^{-m_{\mathcal{S}_{a,t}}}\right)\\\widetilde{p}_{a,t}^{\operatorname{b}}(m_{\mathcal{S}}) &= {\textsf{E}}[p_{a,t}^{\operatorname{b}}(m_{\mathcal{S}},U) \mid m_{\mathcal{S}}]= \frac{1}{m_{\mathcal{S}_{a,t}}}\left(1-e^{-m_{\mathcal{S}_{a,t}}}\right) - \frac{1}{m_{\mathcal{S}_{a,t}} - m_{\mathcal{S}_{a+1,t}}}\left(e^{-m_{\mathcal{S}_{a+1,t}}} - e^{-m_{\mathcal{S}_{a,t}}}\right)\end{array}\right.\end{align}

where the expectation is taken over U, which is assumed to be independent of $m_{\mathcal{S}}$

Note that for $m_{\mathcal{S}} \ll 1$ it follows that

\begin{align*}\widetilde{p}_{a,t}^{\operatorname{a}}(m_{\mathcal{S}}) &\approx p_{a,t}^{\operatorname{a}}(m_{\mathcal{S}}, 1/2) \approx \frac{1}{2}m_{\mathcal{S}_{a,t}}\\\widetilde{p}_{a,t}^{\operatorname{b}}(m_{\mathcal{S}}) &\approx p_{a,t}^{\operatorname{b}}(m_{\mathcal{S}}, 1/2) \approx \frac{1}{2}m_{\mathcal{S}_{a+1,t}}\end{align*}

by using a Taylor expansion. Both approximations are therefore approximately equal.

Further, another observation is that, by plugging in the expressions for $\widetilde{p}_{a,t}^{\operatorname{a}}$ and $\widetilde{p}_{a,t}^{\operatorname{b}}$ into relation (14), it follows that

(15) \begin{align}D_{a,t} \mid m_{\mathcal{S}} \sim \textrm{Bin}(n_{a,t}, \widetilde{p}_{a,t}^{\operatorname{a}}(m_{\mathcal{S}})) + \textrm{Bin}(n_{a-1,t}, \widetilde{p}_{a-1,t}^{\operatorname{b}}(m_{\mathcal{S}}))\end{align}

For each simulated trajectory of $M_{\mathcal{S}}$ values, it is possible to forecast death counts, given the number of individuals alive. Note that the structure of (15) only relies on that all birth times are i.i.d., but not necessarily uniformly distributed.

We end this section by commenting on how to simulate in order to gain information on exposure to risk or when one wants to use analytically intractable assumptions on birth times. In these situations, one may use the following simulation procedure to simulate (a), (b) and (c):

  1. (0) If the individual birth time of individual i is unknown, initialise individual i by drawing a random birth time $B_i$ from the distribution of birth times. The distribution of birth times could be estimated from data or assumed to be, for example, uniform over the year.

  2. (1) Draw a $T_{a,t} \sim$ Exp( $m_{\mathcal{S}_{a,t}}$ )-distributed random variable.

    1. (a) If $T_{a,t} \le B_i$ , individual i died being of age a and contributed with $T_{a,t}$ to the exposure to risk $E_{a,t}$ .

    2. (b) If $T_{a,t} > B_i$ , individual i has survived age a during year t and contributes with $B_i$ to the exposure to risk $E_{a,t}$ .

  3. (2) Draw a $T_{a+1, t} \sim$ Exp( $m_{\mathcal{S}_{a+1,t}}$ )-distributed random variable.

    1. (b) If $T_{a+1, t} \le 1 - B_i$ , individual i died being of age $a+1$ and contributed with $T_{a+1,t}$ to the exposure to risk $E_{a+1,t}$ .

    2. (c) If $T_{a+1,t} > 1-B_i$ , individual i has survived age $a+1$ during year t and contributes with $1-B_i$ to the exposure to risk $E_{a+1,t}$ .

6 Numerical Illustration

The purpose of this section is to illustrate how the models and methods introduced in the present paper can be applied. We will focus our attention on model (M2), which explicitly allows for a random drift term, a situation discussed in Pedroza (Reference Pedroza2006). The model is calibrated to Swedish and US mortality data, collected from the Human Mortality Database (HMD), see Human Mortality Database (Reference Mortality Database2018). The reason for focusing on Sweden is due to its relatively small population size, which ought to make observations noisier and, hence, parameter estimation and prediction harder. The opposite argument apply to the US. Moreover, Swedish data are available from 1751, although with partly questionable quality until the end of the 1800s, whereas US data only are easily available from about 1935. In order to be able to use as much data as possible for out-of-sample evaluation, the initial focus for Swedish data will be to use the time period 1930–1960 for estimation and 1961–2017 for validation. For US data, we have avoided the second world war and primarily use data from the years 1950 to 1980 for estimation and use the period 1981–2017 for validation.

The parameter estimation is done as described in the summarised algorithm of section A, using the following configuration:

  1. 1. Run Algorithm 4, with $m=50$ particles $L= 50$ iterations with $c_i \,:\!= 1, i = 1, \ldots, 50$ . As starting values, we set $\Sigma$ to be the identity matrix, $\Sigma_0$ as a diagonal matrix with the value 100 along the diagonal. All other matrices are set as the identity matrix, and all mean vector are set to 0.

  2. 2. Use the estimated parameters from Step 1 as starting values for a second run using an m of 350 – 500 particles for $L=100$ iterations, using $c_i \,:\!= i^{-0.6}, i = 1, \ldots, 100$ , where 350 particles were used for 1–3 EPCA components and 500 particles for four and five EPCA components.

The idea with using Step 1 is to hopefully avoid getting stuck close to possibly poor starting values.

Concerning the data to be used, there are known differences between female and male mortality, and our initial focus will be on Swedish males.

The convergence of $\psi^{(i)}$ in the SAEM algorithm, Algorithm 3, is illustrated in Figure 2 for the situation with three EPCA components fitted on Swedish male data from 1930 to 1960. From Figure 2, there are no obvious signs of poor convergence of the SAEM algorithm, and we continue the analysis using the estimated $\psi$ .

In Figure 3(a)–(c), the first three EPCA components are shown for Swedish males when the model has been fitted on data from 1930 to 1960. As seen from the figures, the behaviour of the EPCA components becomes increasingly irregular where the first component is the smoothest. This observed increase in irregularity is the reason for using more particles in the analyses of models containing more EPCA components.

Figure 2 Trace of the estimate of $\psi^l$ from the SAEM algorithm, Algorithm 3, fitted to Swedish male data from 1930 to 1960. Each line corresponds to a component of the respective vector/matrix of parameters.

In Figure 3(d)–(f), the in-sample validation results are displayed. The main conclusion here is that the model does perform better in-sample with increasing number of EPCA components. Also, the main improvement is seen when going from one to two components, while two to five components give similar results. In particular, in Figure 3(e) and (f), it is seen that both MAE and MIS favour increasing the number of EPCA components to be used for all ages. Note that the increase in MAE and MIS with increasing age is not surprising, since the mortality rate increases with age. This suggests that one instead could consider analysing MAE and MIS scaled with for example the expected or observed number of deaths. When turning to $\text{R}^{2,*}_{\text{Dev}}$ from (12), again, the measure is improved when increasing the number of EPCA components, see Figure 3(d). It is, however, clear that according to $\text{R}^{2,*}_{\text{Dev}}$ , the performance is poorer for ages in the interval 45–65. This indicates that the performance of model (M2) does not outperform the constant mean mortality model, $\bar P$ from (12), for these ages during the years 1930–1960. On the other hand, recall that $\text{R}^{2,*}_{\text{Dev}}$ is an approximation of $\text{R}^{2}_{\text{Dev}}$ from (11), introduced in order to be able to assess model performance within for example specific ages, whereas $\text{R}^{2}_{\text{Dev}}$ only is possible to calculate over all ages and time periods in total. In Table 1, $\text{R}^{2}_{\text{Dev}}$ is calculated for Swedish male data from 1930 to 1960, where it is seen that the in-sample performance is very good seen as a whole, and increases when increasing the number of EPCA components being used, as expected.

Table 1. Calculated values of $\text{R}^{2}_{\text{Dev}}$ for model (M2) fitted to Swedish male data for the years 1930–1960

Figure 3 Fig. 3(a)–(c): First three EPCA components, Swedish males, 1930–1960. In Fig. 3(d)–(f), the number of EPCA components, 1–5, are indicated by lines that are solid/brown, short dashed/dark green, dotted/light green, dash-dotted/dark brown and long dashed/light brown, respectively. Fig. 3(d)–(f) shows, from left to right, $\text{R}^{2,*}_{\text{Dev}}$ , $\operatorname{MAE}$ and $\operatorname{MIS}$ , calculated in-sample for the period 1930–1960 for Swedish males. Fig. 3(g): In-sample variance produced by the model for simulated mortality rates, Swedish males, age 40, three EPCA components; total variance (solid line), population variance (dashed line). Fig. 3(h): 95% yearly confidence levels for the simulated mortality rates $M^*$ for Swedish males using three EPCA components (grey area), median (solid line), observed mortality rates, $\widehat m$ , (circles). Fig. 3(i): Same as in Fig. 3(h), but for the simulated latent M-process.

The measures MAE, MIS and $\text{R}^{2,*}_{\text{Dev}}$ are all calculated using the model (M2), which is a model for death counts, whilst many practitioners are more used to considering models for mortality rates. Thus, from now on our focus will be on the latent M-process and the simulated mortality rate process $M^*$ obtained according to

(16) \begin{align}M_{\mathcal S}^* = \frac{D_{\mathcal S}^*}{e_{\mathcal S}}\end{align}

where $D_{\mathcal S}^*$ corresponds to the simulated death counts using $\widehat{m}_{\mathcal S}$ from (2). It is possible to compare $M^*_{\mathcal S}$ from (16) with the observed crude estimates $\widehat{m}_{\mathcal S}$ from (2), that is,

\begin{equation*}\widehat{m}_{\mathcal S} = \frac{d_{\mathcal S}}{e_{\mathcal S}}\end{equation*}

and in particular, it is possible to decompose the observed variation into a population (“Poisson”) variation and variation stemming from the latent M-process (“signal”):

\begin{align*}up{Var}(M_{\mathcal S}^*) &= \underbrace{{\textsf{E}}[up{Var}(M_{\mathcal S}^* \mid M_{\mathcal S})]}_{=\text{``Poisson''}} + \underbrace{up{Var}({\textsf{E}}[M_{\mathcal S}^* \mid M_{\mathcal S}])}_{=\text{``signal''}}\end{align*}

In Figure 3(g), this is illustrated for Swedish males of age 40, from which it is seen that essentially all variation seen in $M^*_{\mathcal S}$ stems from the population part of the underlying process. Another way of illustrating this is given in Figure 3(h) and (i) where the $\widehat{m}_{\mathcal S}$ is compared with $M^*_{\mathcal S}$ and $M_{\mathcal S}$ , respectively. From these figures, it is evident that the variation in the M-process does not capture the variation seen in the $\widehat m$ :s – which is reasonable since the M-process is independent of population size. Moreover, this suggests that Lee–Carter type models which do not explicitly take the “Poisson” variation into consideration can lead to a misspecified latent mortality rate process. This is discussed further in Appendix B where numerical examples are given based on both the Lee–Carter model from Lee & Carter (Reference Lee and Carter1992) and the log-bilinear model from Brouhns et al. (Reference Brouhns, Denuit and Vermunt2002) that have been implemented using publicly available R packages. The example from Appendix B clearly illustrates that using model (M2) together with the suggested estimation techniques may lead to a substantial reduction in the variation of the latent mortality rate process. This is particularly important when it comes to forecasting, since the predicted Gaussian variation will grow as a function of the number of time steps being forecasted. Therefore, a misattribution of variance will affect the forecast even if the purpose is to forecast death counts. Figure 4(a)–(c) shows the out-of-sample performance in the period 1961–2016. The main conclusion here is that MAE, MIS and $\text{R}^{2,*}_{\text{Dev}}$ favour fewer EPCA components, compared to in-sample, where two or three EPCA components seem to be the best compromise for all ages. One can, however, note that $\text{R}^{2,*}_{\text{Dev}}$ indicates a very poor out-of-sample performance for ages 40–80. For easier comparison with the corresponding in-sample performance, see Figure 4(d), where $\text{R}^{2,*}_{\text{Dev}}$ is plotted for model (M2) using three EPCA components. Upon closer inspection, the lack of performance is due to a drastic decline in mortality occurring around the year 1980 in the mentioned age span, see Figure 4(g) for the model performance of 80-year-old Swedish males when using three EPCA components. Thus, in light of Figure 4(g), the poor model performance is to be expected. Further, Figure 4(h) shows the model performance when the model with three EPCA components has been fitted to data from 1930 to 1990, hence including the discussed mortality decline for ages 40–80. Even if the out-of-sample performance still is poor, one can note that the model behaves as expected: The first ten years of the sharp decline in the mortality rates for ages 40 to 80 is now included in the data being used for fitting, and the model reacts to these values as if they are part of a temporary observed anomaly, since the predictions strive to return to an evolution similar to the historical trend. Moreover, by inspecting $\text{R}^{2,*}_{\text{Dev}}$ in Figure 4(d), it is also seen that by including parts of the mortality decline in the data used for fitting, the overall in-sample performance is improved, but at a cost of poorer predictive performance for a wider span of ages. In Figure 4(i), the model with three EPCA components has been fitted to the period 1970 to 2000, and it is now clear that the model has been able to adapt to the change in the observed mortality patterns. Still, the in-sample performance is somewhat poorer in general, but descent as a whole, see Figure 4(d). Concerning the out-of-sample $\text{R}^{2,*}_{\text{Dev}}$ from Figure 4(d), the behaviour is highly erratic, but here one shall keep in mind that each $\text{R}^{2,*}_{\text{Dev}}$ value is only calculated as an average of 16 years. In Figure 5(a)–(c), the simulated total, in-sample and out-of-sample trajectories for Swedish males of age 10, 40 and 80 are shown, using three EPCA components, fitted to the years 1970 to 2000, and it is seen that the overall performance is satisfactory. One can also note that $\text{R}^{2}_{\text{Dev}}$ from (11) increases, compared to using data from 1930 to 1960, when fitting the models to data from 1930 to 1990 and 1970 to 2000 – attaining the highest value for the latter time period.

Figure 4 Fig. 4(a)–(c) shows the out-of-sample analog of Fig. 3(d)–(f), where all parameters have been estimated based on Swedish male data from 1930 to 1960, and the predictions are made for the period 1961 to 2016. Fig. 4(d)–(f): $\text{R}^{2,*}_{\text{Dev}}$ where solid lines correspond to in-sample performance and dashed lines correspond to out-of-sample performance when using three EPCA components – models fitted using data from 1930 to 1960, 1930 to 1990 and 1970 to 2000, respectively. Fig. 4(g)–(i): 95% yearly confidence/prediction intervals (grey area) for simulated mortality rates $M^*$ , Swedish males, age 80, three EPCA components, median (solid/dashed line), observed mortality rates, $\widehat m$ , (circles) – models fitted using data from 1930 to 1960, 1930 to 1990 and 1970 to 2000, respectively.

Figure 5 In all figures, 95% confidence/prediction intervals for the simulated centralised mortality rates (grey area), median (solid/dashed line) and observed centralised mortality rates (circles). In all figures, from left to right, age 10, age 40 and age 80, respectively. Fig. 5(a)–(c): Swedish males, three EPCA components, model fitted using data from 1970 to 2000. Fig. 5(d)–(f): Swedish females, five EPCA components, model fitted using data from 1950 to 1980. Fig. 5(g)–(i): US females, three EPCA components, model fitted using data from 1950 to 1980.

Continuing in Figure 5(d)–(f), the model performance for Swedish females of ages 10, 40 and 80 is illustrated for model (M2) with two EPCA components fitted on data from 1950 to 1980, and Figure 5(g)–(i) shows the same situation for US females when using model (M2) with three EPCA components. From the figures for the Swedish females, it is seen that there is a similar decline in mortality for age 40, but less pronounced than the one seen in Figure 4(g) for 80-year-old Swedish male. Also note that no sudden drop in mortality is seen for 80-year-old Swedish female. Concerning the US females the mortality pattern is more irregular, and there are signs of a change in trend around 1990 where the mortality seems to increase, which is something not captured by the model. Moreover, when inspecting 80-year-old US female, the in-sample variation seems to be too small.

To summarise the above numerical illustration, it is seen the importance of using predictive measures for model selection, as well as the importance of assessing model performance based on death counts or scalings thereof (i.e. $\widehat m$ versus $M^*$ ). We have also described in detail how model (M2) may be used in practice and shown that the model is able to capture most of the relevant dynamics observed in the analysed historical data. Moreover, we have also seen that the model behaves as expected when data used for fitting contains drastic changes in mortality trends. Another important observation is that the analyses imply that by not explicitly (and correctly) accounting for the Poisson part of the variation, the variation attributed to the latent mortality rate process may become substantially misspecified. This may, hence, be a problem for Lee–Carter-type models.

7 Conclusions

In the present paper, it has been argued for using a Poisson state-space model for mortality forecasting. The Poisson part of the model arises naturally from the mortality dynamics of a continuous time Lexis diagram. The unobservable state process corresponding to a mortality rate process is modelled as a multivariate Gaussian process inspired by the Lee–Carter model and its extensions, see Booth & Tickle (Reference Booth and Tickle2008) and Haberman & Renshaw (Reference Haberman and Renshaw2011). The suggested model class provides models for death counts, as opposed to, for example, Lee–Carter like models, which are models for mortality rates. Furthermore, most Lee–Carter like models are fitted in a two-step procedure, where first raw mortality estimates are obtained according to, for example (2), and then, in a second step, a stochastic process is fitted to the raw mortality rates. By using the suggested Poisson state-space models, estimation may be done coherently in a single step using particle filter techniques and the SAEM algorithm. Moreover, since all model parameters are estimated using maximum likelihood, it is argued that it is natural to use versions of logarithmic scores for model performance assessment. In particular, an $\text{R}^2$ -like measure is introduced, which is closely connected to the “E”-step in the SAEM algorithm. This measure is possible to calculate both in-sample and out-of-sample for specific ages and time periods and is a proper scoring rule.

A large number of numerical illustration is also provided, where the necessary steps to fit the model and make forecasts have been discussed. In this numerical illustration, it was also shown that by using the Poisson state-space model for death counts it is possible to decompose the observed variability in terms of “population” (or Poisson) variation and “signal” (or mortality rate) variation. For the Swedish data, it is clear that the Poisson part of the variation is dominating in-sample. Further, the numerical examples illustrate that not explicitly accounting for these separate sources of variation, as in in the case of the Lee–Carter model, may lead to a misspecified latent mortality rate process, which will affect the forecasting ability of the model negatively.

Appendix A Summary of Model Fitting

Figure B1 Columns: From left to right, model (M2) with three EPCA components, the Lee–Carter model, and the Poisson log bilinear model from Brouhns et al. (Reference Brouhns, Denuit and Vermunt2002). Rows: First row shows the latent mortality process, and the second row shows the simulated mortality rates according to (16) when assuming that death counts are (conditionally) Poisson distributed. All figures show Swedish male mortality for the age 40, and all models have been fitted based on the ages 0–90 and the time period 1930–1960. The area in grey corresponds to 95% confidence regions, solid lines correspond to the median and the actual observations are indicated by circles.

Appendix B Attribution of Mortality Rate Variation – A Numerical Illustration

In this section two examples of other mortality rate models will be considered and their ability to capture the variation seen in actual mortality rates given by the point estimates from (2) will be illustrated. For the first model, the classical Lee–Carter model from Lee & Carter (Reference Lee and Carter1992), the analysis is based on the R package Demography, using the lca model class. The second model is the Poisson log-bilinear model from Brouhns et al. (Reference Brouhns, Denuit and Vermunt2002), and the analysis is based on the R package StMoMo using the lc model class. Note that it is clear that these models will have different numbers of parameters, and, hence, different ability to capture non-linear behavior. In order to account for this, all models have been estimated using a period and age where all models fit data well. The chosen data is Swedish male data, ages 0-90, during the years 1930–1960. The example will be restricted to in-sample performance, due to that we are here primarily interested in comparing the attribution of variance between the different models and not the actual predictive performance. In order to obtain in-sample variability for the Lee–Carter model first the lca model class was fitted to data, and then, in a second step, the $\texttt{Arima}$ package was used. An example of the in-sample performance is given in Figure B1 for the age 40. Perhaps not surprisingly, by comparing the latent mortality rate process from the Lee–Carter model, see Figure B1(b), which has no explicit Poisson part, with the latent mortality rate process from model (M2), see Figure B1(a), the Lee–Carter models shows a clear tendency to attribute too much variation to the latent mortality rate process. Note that the Lee–Carter model needs one observation for initiation of the random walk process with drift governing the calendar time dynamics of the model. This explains why the first observation in Figure A1(b) lacks a confidence interval. Turning to the Poisson log-bilinear model from Brouhns et al. (Reference Brouhns, Denuit and Vermunt2002), this model has an explicit Poisson part, and may be seen as an approximation of model (M2). From Figure A1(f) it is clear that this model attributes much less variation to the latent mortality rate process than the Lee–Carter model, but still considerably more than seen in the latent Gaussian process from model (M2). Again, note that the first observation lacks a confidence interval due to the same reason as for the Lee–Carter model.

Furthermore, an illustration of simulated mortality rates following (16) are given in Figure B1(d)–(f). Again, it is seen that the standard Lee–Carter model’s performance is the worst, but the Poisson log-bilinear model is now closer to model (M2). Still, even when it comes to forecasts of death counts, the Gaussian part of the model will after only a few predicted future time points dominate the variation. Consequently, when making predictions on moderate to long time horizons it is particularly important to make as correct attribution of variation as possible.

Appendix C Proofs and Mathematical Motivations

C.1 Proof of Lemma 2.1

Following standard theory of counting processes with multiplicative intensity processes, see Andersen et al. (Reference Andersen, Borgan, Gill and Keiding1993); Aalen et al. (Reference Aalen, Borgan and Gjessing2008): Let $\widetilde{t}_i$ denote the last time point when individual i was observed to be alive, $b_i \le \widetilde{t}_i \le q_i$ , let $\delta_i = 1$ if individual i died at $\widetilde{t}_i$ and 0 otherwise. If we further assume that all individuals are independent, we get that the log-likelihood function is given by

\begin{align*}l(m) &\propto \sum_{i = 1}^n \delta_i \log m(a_i(\widetilde{t}_i),\widetilde{t}_i) - \sum_{i = 1}^n \int_{\underline{t}}^{\widetilde{t}_i} \lambda_i(t)|{\textrm{d}} t\\&= \sum_{i = 1}^n \delta_i \log m(\widetilde{t}_i-b_i, \widetilde{t}_i) - \sum_{i = 1}^n \int_{\underline{t}}^{\widetilde{t}_i} m(t-b_i, t)Y_i(t)|{\textrm{d}} t\end{align*}

Thus, if we consider the situation with constant hazard rates on yearly Lexis squares, that is, $\mathcal{M} = {\left\{{m_{\mathcal{S}} \mid \mathcal S \in \bar{\mathcal S}}\right\}}$ , it follows that

\begin{align*}l(\mathcal{M}) &\propto \sum_{i = 1}^n \sum_{\mathcal{S} \in \bar{\mathcal S}} \delta_i1_{\{(a_i, \widetilde{t}_i) \in \mathcal{S}\}} \log m_\mathcal{S} - \sum_{i = 1}^n \sum_{\mathcal{S} \in \bar{\mathcal S}} m_\mathcal{S}\int_{\underline{t}}^{\widetilde{t}_i}Y_i(t;\, \mathcal{S})dt\\&= \sum_{\mathcal{S} \in \bar{\mathcal S}} ( d_\mathcal{S} \log m_\mathcal{S} - e_\mathcal{S}m_\mathcal{S})\end{align*}

which is exactly the result from Lemma 2.1.

C.2 Proof of Lemma 3.1

These are standard results for VAR processes, see Hamilton (Reference Hamilton1994), which are included for the sake of completeness. This section is split into two parts, one for model (M1) and one for model (M2).

Here we use that for matrices X and Y of suitable dimensions,

\begin{align*} \frac{\partial}{\partial X} \log |\det X| &= (X^{\prime})^{-1}\\ \frac{\partial}{\partial X} \operatorname{tr}(XY) &= Y^{\prime}\end{align*}

Model (M1)

By combining (7) and (4),

\begin{align*}f_\psi(x_{0:n}) &= v (x_0)\prod_{t=1}^n f_\psi(x_t \mid x_{t-1})\\&\propto \vert{\Sigma}\vert^{-\tfrac{n}{2}}\exp\left\{-\tfrac{1}{2}\sum_{t=1}^n{\left({x_t - \Gamma x_{t-1} - \mu}\right)}^{\prime}\!\Sigma^{-1}{\left({x_t - \Gamma x_{t-1}- \mu }\right)}\right\}\end{align*}

That it is an exponential family is clear since it is multivariate normal and that it is curved follows by finding the natural parameters and sufficient statistics. Since the quadratic form in the exponential function is a scalar and

\begin{equation*} \operatorname{tr}(AB) = \operatorname{tr}(BA) = \operatorname{tr}(A^{\prime}B) = \operatorname{vec}(A)\cdot \operatorname{vec}(B)\end{equation*}

it follows that

\begin{align*} &-\dfrac{1}{2}\sum_{t=1}^n{\left({x_t - \Gamma x_{t-1} - \mu}\right)}^{\prime}\!\Sigma^{-1}{\left({x_t - \Gamma x_{t-1}- \mu }\right)} \\[9pt] &\quad = \operatorname{vec}\left(\begin{array}{c}\Sigma^{-1}\\[9pt] -2\Sigma^{-1}\Gamma\\[9pt] \Gamma^{\prime}\Sigma^{-1}\Gamma\\[9pt] -2\mu^{\prime}\Sigma^{-1}\\[9pt] \mu^{\prime}\Sigma^{-1}\Gamma\end{array}\right)\cdot\operatorname{vec}\left(\begin{array}{l}\sum_{t = 1}^n x_tx^{\prime}_t\\[9pt] \sum_{t = 1}^n x_{t-1}x^{\prime}_t\\[9pt] \sum_{t = 1}^n x_{t-1}x^{\prime}_{t-1}\\[9pt] \sum_{t = 1}^n x_t\\[9pt] \sum_{t = 1}^n x_{t-1}\end{array}\right) + n\mu^{\prime}\Sigma^{-1}\mu\end{align*}

We see that the dimension of the natural parameter is larger than that of $\psi$ , and so the exponential family is curved. Let us denote the sufficient statistic as

\begin{align*}S(x_{0:n})=\left(\begin{array}{l}S_1(x_{1:n})\\[9pt] S_2(x_{0:n})\\[9pt] S_3(x_{0:n-1})\\[9pt] S_4(x_{1:n})\\[9pt] S_5(x_{0:n-1})\end{array}\right)= \left(\begin{array}{l}\sum_{t = 1}^n x_tx^{\prime}_t\\[9pt] \sum_{t = 1}^n x_{t-1}x^{\prime}_t\\[9pt] \sum_{t = 1}^n x_{t-1}x^{\prime}_{t-1}\\[9pt] \sum_{t = 1}^n x_t\\[9pt] \sum_{t = 1}^n x_{t-1}\end{array}\right)\end{align*}

Towards finding the ML estimators, define

\begin{equation*} \widehat \varepsilon_t \,:\!= x_t - \begin{bmatrix} \widehat\mu& \quad \widehat \Gamma \end{bmatrix}\begin{bmatrix} 1 \\ x_{t-1} \end{bmatrix}\end{equation*}

The log-likelihood as a function of $\Gamma$ and $\mu$ is, ignoring constants, given by

\begin{align*} -2l(\Gamma,\mu) &=\sum_{t=1}^n{\left({x_t - \begin{bmatrix} \mu & \Gamma \end{bmatrix}\begin{bmatrix} 1 \\ x_{t-1} \end{bmatrix}}\right)}^{\prime}\!\Sigma^{-1}{\left({x_t -\begin{bmatrix} \mu &\Gamma \end{bmatrix}\begin{bmatrix} 1\\ x_{t-1} \end{bmatrix}}\right)}= \operatorname{tr}\left(\Sigma^{-1}\sum_{t=1}^n\widehat \varepsilon_t\widehat \varepsilon_t^{\prime}\right) \\ &\quad+ \operatorname{tr}\left(\Sigma^{-1}\sum_{t=1}^n{\left({\begin{bmatrix} \widehat \mu -\mu & \widehat\Gamma - \Gamma \end{bmatrix}\begin{bmatrix} 1 \\ x_{t-1} \end{bmatrix}}\right)}{\left({\begin{bmatrix} \widehat \mu -\mu &\widehat\Gamma - \Gamma \end{bmatrix}\begin{bmatrix} 1 \\ x_{t-1} \end{bmatrix}}\right)}^{\prime}\right) \\ &\quad+ 2\operatorname{tr}\left(\Sigma^{-1}\sum_{t=1}^n \widehat\varepsilon_t \begin{bmatrix} 1 & x_{t-1}^{\prime} \end{bmatrix}\begin{bmatrix} \widehat \mu^{\prime} -\mu^{\prime} \\[8pt] \widehat\Gamma^{\prime} - \Gamma^{\prime} \\ \end{bmatrix}\right)\end{align*}

If $\hat\Gamma$ is such that the third term above is 0, it is clear that $\Gamma = \hat\Gamma$ is a minimum. Therefore, the condition for a minimum is that

\begin{align*} \sum_{t=1}^n\widehat \varepsilon_t\begin{bmatrix} 1 & \quad x_{t-1}^{\prime} \end{bmatrix} &= \sum_{t=1}^n{\left({x_t - \begin{bmatrix} \widehat\mu&\widehat \Gamma \end{bmatrix}\begin{bmatrix} 1 \\ x_{t-1} \end{bmatrix}}\right)}\begin{bmatrix} 1 & x_{t-1}^{\prime} \end{bmatrix}\\ &= \begin{bmatrix} S_4 & S^{\prime}_2 \end{bmatrix} - \begin{bmatrix} \widehat\mu & \widehat\Gamma \end{bmatrix}\begin{bmatrix} n & S^{\prime}_5 \\[8pt] S_5 & S_3 \end{bmatrix}= 0\end{align*}

with solution

\begin{equation*}\begin{bmatrix} \widehat\mu & \widehat\Gamma \end{bmatrix} = \begin{bmatrix} S_4 & S^{\prime}_2 \end{bmatrix}\begin{bmatrix} n &\quad S^{\prime}_5 \\[8pt] S_5 &\quad S_3 \end{bmatrix}^{-1}\end{equation*}

Consequently, the log-likelihood as a function of $\Sigma^{-1}$ , evaluated at $\widehat\Gamma$ and $\widehat\mu$ , is given by

\begin{equation*} -2l(\Sigma^{-1};\, \widehat\Gamma,\hat\mu) = -n\log\mid \Sigma^{-1}\mid + \operatorname{tr}\Sigma^{-1}\sum_{t=1}^n\widehat \varepsilon_t\widehat \varepsilon_t^{\prime}\end{equation*}

which yields

\begin{equation*} \frac{|{\textrm{d}}}{|{\textrm{d}} \Sigma^{-1}}{\left[{-2l(\Sigma^{-1};\, \widehat\Gamma,\widehat\mu)}\right]} = -n\Sigma + \sum_{t=1}^n\widehat \varepsilon_t\widehat \varepsilon^{\prime}_t\end{equation*}

resulting in the following MLE

\begin{align*} \widehat \Sigma &= \frac{1}{n}\sum_{t=1}^n\widehat \varepsilon_t\widehat \varepsilon^{\prime}_t = \frac{1}{n}\sum_{t=1}^n {\left({ x_t - \begin{bmatrix} \widehat\mu\ \ \ & \widehat \Gamma \end{bmatrix}\begin{bmatrix} 1\\ x_{t-1} \end{bmatrix}}\right)}{\left({ x_t - \begin{bmatrix} \widehat\mu & \widehat \Gamma \end{bmatrix}\begin{bmatrix} 1\\ x_{t-1} \end{bmatrix}}\right)}^{\prime}\notag \\[3pt] &= \frac{1}{n}{\left({ S_1 - \begin{bmatrix} S_4 & S^{\prime}_2 \end{bmatrix}\begin{bmatrix} \widehat\mu^{\prime} \\[5pt] \widehat\Gamma^{\prime} \end{bmatrix}- \begin{bmatrix} \widehat\mu & \widehat\Gamma \end{bmatrix}\begin{bmatrix} S^{\prime}_4 \\ S_2 \end{bmatrix} + \begin{bmatrix} \widehat\mu & \widehat\Gamma \end{bmatrix}\begin{bmatrix} n & S^{\prime}_5 \\ S_5 & S_3 \end{bmatrix} \begin{bmatrix} \widehat\mu^{\prime}\\[8pt] \widehat\Gamma^{\prime} \end{bmatrix}}\right)}\end{align*}

Model (M2)

By using analogous arguments as those used for model (M1) the MLE of $\Gamma^K$ is given by

\begin{align*} \widehat\Gamma^K = S^{\prime}_2(k_{0:n})S_3^{-1}(k_{0:n-1})\end{align*}

and of $\Sigma^K$ by,

\begin{align*} \widehat\Sigma^K = \frac{1}{n}{\left({S_1(k_{1:n}) + \widehat\Gamma S_3(k_{0:n-1})\widehat\Gamma^{\prime} - S^{\prime}_2(k_{0:n})\widehat\Gamma^{\prime} - \widehat\Gamma S_2(k_{0:n})}\right)}\end{align*}

For $\Gamma_X$ and $\mu$ , the condition for the MLE is that

\begin{align*} &\sum_{t=1}^n{\left({x_t -k_{t-1} - \begin{bmatrix} \widehat\mu\ \ \ &\widehat \Gamma_X \end{bmatrix}\begin{bmatrix} 1 \\ x_{t-1} \end{bmatrix}}\right)}\begin{bmatrix} 1\ \ \ & x_{t-1}^{\prime} \end{bmatrix}\\ &\qquad= {\left({\begin{bmatrix} S_4(x_{1:n}) & S^{\prime}_2(x_{0:n-1}) \end{bmatrix}- \begin{bmatrix} S_5(k_{0:n-1}) & \sum_{t=1}^n k_{t-1}x^{\prime}_{t-1} \end{bmatrix}}\right)}\\ &\qquad\quad - \begin{bmatrix} \widehat\mu\ \ \ & \widehat\Gamma_X \end{bmatrix}\begin{bmatrix} n\ \ \ & S^{\prime}_5(x_{0:n-1}) \\[5pt] S_5(x_{0:n-1}) & S_3(x_{0:n-1}) \end{bmatrix} = 0\end{align*}

with solution

\begin{equation*}\begin{bmatrix} \widehat\mu\ \ \ & \widehat\Gamma_X \end{bmatrix} = {\left({\begin{bmatrix} S_4(x_{1:n}) & S^{\prime}_2(x_{0:n-1}) \end{bmatrix}- \begin{bmatrix} S_5(k_{0:n-1}) & \sum_{t=1}^n k_{t-1}x_{t-1}^{\prime} \end{bmatrix}}\right)}\begin{bmatrix} n & S_5(x_{0:n-1})^{\prime} \\ S_5(x_{0:n-1}) & S_3(x_{0:n-1}) \end{bmatrix}^{-1}\end{equation*}

The MLE of $\Sigma$ is then

\begin{align*} \widehat \Sigma & = \frac{1}{n}\sum_{t=1}^n {\left({ x_t- k_{t-1} - \begin{bmatrix} \widehat\mu\ \ \ & \widehat \Gamma \end{bmatrix}\begin{bmatrix} 1\\ x_{t-1} \end{bmatrix}}\right)}{\left({ x_t- k_{t-1} - \begin{bmatrix} \widehat\mu\ \ \ & \widehat \Gamma \end{bmatrix}\begin{bmatrix} 1\\ x_{t-1} \end{bmatrix}}\right)}^{\prime}\notag \\ &= \frac{1}{n}\Bigg ( S_1(x_{1:n}) + S_3(k_{0:n-1}) + \begin{bmatrix} \widehat\mu & \widehat\Gamma \end{bmatrix}\begin{bmatrix} n & S^{\prime}_5(x_{0:n-1}) \\ S_5(x_{0:n-1}) & S_3(x_{0:n-1}) \end{bmatrix}\begin{bmatrix} \widehat\mu^{\prime}\\ \widehat\Gamma^{\prime} \end{bmatrix}\\ & \quad- \sum_{t=1}^n x_t k^{\prime}_{t-1} - \sum_{t=1}^n k_{t-1}x^{\prime}_t - \begin{bmatrix} S_4(x_{1:n}) & S^{\prime}_2(x_{0:n}) \end{bmatrix}\begin{bmatrix} \widehat\mu^{\prime} \\[3pt] \widehat\Gamma^{\prime} \end{bmatrix}- \begin{bmatrix} \widehat\mu & \widehat\Gamma \end{bmatrix}\begin{bmatrix} S^{\prime}_4(x_{1:n})\\[4pt] S^{\prime}_2(x_{0:n}) \end{bmatrix}\\ &\quad+ \begin{bmatrix} S_5(k_{1:n}) & \sum_{t=1}^n k_{t-1} x^{\prime}_{t-1} \end{bmatrix}\begin{bmatrix} \widehat \mu^{\prime} \\[3pt] \widehat \Gamma^{\prime} \end{bmatrix}+ \begin{bmatrix} \widehat \mu & \widehat \Gamma \end{bmatrix}\begin{bmatrix} S^{\prime}_5(k_{1:n}) \\[3pt] \sum_{t=1}^n x^{\prime}_{t-1}k_{t-1} \end{bmatrix}\Bigg )\end{align*}

C.3 Proof of Lemma 3.2

We will now show that $-\log g_\Upsilon(d_{0:n} \mid x_{0:n})$ is bi-convex in $\Upsilon$ and $x_{0:n}$ in the sense of (Gorski et al. Reference Gorski, Pfeuffer and Klamroth2007, Def. 1.2), but not jointly convex in $(\Upsilon, x_{0:n})$ .

First, note that $\Upsilon \in \mathbb{R}^{m\times p}$ and $x_t \in \mathbb{R}^p, t = 0,\ldots,n$ , are both elements of convex sets. Further, note that

\begin{equation*}-\log g_\Upsilon(d_{0:n} \mid x_{0:n}) = - \sum_{t = 0}^n\log g_\Upsilon(d_t \mid x_t)\end{equation*}

can be decomposed into a sum of terms of the form

\begin{align*}h(z;\, k, d) &= k|{\textrm{e}}^{z} - dz\end{align*}

where $k>0$ and $d>0$ are constants, that is

\begin{equation*}-\log g_\Upsilon(d_t \mid x_t) = \sum_{i = 1}^k h((\Upsilon x_{t})_i;\, (e_{t})_i, (d_t)_i)\end{equation*}

By straightforward differentiation, it is clear that $h(z ;\, k, d)$ is convex in z, but not monotone. Moreover, let $\underline{x}_t \,:\!= (x_t, \ldots, x_t) \in \mathbb{R}^{m\times p}$ and let $1_i$ denote the $mp \times mp$ matrix whose off-diagonal elements are 0 with a diagonal consisting of zeros and ones defined so that the following relation holds

\begin{equation*}\operatorname{vec}(\Upsilon)^{\prime}1_i \operatorname{vec}(\underline x_t) = (\Upsilon x_{t})_i \in \mathbb{R}\end{equation*}

By using this representation it follows that

\begin{align*}\operatorname{vec}(\Upsilon)^{\prime}1_i \operatorname{vec}(\underline x_t) =\!:\,& A_{\Upsilon, i} \operatorname{vec}(\underline x_t)\\ =\!:\,& A_{x_t, i} \operatorname{vec}(\Upsilon)\end{align*}

and, in particular,

\begin{align*}-\log g_\Upsilon(d_t \mid x_t) &= \sum_{i = 1}^k h((\Upsilon x_{t})_i;\, (e_{t})_i, (d_t)_i)\\&= \sum_{i = 1}^k h(A_{\Upsilon, i} \operatorname{vec}(\underline x_t);\, (e_{t})_i, (d_t)_i) \\&= \sum_{i = 1}^k h(A_{x_t, i} \operatorname{vec}(\Upsilon);\, (e_{t})_i, (d_t)_i)\end{align*}

which corresponds to compositions of affine mappings of a convex function. This shows that $-\log g_\Upsilon(d_t \mid x_t)$ is convex in $\Upsilon$ given $x_t$ , as well as, convex in $x_t$ given $\Upsilon$ , see Boyd (Reference Boyd, Boyd and Vandenberghe2004), Ch. 3.2. The argument can be repeated to show that $-\log g_\Upsilon(d_{0:n} \mid x_{0:n})$ is bi-convex with respect to $\Upsilon$ and $x_{0:n}$ .

The following counter example shows that $-\log g_\Upsilon(d_{0:n} \mid x_{0:n})$ is not jointly convex:

\begin{align*}h\big((pu_1 + (1-p)u_2)(pv_1 + (1-p)v_2);\, k, d\big) > ph\big(u_1v_1;\, k, d\big) + (1-p)h\big(u_2v_2;\, k, d\big)\end{align*}

when $k = d = 1, p = 0.8$ and $(u_1, v_1) = (-1.5, 1)$ , $(u_2, v_2) = (-0.5, 1.5)$ .

Consequently, $-\log g_\Upsilon(d_{0:n} \mid x_{0:n})$ is bi-convex in $\Upsilon$ and $x_{0:n}$ separately, but not jointly convex in both $\Upsilon$ and $x_{0:n}$ .

References

Aalen, O., Borgan, O. & Gjessing, H. (2008). Survival and Event History Analysis: A Process Point of View. Springer Science & Business Media.CrossRefGoogle Scholar
Andersen, P.K., Borgan, O., Gill, R.D. & Keiding, N. (1993). Statistical Models Based on Counting Processes. Springer-Verlag New York, Inc. CrossRefGoogle Scholar
Barber, D., Cemgil, A.T. & Chiappa, S. (2011). Bayesian Time Series Models [Elektronisk resurs]. Cambridge University Press, Cambridge.CrossRefGoogle Scholar
Bazaraa, M.S., Sherali, H.D. & Shetty, C.M. (2006). Nonlinear Programming: Theory and Algorithms, Third Edition. John Wiley & Sons, Inc., Hoboken, New Jersey. CrossRefGoogle Scholar
Booth, H. & Tickle, L. (2008). Mortality modelling and forecasting: A review of methods. Annals of Actuarial Science, 3(1–2), 343.CrossRefGoogle Scholar
Boyd, S., Boyd, S.P. & Vandenberghe, L. (2004). Convex Optimization. Cambridge University Press, Cambridge.CrossRefGoogle Scholar
Brouhns, N., Denuit, M. & Vermunt, J.K. (2002). A poisson log-bilinear regression approach to the construction of projected lifetables. Insurance: Mathematics and Economics, 31(3), 373393.Google Scholar
Cameron, A.C. & Windmeijer, F.A. (1996). R-squared measures for count data regression models with applications to health-care utilization. Journal of Business & Economic Statistics, 14(2), 209220.Google Scholar
Cappé, O., Moulines, E. & Rydén, T. (2006). Inference in Hidden Markov Models. Springer Series in Statistics. Springer, New York.Google Scholar
Carfora, M. F., Cutillo, L. & Orlando, A. (2017). A quantitative comparison of stochastic mortality models on italian population data. Computational Statistics & Data Analysis, 112, 198214.CrossRefGoogle Scholar
Collins, M., Dasgupta, S. & Schapire, R.E. (2001). A generalization of principal components analysis to the exponential family. In Advances in Neural Information Processing Systems (pp. 617624).Google Scholar
Czado, C., Gneiting, T. & Held, L. (2009). Predictive model assessment for count data. Biometrics, 65(4), 12541261.CrossRefGoogle ScholarPubMed
De Jong, P. & Tickle, L. (2006). Extending Lee–Carter mortality forecasting. Mathematical Population Studies, 13(1), 118.CrossRefGoogle Scholar
Dempster, A.P., Laird, N.M. & Rubin, D.B. (1977). Maximum likelihood from incomplete data via the em algorithm. Journal of the Royal Statistical Society. Series B (Methodological), 138.CrossRefGoogle Scholar
Dowd, K., Cairns, A.J., Blake, D., Coughlan, G.D., Epstein, D. & Khalaf-Allah, M. (2010). Evaluating the goodness of fit of stochastic mortality models. Insurance: Mathematics and Economics 47(3), 255265.Google Scholar
Durbin, J. & Koopman, S.J. (2012). Time Series Analysis by State Space Methods. vol. 38. Oxford University Press.CrossRefGoogle Scholar
Ekheden, E. & Hössjer, O. (2014). Analysis of the stochasticity of mortality using variance decomposition. In D. Silvestrov & A. Martin-Löf (Eds.), Modern Problems in Insurance Mathematics (pp. 199222). EAA Series. Springer, Cham.Google Scholar
Ekheden, E. & Hössjer, O. (2015). Multivariate time series modeling, estimation and prediction of mortalities. Insurance: Mathematics and Economics, 65, 156171.Google Scholar
Fung, M.C., Peters, G.W. & Shevchenko, P.V. (2017). A unified approach to mortality modelling using state-space framework: characterisation, identification, estimation and forecasting. Annals of Actuarial Science, 11(2), 343389.CrossRefGoogle Scholar
Gneiting, T. & Raftery, A.E. (2007). Strictly proper scoring rules, prediction, and estimation. Journal of the American Statistical Association, 102(477), 359378.CrossRefGoogle Scholar
Godsill, S.J., Doucet, A. & West, M. (2004). Monte carlo smoothing for nonlinear time series. Journal of the American Statistical Association, 99(465), 156168.CrossRefGoogle Scholar
Gompertz, B. (1825). XXIV. On the nature of the function expressive of the law of human mortality, and on a new mode of determining the value of life contingencies. In a letter to Francis Baily, Esq. F. R. S. &c. Philosophical Transactions of the Royal Society of London, 115, 513583.Google Scholar
Gorski, J., Pfeuffer, F. & Klamroth, K. (2007). Biconvex sets and optimization with biconvex functions: a survey and extensions. Mathematical Methods of Operations Research, 66(3), 373407.CrossRefGoogle Scholar
Haberman, S. & Renshaw, A. (2011). A comparative study of parametric mortality projection models. Insurance: Mathematics and Economics, 48(1), 3555.Google Scholar
Hamilton, J.D. (1994). Time Series Analysis. Princeton University Press, Princeton, NJ.CrossRefGoogle Scholar
Mortality Database, Human. (2018). Available online at the address http://www.mortality.org or http://www.humanmortality.de [accessed 5-Dec-2018].Google Scholar
Kantas, N., Doucet, A., Singh, S.S., Maciejowski, J., Chopin, N., et al. (2015). On particle methods for parameter estimation in state-space models. Statistical Science 30(3), 328351.CrossRefGoogle Scholar
Keiding, N. (1991). Age-specific incidence and prevalence: a statistical perspective. Journal of the Royal Statistical Society. Series A (Statistics in Society), 154(3), 371396.CrossRefGoogle Scholar
Lee, R.D. & Carter, L.R. (1992). Modeling and forecasting us mortality. Journal of the American Statistical Association, 87(419), 659671.Google Scholar
Lu, M., Huang, J.Z. & Qian, X. (2016). Sparse exponential family principal component analysis. Pattern Recognition, 60, 681691.CrossRefGoogle ScholarPubMed
Pedroza, C. (2006). A Bayesian forecasting model: predicting us male mortality. Biostatistics, 7(4), 530550.CrossRefGoogle Scholar
Pitacco, E. (2018). Heterogeneity in mortality: a survey with an actuarial focus. ARC Centre of Excellence in Population Ageing Research Working Paper 2018/7.Google Scholar
Wilmoth, J.R., Andreev, K., Jdanov, D., Glei, D.A., Boe, C., Bubenheim, M., Philipov, D., Shkolnikov, V. & Vachon, P. (2017). Methods protocol for the human mortality database, November 27, 2017 (version 6). University of California, Berkeley, and Max Planck Institute for Demographic Research, Rostock Available online at the address http://www.mortality.org or http://www.humanmortality.de [accessed 5-Dec-2018].Google Scholar
Figure 0

Figure 1 Example of a Lexis diagram.

Figure 1

Figure 2 Trace of the estimate of $\psi^l$ from the SAEM algorithm, Algorithm 3, fitted to Swedish male data from 1930 to 1960. Each line corresponds to a component of the respective vector/matrix of parameters.

Figure 2

Table 1. Calculated values of $\text{R}^{2}_{\text{Dev}}$ for model (M2) fitted to Swedish male data for the years 1930–1960

Figure 3

Figure 3 Fig. 3(a)–(c): First three EPCA components, Swedish males, 1930–1960. In Fig. 3(d)–(f), the number of EPCA components, 1–5, are indicated by lines that are solid/brown, short dashed/dark green, dotted/light green, dash-dotted/dark brown and long dashed/light brown, respectively. Fig. 3(d)–(f) shows, from left to right, $\text{R}^{2,*}_{\text{Dev}}$, $\operatorname{MAE}$ and $\operatorname{MIS}$, calculated in-sample for the period 1930–1960 for Swedish males. Fig. 3(g): In-sample variance produced by the model for simulated mortality rates, Swedish males, age 40, three EPCA components; total variance (solid line), population variance (dashed line). Fig. 3(h): 95% yearly confidence levels for the simulated mortality rates $M^*$ for Swedish males using three EPCA components (grey area), median (solid line), observed mortality rates, $\widehat m$, (circles). Fig. 3(i): Same as in Fig. 3(h), but for the simulated latent M-process.

Figure 4

Figure 4 Fig. 4(a)–(c) shows the out-of-sample analog of Fig. 3(d)–(f), where all parameters have been estimated based on Swedish male data from 1930 to 1960, and the predictions are made for the period 1961 to 2016. Fig. 4(d)–(f): $\text{R}^{2,*}_{\text{Dev}}$ where solid lines correspond to in-sample performance and dashed lines correspond to out-of-sample performance when using three EPCA components – models fitted using data from 1930 to 1960, 1930 to 1990 and 1970 to 2000, respectively. Fig. 4(g)–(i): 95% yearly confidence/prediction intervals (grey area) for simulated mortality rates $M^*$, Swedish males, age 80, three EPCA components, median (solid/dashed line), observed mortality rates, $\widehat m$, (circles) – models fitted using data from 1930 to 1960, 1930 to 1990 and 1970 to 2000, respectively.

Figure 5

Figure 5 In all figures, 95% confidence/prediction intervals for the simulated centralised mortality rates (grey area), median (solid/dashed line) and observed centralised mortality rates (circles). In all figures, from left to right, age 10, age 40 and age 80, respectively. Fig. 5(a)–(c): Swedish males, three EPCA components, model fitted using data from 1970 to 2000. Fig. 5(d)–(f): Swedish females, five EPCA components, model fitted using data from 1950 to 1980. Fig. 5(g)–(i): US females, three EPCA components, model fitted using data from 1950 to 1980.