mixture markov regression model with application to...

16
Biometrical Journal 00 (2017) 00, 1–16 DOI: 10.1002/bimj.201600137 1 Mixture Markov regression model with application to mosquito surveillance data analysis Xin Gao 1 , Yurong R. Cao 1 , Nicholas Ogden 2 , Louise Aubin 3 , and Huaiping P. Zhu , 1 1 Department of Mathematics and Statistics, York University, Canada 2 National Microbiology Laboratory, Public Health Agency of Canada, Canada 3 Environmental Health, Public Health Services, Region of Peel, Canada Received 24 June 2016; revised 24 October 2016; accepted 6 December 2016 A mixture Markov regression model is proposed to analyze heterogeneous time series data. Mixture quasi-likelihood is formulated to model time series with mixture components and exogenous variables. The parameters are estimated by quasi-likelihood estimating equations. A modified EM algorithm is developed for the mixture time series model. The model and proposed algorithm are tested on simulated data and applied to mosquito surveillance data in Peel Region, Canada. Keywords: Clustering; Estimating equation; Mixture model; Markov model; Quasi-likelihood. Additional supporting information including source code to reproduce the results may be found in the online version of this article at the publisher’s web-site 1 Introduction Mosquitoes are the vectors of a wide range of infectious diseases, such as malaria, dengue, yellow fever, West Nile virus, and Zika. Mosquito abundance, mostly driven by climatic factors, is a critical driven factor responsible for outbreaks of mosquito-borne diseases. Culex pipiens/restuans mosquitoes are the vectors for the emerging West Nile virus in Southern Ontario. Mosquito surveillance program in Ontario was established in 2001 by the Ministry of Health and Long-Term Care. Public health unit in Peel Region conduct mosquito surveillance weekly from the middle of June to the beginning of October every year. The mosquito traps are set up once a week and mosquitoes are collected, identified, counted, and tested for West Nile virus (Fig. 1). Historical mosquito surveillance data of Peel Region can be used to build a predictive model for real-time forecasting of mosquito abundance to the public. Peel region covers a diverse mixture of urban, suburban, rural, agricultural, and natural landscapes. These geographic features vary across different trap locations. Therefore, there are different underlying patterns in the mosquito abundance time series. However, environmental data are not available at fine geographic scale needed to precisely model how they impact mosquito abundance in each of the trap locations. This results in heterogeneous time series due to different geographic locations and landscape features. One can fit a predictive model for each site individually. However, the forecasting is aimed for all the areas in Peel region and the result for each individual trap is not representativeof all Peel region. An alternative approach is to fit one model with spatially varying covariates. But such spatial covariates are not currently available. Therefore, we propose to use a mixture model approach to take account for the heterogeneity of the time series. Corresponding author: e-mail: [email protected] C 2017 Her Majesty the Queen in Right of Canada. Reproduced with the permission of the Minister of Health

Upload: lamdan

Post on 06-Mar-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Mixture Markov regression model with application to ...huaiping/paper/2017_Gao_et_al-2017-Biometrical... · Mixture Markov regression model with application to mosquito surveillance

Biometrical Journal 00 (2017) 00, 1–16 DOI: 10.1002/bimj.201600137 1

Mixture Markov regression model with application to mosquitosurveillance data analysis

Xin Gao1, Yurong R. Cao1, Nicholas Ogden2, Louise Aubin3, and Huaiping P. Zhu∗,1

1 Department of Mathematics and Statistics, York University, Canada2 National Microbiology Laboratory, Public Health Agency of Canada, Canada3 Environmental Health, Public Health Services, Region of Peel, Canada

Received 24 June 2016; revised 24 October 2016; accepted 6 December 2016

A mixture Markov regression model is proposed to analyze heterogeneous time series data. Mixturequasi-likelihood is formulated to model time series with mixture components and exogenous variables.The parameters are estimated by quasi-likelihood estimating equations. A modified EM algorithm isdeveloped for the mixture time series model. The model and proposed algorithm are tested on simulateddata and applied to mosquito surveillance data in Peel Region, Canada.

Keywords: Clustering; Estimating equation; Mixture model; Markov model;Quasi-likelihood.

� Additional supporting information including source code to reproduce the resultsmay be found in the online version of this article at the publisher’s web-site

1 Introduction

Mosquitoes are the vectors of a wide range of infectious diseases, such as malaria, dengue, yellow fever,West Nile virus, and Zika. Mosquito abundance, mostly driven by climatic factors, is a critical drivenfactor responsible for outbreaks of mosquito-borne diseases. Culex pipiens/restuans mosquitoes arethe vectors for the emerging West Nile virus in Southern Ontario. Mosquito surveillance programin Ontario was established in 2001 by the Ministry of Health and Long-Term Care. Public healthunit in Peel Region conduct mosquito surveillance weekly from the middle of June to the beginning ofOctober every year. The mosquito traps are set up once a week and mosquitoes are collected, identified,counted, and tested for West Nile virus (Fig. 1). Historical mosquito surveillance data of Peel Regioncan be used to build a predictive model for real-time forecasting of mosquito abundance to the public.

Peel region covers a diverse mixture of urban, suburban, rural, agricultural, and natural landscapes.These geographic features vary across different trap locations. Therefore, there are different underlyingpatterns in the mosquito abundance time series. However, environmental data are not available at finegeographic scale needed to precisely model how they impact mosquito abundance in each of the traplocations. This results in heterogeneous time series due to different geographic locations and landscapefeatures. One can fit a predictive model for each site individually. However, the forecasting is aimedfor all the areas in Peel region and the result for each individual trap is not representative of all Peelregion. An alternative approach is to fit one model with spatially varying covariates. But such spatialcovariates are not currently available. Therefore, we propose to use a mixture model approach to takeaccount for the heterogeneity of the time series.

∗Corresponding author: e-mail: [email protected]

C© 2017 Her Majesty the Queen in Right of Canada. Reproduced with the permission of the Minister of Health

Page 2: Mixture Markov regression model with application to ...huaiping/paper/2017_Gao_et_al-2017-Biometrical... · Mixture Markov regression model with application to mosquito surveillance

2 X. Gao et al.: Mixture markov regression model

Figure 1 Map of the mosquito traps in Peel Region

