Skip to main content
PLOS One logoLink to PLOS One
. 2021 Aug 16;16(8):e0256128. doi: 10.1371/journal.pone.0256128

Structural change detection in ordinal time series

Fuxiao Li 1,*,#, Mengli Hao 1,#, Lijuan Yang 2,#
Editor: Christophe Letellier3
PMCID: PMC8367010  PMID: 34398909

Abstract

Change-point detection in health care data has recently obtained considerable attention due to the increased availability of complex data in real-time. In many applications, the observed data is an ordinal time series. Two kinds of test statistics are proposed to detect the structural change of cumulative logistic regression model, which is often used in applications for the analysis of ordinal time series. One is the standardized efficient score vector, the other one is the quadratic form of the efficient score vector with a weight function. Under the null hypothesis, we derive the asymptotic distribution of the two test statistics, and prove the consistency under the alternative hypothesis. We also study the consistency of the change-point estimator, and a binary segmentation procedure is suggested for estimating the locations of possible multiple change-points. Simulation results show that the former statistic performs better when the change-point occurs at the centre of the data, but the latter is preferable when the change-point occurs at the beginning or end of the data. Furthermore, the former statistic could find the reason for rejecting the null hypothesis. Finally, we apply the two test statistics to a group of sleep data, the results show that there exists a structural change in the data.

Introduction

In categorical data analysis, ordinal categorical variables are frequently encountered in many contexts, such as health status (very good, good, so-so, bad, very bad), blood pressure (low, normal, high). The data observed hourly or daily constitutes an ordinal time series. The cumulative logistic regression model is often applied for analyzing the ordinal time series [1]. Sometimes the model may change at some unknown time moments (change-points) while it remains stable between these points. Structural stability is of prime importance in statistical modeling and inference. If the parameters have changed with the observed sample, inferences can be severely biased, and forecasts lose accuracy. Because of the importance of parameter stability, it is necessary to detect the structural change. Studies of structural change detection has been a popular research subject in statistics, see Csörgö and Horváth [2], Bai and Perron [3], Lee et al. [4], Perron [5], Gombay [6], Wang et al. [7], Chen et al. [8], Baranowski et al. [9], Wang et al. [10], Chen [11] and Liu et al. [12] for reviews of the field.

Structural changes detection in categorical data have been considered as well. Höhle [13] proposed a prospective CUSUM change-point detection procedure to detect a structural change in categorical time series; Wang et al. [10] described a procedure based on high-dimensional homogeneity test to detect and estimate multiple change-point in multinomial data; Plasse and Adams [14] illustrated a multiple change-point detection method for categorical data streams, which could adaptively monitor the category probabilities. As generalized linear regression models for categorical time series allow for parsimonious modeling and incorporation of random time-dependent covariates, Fokianos and Kedem [15] suggested the generalized linear model for categorical time series modeling. For change-point detection in the generalized linear model, Xia et al. [16] introduced two procedures to sequentially detect the structural change in generalized linear models with assuming independence; Hudecová [17] investigated the detection of change in autoregressive models for binary time series; Fokianos et al. [18] provided a statistical procedure based on the partial likelihood score process to detect a structural change in binary logistic regression model; Gombay et al. [19] and Li et al. [20] discussed retrospective change detection and sequential change detection in multinominal logistic regression model.

Score test for detection of changes in time series models has been studied by Gombay and Serban [21], Gombay et al. [22]. The test statistic is usually computationally less demanding than the likelihood ratio test statistic. In this paper, we first propose a test statistic based on the efficient score vector to detect a structural change in cumulative logistic regression model, which extends the change-point detection of Gombay et al. [19]. Simulation shows that the empirical power of the proposed statistic is low when the change-point occurs at the beginning or end of the data. To this end, we propose a new statistic, which is the quadratic form of the efficient score vector and has a weight function. Under the null hypothesis of no change, we derive the asymptotic distribution of the two statistics, and prove the consistency under the alternative hypothesis. We also study the consistency of the change-point estimator, and a binary segmentation procedure is suggested for estimating the locations of possible multiple change-points. Simulation results show that the empirical size of the two statistics is close to the significance level 0.05, and the empirical power is approximate to 1 when the sample size is large. The empirical power of the former statistic is higher when the change-point is located at the centre of the data, but the latter performs better when the change-point is located at the beginning or end of the data. Furthermore, the former statistic could find the reason for rejecting the null hypothesis. Finally, we apply the two statistics to study a group of sleep data, and find a structural change in the data.

The model and hypotheses

Consider a categorical time series {Yt} with m categories, Yt = (Yt1, …, Ytq)′, q = m − 1,

