Skip to main content
Springer logoLink to Springer
. 2025 Oct 28;36(1):7. doi: 10.1007/s11222-025-10756-x

Model-based clustering of time-dependent observations with common structural changes

Riccardo Corradin 1,✉, Luca Danese 1, Wasiur R KhudaBukhsh 2, Andrea Ongaro 1
PMCID: PMC12568813  PMID: 41170344

Abstract

We propose a novel model-based clustering approach for samples of time series. We assume as a unique commonality that two observations belong to the same group if structural changes in their behaviors happen at the same time. We resort to a latent representation of structural changes in each time series, based on random orders, to induce ties among different observations. Such an approach results in a general modeling strategy and can be combined with many time-dependent models already known in the literature. Our studies have been motivated by an epidemiological problem. Specifically, we want to provide clusters of different countries of the European Union where two countries belong to the same cluster if the spreading processes of the COVID-19 virus show structural changes at the same time.

Supplementary Information

The online version contains supplementary material available at 10.1007/s11222-025-10756-x.

Keywords: Change points, COVID-19, Model-based clustering, Time series

Introduction

Detecting patterns and similarities between observations is a key topic in modern statistics, especially in large datasets from which we can extract information. Among fundamental approaches, cluster analysis comprises a collection of statistical tools to gather insights from a set of data by looking for groups with similar features, defining some homogeneous subsets of observations. In particular, in a model-based clustering setting, data are described by a mixture model where two observations belong to the same cluster if they are assigned to the same component of the mixture. Equivalently, each observed datum is associated with a latent parameter, which indexes a specific mixture component, and two observations are clustered together if their latent parameters have the same value. Here we consider a scenario involving multiple time series, with each observation representing a series of values observed over time. We introduce a new method for clustering these time series based on specific characteristics, such as shared structural changes over time.

While various methods exist for modeling time-dependent data, a desirable property is the ability to account for shocks in the observed values. These alterations occur when an external event significantly impacts the phenomena being analyzed, changing its future behavior. The identification of these points, and the study of models accommodating those structural changes, is usually termed change points detection. Seminal contributions on this topic are Page (1954, 1957), who employed a frequentist approach using hypothesis tests to identify a single structural change in a time-dependent parameter. Later, such approaches have been extended in different directions by considering different methods to detect a change point. These methods include parametric and nonparametric approaches and cases where the position of the change point is assumed to be known or unknown (see, e.g., Brodsky and Darkhovsky 1993). However, trying to detect a single change point might be too restrictive, since in many situations more than one change may occur. Different works then extended these methods to the problem of multiple change points detection. Niu et al. (2016) provided a general review of multiple change points detection methods for mean changes in Gaussian model. Inclan and Tiao (1994) proposed an iterative method to detect changes in the variance of a time series, where a change point is detected whenever an abrupt change occurs in the cumulative sum of squares of the time series realisations. Similarly,  Chen and Gupta (1997) proposed a method to infer the structural changes by selecting the configuration of change points that minimises the Schwarz information criterion. See Chen and Gupta (2012) for a review on models for change point models and possible extensions. Change points may also occur in different scenarios. For example, Young (2013) studied a mixture of regression models to estimate the distribution of the response variable, conditionally on the predictors, in the presence of change points in the regression effects.

Beside frequentist approaches, many contributions have been introduced also in the Bayesian literature. Early studies relied on hypothesis test construction to detect a single structural change, such as Chernoff and Zacks (1964). Recent contributions investigated different strategies to accommodate for multiple change points. Among these, Barry and Hartigan (1992, 1993) considered a formulation of the problem that is based on a Product Partition Model (PPM, Hartigan 1990) construction to detect mean changes in an observed time series, which is assumed to be Gaussian distributed. The underlying model is based on a latent random partition of the parameters, where two parameters belong to the same block of the partition if they share the same value, and two distinct blocks of the partition describe two different regimes of the observed quantities. Later this approach has been extended in many directions. Loschi and Cruz (2002) proposed a strategy to detect changes in both mean and variance of a Gaussian kernel distribution over time, based on the PPM construction. Quintana and Iglesias (2003) studied the connection between PPM and the Dirichlet process in the context of change points. Fuentes-García et al. (2010) proposed a similar approach, but considering as partition model the Exchangeable Partition Probability Function (EPPF) of a Dirichlet process and restricting the support of such EPPF to the random orders space by assigning probability zero to partitions that do not preserve the order. Later Martínez and Mena (2014) considered a transformation of the EPPF arising from a Pitman-Yor process (Pitman 1995) that preserves its properties, such as the symmetric structure of the corresponding probability distribution and the distribution of the number of distinct blocks, but restricts the support of the function to the space of random orders, following the pioneering studies of Pitman (2006). More recent contributions considered multivariate cases (Corradin et al. 2022), correlated change points for multiple time-dependent observations (Quinlan et al. 2024), different change points for different parameters (Pedroso et al. 2023) and models where change points detection is performed assuming a temporal dependency among random partitions (Page et al. 2022; Giampino et al. 2024). Further, under suitable assumptions of the local model, these combinatorial approaches can be seen as infinite hidden Markov models (Beal et al. 2001) with upper triangular transition matrix.

We introduce an approach that employs a model-based clustering framework to group observations exhibiting common structural changes, while other individual parameters and regimes are observation-specific. Our goal is to cluster observations that experience a shock simultaneously, even if their behaviors differ. To our knowledge, the use of latent combinatorial structures for model-based clustering of time series, that primarily focus on change points, has not been investigated yet. However, there are various contributions aimed at clustering multiple time series, possibly with regime changes. For a comprehensive review of different clustering techniques for time series see Aghabozorgi et al. (2015). In a Bayesian framework, early contributions to time series model-based clustering can be found in Frühwirth-Schnatter and Kaufmann (2008), who examined a scenario with a fixed number of clusters, grouping observations based on latent parameters that define their behaviors. Later extensions include different kernel functions (Juárez and Steel 2010) and categorical data (Frühwirth-Schnatter and Pamminger 2010), among others. Allied to our approach, (Same et al. (2011)) propose a model to cluster together time series with changes in their regime, by resorting to a polynomial representation of the time dependent observations, whose degree can be different over time. Further, Brault et al. (2024) introduce a method that clusters together functional data with structural changes. The latter not only clusters data with similar behavior, but also detects change points for the functions in each group. However, differently from our approach, here the clustering is focusing on similarities of local behaviors, rather than primarily on change points.

Our primary motivation behind this study comes from the recent COVID-19 pandemic. Epidemic models such as the Kermack–McKendrick renewal equation models (Kermack and McKendrick 1927) and their stochastic analogues have been studied for many decades now (Andersson and Britton 2000). Along with their study, parameter inference methods have been also developed (see, e.g, Niels 1993; Becker 1993; Choi and Rempala 2011; Raúl Fierro and Balakrishnan 2015; Kypraios et al. 2017). See Britton and Pardoux (2019) for an overview on this topic. Due to the recent COVID-19 pandemic, these methods received a renewed interest. For example, frequentist methods (Bong et al. 2024) and other techniques for calibration of computer models (Fadikar et al. 2018; Baker et al. 2022) have been investigated successfully in the last years. Similarly, the problem of parameter inference from a Bayesian perspective was discussed for mechanistic (Seymour et al. 2022; Chitwood et al. 2022; KhudaBukhsh et al. 2023) and semi-mechanistic models of COVID-19 (Bhatt et al. 2023). More recent contributions accommodate for different behaviour of the model over time. Specifically, Hong and Li (2020), Gleeson et al. (2021) and Wascher et al. (2024) discussed models with time-varying infection rates, while structural changes in such parameters were modeled in Huang et al. (2024). Here, we want to cluster different countries on the basis of their structural changes in the dynamics dictated by a stochastic epidemic model.