Regression methods have long been applied on time series analysis. Most of the work have beenfocused on linear regression of Gaussian time series (Anderson, 1954; Fuller, 2009), which cannot bedirectly applied on binary or counting data. For binary time series, Cox (1970) proposed Markov chainfor an autoregressive logistic model, in which the linear predictor included both the covariates andalso a finite number of past outcomes. Kalbfleisch and Lawless (1985) proposed to analyze categoricalpanel data by Markov model. The asymptotic theory of nonstationary categorical time series wasestablished by Kaufmann (1987). The extension of generalized linear regression of time series wasdiscussed by West et al. (1985). Fahrmeir (1989) proposed a generalized Kalman filter that can beapplied on non-Gaussian time series. There were other models developed for non-Gaussian time series.For example, Azzalini (1982) proposed a Markov model to analyze time series with gamma distributedobservations. Time series with a known exponential marginal density was discussed by Lawrance andLewis (1985). However, these models were not formulated in regression setting to include exogenouscovariates.

Zeger and Qaqish (1988) proposed Markov regression models for time series using a quasi-likelihoodapproach. The model describes the mean response as a function of the covariates and past observa-tions. These types of Markov models were referred by Cox et al. (1981) as being “observation-driven.”The time dependence was modeled by the conditional expectation of the current observation onthe past observations. These Markov models specify conditional distributions including Gaussian,Binomial, Poisson, Gamma, and other exponential family distributions. The first and secondconditional moments were modeled explicitly as functions of covariates and past outcomes. In Albertet al. (1998), a similar quasi-likelihood approach was proposed to analyze heterogeneous time seriesmodeled by a two-stage Markov chain model with random effects formulated in the transitionmatrix.

In practice, the mosquito surveillance data contains a mixture of heterogeneous time series. Mixturemodels have been applied on time series data. For example, finite mixture of Markov chains (Cadezet al., 2003; Poulsen, 1990) have been used to cluster time series. Mixture of autoregressive movingaverage (ARMA) models and autoregressive integrated moving average (ARIMA) models have alsobeen proposed in time series analysis (Liao, 2005). Xiong and Yeung (2004) investigated the clusteringproblem of time series with different lengths by using mixtures of ARMA models. Albert (1991)

C© 2017 Her Majesty the Queen in Right of Canada. Reproduced with the permission of the Minister ofHealth

www.biometrical-journal.com

Page 3: Mixture Markov regression model with application to ...huaiping/paper/2017_Gao_et_al-2017-Biometrical... · Mixture Markov regression model with application to mosquito surveillance

Biometrical Journal 00 (2017) 00 3

proposed a model for a time series in which the mean of a Poisson distribution changes according toan underlying two-state Markov chain. The maximum likelihood estimators for the parameters of thistwo-state mixture model were obtained using the classical EM algorithm. Alfo et al. (2009) extendedthe finite mixture models to the analysis of multiple, spatially correlated counts. Dependence structurewas modeled using correlated random effects. The model did not assume any parametric distributionfor the random effects. Numerical integration through an EM algorithm was performed to estimatethe parameters.

To model the effect of exogenous variables, one may consider mixtures of regression models on timeseries. Existing mixture regression models include mixtures of generalized linear models (McLachlanand Peel, 2004), mixtures of nonparametric regression models (Gaffney and Smyth, 1999), or finitemixtures of quantile and M-quantile regression models (Alfo et al., 2016). However, these methodscannot be directly applied on mixture time series with exogenous covariates.

In this paper, we propose to use Zeger and Qaqish (1988)’s quasi-likelihood approach to modeltime series. We provide a quasi-likelihood formulation for mixtures of time series. We develop a quasi-likelihood EM algorithm to deal with the missing data problem. The model parameters are estimatedthrough mixture quasi-likelihood estimating equations. The paper is organized as follows. In Section2, we present a mixture Markov regression model for the analysis of heterogeneous time series data.We develop a quasi-likelihood EM algorithm and propose to estimate the parameters through quasi-likelihood estimating equations. Numeric results with simulated data are presented in Section 3. InSection 4, the model and algorithm is applied on a culex mosquito surveillance data in Peel Region,Ontario.

2 Methods

2.1 Model specification

We propose a mixture Markov regression model to analyze mixture time series. Let YYY =(yyy′

1,yyy′2, . . . ,yyy′

n)′ be a set of n independent time series. Assume each time series is observed at time

points t = −q + 1, . . . , 0, 1, . . . , ni, and the time series is denoted as yyyi = (y(i,−q+1), . . . , y(i,ni ))′. Fur-

thermore, the covariates for the i-th time series are measured at each time point denoted as xxxit . Forthe i-th time series, let the collection of present and past covariates and past observations for time t bedenoted as BBBit = (xxx′

(i,t),xxx′(i,t−1), . . . ,xxx′

(i,−q+1), y(i,t−1), y(i,t−2), . . . , y(i,−q+1))′.

Assume the time series has K mixture components. For the k-th component, conditional on thepresent and past covariates and past observations, the observation y(i,t), abbreviated as yit, is assumedto follow an exponential family distribution denoted as fk(yit | BBBit, θθθk). Each time series is randomlydrawn from one of the K components with probability πk and

∑Kk=1 πk = 1. The quasi-likelihood

formulated as the product of all conditional probabilities for a complete time series from the k-thmixture component is defined as:

P(k)(yi | BBBi, θθθk) =ni∏

t=1

fk(yit | BBBit, θθθk), (2.1)

where BBBi = {BBBit, t = 1, . . . , ni}. We further define μ(k)it = E (yit | BBBit, θθθk) and ν

(k)it = var(yit | BBBit, θθθk). It

is assumed that

g(μ(k)it ) = η(k)

it = xxx′itβββk +

q∑j=1

λk jhk j (BBBit ), (2.2)

where g is a “link” function, hk j ’s are functions of the past observations, and θθθk encompasses all the

C© 2017 Her Majesty the Queen in Right of Canada. Reproduced with the permission of the Minister ofHealth

www.biometrical-journal.com

Page 4: Mixture Markov regression model with application to ...huaiping/paper/2017_Gao_et_al-2017-Biometrical... · Mixture Markov regression model with application to mosquito surveillance

4 X. Gao et al.: Mixture markov regression model

regression coefficients (βββk,λλλk1, . . . ,λλλkq)′. It is further assumed that ν

(k)it = V (μ

(k)it ) · φ, where V is a