Ytj={1,ifthejcategoryisobservedattimet,0,otherwise

for t = 1, 2, …, n and j = 1, …, q, Ytm=1-∑j=1qYtj. The vector of conditional probability πt = (πt1, …, πtq)′ is defined by

πtj=E(Ytj|Ft-1)=P(Ytj=1|Ft-1),j=1,…,q,

for every t, πtm=1-∑j=1qπtj, where

Ft-1=σ{Yt-1,Yt-2,…,Zt-1,Zt-2,…},

{Zt−1} denotes the p × q covariate matrices.

Define an ordinal time series {Yt}, where Yt = j is equivalent to Ytj = 1 for j = 1, 2, …, m, t = 1, 2, …, n. Let {Xt} be a latent variable time series, where Xt = −β′zt−1 + et, β ∈ Rd, zt−1 is a d-dimensional covariate vector, et is a white noise process with continuous cumulative distribution function F. Suppose that −∞ = α0 < α1 < ⋯ < αm = ∞ are threshold parameters, such that Yt satisfies

Yt=jifαj-1≤Xt<αj

for j = 1, 2, …, m. According to the equivalence relation between Yt and Ytj, we have

πtj=P(Ytj=1|Ft-1)=P(Yt=j|Ft-1)=P(αj-1≤Xt<αj|Ft-1)=F(αj+β′zt-1)-F(αj-1+β′zt-1),

then

P(Yt≤j|Ft-1)=F(αj+β′zt-1),j=1,2,…,m.

If F(x) is the logistic distribution function, then F−1 is the logistic link function log it(x), where logit (x) = ln (x/(1 − x)), 0 < x < 1. Thus we have

logit(P(Yt≤j|Ft-1))=αj+β′zt-1,j=1,2,…,q,

which is called the cumulative logistic regression model.

Let θ = (α1, …, αq, β′)′ be a p-dimensional parameter vector, p = q + d. In this paper we wish to test if there exists a structural change in the parameter θ, that is,

H0:θ=θ0,t=1,2,…,n,HA:θ=θ0,t=1,2,…,k*,andθ=θ0*,t=k*+1,…,n,

where θ0 is the true value of θ, k* denotes the change-point which occurs in some of the parameter θ, θ0≠θ0*, θ0, θ0* and k* are unknown.

Next, we estimate the parameter vector θ by the partial likelihood method (Fokianos et al. [18]). The partial likelihood function

PL(θ)=∏t=1nf(Yt;θ|Ft-1)=∏t=1n∏j=1mπtjYtj(θ)

and the partial log-likelihood function

l(θ)=logPL(θ)=∑t=1n∑j=1mYtjlogπtj(θ) (1)

are defined in Gombay et al. [19]. Denote the partial score vector

Sn(θ)=∇l(θ)=(∂l(θ)∂θ1,…,∂l(θ)∂θp)′=∑t=1nZt-1Ut(θ)(Yt-πt(θ))=∑t=1nZt-1Dt(θ)Σt-1(θ)(Yt-πt(θ)),

where

Zt-1=(10⋯001⋯0⋮⋮⋮0zt-10zt-1⋯⋯0zt-1)p×q,

Ut(θ)=Dt(θ)Σt-1(θ), Dt(θ)=∂h(ηt)∂ηt′, h(ηt) = (h1(ηt), …, hq(ηt))′, ηt=Zt-1′θ=(ηt1,…,ηtq)′. h1(ηt), …, hq(ηt) satisfies

πt1(θ)=h1(ηt1)=F(ηt1),…,πtj(θ)=hj(ηt)=F(ηtj)-F(ηt(j-1)),j=2,…,q,

where F(x)=11+exp(-x). Σt(θ) is the conditional covariance matrix of Yt with

Σt(i,j)(θ)={-πti(θ)πtj(θ),i≠j,πti(θ)(1-πti(θ)),i=j,

for i, j = 1, …, q [23].

To obtain the existence, consistency and asymptotic normality of the maximum partial likelihood estimator, we give a few assumptions on the the covariate matrices {Zt} and parameter vector θ.

Assumption 1The parameter vectorθ∈Ω⊆Rp, where Ω is an open set.

Assumption 2The link function h is twice continuously differentiable, and satisfies det(∂ h(ηt)/∂ ηt) ≠ 0, where ηt=Zt-1′θ.

Assumption 3The covariate matrixZt−1lies almost surely in a non-random compact subsetΦ of Rp×q such that P(λ′(∑t=1nZt-1Zt-1′)λ>0)=1, Zt-1′θ lies almost surely in the domain H of h for all Zt−1 ∈ Φ and θ ∈ Ω, where λ∈Rp, λ ≠ 0.

Assumptions 1 and 2 ensure that the second derivative of l(θ) is continuous, det(∂ h(ηt)/∂ ηt) ≠ 0 implies that Ut(θ) is not singular (Fokianos and Kedem [24]). From Assumption 3,

Gn(θ)=∑t=1nZt-1Ut(θ)Σt(θ)Ut′(θ)Zt-1′.

is positive definite with probability one [24]. Since the likelihood estimation employs an assumption regarding ergodicity of the joint process (YtT,ztT)T (Fokianos and Truquet [25]), let {Yt} be a time series taking values in a finite set E with cardinal m, and such that

P(Yt=ω|Yt-1-,z)=q(ω|Yt-1-,zt-1-),t∈Z,

where z={zt,t∈Z}, Yt-1-={Yt-1-j,j≥0}, zt-1-={zt-1-j,j≥0}, q is a transition kernel. We assume that the applications (ω,y,x)|→q(ω|y,xt-1-) are measurable, as applications from E×Em×D to (0, 1), where {xt,t∈Z} is a sequence, xt-1-={xt-1-j,j≥0}, D∈B(Rd)⊗Z is such that P(z∈D)=1. Assume that v1 and v2 are two probability measures on E, define

dTV(v1,v2)=12∑f∈E|v1(f)-v2(f)|.

For y, y′ ∈ Em and a positive integer s, we write y=sy′ if yi=yi′, 0 ≤ i ≤ s − 1 (Truquet [26]).

Assumption 4The d-dimensional covariate vector {zt−1} is stationary and ergodic.

Assumption 5Setting for s ≥ 0,

bs=sup{dTV(q(·|y,xt-),q(·|y′,xt-)):(y,y′,x)∈Em×Em×D,t∈Z,y=sy′},

we have b0 < 1 and ∑s≥0bs<∞.

Assumptions 4 and 5 guarantees that (YtT,ztT)T is stationary and ergodic [26]. Assumptions 1–5 are required to obtain consistency and asymptotic normality of the maximum likelihood estimator. However, existence of moments for the covariate process is still required to study large sample properties of the maximum likelihood estimator [25]. So we have

Assumption 6E|zt-1(i)|4<∞, i = 1, 2, ⋯, d, where zt-1(i), 1 ≤ i ≤ d are components of vector zt‒1.

The proposed testing procedure

Based on the partial likelihood score process, a test statistic is defined by

W1=max1≤k≤nn−1/2T^n−1/2Sk(θ^n)

where T^n=1nSn(θ^n)Sn′(θ^n), θ^n is the maximum partial likelihood estimator of θ, which can be obtained by maximizing the partial log-likelihood function (1) (see Fokianos and Kedem [23]).

Under the null hypothesis of no change, we derive the asymptotic distribution of the proposed test statistic.

Theorem 1If Assumptions 1–6 and H0hold, then we have

W1=max1≤k≤nn−1/2T^n−1/2Sk(θ^n)→dsup0<t<1Bt,

whereT^n=1nSn(θ^n)Sn′(θ^n), B(t) is a p-dimensional vector of independent Brownian bridge, →dmeans convergence in distribution.

Proof: Since Sn(θ^n)=0, we can write

n-1/2(Sk(θ^n))=n-1/2(Sk(θ^n)-knSn(θ^n)),

let Sk(i) denote the i-th element of Sk, i = 1, 2, …, p, θ0 is the true value of θ, then we have

n-1/2Sk(i)(θ^n)=n-1/2(Sk(i)(θ^n)-knSn(i)(θ^n))=n-1/2(Sk(i)(θ0)-knSn(i)(θ0))-n1/2∑j=1p(θ^n(j)-θ0(j))×1n(∑t=1k(Zt-1Ut(θ0)(Yt-πt(θ0)))(i)(Zt-1Ut(θ0)(Yt-πt(θ0)))(j)-kn∑t=1n(Zt-1Ut(θ0)(Yt-πt(θ0)))(i)(Zt-1Ut(θ0)(Yt-πt(θ0)))(j))+Ekn(i).

Next, it is similar to the proof of Proposition 3 in Gombay et al. [19], we can prove that

max1≤k≤n1n|∑t=1k(Zt-1Ut(θ0)(Yt-πt(θ0)))(i)(Zt-1Ut(θ0)(Yt-πt(θ0)))(j)-kn∑t=1n(Zt-1Ut(θ0)(Yt-πt(θ0)))(i)(Zt-1Ut(θ0)(Yt-πt(θ0)))(j)|=oP(1)

By Theorem 4.1 of Fokianos and Kedem [23], we get

n1/2(θ^n(i)-θ0(i))=OP(1).

The error terms Ekn(i) have higher orders of products of (θ^n(i)-θ0(i)), it can be shown that Ekn(i)=oP(1). According to Proposition 1 (Gombay et al. [19]) and Slutsky’s theorem, we get

max1≤k≤nn-1/2T^n-1/2Sk(θ^n)→dsup0<t<1B(t)

as n → ∞.

Remark 1 When using the above test, if there exists some i, 1 ≤ i ≤ p,

max1≤k≤nn-1/2|(T^-1/2Sk(θ^n))(i)|≥C(α*),

the null hypothesis is rejected and a change-point occurs, α* = 1 ‒ (1 ‒ α)1/p. Let B(u) be a one-dimensional Brownian bridge, Csörgö and Révész [27] suggested that C(α*) could be obtained by

P(sup0≤u≤1|B(u)|≥x)=∑k≠0(-1)k+1exp(-2k2x2).

Simulation shows that W1 has poor performance at the boundaries. In particular, the limiting Brownian bridge is tied down at t = 0 and t = 1 (meaning B(0) = B(1) = 0), and hampers the ability of the test to detect the structural change occurring near the beginning or end of the data. Many authors address this problem by adding a weight function [28]. Therefore, we construct a new test statistic

W2=maxl<kn<hn−1ξk′ξkk/n(1−k/n),

which is the quadratic form of the efficient score vector and has a weight function, where

ξk=((T^n-1/2Sk(θ^n))(i1),…,(T^n-1/2Sk(θ^n))(ij))′,

{i1, i2, …, ij} ⊂ {1, 2, …, p}, j = 1, 2, …, p, 0 < l < h < 1.

Theorem 2If Assumptions 1–6 and H0hold, then we have

W2=maxl<kn<hn−1ξk′ξkk/n(1−k/n)→dsupl<t<h∑i=1jBi2(t)t(1-t)

for each 0 < l < h < 1, Bi(t), i = 1, …, j are independent one-dimensional Brownian bridges.

The conclusion of Theorem 2 can be deduced directly from Theorem 1. To obtain the critial values of the asymptotic distribution, Csörgö and Horváth [2] used a result of Vostrikova [29] to show that

P{supl<t<h∑i=1jBi2(t)t(1-t)≥x}=xj/2e-x/22j/2Γ(j/2){(1-jx)log(1-l)hl(1-h)+4x+O(1x2)}

as x → ∞. For example, when α = 0.05, l = 0.05, h = 0.95, j = 2, the critical value C(α) = 13.1.

Under the alternative hypothesis, there exists a structural change in the model, then we will prove the consistency of the two statistics.

Theorem 3Suppose Assumptions 1–6 and HAhold, if the coefficient changes fromθ0toθ0*atk*, θ0*(j)=θ0(j)+δ, θ0(j)is the jth component ofθ0, j ∈ {1, 2, …, p}, where δ is a constant, δ ≠ 0, then we have

  • (i)
    W1=max1≤k≤nn-1/2‖T^n-1/2Sk(θ^n)‖→P∞;
  • (ii)
    W2=maxl<kn<hn−1ξk′ξkk/n(1−k/n)→P∞,

where 0 < l < h < 1, ‖⋅‖ denotes the Euclidean norm of a vector, →P means convergence in probability.

Proof: Under the alternative hypothesis θ = θ0, t = 1, 2, …, k*, θ=θ0*, t = k* + 1, …, n. Suppose that the coefficient changes from θ0 to θ0* at k*, θ0*(j)=θ0(j)+δ, θ0(j) is the j-th component of θ0, 1 < j < p, where δ is a constant, δ ≠ 0.

When k* < k < n,

n-1/2Sk(θ^n)=n-1/2(S1k(θ^n)+S2k(θ^n)),

where S1k=∑t=1k*Zt-1Ut(θ^n)(Yt-πt(θ^n)), S2k=∑t=k*+1kZt-1Ut(θ^n)(Yt-πt(θ^n)). For the ith component of S1k(θ^n), 1 < i < p, we have

n-1/2S1k(i)(θ^n)=n-1/2S1k(i)(θ0)+n1/2∑j=1p(θ^n(j)-θ0(j))×1n∑t=1k*(Zt-1Ut(θ0)(Y-πt(θ0)))(i)(Zt-1Ut(θ0)(Y-πt(θ0)))(j)+E1k(i)n-1/2S2k(i)(θ^n)=n-1/2S2k(i)(θ0*)+n1/2∑j=1p(θ^n(j)-θ0*(j))×1n∑t=k*+1k(Zt-1Ut(θ0*)(Y-πt(θ0*)))(i)(Zt-1Ut(θ0*)(Y-πt(θ0*)))(j)+E2k(i)

where E1k(i) has two orders of products of (θ^n(j)-θ0(j)), E2k(i) has two orders of products of (θ^n(j)-θ0*(j)). By Theorem 1 we have

n-1/2S2k(i)(θ0*)=OP(1)

as n → ∞. Following Assumptions 1–6, we conclude that

1n∑t=k*+1k(Zt-1Ut(θ0*)(Y-πt(θ0*)))(i)(Zt-1Ut(θ0*)(Y-πt(θ0*)))(j)=OP(1).

Since δ ≠ 0, we have

n1/2(θ^n(j)-θ0*(j))=n1/2(θ^n(j)-θ0(j)-δ)→P∞

as n → ∞. When 1 < k < k*, the proof is similar. The proof of (ii) is similar to the proof of (i).

Once the null hypothesis is rejected, indicating there may exist a change-point, then we locate the change-point position by

k^*=min{k:max1≤k≤nn-1/2|(T^n-1/2Sk(θ^n))(i)|,1≤i≤p}. (2)

The following theorem shows that the change-point estimator k^* is consistent for the true change-point k*, as n → ∞.

Theorem 4Let k* be the true position of change-point under the alternative hypothesis HA and k^* be the estimate of k* given by (2). Under Assumptions 1–6, then k^* is consistent to k*, as n → ∞.

Proof: First we note that

n-1/2Sk(i)(θ^n)=n-1/2(Sk(i)(θ^n)-knSn(i)(θ^n))=n-1/2(Sk(i)(θ0)-knSn(i)(θ0))-n1/2∑j=1q+d(θ^n(j)-θ0(j))×1n(∑t=1k(Zt-1Ut(θ0)(Yt-πt(θ0)))(i)(Zt-1Ut(θ0)(Yt-πt(θ0)))(j)-kn∑t=1n(Zt-1Ut(θ0)(Yt-πt(θ0)))(i)(Zt-1Ut(θ0)(Yt-πt(θ0)))(j))+Ekn(i),

where i = 1, 2, …, p. Since

Sk(i)(θ0)-knSn(i)(θ0)=k(n-k)n(Sk(i)(θ0)k-Sn-k(i)(θ0)n-k),

where Sn-k(θ0)=∑t=k+1nZt-1Ut(θ0)(Yt-πt(θ0)). And because

E(Ytj|Ft-1)=πtj(θ0),t=1,2,⋯,k*,j=1,2,⋯,m-1,E(Ytj|Ft-1)=πtj(θ0*),t=k*+1,k*+2,⋯,n,j=1,2,⋯,m-1,

Therefore E(Sk(i)(θ0)-knSn(i)(θ0)) increases as k = 1, 2, ⋯, k*, and decrease as k = k* + 1, k* + 2, ⋯, n, then we take (2) as the change-point estimator.

By the proof of Theorem 1, we have

-n1/2∑j=1p(θ^n(j)-θ0(j))×1n(∑t=1k(Zt-1Ut(θ0)(Yt-πt(θ0)))(i)(Zt-1Ut(θ0)(Yt-πt(θ0)))(j)-kn∑t=1n(Zt-1Ut(θ0)(Yt-πt(θ0)))(i)(Zt-1Ut(θ0)(Yt-πt(θ0)))(j))=oP(1)

and Ekn(i)=oP(1). By Theorem 2 of Gombay [6], to prove (2) it is enough to show that

limK→∞limsupn→∞P{max1<k≤k*-Kfk≥maxk*-K<k≤k*+Kfk}=0, (3)

and

limK→∞limsupn→∞P{maxk*+K<k≤nfk≥maxk*-K<k≤k*+Kfk}=0, (4)

where fk=n-1/2(Sk(i)(θ^n)-knSn(i)(θ^n)). To prove (3), assume that there exists a constant K, K < k*,

P{max1<k≤k*-Kn-1/2(Sk(i)(θ^n)-knSn(i)(θ^n))>maxk*-K<k≤k*+Kn-1/2(Sk(i)(θ^n)-knSn(i)(θ^n))}≤P{max1<k≤k*-Kn-1/2(Sk(i)(θ^n)-knSn(i)(θ^n))>maxk*-K<k≤k*n-1/2(Sk(i)(θ^n)-knSn(i)(θ^n))}=P{∃k:1<k≤k*-K,max1≤r≤k*-kn-1/2(Sr(i)(θ^n)-rnSn(i)(θ^n))≤0}≤P{n-1/2(SK(i)(θ^n)-KnSn(i)(θ^n))<0}=P{n-1/2(SK(i)(θ0)-KnSn(i)(θ0))+SK*(i)<0},

where

SK*(i)=-n1/2∑j=1p(θ^n(j)-θ0(j))×1n(∑t=1k(Zt-1Ut(θ0)(Yt-πt(θ0)))(i)(Zt-1Ut(θ0)(Yt-πt(θ0)))(j)-kn∑t=1n(Zt-1Ut(θ0)(Yt-πt(θ0)))(i)(Zt-1Ut(θ0)(Yt-πt(θ0)))(j))+Ekn(i)=oP(1).

By Theorem 1, choosing δ > 0 arbitrarily

limn→∞P{n-1/2(SK(i)(θ0)-KnSn(i)(θ0))+SK*(i)<0}<δ.

if K is large enough, so (3) is proven. The proof of (4) is the same by symmetry.

If we consider detecting multiple structural changes in the sequences, we can employ the binary segmentation method [30]. First use the single change test. If H0 is rejected, then find k^*(1) by (2). Next divide the sample into two subsamples {Yt,1≤t≤k^*(1)} and {Yt,k^*(1)>t≤n}, and test both subsamples for further changes. One continues this segmentation procedure until no subsamples contain further change-points.

Simulation

To evaluate the finite sample performance of the proposed two test statistics (W1 and W2), we first simulate an ordinal time series {Yt} with m = 3 categories and length n = 100, 200, 500, 1000. The data are generated by

lnP(Yt≤1)P(Yt>1)=α1-β1cos(2πt/12)-β2Y(t-1)1-β3Y(t-1)2,lnP(Yt≤2)P(Yt>2)=α2-β1cos(2πt/12)-β2Y(t-1)1-β3Y(t-1)2,

where α1 = −0.5, α2 = 0.2, (β1, β2, β3)′ = (2, 0.5, 1)′, then the parameter vector θ = (α1, α2, β1, β2, β3)′. All simulation results are based on 1000 replications at the 0.05 significance level.

Suppose that we are only interested in α1 and β1, the others are nuisance parameters. Table 1 shows the empirical size of the two statistics under the null hypothesis H0. W11 and W12 denote the empirical size of W1 when testing for change in each of α1 and β1, respectively. W1 and W2 denote the empirical size of W1 and W2 when testing for change in both α1 and β1, respectively.

Table 1. The empirical size of W1 and W2 under the null hypothesis H0.

n 100 200 500 1000
W11 0.013 0.014 0.018 0.019
W12 0.01 0.018 0.02 0.014
W 1 0.038 0.027 0.046 0.037
W 2 0.038 0.045 0.033 0.047

It can be seen from Table 1 that the empirical size increases as the historical sample size n increases. When the sample size n = 1000, the empirical size of W1 and W2 is close to the significance level 0.05. In addition, based on the relation between the probability of type I errors when detecting α1 or β1 and the overall probability of type I errors, that is W11, W12 and W1 should satisfy 1-W1=(1-W11)(1-W12). The results show that 1-W1≈(1-W11)(1-W12), which confirms the above inference.

Under the alternative hypothesis HA, we consider the following three different situations:

HA(1):α1changesfrom-0.5to-1atk*,β1changesfrom2to3atk*,HA(2):α1changesfrom-0.5to-1atk*,HA(3):β1changesfrom2to3atk*.

where k* = 0.1n, …, 0.9n. Tables 2–4 summarize the empirical power of W1 and W2 under the alternative hypotheses HA(1), HA(2) and HA(3) when k* = 0.1n, 0.5n, 0.8n. W11 and W12 denote the empirical power when testing for change in each of α1 and β1, respectively. W1 and W2 denote the empirical power of W1 and W2 when testing for change in both α1 and β1. From the simulation results, it can be seen that the empirical power of the two statistics increases with the sample size n, and is close to 1 when n = 1000. In addition, The empirical power of the two statistics varies according to different change-point locations, and reaches maximum when k* = 0.5n. Fig 1 describes the empirical power of the two statistics when k* = 0.1n, …, 0.9n. It is showed that the empirical power of W1 is higher than that of W2 when the change-point is located at the centre of the data, but W2 performs better when the change-point is located at the beginning or end of the data.

Table 2. The empirical power of W1 and W2 under the alternative hypothesis HA(1).

k* = 0.1n k* = 0.5n k* = 0.8n
n 100 200 500 1000 100 200 500 1000 100 200 500 1000
W11 0.016 0.016 0.032 0.057 0.055 0.092 0.292 0.6 0.027 0.04 0.094 0.208
W12 0.01 0.028 0.089 0.14 0.069 0.186 0.502 0.859 0.027 0.042 0.112 0.33
W 1 0.037 0.059 0.102 0.215 0.117 0.264 0.66 0.946 0.029 0.077 0.213 0.454
W 2 0.084 0.153 0.3 0.541 0.068 0.168 0.569 0.924 0.03 0.064 0.259 0.643

Table 4. The empirical power of W1 and W2 under the alternative hypothesis HA(3).

k* = 0.1n k* = 0.5n k* = 0.8n
n 100 200 500 1000 100 200 500 1000 100 200 500 1000
W11 0.006 0.017 0.019 0.029 0.013 0.026 0.029 0.037 0.011 0.015 0.02 0.029
W12 0.02 0.031 0.077 0.158 0.059 0.19 0.599 0.901 0.014 0.039 0.13 0.415
W 1 0.032 0.059 0.097 0.203 0.078 0.231 0.615 0.921 0.037 0.061 0.178 0.433
W 2 0.1 0.142 0.265 0.436 0.052 0.142 0.461 0.813 0.022 0.036 0.145 0.429

Fig 1. The empirical power of W1 and W2 under HA(1) when k* = 100, 200, …, 900, n = 1000.

Fig 1

In simulation for Table 2 both α1 and β1 change, whereas in Tables 3 and 4 only α1 and β1 changes at different change-points. Tables 3 and 4 indicate that most power stems from the parameter that is changed, which means W1 that could not only detect change in parameters, but also find the reason for rejecting the null hypothesis.

Table 3. The empirical power of W1 and W2 under the alternative hypothesis HA(2).

k* = 0.1n k* = 0.5n k* = 0.8n
n 100 200 500 1000 100 200 500 1000 100 200 500 1000
W11 0.018 0.021 0.052 0.086 0.084 0.192 0.541 0.857 0.031 0.084 0.184 0.495
W12 0.012 0.017 0.018 0.026 0.016 0.01 0.028 0.028 0.016 0.022 0.026 0.019
W 1 0.028 0.044 0.082 0.098 0.104 0.201 0.545 0.873 0.053 0.067 0.215 0.498
W 2 0.029 0.047 0.086 0.222 0.064 0.127 0.394 0.805 0.064 0.095 0.252 0.565

Application to real data

To illustrate the applicability of our results, we use 1000 sleep data (Yt) collected from the sleep state measurements of a newborn infant sampled every 30 seconds (Fokianos and Kedem [23]). The sleep states are classified as follows: (1) quiet sleep, (2) indeterminate sleep, (3) active sleep, (4) awake (Fig 2). According to the newborn’s sleep pattern, the sleep states have the following order: “(4)” < “(1)” < “(2)” < “(3)”, which means {Yt} is an ordinal time series. One goal of analyzing these data is to establish a correct model, and predict the sleep state based on the covariate information. Refer to example 6.3 of [23], Yt−1 = (Y(t−1)1, Y(t−1)2, Y(t−1)3)′ is a significant predictor, which can be considered as a covariate. Then these data could be modeled by a cumulative logistic regression model

lnP(Yt≤1)P(Yt>1)=α1+β1Y(t-1)1+β2Y(t-1)2+β3Y(t-1)3,lnP(Yt≤2)P(Yt>2)=α2+β1Y(t-1)1+β2Y(t-1)2+β3Y(t-1)3,lnP(Yt≤3)P(Yt>3)=α3+β1Y(t-1)1+β2Y(t-1)2+β3Y(t-1)3,

where α1 = −14.722, α2 = −10.389, α3 = −4.078, β1 = 18.663, β2 = 12.173, β3 = 7.566.

Fig 2. 1000 sleep data (Yt) collected from the sleep state measurements of a newborn infant sampled every 30 seconds.

Fig 2

Let θ = (α1, α2, α3, β1, β2, β3)′, then testing whether there exists a structural change in θ, the result finds that a structural change occurs in θ by computing the test statistics W1 and W2. After this, using W1 to check which parameter occurs a structural change, the result shows that there exists a structural change in α2 at 596. Specifically, the maximum of W1 is 3.446, and the critical value is 1.35 when p = 1, α = 0.05, which gives a significant result (Fig 3). Re-estimate the parameters based on the first 596 samples and the last 404 samples, we have α^2=-10.799 for the former and α^2=-8.57 for the latter. We obtain AIC = 1646.65 for the adjusted model, and AIC = 1652.89 when assuming there is no change-point, which means to improve the model in some extent, so that we can make accurate predictions.

Fig 3. The value of W1 when testing for α2, the critical value at α = 0.05 is 1.35, and the location of change-point is 596.

Fig 3

Concluding remark

Cumulative logistic regression model is a generalized linear model, and has a wide application in health care. In this paper, two test statistics based on the efficient score vector are proposed to detect the structural change of cumulative logistic regression model. Under the null hypothesis of no change, we derive the asymptotic distribution of the two test statistics, and prove the consistency under the alternative hypothesis. Furthermore, we prove the consistency of the change-point estimator, and a binary segmentation procedure is provided for estimating the locations of possible multiple change-points. The finite sample performance is investigate by a monte carlo simulation, the results shows that the empirical size of the two statistics is close to the significance level 0.05, and the empirical power is approximate to 1 when the sample size is large. From the empirical power of view, the two test statistics have different advantages when the change-point occurs at different locations. Furthermore, the proposed statistic W1 could find the reason for rejecting the null hypothesis. Finally we apply the two test statistics to study 1000 sleep data collected from the sleep state measurements of a newborn infant sampled every 30 seconds, the results shows there exists a structural change in the model.

Supporting information

S1 Table. Simulation data for Table 1.

(XLS)

S2 Table. Simulation data for Table 2.

(XLS)

S3 Table. Simulation data for Table 3.

(XLS)

S4 Table. Simulation data for Table 4.

(XLS)

S5 Table. Simulation data for Fig 1.

(XLS)

S6 Table. 1000 sleep data for Fig 2.

(XLS)

S7 Table. Simulation data for Fig 3.

(XLS)

Data Availability

All relevant data are within the manuscript and its Supporting information files.

Funding Statement

This work was supported by National Nature Science Foundation of China (No.: 11801438, URL:https://isisn.nsfc.gov.cn/egrantindex/funcinde/prjsearch-list, Fuxiao Li, Xi’an University of Technology), Innovation Capability Support Program of Shaanxi (No.: 2020PT-023, URL:http://ywgl.sstrc.com/egrantweb/#, Xiaoping Xu, Xi’an University of Technology), National Nature Science Foundation of China (No.: 11702214, URL:https://isisn.nsfc.gov.cn/egrantindex/funcindex/prjsearch-list, Mengli Hao, Xi’an University of Technology) Fundamental Research Funds for the Central Universities, (No.: 300102129107, URL:http://www.edu.cn/zheng_ce_fa_gu…090820_400962.shtml, Lijuan Yang, Chang’an University). Natural Science Basic Research Plan in Shaanxi Province of China (No.: 2018JQ1089, URL:http://ywgl.sstrc.com/egrantweb/#, Fuxiao Li, Xi’an University of Technology), The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

References

  • 1.McCullagh P. Regression Models for Ordinal Data. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 1980; 42: 109–142. [Google Scholar]
  • 2.Csörgö M, Horváth L. Limit theorems in change-point analysis. New York: John Wiley & Sons Inc, 1997. [Google Scholar]
  • 3.Bai J, Perron P. Estimating and testing linear models with multiple structural changes. Econometrica. 1998; 66: 47–78. doi: 10.2307/2998540 [DOI] [Google Scholar]
  • 4.Lee S, Ha J, Na O, Na S. The Cusum Test for Parameter Change in Time Series Models. Scandinavian Journal of Statistics. 2003; 30: 781–796. doi: 10.1111/1467-9469.00364 [DOI] [Google Scholar]
  • 5.Perron P. Dealing with structural breaks, in: Mills TC, Patterson K, Palgrave handbook of econometrics econometric theory: vol 1. Springer, New York, 2006; pp. 278–352. [Google Scholar]
  • 6.Gombay E. Change detection in autoregressive time series. Journal of Multivariate Analysis. 2008; 99(3): 451–464. doi: 10.1016/j.jmva.2007.01.003 [DOI] [Google Scholar]
  • 7.Wang Y, Wu C, Ji Z, Wang B, Liang Y. Non-Parametric Change-Point Method for Differential Gene Expression Detection. PLoS ONE. 2011; 6(5): e20060. doi: 10.1371/journal.pone.0020060 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Chen Z, Jin Z, Tian Z, et al. Bootstrap testing multiple changes in persistence for a heavy-tailed sequence. Computational Statistics & Data Analysis. 2012; 55(7): 2303–2316. doi: 10.1016/j.csda.2012.01.011 [DOI] [Google Scholar]
  • 9.Baranowski R, Chen Y, Fryzlewicz P. Narrowestoverthreshold detection of multiple change points and changepointlike features. Journal of the Royal Statistical Society: Series B (Statistical Methodology). 2016; 81: 649–672. doi: 10.1111/rssb.12322 [DOI] [Google Scholar]
  • 10.Wang G, Zou C, Yin G. Change-point detection in multinomial data with a large number of categories. Annals of Statistics. 2018; 46(5): 2020–2044. doi: 10.1214/17-AOS1610 [DOI] [Google Scholar]
  • 11.Chen H. Sequential change-point detection based on nearest neighbors. The Annals of Statistics. 2019; 47(3): 1381–1407. doi: 10.1214/18-AOS1718 [DOI] [Google Scholar]
  • 12.Liu B, Zhou C, Zhang X, Liu Y. A unified data-adaptive framework for high dimensional change point detection. Journal of the Royal Statistical Society: Series B (Statistical Methodology). 2020; 82(4): 933–963. doi: 10.1111/rssb.12375 [DOI] [Google Scholar]
  • 13.Höhle M. Online change-point detection in categorical time series, In: Thomas K, Gerhard T,statistical modelling and regression structures. Heidelberg: Physica-Verlag. 2010; pages 377–397. [Google Scholar]
  • 14.Plasse J, Adams NM. Multiple change point detection in categorical data streams. Statistics and Computing. 2019; 29: 1109–1125. doi: 10.1007/s11222-019-09858-0 [DOI] [Google Scholar]
  • 15.Fokianos K, Kedem B. Regression model for time series analysis. Hoboken: John Wiley & Sons. 2002. [Google Scholar]
  • 16.Xia Z, Guo P, Zhao W. Monitoring Structural Changes in Generalized Linear Models. Communication in Statistics- Theory & Methods. 2009; 38(11): 1927–1947. doi: 10.1080/03610920802549910 [DOI] [Google Scholar]
  • 17.Hudecová Š. Structural changes in autoregressive models for binary time series. Journal of Statistical Planning and Inference. 2013; 143(10): 1744–1752. doi: 10.1016/j.jspi.2013.05.009 [DOI] [Google Scholar]
  • 18.Fokianos K, Gombay E, Hussein A. Retrospective change detection for binary time series models. Journal of Statistical Planning and Inference. 2014; 145: 102–112. doi: 10.1016/j.jspi.2013.08.017 [DOI] [Google Scholar]
  • 19.Gombay E, Li F, Yu H. Retrospective change detection in categorical time series. Communications in Statistics-Simulation and Computation. 2017; 46 (14): 6831–6845. [Google Scholar]
  • 20.Li F, Chen Z, Xiao Y. Sequential change-point detection in a multinomial logistic regression model. Open Mathematics, 2020; 18(1):807–819. doi: 10.1515/math-2020-0037 [DOI] [Google Scholar]
  • 21.Gombay E, Serban D. Monitoring parameter change in AR(p) time series models. Journal of Multivariate Analysis. 2009; 100(4): 715–725. [Google Scholar]
  • 22.Gombay E, Hussein AA, Steiner SH. Monitoring binary outcomes using risk-adjusted charts: a comparative study. Statistics in Medicine. 2011; 30(23): 2815–2826. doi: 10.1002/sim.4305 [DOI] [PubMed] [Google Scholar]
  • 23.Fokianos K, Kedem B. Regression theory for categorical time series. Statistics Science. 2003; 18(3): 357–376. doi: 10.1214/ss/1076102425 [DOI] [Google Scholar]
  • 24.Fokianos K, Kedem B. Prediction and classification of non-stationary categorical time series. Journal of Multivariate Analysis. 1998; 67: 277–296. doi: 10.1006/jmva.1998.1765 [DOI] [Google Scholar]
  • 25.Fokianos K, Truquet L. On categorical time series models with covariates. Stochastic Process & Their Applications. 2019; 129(9): 3446–3462. doi: 10.1016/j.spa.2018.09.012 [DOI] [Google Scholar]
  • 26.Truquet L. Coupling and perturbation techniques for categorical time series. Bernoulli. 2020; 26(4): 3249–3279. doi: 10.3150/20-BEJ1225 [DOI] [Google Scholar]
  • 27.Csörgö M, Révész P. Strong Approximations in Probability and Statistics. New York: Academic Press, 1981. [Google Scholar]
  • 28.Robbins M, Gallagher C, Lund R, et al. Mean shift testing in correlated data. Journal of Time Series Analysis, 2011; 32(5): 498–511. doi: 10.1111/j.1467-9892.2010.00707.x [DOI] [Google Scholar]
  • 29.Vostrikova LY. Detection of Disorder in a Wiener Process. Theory of Probability and Its Applications. 1981; 26: 356–362. doi: 10.1137/1126034 [DOI] [Google Scholar]
  • 30.Xu M, Zhong P S, Wang W. Detecting variance change-points for blocked time series and dependent panel data. Journal of Business & Economic Statistics. 2016, 34(2): 213–226. doi: 10.1080/07350015.2015.1026438 [DOI] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

S1 Table. Simulation data for Table 1.

(XLS)

S2 Table. Simulation data for Table 2.

(XLS)

S3 Table. Simulation data for Table 3.

(XLS)

S4 Table. Simulation data for Table 4.

(XLS)

S5 Table. Simulation data for Fig 1.

(XLS)

S6 Table. 1000 sleep data for Fig 2.

(XLS)

S7 Table. Simulation data for Fig 3.

(XLS)

Data Availability Statement

All relevant data are within the manuscript and its Supporting information files.


Articles from PLoS ONE are provided here courtesy of PLOS

RESOURCES