The paper is structured as follows. Section 2 introduces a model to cluster together time-dependent observations with common change points. Section 3 describes the distributions of interest that can be used to construct a sampling strategy. In Section 4 we present a Markov chain Monte Carlo (MCMC) procedure to sample realizations from the posterior distribution of interest. In Section 5 the properties of the model are studied with an application to synthetic and real time series data. Section 6 shows the epidemiological study which motivates our contribution. Conclusions and future developments are discussed in Section 7. Further details on algorithm implementations, illustrations, and the epidemiological model are deferred to the supplementary material. Finally, an implementation of the methodologies presented in this manuscript is available in the R package BayesChange (Danese et al. 2025).

Modeling multiple time series with common change points

We introduce a novel approach to cluster together time series with respect to common structural changes, and no further local similarities are assumed among them. In this sense, observations might be locally indexed by different subject-specific behaviours, but cluster together if they change regime on the same time instants. Let yi={yi,1,⋯,yi,T}, be the generic ith time series we observe, where yi,t is a random quantity taking values on a space Y, which depends on the specific quantity we observe, and Y={y1,⋯,yn} denotes the whole sample. For simplicity, here we assume that time series are observed at the same discrete times {1,⋯,T}, however our approach works even in more general scenarios. See, e.g., Section 6 where we consider a model tailored for epidemiological spreads as kernel function.

Regarding the distribution of each time series, we assume that our data are sharing the same model structure over time with Markovian dependence, where L(yi,t∣yi,t-1,θi,t),t=1,⋯,T denotes the distributional law of yi,t given the previous observation yi,t-1 and the local parameter θi,t, with θi,t∈Θ for all i=1,⋯,n and t=1,⋯,T. We remark that the modeling structure presented in the manuscript can be extended to cases with longer memories by substituting the distribution L with suitable alternatives. The local behaviour of the model for the ith observation is dictated by the sequence of latent parameters θi,1,⋯,θi,T, which are assumed to have ties over time. A change point for the ith time series occurs when the parameter at time t differs from the previous value, i.e. θi,t≠θi,t-1. Equivalently, each observation is divided into one or more blocks, where realisations within each block share the same value of θi,t. When the value of the parameter changes a change point occurs and a new block begins. The distribution of the sequence of parameters θi,1,⋯,θi,T can be factorised into two independent terms

L(θi,1,⋯,θi,T)=L(ρi)L(θi,1∗,⋯,θi,mi∗). 1

The first term L(ρi) denotes the distribution of the random order ρi inducing changes in the sequence of parameters θi,1,⋯,θi,T. Here, by random order ρi we mean a random partitioning of {1,⋯,T} into mi blocks Ai,1,⋯,Ai,mi satisfying the following properties:

  • Ai,ℓ∩Ai,j=∅ for all ℓ,j∈{1,⋯,mi} with ℓ≠j;

  • Ai,1∪⋯∪Ai,mi={1,⋯,T};

  • For any j,ℓ∈{1,⋯,mi} with j<ℓ, w∈Ai,j and s∈Ai,ℓ, we have w<s.

The first two conditions are properties of a generic partition of T elements, while the latter restricts the partition space to the subset satisfying the ordering constraint. The second term in (1) denotes the distribution of θi,1∗,⋯,θi,mi∗, the unique values out of θi,1,⋯,θi,T, whereas the generic θi,j∗ determines a common local behaviour and it is shared by all the observations whose times are allocated in the jth block of ρi. Hence, a time series switches its regime when it moves from a block to another of ρi={Ai,1,⋯,Ai,mi}, while the local behaviours are fully characterised by θi,1∗,⋯,θi,mi∗.

Our aim is to cluster time series in homogeneous groups sharing the same change points. To this end, we assume the latent orders R={ρ1,⋯,ρn} distributed independently according to a discrete distribution p~, with

p~(ρ)=∑r=12T-1πrδρ~r(ρ), 2

where {ρ~1,⋯,ρ~2T-1} is an exhaustive collection of all the possible orders of T elements, (π1,⋯,π2T-1) is a vector of probabilities taking values in the (2T-1-1)-dimensional simplex space, and δa(·) denotes a Dirac measure at a. The discreteness of (2) implies a positive probability of having ties in R. Ties represent clusters of observations sharing the same change points, i.e. changing their local behaviour at the same time. The observations are then divided according to a partition λ={B1,⋯,Bk} of the indices {1,⋯,n}, for which Bℓ∩Bj=∅ for all ℓ,j∈{1,⋯,k} with ℓ≠j, and B1∪⋯∪Bk={1,⋯,n}. Figure 1 shows an example with n=3 time series observed for T=3 time instants with a single change point. The left and middle series belong to the same cluster, as the change point occurs at t=3, while the right one forms a stand-alone cluster with a change point at time t=2.

Fig. 1.

Fig. 1

Graphical representation of three time series y1,y2,y3, where each series is observed at T=3 times, with their corresponding latent partition, whereas y1 and y2 are in the same cluster while y3 is in a separate cluster

The model specification is completed by setting a distribution for the weights π1,⋯,π2T-1, in the following sections assumed to be Dirichlet distributed, by choosing a distribution for the observed data L(yi,t∣yi,t-1,θi,t) and by setting a prior distribution for the parameters θi,ts, here denoted by P0. We remark that, since each observed time series is associated with a latent order, its likelihood contribution can be factorised as a product of terms sharing the same local behaviour. The model we consider can be then written in its hierarchical form as

yi∣ρi,θi∗∼∏j=1mi∏t=ti,j-ti,j+L(yi,t∣yi,t-1,θi,j∗),i=1,⋯,n,ρi∣p~(ρ)∼iidp~(ρ),i=1,⋯,n,(π1,⋯,π2T-1)∼DIR(α1,⋯,α2T-1),θi,j∗∼iidP0(θ),j=1,⋯,mi,i=1,⋯,n, 3

where ti,j-=mint:t∈Ai,j denotes the first time index belonging the jth block of the latent order associated with the ith observation, ti,j+=maxt:t∈Ai,j the last time index, and with the proviso that the first time of a new regime in the observed quantities does not depend on observed values in past regimes, i.e. L(yi,ti,j-∣yi,ti,j--1,θi,j∗)=L(yi,ti,j-∣θi,j∗).

Specific distributional choices of L(yi,t∣yi,t-1,θi,t) depend on the data we are considering. For example, in the following sections we present an illustration where the data are real-valued quantities modeled through an univariate Ornstein-Uhlenbeck process (Section 5) and a case with survival data arising from a susceptible-infected-removed model (Section 6). However, any time-dependent model with discrete or discretisable observational time can be embedded in the specification of a model as in (3). The distribution of the parameters T∗={θ1∗,⋯,θn∗} depends on the distributional assumption of L(yi,t∣yi,t-1,θi,t). Futher, T∗ can be marginalised in case we are not interested on posterior inference for local behaviours, but only on common structural change times.

Posterior distribution of interest

Our main interest lies in the latent partition defining groups of time series which share the same change points. The posterior distribution of such quantity is not available in a closed form, but we can identify a tractable expression from which we can produce a sample. Hence, we start from the joint distribution of the observed time series Y, latent orders R, unique values of the parameters T∗ and the vector of probabilities π=(π1,⋯,π2T-1). The distribution of the previous quantities can be then expressed, in force of the chain rule, as product of the corresponding conditional distributions, with

L(Y,T∗,R,π)=L(Y∣T∗,R)L(T∗∣R)L(R∣π)L(π), 4

where Y is independent of π conditioned on T∗, R and T∗ is also independent of π conditioned on R. We can make the joint distribution in (4) explicit by using the distributions in (3), with the likelihood term, here denoted by L(Y∣T∗,R), being the product of the data distribution for all the observed time series. We then have