variance function and φ is an unknown scale parameter.As the component membership is unknown, the overall quasi-likelihood is formulated as a mixture

of K different quasi-likelihoods:

P(yyyi | BBBi,) =K∑

k=1

πkP(k)(yyyi | BBBi, θθθk) (2.3)

where denotes the vector of all parameters {θθθ1, . . . , θθθK} ∪ {π1, . . . , πK}. This setup is an extensionof the quasi-likelihood formulation of a single Markov regression model (Zeger and Qaqish, 1988) toa mixture of Markov regression models.

The overall quasi-likelihood of n independent time series can be formulated as:

P(YYY | BBB,) =n∏

i=1

{K∑

k=1

πk

ni∏t=1

fk(yit | BBBit, θθθk)

}, (2.4)

where BBB = {BBBit, i = 1, . . . , n, t = 1, . . . , ni}. Then the log quasi-likelihood given the dataset and co-variates is given by

log L(;YYY ,BBB) =n∑

i=1

log

{K∑

k=1

πk

ni∏t=1

fk(yit | BBBit, θθθk)

}. (2.5)

Each time seriesyyyi follows a Markov model of order q with a semi-positive definite covariance matrix.It is important to note that the time series are in general nonstationary because of the exogenousvariables. The mean and variance at each time point are influenced by the time varying exogenousvariables. As a special example, if yit follows a normal distribution, and the link function is the identityfunction, hk j (BBBit ) = y(i,t− j) − xxx′

(i,t− j)βββk, in Eq. (2.2), then the proposed model is an autoregressivemodel of order q. The partial autocorrelation will cut off after lag q and the autocorrelation willfollow a geometric decay given the parameters satisfy the stationary condition for the underlyingautoregressive model.

2.2 EM algorithm for mixture Markov regression model

We propose the following EM algorithm on the mixture Markov regression model to deal with themissing membership problem. EM algorithm proposed by Dempster et al. (1977) has been widelyused in mixture problem (Redner and Walker, 1984). But EM algorithm has not been applied toquasi-likelihood and estimating equation. Suppose the memberships are known, let Z be the matrix ofmembership indicators with Z = {zik}, i = 1, . . . , n, k = 1, . . . , K. If the i-th time series belongs to thek-th component, then zik = 1 and zi j = 0,∀ j �= k. With the complete membership data, the completequasi-likelihood can be defined as:

Pc(YYY | Z,BBB,) =n∏

i=1

K∏k=1

[ ni∏t=1

fk(yit | BBBit, θθθk)

]zik

. (2.6)

Based on the assumptions made in Section 2.1, the complete log quasi-likelihood follows directly fromEq. (2.6)

log Lc(;YYY , Z,BBB) =n∑

i=1

K∑k=1

ni∑t=1

zik log fk(yit | BBBit, θθθk). (2.7)

C© 2017 Her Majesty the Queen in Right of Canada. Reproduced with the permission of the Minister ofHealth

www.biometrical-journal.com

Page 5: Mixture Markov regression model with application to ...huaiping/paper/2017_Gao_et_al-2017-Biometrical... · Mixture Markov regression model with application to mosquito surveillance

Biometrical Journal 00 (2017) 00 5

The proposed EM algorithm consists of the E-step and M-step with both steps modified to deal withthe formulation of quasi-likelihood instead of true likelihood.

E-step:In the E-step of the l-th iteration, we compute the Q function that is defined as,

Q( | (l )) =n∑

i=1

K∑k=1

ni∑t=1

E[zik log fk(yit | BBBit, θθθk)|yit,BBBit, θθθ

(l )k

]. (2.8)

As shown in the expression of Q, we compute the expected complete conditional loglikelihood locallyat each time point, conditioning on the observed yit and BBBit . By Bayes’ rule, the conditional localexpectation of the membership indicator zik is given by

p(l )ikt = E

(zik | yyyit,BBBit, θθθ

(l )k

) = π(l )k fk

(yit | BBBit, θθθ

(l )k

)∑K

j=1 π(l )j f j

(yit | BBBit, θθθ

(l )j

) . (2.9)

Plug p(l )ikt into Eq. (2.8), we have

Q( | (l )) =n∑

i=1

K∑k=1

ni∑t=1

p(l )ikt log fk

(yit | BBBit, θθθ

(l )k

)

M-step:Let p(l )

ik = 1ni

∑nit=1 p(l )

ikt denote the pooled estimate of the membership probability across all time

points for the i-th time series. The parameters are to be updated by maximizing the expected completequasi-likelihood Q( | (l )) that leads to the following quasi-likelihood estimating equation.

n∑i=1

K∑k=1

p(l )ik

ni∑t=1

∂ log fk

(yit | BBBit, θθθ

(l )k

)∂θθθ

= 0. (2.10)

For each mixture component, the estimating score equation takes the form

U (θθθk) =n∑

i=1

p(l )ik

ni∑t=1

w(μ(k)

it

)(yit − μ(k)

it

) ∂η(k)it

∂μ(k)it

MMMit = 0 (2.11)

where MMM′it = (xxx

′it, hk1(BBBit ), . . . , hkq(BBBit )), and w(.) is a weight function defined by

w(μ(k)

it

) = 1(∂η(k)

it∂μ(k)

it

)2v(k)

it

. (2.12)

If hk j (BBBit ) does not depend on βββk, iteratively reweighted least square method can be used to estimatethe parameters. Otherwise, a second level of iteration is needed (Zeger and Qaqish, 1988). Considerthe example of

hk j (BBBit ) = g(yi,t− j ) − xxxi,t− jβββk. (2.13)

In this case,

g(μ(k)it ) = xxx

′itβββk + λ1g(yi,t−1) + · · · + λqg(yi,t−q) (2.14)

C© 2017 Her Majesty the Queen in Right of Canada. Reproduced with the permission of the Minister ofHealth

www.biometrical-journal.com

Page 6: Mixture Markov regression model with application to ...huaiping/paper/2017_Gao_et_al-2017-Biometrical... · Mixture Markov regression model with application to mosquito surveillance

6 X. Gao et al.: Mixture markov regression model

where xxxit = xxxit − λ1xxxi,t−1 − · · · − λqxxxi,t−q. Let XXX it = (xxx′it, g(yi,t−1), . . . , g(yi,t−q))

′. The model can be

reformulated as regressing yit on XXX it and the iteration procedure is as follows:

1. At the l-th iteration, calculate xxx(l )it .

