Multivariate functional time series forecasting: Application to age-specific mortality rates
Abstract
EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.
Full text
Gao, Yuan; Shang, Han Lin Article Multivariate functional time series forecasting: Application to age-specific mortality rates Risks Provided in Cooperation with: MDPI – Multidisciplinary Digital Publishing Institute, Basel Suggested Citation: Gao, Yuan; Shang, Han Lin (2017) : Multivariate functional time series forecasting: Application to age-specific mortality rates, Risks, ISSN 2227-9091, MDPI, Basel, Vol. 5, Iss. 2, pp. 1-18, https://doi.org/10.3390/risks5020021 This Version is available at: https://hdl.handle.net/10419/167916 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. http://creativecommons.org/licenses/by/4.0/
risks Article Multivariate Functional Time Series Forecasting: Application to Age-Specific Mortality Rates Yuan Gao †and Han Lin Shang * Research School of Finance, Actuarial Studies and Statistics, Australian National University, Canberra, ACT 2601, Australia; [email protected] *Correspondence: [email protected]; Tel.: +61-2-6125-0535 † Current address: Research School of Finance, Actuarial Studies and Statistics, Level 4, Building 26C, Australian National University, Kingsley Street, Canberra, ACT 2601, Australia. Academic Editor: Pavel Shevchenko Received: 26 October 2016; Accepted: 21 March 2017; Published: 25 March 2017 Abstract: This study considers the forecasting of mortality rates in multiple populations. We propose a model that combines mortality forecasting and functional data analysis (FDA). Under the FDA framework, the mortality curve of each year is assumed to be a smooth function of age. As with most of the functional time series forecasting models, we rely on functional principal component analysis (FPCA) for dimension reduction and further choose a vector error correction model (VECM) to jointly forecast mortality rates in multiple populations. This model incorporates the merits of existing models in that it excludes some of the inherent randomness with the nonparametric smoothing from FDA, and also utilizes the correlation structures between the populations with the use of VECM in mortality models. A nonparametric bootstrap method is also introduced to construct interval forecasts. The usefulness of this model is demonstrated through a series of simulation studies and applications to the age-and sex-specific mortality rates in Switzerland and the Czech Republic. The point forecast errors of several forecasting methods are compared and interval scores are used to evaluate and compare the interval forecasts. Our model provides improved forecast accuracy in most cases. Keywords: age-and sex-specific mortality rate; bootstrapping prediction interval; vector autoregressive model; vector error correction model; interval score 1. Introduction Most countries around the world have seen steady decreases in mortality rates in recent years, which also come with aging populations. Policy makers from both insurance companies and government departments seek more accurate modeling and forecasting of the mortality rates. The renowned Lee–Carter model [ 1 ] is a benchmark in mortality modeling. Their model was the first to decompose mortality rates into one component, age, and the other component, time, using singular value decomposition. Since then, many extensions have been made based on the Lee–Carter model. For instance, Booth et al. [ 2 ] address the non-linearity problem in the time component. Koissi et al. [3] propose a bootstrapped confidence interval for forecasts. Renshaw and Haberman [ 4 ] introduce the age-period-cohort model that incorporates the cohort effect in mortality modeling. Other than the Lee–Carter model, Cairns et al. [ 5 ] propose the Cairns–Blake–Dowd (CBD) model that satisfies the new-data-invariant property. Chan et al. [ 6 ] use a vector autoregressive integrated moving average (VARIMA) model for the joint forecast of CBD model parameters. Mortality trends in two or more populations may be correlated, especially between sub-populations in a given population, such as females and males. This calls for a model that makes predictions in several populations simultaneously. We would also expect that the forecasts Risks 2017,5, 21; doi:10.3390/risks5020021 www.mdpi.com/journal/risks
Risks 2017,5, 21 2 of 18 of similar populations do not diverge over the long run, so coherence between forecasts is a desired property. Carter and Lee [ 7 ] examine how mortality rates of female and male populations can be forecast together using only one time-varying component. Li and Lee [ 8 ] propose a model with a common factor and a population-specific factor to achieve coherence. Yang and Wang [ 9 ] use a vector error correction model (VECM) to model the time-varying factors in multi-populations. Zhou et al. [ 10 ] argue that the VECM performs better than the original Lee–Carter and vector autoregressive (VAR) models, and that the assumption of a dominant population is not needed. Danesi et al. [ 11 ] compare several multi-population forecasting models and show that the preferred models are those providing a balance between model parsimony and flexibility. These mentioned approaches model mortality rates using raw data without smoothing techniques. In this paper, we propose a model under the functional data analysis (FDA) framework. In functional data analysis settings (see Ramsay and Silverman [ 12 ] for a comprehensive Introduction to FDA), it is assumed that there is an underlying smooth function of age as the mortality rate in each year. Since mortality rates are collected sequentially over time, we use the term functional time series for the data. Let yt(x) denote the log of the observed mortality rate of age x at year t . Suppose ft(x) is a underlying smooth function, where x∈ I represents the age continuum defined on a finite interval. In practice, we can only observe functional data on a set of grid points and the data are often contaminated by random noise: yt(xj) = ft(xj) + ut,j,t=1, . . . , n,j=1, . . . , p, where n denotes the number of years and p denotes the number of discrete data points of age observed for each function. The errors {ut,j} are independent and identically distributed (iid) random variables with mean zero and variances σ2 t(xj) . Smoothing techniques are thus needed to obtain each function ft(x) from a set of realizations. Among many others, localized least squares and spline-based smoothing are two of the approaches frequently used (see, for example, [ 13 , 14 ]). We are not the first to use the functional data approach to model mortality rates. Hyndman and Ullah [ 15 ] propose a model under the FDA framework, which is robust to outlying years. Chiou and Müller [ 16 ] introduce a time-varying eigenfunction to address the cohort effect. Hyndman et al. [ 17 ] propose a product–ratio model to achieve coherency in the forecasts of multiple populations. Our proposed method is illustrated in Section 2and the Appendices. It can be summarized in four steps: 1) smooth the observed data in each population; 2) reduce the dimension of the functions in each population using functional principal component analysis (FPCA) separately; 3) fit the first set of principal component scores from all populations with VECM. Then, fit the second set of principal component scores with another VECM and so on. Produce forecasts using the fitted VECMs; and 4) produce forecasts of mortality curves. Yang and Wang [ 9 ] and Zhou et al. [ 10 ] also use VECM to model the time-varying factor, namely, the first set of principal component scores. Our model is different in the following three ways. First, the studied object is in an FDA setting. Nonparametric smoothing techniques are used to eliminate extraneous variations or noise in the observed data. Second, as with other Lee–Carter based models, only the first set of principal component scores are used for prediction in [ 9 , 10 ]. For most countries, the fraction of variance explained is not high enough for one time-varying factor to adequately explain the mortality change. Our approach uses more than one set of principal component scores, and we review some of the ways to choose the optimal number of principal component scores. Third, in their previous papers, only point forecasts are calculated, while we use a bootstrap algorithm for constructing interval forecasts. Point and interval forecast accuracies are both considered.
Risks 2017,5, 21 3 of 18 The article is organized as follows: in Section 2, we revisit the existing functional time series models and put forward a new functional time series method using a VECM. In Section 3, we illustrate how the forecast results are evaluated. Simulation experiments are shown in Section 4. In Section 5, real data analyses are conducted using age-and sex-specific mortality rates in Switzerland and the Czech Republic. Concluding remarks are given in Section 6, along with reflections on how the methods presented here can be further extended. 2. Forecasting Models Let us consider the simultaneous prediction of multivariate functional time series. Consider two populations as an example: f(ω) t(x) , ω= 1, 2 are the smoothed log mortality rates of each population. According to (A1) in the Appendices, for a sequence of functional time series {f(ω) t(x)} , each element can be decomposed as: f(ω) t(x) = µ(ω)(x) + ∞ ∑ k=1 ξ(ω) t,kφ(ω) k(x) =µ(ω)(x) + K ∑ k=1 ξ(ω) t,kφ(ω) k(x) + e(ω) t(x), where e(ω) t(x) denotes the model truncation error function that captures the remaining terms. Thus, with functional principal component (FPC) regression, each series of functions are projected onto a K(ω)-dimension space. The functional time series curves are characterized by the corresponding principal component scores that form a time series of vectors with the dimension K(ω) : ξ(ω) t=ξ(ω) t,1 , ..., ξ(ω) t,K(ω)> . To construct h -step-ahead predictions bf(ω) n+h|n of the curve, we need to construct predictions for the K(ω) -dimension vectors of the principal component scores; namely, bξ(ω) n+h|n=bξ(ω) (n+h|n),1,···,bξ(ω) (n+h|n),K(ω)> , with techniques from multivariate time series using covariance structures between multiple populations (see also [18]). The h-step-ahead prediction for f(ω) n+h|ncan then be constructed by forward projection bf(ω) n+h|n=Ehf(ω) n+h|f(ω) 1(x), . . . , f(ω) n(x)i =b µ(ω)(x) + bξ(ω) (n+h|n),1b φ(ω) 1(x) + ···+bξ(ω) (n+h|n),K(ω)b φ(ω) K(ω)(x),ω=1, 2. In the following material, we consider four methods for modeling and predicting the principal component scores ξn+h, where hdenotes a forecast horizon. 2.1. Univariate Autoregressive Integrated Moving Average Model The FPC scores can be modeled separately as univariate time series using the autoregressive integrated moving average (ARIMA(p,d,q)) model: Φ(B)(1−B)dξ(ω) t,k=Θ(B)w(ω) t,k,k=1, ···,K(ω),ω=1, 2, where B denotes the lag operator, and ωt,k is the white noise. Φ(B) denotes the autoregressive part and Θ(B)denotes the moving average part. The orders p,d,qcan be determined automatically according to either the Akaike information criterion or the Bayesian information criterion value [ 19 ]. Then, the maximum likelihood method can be used to estimate the parameters. This prediction model is efficient in some cases. However, Aue et al. [ 18 ] argue that, although the FPC scores have no instantaneous correlation, there may be autocovariance at lags greater than zero.
Risks 2017,5, 21 4 of 18 The following model addresses this problem by using a vector time series model for the prediction of each series of FPC scores. 2.2. Vector Autoregressive Model 2.2.1. Model Structure Now that each function f(ω) t(x) is characterized by a K(ω) -dimension vector ξ(ω) t , we can model the ξ(ω) ts using a VAR(p) model: ξ(ω) t=υ(ω)+A(ω) 1ξ(ω) t−1+···+A(ω) pξ(ω) t−p+et, where A(ω)={A(ω) 1 , . . . , A(ω) p} are fixed K(ω)×K(ω) coefficient matrices and {et} form a sequence of iid random K(ω) -vectors with a zero mean vector. There are many approaches to estimating the VAR model parameters in [ 20 ] including multivariate least squares estimation, Yule–Walker estimation and maximum likelihood estimation. The VAR model seeks to make use of the valuable information hidden in the data that may have been lost by depending only on univariate models. However, the model does not fully take into account the common covariance structures between the populations. 2.2.2. Relationship between the Functional Autoregressive and Vector Autoregressive Models As mentioned in the Introduction, Bosq [ 21 ] proposes functional autoregressive (FAR) models for functional time series data. Although the computations for FAR( p ) models are challenging, if not unfeasible, one exception is FAR(1), which takes the form of: ft=Ψ(ft−1) + et, (1) where Ψ:H → H is a bounded linear operator. However, it can be proven that if a FAR( p ) structure is indeed imposed on ( ft:t∈Z ), then the empirical principal component scores ξt should approximately follow a VAR( p ) model. Let us consider FAR(1) as an example. Apply h· , b φki to both sides of Equation (1) to obtain: hft,b φki=hΨ(ft−1),b φki+het,b φki = ∞ ∑ k0=1 hft−1,b φk0ihΨ(b φk0),b φki+het,b φki = d ∑ k0=1 hft−1,b φk0ihΨ(b φk0),b φki+δt,k, with remainder terms δt,k=dt,k+het,b φki, where dt,k=∑∞ k0=d+1hft−1,b φk0ihΨ(b φk0),b φki. With matrix notation, we get ξt=Bξt−1+δt , for t= 2, . . . , n where B∈Rd×d . This is a VAR(1) model for the estimated principal component scores. In fact, it can be proved that the two models make asymptotically equivalent predictions [18]. 2.3. Vector Error Correction Model The VAR model relies on the assumption of stationarity; however, in many cases, that assumption does not stand. For instance, age-and sex-specific mortality rates over a number of years show persistently varying mean functions. The extension we suggest here uses the VECMs to fit pairs of principal component scores of the two populations. In a VECM, each variable in the vector is non-stationary, but there is some linear combination between the variables that is stationary in the long run. Integrated variables with this property are called co-integrated variables, and the process
Risks 2017,5, 21 5 of 18 involving co-integrated variables is called a co-integration process. For more details on VECMs, consult [20]. 2.3.1. Fitting a Vector Error Correction Model to Principal Component Scores For the k th principal component score in the two populations, suppose the two are both first integrated and have a relationship of long-term equilibrium: ξ(1) t,k−βξ(2) t,k=δt,k, where β is a constant and δt,k is a stable process. According to Granger’s Representation Theorem, the following VECM specifications exist for ξ(1) t,kand ξ(2) t,k: ∆ξ(1) t,k=α1ξ(1) t−1,k−βξ(2) t−1,k+γ1,1∆ξ(1) t−1,k+γ1,2∆ξ(2) t−1,k+e(1) t,k, ∆ξ(2) t,k=α2ξ(1) t−1,k−βξ(2) t−1,k+γ2,1∆ξ(1) t−1,k+γ2,2∆ξ(2) t−1,k+e(2) t,k, (2) where k= 1, . . . , K , and α1 , α2 , γ1,1 , γ1,2 , γ2,1 , γ2,2 are the coefficients, e(1) t,k and e(2) t,k are innovations. Note that further lags of ∆ξt,k’s may also be included. 2.3.2. Estimation Let us consider the VECM( p ) without the deterministic term written in a more compact matrix form: ∆ξk=Πkξ−1,k+Γk∆Ψk+ek, where ∆ξk= [∆ξ1,k, . . . , ∆ξt,k], ξ−1,k= [ξ0,k, . . . , ξn−1,k], Γk= [Γ1,k, . . . , Γp−1,k], ∆Ψk= [∆Ψ0,k, . . . , ∆Ψn−1,k]with ∆Ψt−1,k= ∆ξt−1,k . . . ∆ξt−p+1,k , ek= [e1,k, . . . , et,k]. With this simple form, least squares, generalized least squares and maximum likelihood estimation approaches can be applied. The computation of the model with deterministic terms is equally easy, requiring only minor modifications. Moreover, the asymptotic properties of the parameter estimators are essentially unchanged. For further details, refer to [ 20 ]. There is a sequence of tests to determine the lag order, such as the likelihood ratio test. Since our purpose is to make predictions, a selection scheme based on minimizing the forecast mean squared error can be considered. 2.3.3. Expressing a Vector Error Correction Model in a Vector Autoregressive Form In a matrix notation, the model in Equation (2) can be written as: ∆ξt,k=αβ>ξt−1,k+Γ1∆ξt−1,k+et,k,
Risks 2017,5, 21 6 of 18 or ξt,k−ξt−1,k=αβ>ξt−1,k+Γ1(ξt−1,k−ξt−2,k) + et,k, (3) where α="α1 α2#,β>=1β,Γ1="γ1,1 γ1,2 γ2,1 γ2,2#. Rearranging the terms in Equation (3) gives the VAR(2) representation: ξt,k= (IK+Γ1+αβ>)ξt−1,k−Γ1ξt−2,k+et,k. Thus, a VECM(1) can be written in a VAR(2) form. When forecasting the scores, it is quite convenient to write the VECM process in the VAR form. The optimal h -step-ahead forecast with a minimal mean squared error is given by the conditional expectation. 2.4. Product–Ratio Model Coherent forecasting refers to non-divergent forecasting for related populations [ 8 ]. It aims to maintain certain structural relationships between the forecasts of related populations. When we model two or more populations, joint modeling plays a very important role in terms of achieving coherency. When modeled separately, forecast functions tend to diverge in the long run. The product–ratio model forecasts the population functions by modeling and forecasting the ratio and product of the populations. Coherence is imposed by constraining the forecast ratio function to stationary time series models. Suppose f(1)(x) and f(2)(x) are the smoothed functions from the two populations to be modeled together, we compute the products and ratios by: pt(x) = qf(1) t(x)f(2) t(x), rt(x) = qf(1) t(x)f(2) t(x). The product {pt(x)} and ratio {rt(x)} functions are then decomposed using FPCA and the scores can be modeled separately with a stationary autoregressive moving average (ARMA)( p , q ) [ 22 ] in the product functions or an autoregressive fractionally integrated moving average (ARFIMA)( p , d , q ) process [ 23 , 24 ] in the ratio functions, respectively. With the h -step-ahead forecast values for bpn+h|n(x) and brn+h|n(x), the h-step-ahead forecast values for bf(1) n+h|n(x)and bf(2) n+h|n(x)can be derived by bf(1) n+h|n(x) = bpn+h|n(x)brn+h|n(x), bf(2) n+h|n(x) = bpn+h|n(x)brn+h|n(x). 2.5. Bootstrap Prediction Interval The point forecast itself does not provide information about the uncertainty of prediction. Constructing a prediction interval is an important part of evaluating forecast uncertainty when the full predictive distribution is hard to specify. The univariate model proposed by [ 15 ], discussed in Section 2.1, computes the variance of the predicted function by adding up the variance of each component as well as the estimated error variance. The ( 1 −α)× 100% prediction interval is then constructed under the assumption of normality, where α denotes the level of significance. The same approach is used in the product–ratio model; however, when the normality assumption is violated, alternative approaches may be used.
Risks 2017,5, 21 7 of 18 Bootstrapping is used to construct prediction interval in the functional VECM that we propose. There are three sources of uncertainties in the prediction. The first is from the smoothing process. The second is from the remaining terms after the cut-off at K in the principal component regression: ∑n k=K+1ξt,kφk(x) . If the correct number of dimensions of K is picked, the residuals can be regarded as independent. The last source of uncertainty is from the prediction of scores. The smoothing errors are generated under the assumption of normality and the other two kinds of errors are bootstrapped. All three uncertainties are added up to construct bootstrapped prediction functions. The steps are summarized in the following algorithm: 1) Smooth the functions with y(ω) t(xj) = f(ω) t(xj) + u(ω) t(xj) , ω= 1, 2, where u(ω) t is the smoothing error with mean zero and estimated variance b σ2 t(xj)(ω),j=1, . . . , p. 2) Perform FPCA on the smoothed functions f(1) t and f(2) t separately, and obtain K pairs of principal component scores ξt,k=ξ(1) t,k,ξ(2) t,k>. 3) Fit K VECM models to the principal component scores. From the fitted scores bξt,k , for t= 1, . . . , n and k=1, . . . , K, obtain the fitted functions bft,=bf(1) t,bf(2) t>. 4) Obtain residuals etfrom et=ft−bft. 5) Express the estimated VECM from step 3 in its VAR form: ξt,k=b A1ξt−1,k+b A2ξt−2,k+et,k , t= 1, . . . , n and k= 1, . . . , K . Construct K sets of bootstrap principal component scores time series ξ∗ t,k=b A1ξ∗ t−1,k+b A2ξ∗ t−2,k+e∗ t,k , where the error term e∗ t,k is re-sampled with replacement from et,k. 6) Refit a VECM with ξ∗ t,k and make h -step-ahead predictions bξ∗ n+h|n and hence a predicted function bf∗ n+h|n. 7) Construct a bootstrapped h-step-ahead prediction for the function by bf∗∗ n+h|n(xj) = bf∗ n+h|n(xj) + e∗ t+u∗ t(xj), where e∗ t is a re-sampled version of et from step 4 and u∗ t(xj) are generated from a normal distribution with mean 0 and variance σ2 t,j , where σ2 t,j is re-sampled from {b σ2 1,j , . . . , b σ2 n,j} from step 1). 8) Repeat steps 5 to 7 many times. 9) The ( 1 −α)× 100% point-wise prediction intervals can be constructed by taking the α 2× 100% and (1−α 2)×100% quantiles of the bootstrapped samples. Koissi et al. [ 3 ] extend the Lee–Carter model with a bootstrap prediction interval. The prediction interval we suggest in this paper is different from their method. First, we work under a functional framework. This means that there is extra uncertainty from the smoothing step. Second, in both approaches, errors caused by dimension reduction are bootstrapped. Third, after dimension reduction, their paper uses an ARIMA(0, 1, 0) model to fit the time-varying component. There is no need to consider forecast uncertainty since the parameters of the time series are fixed. In our approach, parameters are estimated using the data. We adopt similar ideas from the early work of Masarotto [ 25 ] for the bootstrap of the autoregression process. This step can also be further extended to a bootstrapafter-bootstrap prediction interval [ 26 ]. To summarize, we incorporate three sources of uncertainties in our prediction interval, whereas Koissi et al. [ 3 ] only considers one due to the simplicity of the Lee–Carter model.
Risks 2017,5, 21 8 of 18 3. Forecast Evaluation We split the data set into a training set and a testing set. The four models are fitted to the data in the training set and predictions are made. The data in the testing set is then used for forecast evaluation. Following the early work by [ 27 ], we allocate the first two-thirds of the observations into the training set and the last one-third into the testing set. We use an expanding window approach. Suppose the size of the full data set is 60. The first 40 functions are modeled and one to 20-step-ahead forecasts are produced. Then, the first 41 functions are used to make one to 19-step-ahead forecasts. The process is iterated by increasing the sample size by one until reaching the end of the data. This produces 20 one-step-ahead forecasts, 19 two-step-ahead forecasts, . . . and, finally, one 20-step-ahead forecast. The forecast values are compared with the true values of the last 20 functions. Mean absolute prediction errors (MAPE) and mean squared prediction errors (MSPE) are used as measures of point forecast accuracy [ 11 ]. For each population, MAPE and MSPE can be calculated as: MAPE(h) = 1 (21 −h)×p 20 ∑ η=h p ∑ j=1yn+η(xj)−bfn+η|n+η−h(xj), MSPE(h) = 1 (21 −h)×p 20 ∑ η=h p ∑ j=1hyn+η(xj)−bfn+η|n+η−h(xj)i2, (4) where bfn+η|n+η−h represents the h -step-ahead prediction using the first n+η−h years fitted in the model, and yn+η(xj)denotes the true value. For the interval forecast, coverage rate is a commonly used evaluation standard. However, coverage rate alone does not take into account the width of the prediction interval. Instead, the interval score is an appealing method that combines both a measure of the coverage rate and the width of the prediction interval [ 28 ]. If bfu n+h|n and bfl n+h|n are the upper and lower ( 1 −α)× 100% prediction bounds, and yn+his the realized value, the interval score at point xjis: Sα(xj) = hbfu n+h|n(xj)−bfl n+h|n(xj)i +2 αhbfl n+h|n(xj)−yn+h(xj)i 1 nyn+h(xj)<bfl n+h|n(xj)o +2 αhyn+h(xj)−bfu n+h|n(xj)i 1 nyn+h(xj)>bfu n+h|n(xj)o, (5) where α is the level of significance, and 1 {·} is an indicator function. According to this standard, the best predicted interval is the one that gives the smallest interval score. In the functional case here, the point-wise interval scores are computed and the mean over the discretized ages is taken as a score for the whole curve. Then, the score values are averaged across the forecast horizon to get a mean interval score at horizon h: Sα(h) = 1 (21 −h)×p 20 ∑ η=h p ∑ j=1 Sα[bfu n+η|n+η−h(xj),bfl n+η|n+η−h(xj);yn+η(xj)], (6) where pdenotes the number of age groups and hdenotes the forecast horizons. 4. Simulation Studies In this section, we report the results from the prediction of simulated non-stationary functional time series using the models discussed in Section 2. We generated two series of correlated populations, each with two orthogonal basis functions. The simulated functions are constructed by f(ω) t(x) = ξ(ω) t,1 φ(ω) 1(x) + ξ(ω) t,2 φ(ω) 2(x),ω=1, 2. (7)
Risks 2017,5, 21 15 of 18 5 10 15 20 0.00 0.05 0.10 0.15 Forecast horizon p−value Uni VAR PR (a) 5 10 15 20 0.00 0.05 0.10 0.15 Forecast horizon p−value (b) Figure 5. Czech Republic: p -values for the three tests comparing a functional VECM to the univariate, VAR, and product–ratio models, respectively (the horizontal line is the default level of significance α=0.05). (a) female population; (b) male population. In summary, we have applied the proposed functional VECM to modeling female and male mortality rates in Switzerland and the Czech Republic, and proven its advantage in forecasting. 6. Conclusions We have extended the existing models and introduced a functional VECM for the prediction of multivariate functional time series. Compared to the current forecasting approaches, the proposed method performs well in both simulations and in empirical analyses. An algorithm to generate bootstrap prediction intervals is proposed and the results give superior interval forecasts. The advantage of our method is the result of several factors: (1) the functional VECM model considers the covariance between different groups, rather than modeling the populations separately; (2) it can cope with data where the assumption of stationarity does not hold; (3) the forecast intervals using the proposed algorithm combine three sources of uncertainties. Bootstrapping is used to avoid the assumption of the distribution of the data. We apply the proposed method as well as the existing methods to the male and female mortality rates in Switzerland and the Czech Republic. The empirical studies provide evidence of the superiority of the functional VECM approach in both the point and interval forecasts, which are evaluated by MAPE, MSPE and interval scores, respectively. Diebold–Mariano test results also show significantly improved forecast accuracy of our model. In most cases, when there is a long-run coherent structure in the male and female mortality rates, functional VECM is preferable. The long-term equilibrium constraint in the functional VECM ensures that divergence does not emerge. While we use two populations for the illustration of the model and in the empirical analysis, functional VECM can easily be applied to populations with more than two groups. A higher rank of co-integration order may need to be considered and the Johansen test can then be used to determine the rank [35]. In this paper, we have focused on comparing our model with others within functional time series frameworks. There are numerous other mortality models in the literature, and many of them try to deal with multiple populations. Further research is needed to evaluate our model against the performance of these models.
Risks 2017,5, 21 16 of 18 Acknowledgments: The authors would like to thank three reviewers for insightful comments and suggestions, which led to a much improved manuscript. The authors thank Professor Michael Martin for his helpful comments and suggestions. Thanks also go to the participants of a school seminar at the Australian National University and Australian Statistical Conference held in 2016 for their comments and suggestions. The first author would also like to acknowledge the financial support of a PhD scholarship from the Australian National University. Author Contributions: The authors contributed equally to the paper. Yuan Gao analyzed the data and wrote the paper. Han Lin Shang initiated the project and contributed analysis and a review of the literature. Conflicts of Interest: The authors declare no conflict of interest. Appendix A. Functional Principal Component Analysis Let {ft(x) , t∈Z} be a set of functional time series in L2(I) from a separable Hilbert space H . H is characterized by the inner product h· , ·i , where hf1 , f2i=RIf1(x)f2(x)dx . We assume that f(x) has a continuous mean function µ(x)and covariance function G(w,x): µ(x) = E[f(x)], G(w,x) = Cov[f(w),f(x)] = E{[f(w)−µ(w)][f(x)−µ(x)]}, and thus the covariance operator for any f(x)∈ H is given by C(w)( f) = ZIG(w,x)f(x)dx. The eigenequation C(w)( f) = ρf has solutions with orthonormal eigenfunctions φk(x) , and associated eigenvalues λkfor k=1, 2, ... such that λ1≥λ2≥... and ∑kλk<∞. According to the Karhunen–Lo` eve theorem, the function f(x)can be expanded by: f(x) = µ(x) + ∞ ∑ k=1 ξkφk(x), (A1) where {φk(x)} are orthogonal basis functions also on L2(I) , and the principal component scores {ξk} are uncorrelated random variables given by the projection of the centered function in the direction of the kth eigenfunction: ξk=ZI[f(x)−µ(x)]φk(x)dx. The principal component scores also satisfy: E(ξk) = 0, Var(ξk) = λk. Appendix B. Functional Principal Component Regression According to Equation (A1) , for a sequence of functional time series {ft(x)} , each element can be decomposed as: ft(x) = µ(x) + ∞ ∑ k=1 ξt,kφk(x) =µ(x) + K ∑ k=1 ξt,kφk(x) + et(x), where et(x) denotes the model truncation error function that captures the remaining terms. It is assumed that the scores follow ξk∼N( 0, λk) . Thus, the functions can be characterized by the K-dimension vector (ξ1, . . . , ξK)>.
Risks 2017,5, 21 17 of 18 Assorted approaches for selecting the number of principal components, K , include: (a) ensuring that a certain fraction of the data variation is explained [ 36 ]; (b) cross-validation [ 14 ]; (c) bootstrapping [ 37 ]; and (d) information criteria [38]. With the smoothed functions {f1(x), . . . , fn(x)}, the mean function µ(x)is estimated by b µ(x) = 1 n n ∑ t=1 ft(x). The covariance operator for a function gis estimated by b C(g) = 1 n n ∑ t=1 hft−b µ,gi(ft−b µ), where n is the number of observed curves. Sample eigenvalue and eigenfunction pairs b λk and b φk(x) can be calculated from the estimated covariance operator using singular value decomposition. Empirical principal component scores ξt,k are obtained by ξt,k=hft,b φki with numerical integration RI[ft(x)−b µ(x)]b φk(x)dx . These simple estimators are proved to be consistent under weak dependence when the functions collected are dense and regularly spaced [ 39 , 40 ]. In sparse data settings, other methods should be applied. For instance, Ref. [ 38 ] proposes principal component conditional expectation using pooled information between the functions to undertake estimations. References 1. Lee, R.D.; Carter, L.R. Modeling and Forecasting U. S. Mortality. J. Am. Stat. Assoc. 1992,87, 659–671. 2. Booth, H.; Maindonald, J.; Smith, L. Applying Lee–Carter under conditions of variable mortality decline. Popul. Stud. 2002,56, 325–336. 3. Koissi, M.C.; Shapiro, A.F.; Högnäs, G. Evaluating and extending the Lee–Carter model for mortality forecasting: Bootstrap confidence interval. Insur. Math. Econ. 2006,38, 1–20. 4. Renshaw, A.E.; Haberman, S. A cohort-based extension to the Lee–Carter model for mortality reduction factors. Insur. Math. Econ. 2006,38, 556–570. 5. Cairns, A.J.G.; Blake, D.; Dowd, K. A two-factor model for stochastic mortality with parameter uncertainty: theory and calibration. J. Risk Insur. 2006,73, 687–718. 6. Chan, W.; Li, J.S.; Li, J. The CBD Mortality Indexes: Modeling and Applications. N. Am. Actualrial J. 2014 , 18, 38–58. 7. Carter, L.R.; Lee, R.D. Modelling and Forecasting US sex differentials in Modeling. Int. J. Forecast. 1992 , 8, 393–411. 8. Li, N.; Lee, R. Coherent mortality forecasts for a group of populations: An extension of the Lee–Carter method. Demography 2005,42, 575–594. 9. Yang, S.S.; Wang, C. Pricing and securitization of multi-country longevity risk with mortality dependence. Insur. Math. Econ. 2013,52, 157–169. 10. Zhou, R.; Wang, Y.; Kaufhold, K.; Li, J.S.H.; Tan, K.S. Modeling Mortality of Multiple Populations with Vector Error Correction Models: Application to Solvency II. N. Am. Actuarial J. 2014,18, 150–167. 11. Danesi, I.L.; Haberman, S.; Millossovich, P. Forecasting mortality in subpopulations using Lee–Carter type models: A comparison. Insur. Math. Econ. 2015,62, 151–161. 12. Ramsay, J.O.; Silverman, J.W. Functional Data Analysis; Springer: New York, NY, USA, 2005. 13. Wahba, G. Smoothing noisy data with spline function. Numer. Math. 1975,24, 383–393. 14. Rice, J.; Silverman, B. Estimating the Mean and Covariance Structure Nonparametrically When the Data Are Curves. J. R. Stat. Soc. Ser. B (Methodol.) 1991,53, 233–243. 15. Hyndman, R.J.; Ullah, M.S. Robust forecasting of mortality and fertility rates: A fucntional data approach. Comput. Stat. Data Anal. 2007,51, 4942–4956. 16. Chiou, J.M.; Müller, H.G. Linear manifold modelling of multivariate functional data. J. R. Soc. Stat. Ser. B (Stat. Methodol.) 2014,76, 605–626.
Risks 2017,5, 21 18 of 18 17. Hyndman, R.J.; Booth, H.; Yasmeen, F. Coherent Mortality Forecasting: The Product-Ratio Method with Functional Time Series Models. Demography 2013,50, 261–283. 18. Aue, A.; Norinho, D.D.; Hörmann, S. On the prediction of stationary functional time series. J. Am. Stat. Assoc. 2015,110, 378–392. 19. Hyndman, R.J.; Khandakar, Y. Automatic Time Series Forecasting: The forecast Package for R. J. Stat. Softw. 2008,27, doi:10.18637/jss.v027.i03. 20. Lütkepohl, H. New Introduction to Multiple Time Series Analysis; Springer: New York, NY, USA, 2005. 21. Bosq, D. Linear Processes in Function Spaces: Theory and Applications; Springer Science & Business Media: New York, NY, USA, 2012; Volume 149. 22. Box, G.E.; Jenkins, G.M.; Reinsel, G.C.; Ljung, G.M. Time Series Analysis: Forecasting and Control, 5th ed.; John Wiley & Sons: Hoboken, NJ, USA, 2015. 23. Granger, C.W.; Joyeux, R. An introduction to long-memory time series models and fractional differencing. J. Time Ser. Anal. 1980,1, 15–29. 24. Hosking, J.R. Fractional differencing. Biometrika 1981,68, 165–176. 25. Masarotto, G. Bootstrap prediction intervals for autoregressions. Int. J. Forecast. 1990,6, 229–239. 26. Kim, J. Bootstrap-after-bootstrap prediction invervals for autoregressive models. J. Bus. Econ. Stat. 2001 , 19, 117–128. 27. Faraway, J.J. Does data splitting improve prediction? Stat. Comput. 2016,26, 49–60. 28. Gneiting, T.; Raftery, A.E. Strictly Proper Scoring Rules, Prediction, and Estimation. J. Am. Stat. Assoc. 2007 , 102, 359–378. 29. Human Mortality Database. University of California, Berkeley (USA), and Max Planck Institute for Demographic Research (Germany). 2016. Availabele online: http://www.mortality.org (accessed on 8 March 2016). 30. Hyndman, R.J.; Shang, H.L. Rainbow plots, bagplots, and boxplots for functional data. J. Comput. Graph. Stat. 2010,19, 29–45. 31. Wood, S.N. Monotonic smoothing splines fitted by cross validation. SIAM J. Sci. Comput. 1994 ,15, 1126–1133. 32. Horvath, L.; Kokoszka, P.; Rice, G. Testing stationarity of functional time series. J. Econ. 2014,179, 66–82. 33. Hyndman, R.J.; Booth, H. Stochastic population forecasts using functional data models for mortality, fertility and migration. Int. J. Forecast. 2008,24, 323–342. 34. Diebold, F.X.; Mariano, R.S. Comparing predictive accuracy. J. Bus. Econ. Stat. 1995,13, 253–263. 35. Johansen, S. Estimation and Hypothesis Testing of Cointegration Vectors in Gaussian Vector Autoregressive Models. Econometrica 1991,59, 1551–1580. 36. Chiou, J.M. Dynamical functional prediction and classification with application to traffic flow prediction. Ann. Appl. Stat. 2012,6, 1588–1614. 37. Hall, P.; Vial, C. Assessing the finite dimensionality of functional data. J. R. Stat. Soc. Ser. B (Stat. Methodol.) 2006,68, 689–705. 38. Yao, F.; Müller, H.; Wang, J. Functional data analysis for sparse longitudinal data. J. Am. Stat. Assoc. 2005 , 100, 577–590. 39. Yao, F.; Lee, T.C.M. Penalized spline models for functional principal component analysis. J. R. Stat. Soc. Ser. B (Stat. Methodol.) 2006,68, 3–25. 40. Hörmann, S.; Kokoszka, P. Weakly dependent functional data. Ann. Stat. 2010,38, 1845–1884. Sample Availability: Computational code in R are available upon request from the authors. c 2017 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).