L(Y,T∗,R,π)=∏i=1n∏j=1mi∏t=ti,j-ti,j+L(yi,t∣yi,t-1,θi,j∗)×∏i=1n∏j=1miP0(θi,j∗)∏i=1np~(ρi)1B(α)∏r=12T-1πrαr-1, 5

where B(α) denotes the multivariate beta function of parameter α.

We are interested in partitioning the observations on the base of their latent orders. Therefore, the unique values of the parameters T∗ can be marginalised from the previous equation, obtaining the following expression

L(Y,R,π)=∏i=1n∏j=1miM({yi,t∣t∈Ai,j})×∏i=1n∑r=12T-1πrδρ~r(ρi)1B(α)∏r=12T-1πrαr-1,

whereas M({yi,t∣t∈Ai,j}) denotes the marginal distribution of the ith time series in the jth block, resulting from integrating the local parameter θi,j∗, i.e.

M({yi,t∣t∈Ai,j})=∫∏t=ti,j-ti,j+L(yi,t∣yi,t-1,θi,j∗)P0(θi,j∗)dθi,j∗. 6

Clearly, the tractability of (6) depends on specific choices of the data distribution L(y∣⋯) and the prior for the local parameter P0(θi,j∗). In some common scenarios, the integral can be solved analytically, obtaining a closed form expression for the marginal distribution, as done for example in Section 5. Alternatively, for more complex scenarios such integral can be approximated through numerical solutions. See, e.g., Section 6.

Finally, we can marginalise also the weights π, as we are not interested on estimates of the mixing distribution but on the clustering, obtaining the following distribution

L(Y,R)=Γ(α+)Γ(α++n)∏r=12T-1Γ(αr+nr)Γ(αr)×∏{i:ρi=ρ~r}∏j=1miM({yi,t∣t∈Ai,j}), 7

where α+=∑r=1T-1αr, {i:ρi=ρ~r} denotes the set of indices for which the latent order ρi coincides with the rth element of p~, and nr is the cardinality of {i:ρi=ρ~r}, i.e., number of observations associated with the cluster with latent order ρ~r. A model of the form in (7) describes the convolution of a Dirichlet-categorical model with the marginal distributions of the data. We further remark that the partition of the data λ is then given by the equivalence classes described by allocating observations to different latent orders, with λ={B1,⋯,Bk} whereas Bj={i:ρi=ρ(j)†} is the jth block of the partitions whose latent orders are equal to ρ(j)†, and {ρ(1)†,⋯,ρ(k)†} denotes the set of orders out of ρ~1,⋯,ρ~2T-1 with at least one observation assigned, i.e. the elements in {ρr:nr>0}. In the following, the model is elicited by considering an objective prior specification for the weights, i.e., αr=α for all r=1,⋯,2T-1. We recall that the probability of having ties while sampling two observations from a Dirichlet-categorical model is given by

P(X2=X1)=α+12T-1α+1

with limα→0P(X2=X1)=1 and limα→+∞P(X2=X1)=12T-1. Therefore, to ensure a significant probability of a tie when dealing with large values of T, in the following we set α=1.

Informed split-and-merge algorithm

The model we consider in the manuscript has a flexible structure which can accommodate for various types of data. The bottleneck of facing posterior inference is due to two main sources: the distribution we assume for the data L(yi,t∣yi,t-1,θi,t), which depends on specific analyses we are performing, and the cardinality of p~. Regarding the latter, the number of latent orders scales poorly with the number of observed values for the time series, with 2T-1 possible orders when we observe T distinct times. Even for a small T, we cannot explore the whole partitions’ space in a reasonable time, and we need to use suitable computational strategies to obtain a sample from the target distribution of interest.

Among the possible approaches, we build a sampling strategy upon the split-merge algorithm for nonparametric priors and clustering problems (Green and Richardson 2001; Jain and Neal 2004), a particular type of MCMC algorithm that can be used to update the latent partition λ of a model as in (3). Intuitively, at each step of the algorithm two indices of the latent partition, i,ℓ∈{1,⋯,n} with i≠ℓ, are randomly chosen. If the two indices belong to the same block of λ, meaning that the ith and the ℓth observations belong to the same cluster, their cluster is randomly split in two blocks. Otherwise, if the two indices i and ℓ belong to different blocks of λ, the two clusters are merged. Once the split or the merge step is completed, we obtain a candidate partition λ(N) to update the current state of chain. We then perform a Metropolis–Hastings step to accept λ(N) or to stay on the previous state of the chain. For the sake of clarity, we report in Algorithm 1 the pseudo-code to sample M values from the posterior distribution of the latent partition λ.

Algorithm 1.

Algorithm 1

Split-merge algorithm to sample from L(λ∣Y)

The main challenge of using the split-merge algorithm in our framework is the sparse nature of p~. When we perform a split or merge step, we need to propose a new latent order for each new block we create, as in step iii) and v) of Algorithm 1. Because p~ has a large cardinality, randomly proposing those orders from a distribution independent of the data or previous state makes them unlikely to be representative of the new clusters, even when the proposed partition λ(N) is a suitable candidate. To avoid this problem, we resort to an informed proposal for those orders. In particular, inspired by Zhang et al. (2022), we included in the proposal specification the information arising from the observed time series. Hence, our proposal equals

ψ(ρ∣Y)=∑i=1n1nL(ρ∣yi), 8

i.e. a mixture of the posterior distribution of the latent orders conditionally on each observation separately. Here, L(ρ∣yi) denotes the posterior distribution of the latent order ρ given the ith time series yi. Such mixture strategy for the proposal shrinks the probability mass across the space of orders ρ1,⋯,ρ2T-1 to the elements which are likely at least for a single observations, decreasing the probability of sampling values which are not representative of any observed time series. While sampling from a generic component of (8) is feasible, evaluating the entire mixture requires the computation of n normalization constants, intractable for large T. These normalization constants can be computed before starting the algorithm. For example, we considered an importance sampling strategy with uniform importance distribution over the partitions’ space (see Section C of the supplementary material). Further details on the implementation are deferred to Section A of the supplementary material.

Real-valued time series clustering

Before extending our model strategy to more complicated scenarios, we first investigate the performance of Algorithm 1 with a synthetic study on time series and then show an application on a real financial scenario. We consider a case where data are real-valued time series, for which structural changes occur at certain times. The generic jth block of the ith time series is generated according to the following process

yi,t=μi,t+N(0,ηi,t),ift=1,γyi,t-1+(1-γ)μi,t+N0,(1-γ2)ηi,t,otherwise, 9

where N(a, b) denotes the Gaussian distribution with expectation a and variance b. We consider a scenario with three groups of time series. Each series is observed T=300 times divided into ki distinct regimes, i=1,⋯,10, and series belonging to the same cluster have change points at the same time but different local parameters. For all the time series, we fix γ=0.1. We set the local unique values of the parameter, i.e. block-specific values μi,j∗s out of μi,1,⋯,μi,T and ηi,j∗s out of ηi,1,⋯,ηi,T according to the scheme in Table 1, so that change points occur at different times in different clusters. An example of the sampled data are shown in Figure 1 of the supplementary material.

Table 1.

Data generating process parameters for the the synthetic study with real-valued time series. Left to right: observation index, local trend parameters, local dispersion parameters, and true latent order shared among observations in the same cluster