2. Estimate the parameters θθθ (l+1) by iteratively reweighted least square method.3. Repeat steps (1) and (2) until convergence to obtain the updated values for θθθ (l+1).

When the number of components K is unknown, the optimal K can be determined by fitting mixturetime series with different numbers of components and choosing the model with the minimum Bayesianinformation criterion (BIC).

2.3 Asymptotic distribution of the estimates

Define the conditional information matrix of the k-th component of the mixture Markov model as

Gk = limN→∞

1N

n∑i=1

zik

ni∑t=1

w(μ(k)

it

)MMMitMMM

′it . (2.15)

To derive the asymptotic distribution of the estimates, we assume the limit of the conditionalinformation matrix Gk exists and it is positive definite. This is similar to the assumption of nonsingulardesign matrix for classical linear regression. Furthermore, according to Lemma 3 in Kaufmann (1987),under this assumption, the unconditional information matrix of the joint likelihood of the time seriesis assured to be positive definite.

Proposition: LetYYY = (yyy′1,yyy′

2, . . . ,yyy′n)

′ be a set of n independent time series satisfying all the assump-tions described in Section 2.1. Let θθθk be the quasi-likelihood estimates for the regression parameters ofthe k-th component mixture Markov model. Then under the regularity conditions for the conditionaldensity of yit given BBBit ,

√n(θθθk − θθθk)

D−→ N(0, G−1k ). (2.16)

Proof. Similar to the argument in Zeger and Qaqish (1988), expand the score Eq. (2.11) for the mixtureMarkov model around the true θθθk in a Taylor series,

000 = U (θθθk) ≈ U (θθθk) + ∂U (θθθk)

∂θθθk(θθθk − θθθk) + op(1). (2.17)

Rearranging the terms leads to

√N(θθθk − θθθk) =

[− 1

N∂U (θθθk)

∂θθθk

]−1 1√N

U (θθθk) + op(1). (2.18)

Applying the martingale central limit theorem, we have

1√N

U (θθθk)d−→ N(0, Gk). (2.19)

Applying the law of large numbers to the derivative matrix of the score vector yields

− 1N

∂U (θθθk)

∂θθθk

P−→ Gk. (2.20)

By Eqs. (2.19) and (2.20), and applying Slutsky’s theorem, the limiting distribution of the quasi-likelihood estimator follows. �

C© 2017 Her Majesty the Queen in Right of Canada. Reproduced with the permission of the Minister ofHealth

www.biometrical-journal.com

Page 7: Mixture Markov regression model with application to ...huaiping/paper/2017_Gao_et_al-2017-Biometrical... · Mixture Markov regression model with application to mosquito surveillance

Biometrical Journal 00 (2017) 00 7

Table 1 Combinations of parameters used in the simulation: K, number of components; p, number ofcovariates; q, number of autoregressive term; β, regression coefficients of covariates; λ, autoregressivecoefficients; λ(L) denotes the case of lower autoregressive coefficients; λ(H ) denotes the case of higherautoregressive coefficients; π denote the probability of each component; each row of the parametermatrix corresponds to each mixture component.

β λ(L) λ(H) π

K=2 p=3 q=1(

1.0 1.5 2.00.5 1.5 0.5

) (0.100.15

) (0.600.65

) (0.30.7

)

K=2 p=3 q=2(

1.0 1.5 2.00.5 1.5 0.5

) (0.10 0.150.15 0.20

) (0.30.7

)

K=2 p=5 q=1(

1.0 1.5 2.0 0.5 0.20.5 1.5 0.5 1.0 0.3

) (0.100.15

) (0.30.7

)

K=3 p=3 q=1

⎛⎝ 1.0 1.5 2.0

0.5 1.5 0.50.5 1.0 0.5

⎞⎠

⎛⎝ 0.10

0.150.20

⎞⎠

⎛⎝ 0.4

0.20.4

⎞⎠

The limiting covariance matrix can be estimated by

Gk = 1N

n∑i=1

pik

ni∑t=1

w(μ(k)

it

)MMMitMMM

′it,

where pik and w(μ(k)it ) are the limiting values of the estimates when the algorithm converges. The

estimation of the scale parameter φ for cluster k is

φk =∑n

i=1 pik∑ni

t=1 r2ikt∑n

i=1( pikni) − s, (2.21)

where s is the number of parameters in θθθk, and rikt is the Pearson residuals defined by rikt = (yit −μ

(k)it )/[V (μ

(k)it )]

12 .

3 Simulations

In order to evaluate the performance of the proposed mixture Markov regression method, we conductedsimulations on the following three Markov regression models given by Zeger and Qaqish (1988).We consider times series of model (1) with counts formulated as conditional Poisson distribution,model (2) with counts formulated as conditional gamma distribution and model (3) with binaryoutcomes formulated as conditional binomial distribution. The conditional regression models of thek-th component time series under model (1) and (2) are:

log(μ(k)t ) = xxx

′tβββ

(k) +q∑

j=1

λ(k)j [log(y∗

t− j ) − xxx′t− jβββ

(k)], (3.22)

where y∗t−1 = max(yt−1, c), 0 < c < 1, with c set to be 0.05 in the simulation, p is the dimension of

βββ(k), and q is the number of λ js. The predictors xxx were generated from uniform distribution on the

C© 2017 Her Majesty the Queen in Right of Canada. Reproduced with the permission of the Minister ofHealth

www.biometrical-journal.com

Page 8: Mixture Markov regression model with application to ...huaiping/paper/2017_Gao_et_al-2017-Biometrical... · Mixture Markov regression model with application to mosquito surveillance

8 X. Gao et al.: Mixture markov regression model

Table 2 The estimates and standard errors for conditional Poisson model with K = 2.

k=1 k=2

m=100 p=3 q=1 λ(L)

est para(

1.001 1.500 1.999 0.101) (

0.502 1.498 0.499 0.150)

SE-theo(

0.042 0.029 0.030 0.010) (

0.038 0.037 0.035 0.011)

SE-simu(

0.030 0.030 0.031 0.037) (

0.032 0.037 0.036 0.015)

est prob 0.296 0.704SE prob 0.083 0.083

m=50 p=3 q=1 λ(L)

est para(

1.001 1.500 2.000 0.102) (

0.498 1.502 0.501 0.150)