i {μi,1∗,⋯,μi,ki∗} {ηi,1∗,⋯,ηi,ki∗} {|Ai,1|,⋯,|Ai,ki|}
1 {-0.25,-0.5,0.5,0,0.5} {0.1,0.12,0.14,0.1,0.13} {50,100,45,55,50}
2 {0.1,0.12,0.14,0.1,0.13} {0.1,0.12,0.14,0.1,0.13}
3 {0.45,-0.5,0.5,0,0.5} {0.1,0.12,0.2,0.12,0.14}
4 {0.5,-0.5,0.5,0.5,0} {0.1,0.12,0.09,0.24,0.15}
5 {-0.5,0,1,-0.1,0.6,-0.2} {0.14,0.13,0.17,0.12,0.14,0.12} {40,50,45,45,30,90}
6 {0,0.85,-0.15,0.65,0,1} {0.1,0.24,0.14,0.15,0.12,0.13}
7 {0.4,0.4,-0.15,0.5,0,-0.65} {0.22,0.12,0.1,0.13,0.14,0.12}
8 {-0.5,0,1,-0.1,0.6,-0.2} {0.14,0.13,0.17,0.12,0.14,0.12} {75,50,40,20,75,40}
9 {0.5,0.5,1,0.25,-0.5,0.25} {0.12,0.22,0.15,0.14,0.17,0.19}
10 {-0.5,0,0.5,-0.1,0.6,-0.25} {0.12,0.13,0.15,0.12,0.15,0.18}

We analyze the data considering a model as in (3). In particular, we assume that within each block the data follow an univariate Ornstein-Uhlenbeck process (Uhlenbeck and Ornstein 1930). The process defined as the solution to the following stochastic differential equation

dYt=-α(Yt-μ)dt+2αηdWt, 10

where μ∈R, α,η>0, {Wt}t≥0 is the Wiener process, and α is the parameter tuning the dependence over time. This specific model choice, once integrated at discrete times, leads to a model of the form in Equation 9. Here, the generic parameter indexing locally the time series is given by θi,t=(μi,t,ηi,t), while the parameter α (or equivalently γ=e-α) is assumed to be fixed and shared for all the time series. By setting μ∣η∼Normal(0,(cη)-1) and η∼Gamma(a,b), Martínez and Mena (2014) have shown that the marginal distribution of the data becomes

M({yi,t:t∈Ai,j}∣γ)=(2b(1-γ2))aΓ(nj/2+a)πnj/2Γ(a)c(1+γ)(1-γ2)c+nj-γ(nj-c-2)1/2×(yj⊺Sjyj-(1-γ)(∑i=1jyj,i-γ∑i=2nj-1yj,i)2c+nj-γ(nj-c-2)+2b(1-γ2))-(nj/2+a), 11

where yj=yi,ti,j-,⋯,yi,ti,j+ and Sj is an nj×nj matrix of the form

Sj=1-γ0⋯0-γ1+γ2-γ⋯00-γ1+γ2⋯0⋮⋮⋮⋱⋮000⋯1.

Posterior inference is performed exploiting Algorithm 1. We consider different scenarios by combining together different values of the parameters tuning such algorithm. Specifically, we vary the accuracy of the normalization constant in Equation 8 by considering different numbers of values in the importance sampling B∈{1000,10000,100000}. Further, when we propose a candidate from Equation 8, we consider different depths of the proposal, i.e. the number of sampling steps L∈{1,25,100}. To understand the impact of the latter, while proposing a candidate random order, we are randomly selecting one of the n dimensions in (8), then we sample from the corresponding posterior distribution. For the latter, we initialise randomly the latent order and we then perform L split-merge step (Martínez and Mena 2014) to update that value. Each scenario considered in the study is replicated 50 times.

The model specification is completed by specifying the parameters of the Dirichlet distribution in Equation 7, with αr=α=1 for every r∈{1,⋯,2T-1}. Following the approach by Martínez and Mena (2014), the likelihood of a time series yi is given by (11) where μ and η have been marginalised after setting respectively a normal and a gamma prior distributions. According to the notation introduced beforehand, we set as parameters for the gamma a=b=1 and c=0.1 for the normal distribution. Finally, we set the autocorrelation parameter γ=0.1, matching the values used to simulate the data. For the split-merge procedures that compute the marginal change points we set the probability of performing a split to q=0.5.

We run each posterior sampling for 5000 iterations of which 2000 are discarded as burn-in period. To avoid label-switching problems, we obtain the point estimate of the latent partition λ^ as the one among those visited by the algorithm that minimizes the expected Binder loss function (Binder 1978), following a decisional approach early introduced by Lau and Green (2007) and later studied by Wade and Ghahramani (2018). Table 2 shows the Binder loss function measured among the true and the estimated partition of the data, averaged over the 50 replicates, hence measuring how close are our estimates to the partitions that actually generated the synthetic data. Algorithm 1 performs consistently well with all configurations. Both the accuracy of the normalization constants B and the proposal depth L seem to affect systematically its performance. Intuitively, large B and L should be preferred, as they increase the precision of the proposal and of its sampling step. However, small values of L strongly reduce the computational time needed to perform the sampling. Results also suggest that a large value of B is not needed, however if the number of realizations increases we suggest to increase also B.

Table 2.

Posterior summaries of the time series simulation study. We consider different accuracies of the normalization constant B and different proposal depth L. The table reports the Binder loss between the point estimate and the true latent partition of the data (BI). Results are averaged over 50 replicates

B L BI(λ^,λ0) B L BI(λ^,λ0) B L BI(λ^,λ0)
103 1 0.251 104 1 0.270 105 1 0.282
25 0.146 25 0.165 25 0.182
100 0.025 100 0.051 100 0.078

We compare the performance of our model with competitor approaches, in terms of partition estimates. Regarding our proposal, we kept the previous specification of the model’s parameters, with B=1000 and L=25, balancing computational time and accuracy. The first competitor we consider is an heuristic procedure, where we first estimate the change points marginally for each time series and then we group the observations resorting to a hierarchical clustering algorithm. The second competitor works in the spirit of k-means algorithms, looking at the dynamic time warping among different time series, here treated as functional observations. The third one is the MixSeg algorithm by Brault et al. (2024). Finally the funFEM algorithm by Bouveyron et al. (2015). We run each model on 50 replications of simulated data from the same study in Table 1. Similarly to the previous synthetic study, for each run and each model we evaluated the Binder loss function between the true and the estimated partitions. Small values mean that the estimated partition is close to the true one. As shown in Figure 2, our model performs better than the others, producing more accurate estimates of the data clustering structure. Nevertheless, as for most competitors considered in the study, the accuracy of estimating the latent partition involves a moderate level of uncertainty, as evidenced by the dispersion observed in the boxplots of Figure 2.

Fig. 2.

Fig. 2

Binder Loss (BI) distance between the estimated partition and the true partition over 50 replications of simulated data. Left to right: our proposal, an heuristic approach based on marginal estimates of change points, a distance-based approach among time series, the MixSeg model and the funFEM model

Change point in currency rates

After presenting the properties of the model on synthetic time series, we provide an application to financial data. Specifically we consider the time series of the daily Euro exchange rate to the other main currencies1. An exchange rate is the value at which one currency can be exchanged for another one, its evolution is strongly determined by the economy of the countries that adopt that currency. We analyze the period that goes from 1st January 2022 to the 31st of January 2024, the total amount of time observations is 768 and the number of exchange rates is 29. We excluded the Russian Ruble, for which we are missing data for a long period of time, and the Bulgarian Lev. Time series have been marginally standardized before running the analysis. Further, we complete the model specification by setting a=b=1, c=0.1, and α=1. The autocorrelation parameter is also fixed γ=0.1, however we perform a sensitivity analysis without any evidence of changing in the results while varying γ, except for large values introducing a strong dependence over time. We set B=10000, L=25, and we sample 10000, after a burn-in period of 5000. Visual investigation of the sampled chains supports convergence of the algorithm.