SE-theo(

0.060 0.042 0.044 0.013) (

0.055 0.053 0.051 0.015)

SE-simu(

0.044 0.046 0.030 0.047) (

0.049 0.033 0.053 0.022)

est prob 0.296 0.704SE prob 0.081 0.081

m=50 p=3 q=1 λ(H )

est para(

1.000 1.500 2.000 0.596) (

0.496 1.500 0.500 0.648)

SE-theo(

0.137 0.039 0.042 0.016) (

0.110 0.054 0.051 0.018)

SE-simu(

0.057 0.038 0.040 0.041) (

0.070 0.051 0.050 0.021)

est prob 0.299 0.701SE prob 0.082 0.082

m=50 p=3 q=2 λ(L)

est para(

0.988 1.498 1.958 0.099 0.152) (

0.512 1.500 0.541 0.150 0.197)

SE-theo(

0.082 0.043 0.045 0.014 0.014) (

0.070 0.055 0.053 0.016 0.017)

SE-simu(

0.094 0.045 0.246 0.060 0.046) (

0.098 0.055 0.278 0.025 0.025)

est prob 0.309 0.691SE prob 0.107 0.107

m=50 p=5 q=1 λ(L)

est para(

0.999 1.500 2.001 0.501 0.199 0.099) (

0.499 1.499 0.502 1.000 0.300 0.149)

SE-theo(

0.060 0.036 0.038 0.035 0.034 0.011) (

0.058 0.039 0.037 0.038 0.037 0.014)

SE-simu(

0.046 0.036 0.039 0.037 0.035 0.043) (

0.045 0.037 0.037 0.038 0.036 0.026)

est prob 0.302 0.698SE prob 0.089 0.089

Under each setting, the first p estimates are β and the remaining q ones are λ. SE-theo were the theoretical standard error andSE-simu were the standard error obtained from the simulation.

interval [0, 1]. For time series in model (3), the conditional regression model is:

logit(μ(k)t ) = xxx

′tβββ

(k) +q∑

j=1

λ(k)j yt− j, (3.23)

and the predictors xxx were generated from standard normal distribution N(0, 3). In each simulation,the dataset consists of n = 30 time series of length m, where m = 50 or 100. The time series weresimulated according to a mixture of K = 2 or K = 3 components. For each of the three conditional

C© 2017 Her Majesty the Queen in Right of Canada. Reproduced with the permission of the Minister ofHealth

www.biometrical-journal.com

Page 9: Mixture Markov regression model with application to ...huaiping/paper/2017_Gao_et_al-2017-Biometrical... · Mixture Markov regression model with application to mosquito surveillance

Biometrical Journal 00 (2017) 00 9

Table 3 The estimates and standard errors for conditional Poisson model with K = 3.

k=1 k=2 k=3

m=50 p=3 q=1 λ(L)

est para(

1.001 1.498 2.000 0.098) (

0.503 1.496 0.497 0.148) (

0.499 1.000 0.502 0.200)

SE-theo(

0.051 0.036 0.037 0.011) (

0.108 0.104 0.099 0.032) (

0.075 0.061 0.062 0.020)

SE-simu(

0.034 0.035 0.036 0.039) (

0.098 0.108 0.110 0.046) (

0.058 0.058 0.062 0.033)

est prob 0.401 0.201 0.398SE prob 0.088 0.072 0.085

Under each setting, the first p estimates are β and the remaining q ones are λ. SE-theo were the theoretical standard error andSE-simu were the standard error obtained from the simulation.

models, different combinations of m, p, q, and K were tested and each scenario was repeated 1000times. The true parameters used in the simulations were given in Table 1 and Tables 2–7 provided thequasi-likelihood estimates and the corresponding standard errors.

It is observed that the proposed quasi-likelihood method provides accurate estimation for thetrue model parameters in all simulation settings. For all the three distributions, the standard errorsdecrease as the number of observations n in each time series increases. The magnitude of autoregressiveparameters λ did not significantly affect the sizes of the standard errors under the conditional Poissonand the conditional Gamma models. However, it greatly affected the sizes of the standard errors underthe conditional Binomial distribution model. As (λ1, λ2) increase from (0.10, 0.15) to (0.60, 0.65),the standard errors have large increase accordingly. This is because in our simulated conditionalBinomial model, the autoregressive term λ j multiplies directly with yt− j, whereas in the simulatedconditional Poisson and Gamma model, λ j multiplies with transformed past outcomes in the form oflog(y∗

t− j ) − xxx′t− jβββ. The latter form of autoregressive term seems to have less influence on the variability

of the estimates than the former form. The standard errors under the conditional Gamma model wasalso affected by the value of the dispersion parameter φ. The standard errors are larger when φ isgreater than 1.

Figure 2 depicts the time series generated from a simulated dataset under the conditional Poissonmodel with m = 100, p = 3, q = 1, K = 2. The regression parameters and the mixing proportionswere estimated using the proposed algorithm at different values of K = 1, 2, 3, 4, 5. The Bayesianinformation criterion was used to determine the optimal number of components and the correspondingBIC was minimized at K = 2, which equals to the actual number of clusters. To check if the twomixture components can be correctly identified, a cross-tabulation of true memberships and predictedmemberships was conducted and it was observed that the two mixture components were perfectlyseparated and the memberships were all correctly identified.

4 Mosquito surveillance data analysis

We used the proposed mixture Markov regression model to analyze the mosquito surveillance datasetcollected in Peel Region, Ontario. The data were collected from 29 traps that remained in the samelocation from 2004 to 2012. The data from 2004 to 2011 (see Fig. 3) were used to build the mixtureMarkov model, and the data of 2012 were used to validate the forecasting capability of the proposedmodel.

To reflect the heterogeneity in the time series due to different geographic locations and their responsesto the changing weather in the mosquito season, one may first identify clusters of traps that yield similar

C© 2017 Her Majesty the Queen in Right of Canada. Reproduced with the permission of the Minister ofHealth

www.biometrical-journal.com

Page 10: Mixture Markov regression model with application to ...huaiping/paper/2017_Gao_et_al-2017-Biometrical... · Mixture Markov regression model with application to mosquito surveillance

10 X. Gao et al.: Mixture markov regression model

Table 4 The estimates and standard errors for conditional Gamma model with K = 2.

k=1 k=2

m=50 p=3 q=1 λ(L) φ = 1est para