We obtain a point estimate of the latent partition, as the one minimizing the expected Binder loss function, characterized by 9 clusters. Figure 3 shows the four largest clusters with their marginal change points. The largest cluster (bottom-right in Figure 3) includes the Polish Złoty, the Romanian Leu, the Singapore Dollar, the Thai Baht, the Turkish lira, the United States Dollar and the South African Rand. Euro exchange rate with these currencies remained quite stable during the analyzed period, no marginal change points are in fact detected. The second largest cluster (top-right in Figure 3) includes the Hong Kong Dollar, the Japanese Yen, the Mexican Peso, the Norwegian Krone, the New Zealand Dollar and the Philippine peso. They share a change point around June 2022, January 2023, June 2023 and April 2023. One of the other two clusters (top-left in Figure 3) contains the Swiss Franc, the Czech Coruna, the Hungarian Forint and the Israeli Shekel. The other one (bottom-left in Figure 3) includes the British pound sterling, the Icelandic Króna, the Malaysian Ringgit and the Swedish Krona. The marginal change points of these two groups occur at similar times, some of them are very close, others differ only for one or two months. Details about the remaining smaller clusters are shown in Section C of the supplementary material.

Fig. 3.

Fig. 3

Four largest clusters in the Euro exchange rate data application. In each block, the bottom histogram represents the posterior probability of having a change point at each specific time, while the upper part shows the currencies exchange rates of each cluster, with the cluster-specific marginal change points denoted by the dashed lines

Clustering epidemics with similar structural changes

Next, we apply the previous method to epidemic data. Hereby, we aim to model jointly epidemic spread in different areas, while clustering similar regions on the basis of structural changes in the spreading of the disease. To this end, we consider the standard compartmental susceptible-infected-removed (SIR) model, in which the population is segregated based on immunological statuses of the individuals. In an SIR model, individuals belong to exactly one of the three compartments of susceptible (S), infected and infectious (I) or recovered/removed (R) at any given time point. Under the stochastic law of mass-action (Andersson and Britton 2000), an infected individual infects susceptible individuals whenever an individual Poisson clock rings, before eventually recovering. Once recovered, they play no role in the dynamics of the disease spread.

Let X(t)=(XS(t),XI(t),XR(t)) where the stochastic processes XS(t),XI(t), and XR(t) denote the numbers at time t of susceptible, infected and recovered individuals respectively, and take values in the set of non-negative integers Z+. Since no birth or immigration is assumed into the population, the total population size is conserved at all times, i.e. XS(t)+XI(t)+XR(t)=XS(0)+XI(0)+XR(0) at all times t≥0. Since we are primarily interested in large populations, we use the quantity

ε=1XS(0)∈(0,∞) 12

as a scaling parameter and study the behavior of the system as ε→0. We further assume εXI(0)→I0∈(0,1) as ε→0, where the limiting quantity I0 is non-random (deterministic), and assume the initial number of recovered individuals XR(0) is zero. Let β(t) and ξ(t), bounded functions of time t, represent the time-varying infection and recovery rates respectively. Let us consider the scaled stochastic process X(ε)(t)=(XS(ε)(t),XI(ε)(t),XR(ε)(t)), where XS(ε)=εXS,XI(ε)=εXI, and XR(ε)=εXR. The scaled stochastic process X(ε)(t) is a continuous-time Markov process satisfying

XS(ε)(t)=XS(ε)(0)-MS(ε)(t)-∫0tβ(u)XS(ε)(u-)XI(ε)(u-)du,XI(ε)(t)=XI(ε)(0)+MI(ε)(t)+∫0tβ(u)XS(ε)(u-)XI(ε)(u-)du-∫0tξ(u)XI(ε)(u-)du,XR(ε)(t)=XR(ε)(0)+MR(ε)(t)+∫0tξ(u)XI(ε)(u-)du,

where u- denotes the left-hand limit at u and the stochastic processes MS(ε),MI(ε), and MR(ε) are square-integrable zero-mean martingales, which converge to the zero function in probability as ε→0. See Section B of the supplementary material for a sketch of the derivation of these trajectory equations. Let ||(x1,x2,x3)||∞=max{|x1|,|x2|,|x3|}. As consequence of the functional law of large numbers, it can be proven that

limε→0supt≤T||X(ε)(t)-X¯(t)||∞⟶a.s.0 13

where X¯(t)=(S(t),I(t),R(t)) is the solution of the following system of ordinary differential equations

ddtS=-β(t)SI,ddtI=β(t)SI-ξ(t)I,ddtR=ξ(t)I, 14

with the initial condition S(0)=1,I(0)=I0, and R(0)=0, and some T>0 (see, e.g., Theorem 3.1 of KhudaBukhsh and Rempała 2024, for a proof).

We note from (13) that the cumulative infection pressure Hε(t) converges to a deterministic limit, satisfying

Hε(t)=∫0tβ(u)XI(ε)(u)du⟶a.s.H(t)=∫0tβ(u)I(u)du.

Therefore, by virtue of the Sellke construction (e.g., see (Andersson and Britton 2000), and also Section B of the supplementary material), in the limit of the large population the probability that a randomly chosen susceptible individual is still susceptible at time t is given by exp-H(t), which is precisely the function S(t). That is, the function S(t) can be interpreted as an improper survival function (improper since limt→∞S(t)>0) describing the random variable time to infection of a randomly chosen susceptible individual. This forms the basis of the so called dynamical survival analysis (KhudaBukhsh et al. 2023; Rempała and KhudaBukhsh 2023). In practice, we can condition on a final observation time T to get a proper survival function, which admits a density

fT(t)=-11-S(T)ddtS(t)=β(t)S(t)I(t)1-S(T). 15

The density in (15) describes the dynamics for a single population in continuous time. A discrete-time analog of the dynamical stochastic analysis method has indeed been developed in Wascher et al. (2024) in the context of monitoring the spread of a disease in a closed population such as a student cohort on campus. Since we are interested in applying our method to data at the level of countries, we decide in favour of a simple model. In practice, this means we will discretize time and use the time-discretized model for clustering purposes at equally-spaced times t∈{1,⋯,T}, which in the following correspond to different days, whereas the infection rate parameter of the generic ith observed country βi={βi,1,⋯,βi,T} changes at certain times described by the specific latent order of the data, while the remaining parameters are assumed to be homogeneous over time. Therefore, given a random sample of daily cases of infections yi,1,⋯,yi,T at a generic ith location, observed up to some terminal time T>0, the likelihood contribution of the ith observed series is given by

L(yi∣βi,ρi)=∏j=1mi∏t=ti,j-ti,j+fi,T(t)yi,t,i=1,⋯,n, 16

where fi,T(t) is defined in (15) and obtained by integrating numerically the system in (14) with infection rate βi. This is the likelihood function we will use for our clustering inference.

We remark that, also for the epidemiological case, we are not interested in inferring parameter values but on the latent clustering structure of the data. However, while in Section 5 of the supplementary material we could integrate analytically the parameters of the kernel function, here we resort to numerical integration of those parameters. Specifically, we assume the recovery rate ξ to be constant and shared across different infection time series. The parameter I0 can be updated through an observation-specific Metropolis–Hastings step. Finally, the infection rates βis, which change over time, are marginalized via Monte Carlo integration.

Synthetic infection study

We first show through a simulation study the performance of the proposed model in an epidemiological scenario. Data are generated using the Doob–Gillespie algorithm (see Anderson and Kurtz 2015, and Section C of the supplementary material for pseudo-code). We consider a set of n=10 populations, where the starting number of susceptibles is S0=100000. We keep the recovery rate fixed at ξ=1/8, we consider a time-varying rate of infection βi,t and a different starting proportion of infected Ii,0 for each population. The simulated data are generated in a time period of 200 days, however in the analysis we consider a restricted window of time to remove the tails of the epidemic. We restrict the window from time t=10 to time t=150 thus resulting in a time period of length T=140. We assume three different groups where the parameters are as shown in Table 1 of Section C of the supplementary material. In the first group we simulate an epidemic where we have two large spreads, while in the second and third group we simulate a single large spread but with different change points. Figure 4 shows an example of simulated data for each of the groups considered in the study.

Fig. 4.

Fig. 4

An example of bar plots of daily new cases in the synthetic study. Different panels correspond to different populations, one for each cluster considered in the study

We investigate how different parameters affect posterior estimates and the algorithm performance. Specifically, we vary the number of points used to marginalize via Monte Carlo the observation-specific infection rates, here denoted by MC, as well as the accuracy of the normalization constant B and depth of the proposal L. We set ξ=1/8 to be consistent with the parameters we used to generate synthetic data. Further, we marginalize the infection rate whereas the Monte Carlo integration is performed by sampling the unique values in βi from a gamma distribution with (4, 10) as shape and rate parameters. Finally, for each population we randomly sample without replacement 20% of the infection times, since the dynamical survival analysis method requires only a subset of infections (see KhudaBukhsh et al. 2023). In each replicate, we run the algorithm for 5000 iterations, discarding 2000 as burn-in period. The point estimate of the latent partition λ^ is then obtained as minimizer of the expected Binder loss function (Binder 1978) among those visited by the algorithm. To assess the algorithm performance and the quality of the posterior estimates, we use the Binder loss between the posterior point estimates and the true latent partitions of the data, reported in Table 3.

Table 3.

Posterior summaries of the synthetic epidemiological data. Different scenarios are obtained combining different accuracies of the numerical integration of the infection rates MC, different accuracies of the normalization constant B and different proposal depths L. The table reports the Binder loss between the point estimate and the true latent partition of the data (BI). Results are averaged over 50 replicates

MC=250 MC=500 MC=1000
B L BI(λ^,λ0) B L BI(λ^,λ0) B L BI(λ^,λ0)
103 1 0.345 103 1 0.200 103 1 0.005
25 0.294 25 0.144 25 0.010
100 0.257 100 0.194 100 0.018
104 1 0.354 104 1 0.234 104 1 ≪10-4
25 0.323 25 0.042 25 0.010
100 0.281 100 0.162 100 0.008
105 1 0.320 105 1 0.280 105 1 0.014
25 0.310 25 0.249 25 0.007
100 0.212 100 0.092 100 0.009

We can appreciate a similar behaviour to the one observed in the time series synthetic study: also with a complex kernel function, such as an SIR model, posterior estimates and performance of the algorithm are not particularly affected by the normalization constant accuracy B and the proposal depth L. However, increasing the number of points used for the Monte Carlo marginalization of the infection rate (MC) has a positive effect on the quality of the partition estimates. In particular, for MC=1000 we obtain posterior estimates having comparable precision to the time series synthetic study (Section 5), where local parameters are marginalized analytically.

SARS-CoV-2 Europe infection data

We now consider the real data analysis motivating the model we study in this manuscript. Our aim is to identify possible clusters of homogeneous states among the 27 countries that comprise the European Union, with respect to the spread of SARS-CoV-2 virus. The first confirmed case was in Bordeaux (France) on the 24th January 2020, while the first major outbreak was experienced in Italy in late February, and different countries within the European Union experienced different starting time of the spreading. Although the response to the pandemic was different from one country to another, some actions were taken jointly with the European commission such as travel ban and vaccination.

Hereby, we consider infection data taken from the European Centre for Disease Prevention and Controls (2022) database on COVID-19 daily new cases, for a time period of more than one year that goes from 1st June 2021 to 30th September 2022. We selected this specific time window to mitigate differences of the pandemic, as it starts after the beginning of the world mass immunization campaigns and includes the largest spread of new detected case in Europe that lasted from the end of 2021 to September 2022. We smooth the data by computing for each day the 7-days rolling average of the number of infected. By doing so, we remove some common measurement errors that occur when counting the number of daily new cases, e.g. the number of weekend recorded daily new cases is always smaller than during week days. We set ξ=1/6 and the unique values of the infection rates out of each βi are sampled from a gamma distribution with (2, 10) as shape and rate parameters. We increase the accuracy of the normalization constants to B=100000, since we have T=487 days, we set L=1 to reduce the computational time, and MC=1000. Finally, we do not consider the entire data, but a subset of 50000 infection times randomly sampled for each country. The MCMC algorithm is run for 12500 iterations of which 2500 have been discarded as burn-in period.

The posterior point estimate of the latent partition of the data is composed of five clusters, which are shown in Figure 5, along with the posterior similarity matrix. We have a large cluster with 14 countries, two clusters with 5 countries, one with two countries and one with just one country. The posterior similarity matrix in Figure 5 shows that the clusters are well separated, moreover, a visual check confirms convergence of the posterior chain. By analyzing the change point patterns of each cluster - available through the empirical survival functions in Section A of the supplementary material - we can infer the common features shared by countries grouped together. We identify four time periods in which most of the change points occur. The first is summer 2021 where the number of infections slightly increased after the curve was flattened by mass vaccination, here all clusters exhibit at least one change point in this phase. The second period occurs in winter 2021-2022, when the Omicron variant started spreading. Clusters 1 and 2 have both a change point in January 2022, while Cluster 3 - the largest one - and Cluster 4 - which consists only of Spain - have an early change point in September when the number of infections gradually started to increase, reaching a peak at the beginning of 2022. In the same period France and Sweden experience two distinct change points, one in December and one in February. Later, in spring 2022, we can identify another set of change points; in particular, Clusters 3 and 4 have a change point in April and Cluster 3 in May. Finally in summer 2022 we detect change points for Spain, a highly popular tourist destination, as well as for Cluster 3 (which includes Italy and Greece) and Cluster 2.

Fig. 5.

Fig. 5

Summaries of the EU27 countries analysis. Left plot: countries colored consistently with the point estimate of the latent partition. Right plot: posterior similarity matrix

Discussion

In the previous sections, motivated by an epidemiological study, we introduced a novel approach to cluster together time-dependent observations having the same structural change times. Such approach works on a mixture representation of the model, whereas the mixing parameters is a random order of the observational times, which induce locally homogeneous behaviors but also change points. The synthetic studies we presented have shown the performance of our proposal with respect to other competitor, favoring the first when performing model-based clustering on change points. Beyond the cases we considered in the manuscript, this modeling approach can be easily adapted to several frameworks where the interest lies in defining groups of time-dependent observations.

Along the manuscript, we have assumed a symmetric prior distribution. However, this assumption can be relaxed by considering prior information associated with specific latent orders, in the spirit of Canale et al. (2017). Further, instead of a Dirichlet-multinomial model, one can consider approaches based on more flexible finite-dimensional discrete prior distributions, in the spirit of Lijoi et al. (2020, 2024). However, the computational complexity of these approaches may result in models for time series clustering that are challenging to handle.

Further, there is no borrowing of information across different cluster. While this assumption improves the model’s tractability, having possibly dependent orders increase its flexibility. For example, recent contributions in this direction can be found in Quinlan et al. (2024). In this manuscript we considered an approach based on the inspiring studies of Martínez and Mena (2014), where the authors restrict an EPPF from the partitions’ space to the orders’ space. In the same spirit, one can consider restricting a partially exchangeable partition probability function (see, e.g., Pitman 1995) from the partitions’ space to the orders’ space, obtaining a distribution that introduces dependence among different atoms. The model discussed in this paper can then be extended by considering such a distribution to introduce dependencies among different dimensions, but preserving the same combinatorial structure and flexibility.