(0.996 1.496 1.998 0.097

) (0.504 1.499 0.489 0.149

)SE-theo

(0.158 0.173 0.172 0.033

) (0.090 0.110 0.109 0.024

)SE-simu

(0.147 0.186 0.186 0.044

) (0.092 0.111 0.111 0.027

)est prob 0.300 0.700SE prob 0.086 0.086

m=100 p=3 q=1 λ(L) φ = 1est para

(0.997 1.502 2.002 0.100

) (0.495 1.502 0.504 0.149

)SE-theo

(0.110 0.120 0.120 0.024

) (0.063 0.076 0.076 0.017

)SE-simu

(0.099 0.126 0.127 0.030

) (0.062 0.079 0.075 0.018

)est prob 0.300 0.700SE prob 0.084 0.084

m=100 p=3 q=1 λ(L) φ = 3est para

(0.995 1.502 1.995 0.100

) (0.495 1.504 0.496 0.149

)SE-theo

(0.165 0.209 0.208 0.025

) (0.104 0.133 0.132 0.019

)SE-simu

(0.177 0.211 0.227 0.028

) (0.113 0.135 0.134 0.020

)est prob 0.300 0.700SE prob 0.086 0.086

m=100 p=3 q=1 λ(H ) φ = 1est para

(0.998 1.500 2.003 0.599

) (0.491 1.503 0.503 0.649

)SE-theo

(0.141 0.104 0.105 0.021

) (0.078 0.065 0.065 0.015

)SE-simu

(0.142 0.106 0.107 0.024

) (0.100 0.067 0.065 0.015

)est prob 0.300 0.700SE prob 0.083 0.083

m=100 p=3 q=2 λ(L) φ = 1est para

(0.997 0.499 1.999 0.099 0.149

) (0.501 0.496 0.499 0.149 0.200

)SE-theo

(0.132 0.120 0.121 0.024 0.024

) (0.068 0.075 0.075 0.017 0.017

)SE-simu

(0.109 0.127 0.124 0.033 0.031

) (0.069 0.076 0.074 0.019 0.019

)est prob 0.298 0.702SE prob 0.084 0.084

m=100 p=5 q=1 λ(L) φ = 1est para

(1.002 1.496 2.001 0.499 0.194 0.099

) (0.498 1.502 0.502 0.995 0.302 0.149

)SE-theo

(0.144 0.121 0.121 0.121 0.121 0.023

) (0.088 0.078 0.077 0.078 0.077 0.016

)SE-simu

(0.135 0.122 0.122 0.122 0.130 0.031

) (0.085 0.077 0.078 0.082 0.079 0.019

)est prob 0.303 0.697SE prob 0.083 0.083

Under each setting, the first p estimates are β and the remaining q ones are λ. SE-theo were the theoretical standard error andSE-simu were the standard error obtained from the simulation. φ is the dispersion parameter for the Gamma distribution.

C© 2017 Her Majesty the Queen in Right of Canada. Reproduced with the permission of the Minister ofHealth

www.biometrical-journal.com

Page 11: Mixture Markov regression model with application to ...huaiping/paper/2017_Gao_et_al-2017-Biometrical... · Mixture Markov regression model with application to mosquito surveillance

Biometrical Journal 00 (2017) 00 11

Table 5 The estimates and standard errors for conditional Gamma model with K = 3.

k=1 k=2 k=3

m=50 p=3 q=1 λ(L)

est para(

0.997 1.499 2.007 0.099) (

0.496 1.501 0.500 0.148) (

0.498 0.989 1.510 0.200)

SE-theo(

0.095 0.104 0.103 0.020) (

0.124 0.151 0.150 0.033) (

0.089 0.103 0.103 0.022)

SE-simu(

0.084 0.106 0.104 0.026) (

0.139 0.180 0.203 0.045) (

0.093 0.122 0.116 0.027)

est prob 0.398 0.206 0.396SE prob 0.090 0.082 0.096

Under each setting, the first p estimates are β and the remaining q ones are λ. SE-theo were the theoretical standard error andSE-simu were the standard error obtained from the simulation. The dispersion parameter for the Gamma distribution φ = 1.

mosquito abundance patterns using clustering algorithm, then build a Markov regression modelfor each identified cluster. However, this hard clustering approach based on traditional clusteringalgorithm cannot take into account the autocorrelation between the time points and also neglect theinfluence of the associated covariates. We propose to model the heterogeneous time series data usingMarkov mixture model that can properly account for the autocorrelation among the time points andalso model the effects of the exogenous variables. This can be viewed as a regression model-basedclustering algorithm for time series.

The response variables YYY = {yi jt}, i = 1, . . . , 29, j = 1, . . . , 8, where i indexes the culex mosquitocounts from the 29 traps in Peel Region, j indexes the eight different years from 2004 to 2011, and tindexes weekly results. The explanatory variables were the weather data including daily average tem-perature ddm and precipitation ppm (see Wang et al. (2011) for detail). A mixture Markov regressionmodel with conditional Poisson distribution was fitted to the mosquito time series. For the k-th mixturecomponent, the conditional mean of the mosquito counts in a trap conditional on the previous weekcounts is given by

log(μμμ

(k)i jt

)= xxxi jtβββk + λkyi j,t−1 (4.24)

where xxx′ = {1, ddm, ppm, ddm × ppm, ddm2, ppm2}. Note that because of the autoregressive term oft − 1, the quasi-likelihood model will only sum the contributions from t = 2.

We used R package FlexMix (Leisch, 2004) to obtain the initial values for our algorithm. Theoptimal number of components was determined by the BIC criterion. The corresponding BIC curvewas depicted in Fig. 5. The mixture model with three components achieved the smallest BIC and wasselected as the optimal model.

We also examined the predicted probability for each trap to be assigned to the mixture components.For each trap, we assign the membership to the component with the maximum probability amongthe three components. For the mosquito surveillance data, the maximum predicted probabilities hada mean of 0.95 with a standard deviation of 0.11. This indicated that observations can be assignedto one of the components with high confidence and the components were well separated. The esti-mated regression parameters, the corresponding standard errors and estimated mixing proportionswere listed in Table 8. The predicted mean values of mosquito counts for each component were de-picted in Fig. 4. It was evident that the different components responded differently to the weatherchanges.

We compared the results obtained from the proposed mixture Markov model and the hard clusteringmethod that performs clustering based on K-means algorithm and build Markov regression modelfor each cluster. The root mean square error (RMS) of the two methods were calculated. The RMSof the hard clustering method and the mixture Markov model were 18.78 and 12.81, respectively. The

C© 2017 Her Majesty the Queen in Right of Canada. Reproduced with the permission of the Minister ofHealth

www.biometrical-journal.com

Page 12: Mixture Markov regression model with application to ...huaiping/paper/2017_Gao_et_al-2017-Biometrical... · Mixture Markov regression model with application to mosquito surveillance

12 X. Gao et al.: Mixture markov regression model

Table 6 The estimates and standard errors for conditional Binomial model with K = 2.

k=1 k=2

m=100 p=3 q=1 λ(L)

est para(

1.001 1.502 2.003 0.100) (

0.499 1.501 0.501 0.150)

SE-theo(

0.079 0.041 0.053 0.011) (

0.045 0.023 0.011 0.007)

SE-simu(

0.093 0.047 0.059 0.013) (

0.046 0.024 0.012 0.007)

est prob 0.301 0.699SE prob 0.088 0.088

m=50 p=3 q=1 λ(L)

est para(

1.008 1.510 2.014 0.100) (

0.504 1.503 0.500 0.150)

SE-theo(

0.115 0.059 0.075 0.016) (

0.065 0.033 0.017 0.009)

SE-simu(

0.147 0.070 0.089 0.019) (

0.069 0.036 0.018 0.010)

est prob 0.298 0.702SE prob 0.085 0.085

m=50 p=3 q=1 λ(H )

est para(

1.008 1.514 2.018 0.605) (

0.510 1.504 0.502 0.651)

SE-theo(

0.162 0.068 0.086 0.031) (

0.131 0.045 0.024 0.023)

SE-simu(

0.240 0.084 0.108 0.040) (

0.170 0.053 0.028 0.029)

est prob 0.298 0.702SE prob 0.083 0.083

m=50 p=3 q=2(L)est para

(1.009 1.510 2.013 0.100 0.152

) (0.505 1.503 0.501 0.151 0.200

)SE-theo

(0.163 0.062 0.080 0.018 0.018

) (0.107 0.037 0.018 0.012 0.012

)SE-simu

(0.211 0.083 0.107 0.022 0.022

) (0.123 0.051 0.022 0.013 0.013

)est prob 0.298 0.702SE prob 0.085 0.085

m=50 p=5 q=1 λ(L)

est para(

1.013 1.516 2.018 0.504 0.201 0.100) (

0.496 1.505 0.501 1.003 0.301 0.151)

SE-theo(

0.131 0.065 0.083 0.033 0.029 0.018) (

0.072 0.037 0.019 0.027 0.016 0.010)

SE-simu(

0.169 0.079 0.105 0.039 0.037 0.023) (

0.076 0.039 0.020 0.028 0.018 0.011)

est prob 0.298 0.702SE prob 0.087 0.087

Under each setting, the first p estimates are β and the remaining q ones are λ. SE-theo were the theoretical standard error andSE-simu were the standard error obtained from the simulation.

mixture Markov model obtained smaller RMS and therefore outperformed the hard clustering methodin terms of model fitting.

We also compared the two methods by predicting the mosquito abundance in Peel Region in 2012,where the two models were trained on data from 2004 to 2011. The RMS of the hard clustering methodand the mixture Markov model were 20.44 and 16.97, respectively. Figure 6 displayed the predictionresults on two traps by the two methods and the prediction started from the second week of themosquito season. It was evident that the prediction of the mixture Markov model was more accurate

C© 2017 Her Majesty the Queen in Right of Canada. Reproduced with the permission of the Minister ofHealth

www.biometrical-journal.com

Page 13: Mixture Markov regression model with application to ...huaiping/paper/2017_Gao_et_al-2017-Biometrical... · Mixture Markov regression model with application to mosquito surveillance

Biometrical Journal 00 (2017) 00 13

Table 7 The estimates and standard errors for conditional Binomial model with K = 3.

k=1 k=2 k=3

m=50 p=3 q=1 λ(L)

est para(

1.004 1.508 2.010 0.101) (

0.491 1.507 0.502 0.152) (

0.501 1.004 1.506 0.201)

SE-theo(

0.104 0.053 0.068 0.014) (

0.127 0.065 0.032 0.018) (

0.094 0.034 0.048 0.014)

SE-simu(

0.116 0.064 0.083 0.016) (

0.140 0.073 0.035 0.021) (

0.101 0.037 0.051 0.014)

est prob 0.401 0.201 0.398SE prob 0.095 0.074 0.093

Under each setting, the first p estimates are β and the remaining q ones are λ. SE-theo were the theoretical standard error andSE-simu were the standard error obtained from the simulation.

Figure 2 A simulated conditional Poisson time series data with two mixture components.

Figure 3 The mosquito surveillance time series from 29 mosquito traps in Peel Region from 2004 to2011. Each colored curve represents the time series from an individual trap joining the 7 years timeseries in one curve.

and the predicted curve by the mixture Markov model is much closer to the actual observations thanthe hard clustering method.

5 Conclusions

A general framework of finite mixture regression models with Markov process was proposed toanalyze heterogeneous time series data. Quasi-likelihood method was proposed to estimate the param-eters. A dedicated novel EM algorithm was developed to maximize the quasi-likelihood with mixture

C© 2017 Her Majesty the Queen in Right of Canada. Reproduced with the permission of the Minister ofHealth

www.biometrical-journal.com

Page 14: Mixture Markov regression model with application to ...huaiping/paper/2017_Gao_et_al-2017-Biometrical... · Mixture Markov regression model with application to mosquito surveillance

14 X. Gao et al.: Mixture markov regression model

Figure 4 Fitted three-component mixture Markov model based on the mosquito surveillance datain Peel Region. Each colored curve represents the conditional mean curves for the three mixturecomponents

Figure 5 The BIC curve for the mixture Markov model fitted on the mosquito surveillance data.

Table 8 The estimated parameters and the corresponding standard errors for the mosquito surveil-lance data with three components.

β0 β1 β2 β3 β4 β5 λ π

Component 1 2.0293 −0.0168 −0.0579 0.0042 0.0089 0.0035 0.0174 0.042(0.2740) (0.0088) (0.0639) (1.98e−05) (2.03e−04) (2.95e−04) (1.42e-06)