Supplementary Information

Below is the link to the electronic supplementary material.

Acknowledgements

The first, second and fourth authors gratefully acknowledge the financial support from the Italian Ministry of University and Research (MUR), “Dipartimenti di Eccellenza” grant 2023-2027, and the DEMS Data Science Lab for supporting this work through computational resources. Wasiur R. KhudaBukhsh was partially supported by the Engineering and Physical Sciences Research Council (EPSRC), UK Research and Innovation (UKRI), grant number EP/Y027795/1.

Author Contributions

L.D. worked on implementation and numerical illustrations. All authors studied the modelling strategy, wrote and reviewed the manuscript.

Funding

Open access funding provided by Università degli Studi di Milano - Bicocca within the CRUI-CARE Agreement.

Data Availability

All data are open and freely accessible online.

Declarations

Competing interests

The authors declare no competing interests.

Footnotes

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

References

  1. Aghabozorgi, S., Seyed Shirkhorshidi, A., Ying Wah, T.: Time-series clustering – a decade review. Inf. Syst. 53, 16–38 (2015) [Google Scholar]
  2. Anderson, D.F., Kurtz, T.G.: Stochastic Analysis of Biochemical Systems. Springer International Publishing, Berlin (2015) [Google Scholar]
  3. Andersson, H., Britton, T.: Stochastic Epidemic Models and Their Statistical Analysis. Springer, New York (2000) [Google Scholar]
  4. Applebaum, D.: Semigroups of Linear Operators: With Applications to Analysis, Probability and Physics. Cambridge University Press, Cambridge (2019) [Google Scholar]
  5. Baker, E., Barbillon, P., Fadikar, A., et al.: Analyzing Stochastic Computer Models: A Review with Opportunities. Stat. Sci. 37(1), 64–89 (2022) [Google Scholar]
  6. Barry, D., Hartigan, J.A.: Product Partition Models for Change Point Problems. Ann. Stat. 20(1), 260–279 (1992) [Google Scholar]
  7. Barry, D., Hartigan, J.A.: A bayesian analysis for change point problems. J. Am. Stat. Assoc. 88(421), 309–319 (1993) [Google Scholar]
  8. Beal, M., Ghahramani, Z., Rasmussen, C.: The infinite hidden markov model. In: Dietterich, T., Becker, S., Ghahramani, Z. (eds.) Advances in Neural Information Processing Systems, vol. 14. MIT Press, Cambridge (2001) [Google Scholar]
  9. Becker, N.G.: Parametric inference for epidemic models. Math. Biosci. 117(1), 239–251 (1993) [DOI] [PubMed] [Google Scholar]
  10. Bhatt, S., Ferguson, N., Flaxman, S., et al.: Semi-mechanistic bayesian modelling of covid-19 with renewal processes. J. R. Stat. Soc. Ser. A Stat. Soc. 186(4), 601–615 (2023) [Google Scholar]
  11. Binder, D.A.: Bayesian cluster analysis. Biometrika 65(1), 31–38 (1978) [Google Scholar]
  12. Bong, H., Ventura, V., Wasserman, L.: Frequentist inference for semi-mechanistic epidemic models with interventions. J. R. Stat. Soc. Ser. B Stat Methodol. 87(3), 701–722 (2024) [Google Scholar]
  13. Bouveyron, C., Côme, E., Jacques, J.: The discriminative functional mixture model for a comparative analysis of bike sharing systems. Ann. Appl. Stat. 9(4), 1726–1760 (2015) [Google Scholar]
  14. Brault, V., Devijver, E., Laclau, C.: Mixture of segmentation for heterogeneous functional data. Electron. J. Stat. 18(2), 3729–3773 (2024) [Google Scholar]
  15. Britton, T., Pardoux, E.: Stochastic Epidemic Models with Inference. Springer Cham, Berlin (2019) [Google Scholar]
  16. Brodsky, E., Darkhovsky, B.: Nonparametric Methods in Change Point Problems. Springer, Netherlands (1993) [Google Scholar]
  17. Canale, A., Lijoi, A., Nipoti, B., et al.: On the Pitman-Yor process with spike and slab base measure. Biometrika 104(3), 681–697 (2017) [Google Scholar]
  18. Chen, J., Gupta, A.: Parametric Statistical Change Point Analysis. Birkhäuser, Boston (2012) [Google Scholar]
  19. Chen, J., Gupta, A.K.: Testing and locating variance changepoints with application to stock prices. J. Am. Stat. Assoc. 92(438), 739–747 (1997) [Google Scholar]
  20. Chernoff, H., Zacks, S.: Estimating the Current Mean of a Normal Distribution which is Subjected to Changes in Time. Ann. Math. Stat. 35(3), 999–1018 (1964) [Google Scholar]
  21. Chitwood, M.H., Russi, M., Gunasekera, K., et al.: Reconstructing the course of the covid-19 epidemic over 2020 for us states and counties: Results of a bayesian evidence synthesis model. PLoS Comput. Biol. 18(8), e1010465 (2022) [DOI] [PMC free article] [PubMed] [Google Scholar]
  22. Choi, B., Rempala, G.A.: Inference for discretely observed stochastic kinetic networks with applications to epidemic modeling. Biostatistics 13(1), 153–165 (2011) [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Corradin, R., Danese, L., Ongaro, A.: Bayesian nonparametric change point detection for multivariate time series with missing observations. Int. J. Approximate Reasoning 143, 26–43 (2022) [Google Scholar]
  24. Danese, L., Corradin, R., Ongaro, A.: BayesChange: Bayesian Methods for Change Points Analysis. R Package Version 1(1), 2 (2025) [Google Scholar]
  25. Di Lauro, F., KhudaBukhsh, W.R., Kiss, I.Z., et al.: Dynamic survival analysis for non-markovian epidemic models. J. R. Soc. Interface 19(191), 20220124 (2022) [DOI] [PMC free article] [PubMed] [Google Scholar]
  26. Engel, K.J., Nagel, R.: One-Parameter Semigroups for Linear Evolution Equations. Springer-Verlag (2000) [Google Scholar]
  27. European Centre for Disease Prevention and Controls (2022) Database on COVID-19 daily new cases. https://www.ecdc.europa.eu/en/publications-data/data-daily-new-cases-covid-19-eueea-country. Dataset from October 2022 is no longer updated
  28. Fadikar, A., Higdon, D., Chen, J., et al.: Calibrating a stochastic, agent-based model using quantile-based emulation. SIAM/ASA J. Uncertain. Quan. 6(4), 1685–1706 (2018) [Google Scholar]
  29. Frühwirth-Schnatter, S., Pamminger, C.: Model-based clustering of categorical time series. Bayesian Anal. 5(2), 345–368 (2010) [Google Scholar]
  30. Frühwirth-Schnatter, S., Kaufmann, S.: Model-based clustering of multiple time series. J. Business Econ. Stat. 26(1), 78–89 (2008) [Google Scholar]
  31. Fuentes-García, R., Mena, R., Walker, S.: A Probability for Classification Based on the Dirichlet Process Mixture Model. J. Classif. 27, 389–403 (2010) [Google Scholar]
  32. Giampino, A., Guindani, M., Nipoti, B., et al.: Local level dynamic random partition models for changepoint detection (2024)
  33. Gikhman, I.I., Skorokhod, A.V.: The Theory of Stochastic Processes II. Springer, Berlin Heidelberg (2004) [Google Scholar]
  34. Gleeson, J.P., Brendan Murphy, T., O’Brien, J.D., et al.: Calibrating covid-19 susceptible-exposed-infected-removed models with time-varying effective contact rates. Philos. Trans. R. Soc. A Math. Phys. Eng. Sci. 380(2214), 20210120 (2021) [DOI] [PMC free article] [PubMed] [Google Scholar]
  35. Green, P.J., Richardson, S.: Modelling heterogeneity with and without the dirichlet process. Scand. J. Stat. 28(2), 355–375 (2001) [Google Scholar]
  36. Hartigan, J.: Partition models. Commun. Stat. - Theory Methods 19(8), 2745–2756 (1990) [Google Scholar]
  37. Hong, H.G., Li, Y.: Estimation of time-varying reproduction numbers underlying epidemiological processes: A new statistical tool for the covid-19 pandemic. PLoS ONE 15(7), e0236464 (2020) [DOI] [PMC free article] [PubMed] [Google Scholar]
  38. Huang, J., Morsomme, R., Dunson, D., et al.: Detecting changes in the transmission rate of a stochastic epidemic model. Stat. Med. 43(10), 1867–1882 (2024) [DOI] [PubMed] [Google Scholar]
  39. Inclan, C., Tiao, G.C.: Use of cumulative sums of squares for retrospective detection of changes of variance. J. Am. Stat. Assoc. 89(427), 913–923 (1994) [Google Scholar]
  40. Jain, S., Neal, R.M.: A split-merge markov chain monte carlo procedure for the dirichlet process mixture model. J. Comput. Graph. Stat. 13(1), 158–182 (2004) [Google Scholar]
  41. Jain, S., Neal, R.M.: Splitting and merging components of a nonconjugate Dirichlet process mixture model. Bayesian Anal. 2(3), 445–472 (2007) [Google Scholar]
  42. Juárez, M.A., Steel, M.F.J.: Model-based clustering of non-gaussian panel data based on skew-t distributions. J. Business Econ. Stat. 28(1), 52–66 (2010) [Google Scholar]
  43. Kermack, W.O., McKendrick, A.G.: A contribution to the mathematical theory of epidemics. Proc. R. Soc. Lond. Ser. A 115(772), 700–721 (1927) [Google Scholar]
  44. KhudaBukhsh, W.R., Rempała, G.A.: How to correctly fit an sir model to data from an seir model? Math. Biosci. 375, 109265 (2024) [DOI] [PubMed] [Google Scholar]
  45. KhudaBukhsh, W.R., Choi, B., Kenah, E., et al.: Survival dynamical systems: individual-level survival analysis from population-level epidemic models. Interface Focus 10(1), 20190048 (2020) [DOI] [PMC free article] [PubMed] [Google Scholar]
  46. KhudaBukhsh, W.R., Bastian, C.D., Wascher, M., et al.: Projecting covid-19 cases and hospital burden in ohio. J. Theor. Biol. 561, 111404 (2023) [DOI] [PMC free article] [PubMed] [Google Scholar]
  47. Kypraios, T., Neal, P., Prangle, D.: A tutorial introduction to bayesian inference for stochastic epidemic models using approximate bayesian computation. Math. Biosci. 287, 42–53 (2017) [DOI] [PubMed] [Google Scholar]
  48. Lau, J., Green, P.: Bayesian Model-Based Clustering Procedures. J. Comput. Graph. Stat. 16(3), 526–558 (2007) [Google Scholar]
  49. Lijoi, A., Prünster, I., Rigon, T.: The Pitman-Yor multinomial process for mixture modelling. Biometrika 107(4), 891–906 (2020) [Google Scholar]
  50. Lijoi, A., Prünster, I., Rigon, T.: Finite-dimensional discrete random structures and bayesian clustering. J. Am. Stat. Assoc. 119(546), 929–941 (2024) [Google Scholar]
  51. Loschi, R., Cruz, F.: An analysis of the influence of some prior specifications in the identification of change points via product partition model. Comput. Stat. Data Anal. 39(4), 477–501 (2002) [Google Scholar]
  52. Martínez, A.F., Mena, R.H.: On a Nonparametric Change Point Detection Model in Markovian Regimes. Bayesian Anal. 9(4), 823–858 (2014) [Google Scholar]
  53. Niels, G.B.: Martingale methods for the analysis of epidemic data. Stat. Methods Med. Res. 2(1), 93–112 (1993) [DOI] [PubMed] [Google Scholar]
  54. Niu, Y.S., Hao, N., Zhang, H.: Multiple change-point detection: A selective overview. Stat. Sci. 31(4), 611–623 (2016) [Google Scholar]
  55. Page, E.S.: Continuous inspection schemes. Biometrika 41(1–2), 100–115 (1954) [Google Scholar]
  56. Page, E.S.: On problems in which a change in a parameter occurs at an unknown point. Biometrika 44(1–2), 248–252 (1957) [Google Scholar]
  57. Page, G.L., Quintana, F.A., Dahl, D.B.: Dependent modeling of temporal sequences of random partitions. J. Comput. Graph. Stat. 31(2), 614–627 (2022) [Google Scholar]
  58. Pedroso, R.C., Loschi, R.H., Quintana, F.A.: Multipartition model for multiple change point identification. TEST 32(2), 759–783 (2023) [Google Scholar]
  59. Pitman, J.: Exchangeable and partially exchangeable random partitions. Probab. Theory Relat. Fields 102(2), 145–158 (1995) [Google Scholar]
  60. Pitman, J.: Combinatorial Stochastic Processes. Springer, Berlin (2006) [Google Scholar]
  61. Quinlan, J.J., Page, G.L., Castro, L.M.: Joint Random Partition Models for Multivariate Change Point Analysis. Bayesian Anal. 19(1), 21–48 (2024) [Google Scholar]
  62. Quintana, F.A., Iglesias, P.L.: Bayesian clustering and product partition models. J. R. Stat. Soc. Ser. B (Statistical Methodology) 65(2), 557–574 (2003)
  63. Raúl Fierro, V.L., Balakrishnan, N.: Statistical inference on a stochastic epidemic model. Commun. Stat. - Simulation and Comput. 44(9), 2297–2314 (2015) [Google Scholar]
  64. Rempała, G.A., KhudaBukhsh, W.R.: Dynamical Survival Analysis for Epidemic Modeling, Springer International, p 1–17 (2023)
  65. Same, A., Chamroukhi, F., Govaert, G., et al.: Model-based clustering and segmentation of time series with change in regime. Adv. Data Anal. Classif. 5, 301–321 (2011) [Google Scholar]
  66. Seymour, R.G., Kypraios, T., O’Neill, P.D.: Bayesian nonparametric inference for heterogeneously mixing infectious disease models. Proc. Natl. Acad. Sci. 119(10), e2118425119 (2022) [DOI] [PMC free article] [PubMed] [Google Scholar]
  67. Uhlenbeck, G.E., Ornstein, L.S.: On the theory of the brownian motion. Phys. Rev. 36, 823–841 (1930) [Google Scholar]
  68. Wade, S., Ghahramani, Z.: Bayesian Cluster Analysis: Point Estimation and Credible Balls (with Discussion). Bayesian Anal. 13(2), 559–626 (2018) [Google Scholar]
  69. Wascher, M., Schnell, P., KhudaBukhsh, W.R., et al.: Estimating disease transmission in a closed population under repeated testing. J. R. Stat. Soc. Ser. C 73(4), 972–989 (2024) [Google Scholar]
  70. Young, D.S.: Mixtures of regressions with changepoints. Stat. Comput. 23(5), 661–671 (2013) [Google Scholar]
  71. Zhang, M.M., Williamson, S.A., Pérez-Cruz, F.: Accelerated parallel non-conjugate sampling for bayesian non-parametric models. Stat. Comput. 32(3), 1–25 (2022) [Google Scholar]

Associated Data

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

Supplementary Materials

Data Availability Statement

All data are open and freely accessible online.


Articles from Statistics and Computing are provided here courtesy of Springer

RESOURCES