Component 2 0.8815 0.0693 0.2665 0.0014 −0.0086 −0.0060 0.0198 0.280(0.0938) (0.0028) (0.0141) (5.9542) (4.40e−05) (6.35e−05) (2.86e-07)

Component 3 0.7464 0.0299 0.2846 0.0041 −0.0210 0.0077 0.0230 0.678(0.0572) (0.0017) (0.0101) (3.74e−06) (3.11e−05) (4.64e−05) (1.39e-07)

For each component, the numbers in the bracket are the standard errors of the corresponding estimates.

components. The asymptotic properties of the quasi-likelihood estimates were established. The pro-posed algorithm can be used to model and forecast heterogeneous time series data with exogenousvariables. It can also be used as a quasi-likelihood based clustering algorithm for time series.

As a future work, we wish to extend the proposed method to the setting that the conditionaldistribution may not come from an exponential family and only the first and second moments arespecified. This imposes difficulty on imputing the missing memberships where there is neither likelihood

C© 2017 Her Majesty the Queen in Right of Canada. Reproduced with the permission of the Minister ofHealth

www.biometrical-journal.com

Page 15: Mixture Markov regression model with application to ...huaiping/paper/2017_Gao_et_al-2017-Biometrical... · Mixture Markov regression model with application to mosquito surveillance

Biometrical Journal 00 (2017) 00 15

Figure 6 Prediction performance on the mosquito abundance in 2012 by two competing methods;“pred1” represents the proposed mixture Markov model; “pred2” represents the method of hardclustering by K-means first and then apply Markov model; the red curve represents the observed timeseries; “R1” and “A1” are the labels of the two selected mosquito traps.

nor conditional likelihood available. Finally, the model selection properties of BIC in the quasi-likelihood setting with mixture components need to be further investigated.

Acknowledgments This work is supported by NSERC grants held by Zhu and Gao and CIHR grant heldby Zhu.

References

Albert, P. S. (1991). A two-state Markov mixture model for a time series of epileptic seizure counts. Biometrics47, 1371–1381.

Albert, P. S. and Waclawiw, M. A. (1998). A two-state Markov chain for heterogeneous transitional data: aquasi-likelihood approach. Statistics in Medicine 17, 1481–1493.

Alfo, M., Nieddu, L. and Vicari, D. (2009). Finite mixture models for mapping spatially dependent disease counts.Biometrical Journal 51, 84–97.

Alfo, M., Salvati, N. and Ranallli, M. G. (2016). Finite mixtures of quantile and M-quantile regression models.Statistics and Computing. 1–24.

C© 2017 Her Majesty the Queen in Right of Canada. Reproduced with the permission of the Minister ofHealth

www.biometrical-journal.com

Page 16: Mixture Markov regression model with application to ...huaiping/paper/2017_Gao_et_al-2017-Biometrical... · Mixture Markov regression model with application to mosquito surveillance

16 X. Gao et al.: Mixture markov regression model

Anderson, R. L. (1954). The problem of autocorrelation in regression analysis. Journal of American StatisticalAssociation 49, 113–129.

Azzalini, A. (1982). Approximate filtering of parameter driven processes. Journal of Time Series Analysis 3,219–223.

Cadez, I., Heckerman, D., Meek, C., Smyth, P. and White, S. (2003). Model-based clustering and visualization ofnavigation patterns on a web site. Data Mining and Knowledge Discovery 7, 399–424.

Cox, D. R. (1970). The Analysis of Binary Data. Chapman and Hall, London, UK.Cox, D. R, Gudmundsson, G., Lindgren, G., Bondesson, L., Harsaae, E., Laake, P., Juselius, K. and Lau-

ritzen, S. L. (1981). Statistical analysis of time series: some recent developments [with discussion and reply].Scandinavian Journal of Statistics 8, 93–115.

Dempster, A. P., Laird, N. M., Rubin, D. B. (1977). Maximum likelihood from incomplete data via the EMalgorithm. Journal of the Royal Statistical Society. Series B 39, 1–38.

Fahrmeir, L. (1989). Extended Kalman Filtering for Nonnormal Longitudinal Data. Statistical Modelling.Springer, New York, pp. 151–156.

Fuller, W. A. (2009). Introduction to Statistical Time Series. Wiley, New York, NY.Gaffney, S. and Smyth, P. (1999). Trajectory clustering with mixtures of regression models. Proceedings of the

Fifth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 63–72. ACM.Kalbfleisch, J. D. and Lawless, J. F. (1985). The analysis of panel data under a Markov assumption. Journal of

American Statistical Association 80, 863–871.Kaufmann, H. (1987). Regression models for nonstationary categorical time series: asymptotic estimation theory.

The Annals of Statistics 15, 79–98.Lawrance, A. J. and Lewis, P. (1985). Modelling and residual analysis of nonlinear autoregressive time series in

exponential variables. Journal of the Royal Statistical Society. Series B 47, 165–202.Liao, T. W. (2005). Clustering of time series data—a survey. Pattern Recognition 38, 1857–1874.Leisch, F. (2004). Flexmix: a general framework for finite mixture models and latent glass regression in R.McLachlan, G. and Peel, D. (2004). Finite Mixture Models. Wiley, New York, NY.Poulsen, C. S. (1990). Mixed Markov and latent Markov modelling applied to brand choice behaviour. Interna-

tional Journal of Research in Marketing 7, 5–19.Redner, R. A. and Walker, H. F. (1984). Mixture densities, maximum likelihood and the EM algorithm. SIAM

Review 26, 195–239.Wang, J., Ogden, N. H., and Zhu, H. (2011). The impact of weather conditions on Culex pipiens and Culex

restuans (Diptera: Culicidae) abundance: a case study in Peel region. Journal of Medical Entomology 48,468–475.

West, M., Harrison, P. J. and Migon, H. S. (1985). Dynamic generalized linear models and Bayesian forecasting.Journal of American Statistical Association 80, 73–83.

Xiong, Y. and Yeung, D. Y. (2004). Time series clustering with ARMA mixtures. Pattern Recognition 38, 1675–1689.

Zeger, S. L. and Qaqish, B. (1988). Markov regression models for time series: a quasi-likelihood approach.Biometrics 44, 1019–1031.

C© 2017 Her Majesty the Queen in Right of Canada. Reproduced with the permission of the Minister ofHealth

www.biometrical-journal.com