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 , be the generic ith time series we observe, where is a random quantity taking values on a space , which depends on the specific quantity we observe, and denotes the whole sample. For simplicity, here we assume that time series are observed at the same discrete times , 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 denotes the distributional law of given the previous observation and the local parameter , with for all and . We remark that the modeling structure presented in the manuscript can be extended to cases with longer memories by substituting the distribution with suitable alternatives. The local behaviour of the model for the ith observation is dictated by the sequence of latent parameters , 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. . Equivalently, each observation is divided into one or more blocks, where realisations within each block share the same value of . When the value of the parameter changes a change point occurs and a new block begins. The distribution of the sequence of parameters can be factorised into two independent terms
| 1 |
The first term denotes the distribution of the random order inducing changes in the sequence of parameters . Here, by random order we mean a random partitioning of into blocks satisfying the following properties:
for all with ;
;
For any with , and , we have .
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 , the unique values out of , whereas the generic determines a common local behaviour and it is shared by all the observations whose times are allocated in the jth block of . Hence, a time series switches its regime when it moves from a block to another of , while the local behaviours are fully characterised by .
Our aim is to cluster time series in homogeneous groups sharing the same change points. To this end, we assume the latent orders distributed independently according to a discrete distribution , with
| 2 |
where is an exhaustive collection of all the possible orders of T elements, is a vector of probabilities taking values in the -dimensional simplex space, and denotes a Dirac measure at a. The discreteness of (2) implies a positive probability of having ties in . 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 of the indices , for which for all with , and . Figure 1 shows an example with time series observed for time instants with a single change point. The left and middle series belong to the same cluster, as the change point occurs at , while the right one forms a stand-alone cluster with a change point at time .
Fig. 1.
Graphical representation of three time series , where each series is observed at times, with their corresponding latent partition, whereas and are in the same cluster while is in a separate cluster
The model specification is completed by setting a distribution for the weights , in the following sections assumed to be Dirichlet distributed, by choosing a distribution for the observed data and by setting a prior distribution for the parameters s, here denoted by . 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
| 3 |
where denotes the first time index belonging the jth block of the latent order associated with the ith observation, 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. .
Specific distributional choices of 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 depends on the distributional assumption of . Futher, 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 , latent orders , unique values of the parameters and the vector of probabilities . The distribution of the previous quantities can be then expressed, in force of the chain rule, as product of the corresponding conditional distributions, with
| 4 |
where is independent of conditioned on , and is also independent of conditioned on . We can make the joint distribution in (4) explicit by using the distributions in (3), with the likelihood term, here denoted by , being the product of the data distribution for all the observed time series. We then have
| 5 |
where 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 can be marginalised from the previous equation, obtaining the following expression
whereas denotes the marginal distribution of the ith time series in the jth block, resulting from integrating the local parameter , i.e.
| 6 |
Clearly, the tractability of (6) depends on specific choices of the data distribution and the prior for the local parameter . 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
| 7 |
where , denotes the set of indices for which the latent order coincides with the rth element of , and is the cardinality of , i.e., number of observations associated with the cluster with latent order . 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 whereas is the jth block of the partitions whose latent orders are equal to , and denotes the set of orders out of with at least one observation assigned, i.e. the elements in . In the following, the model is elicited by considering an objective prior specification for the weights, i.e., for all . We recall that the probability of having ties while sampling two observations from a Dirichlet-categorical model is given by
with and . Therefore, to ensure a significant probability of a tie when dealing with large values of T, in the following we set .
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 , which depends on specific analyses we are performing, and the cardinality of . Regarding the latter, the number of latent orders scales poorly with the number of observed values for the time series, with 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, with , 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 to update the current state of chain. We then perform a Metropolis–Hastings step to accept 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.
Split-merge algorithm to sample from
The main challenge of using the split-merge algorithm in our framework is the sparse nature of . 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 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 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
| 8 |
i.e. a mixture of the posterior distribution of the latent orders conditionally on each observation separately. Here, denotes the posterior distribution of the latent order given the ith time series . Such mixture strategy for the proposal shrinks the probability mass across the space of orders 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
| 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 times divided into distinct regimes, , 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 . We set the local unique values of the parameter, i.e. block-specific values s out of and s out of 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 | |||
|---|---|---|---|
| 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
| 10 |
where , , 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 , while the parameter (or equivalently ) is assumed to be fixed and shared for all the time series. By setting and , Martínez and Mena (2014) have shown that the marginal distribution of the data becomes
| 11 |
where and is an matrix of the form
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 . Further, when we propose a candidate from Equation 8, we consider different depths of the proposal, i.e. the number of sampling steps . 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 for every . Following the approach by Martínez and Mena (2014), the likelihood of a time series 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 and for the normal distribution. Finally, we set the autocorrelation parameter , 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 .
We run each posterior sampling for iterations of which 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 and the proposal depth seem to affect systematically its performance. Intuitively, large and should be preferred, as they increase the precision of the proposal and of its sampling step. However, small values of 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 and different proposal depth . The table reports the Binder loss between the point estimate and the true latent partition of the data (). Results are averaged over 50 replicates
| 1 | 0.251 | 1 | 0.270 | 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 and , 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.

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 , , and . The autocorrelation parameter is also fixed , 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 , , and we sample , after a burn-in period of . 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.
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 where the stochastic processes , and denote the numbers at time t of susceptible, infected and recovered individuals respectively, and take values in the set of non-negative integers . Since no birth or immigration is assumed into the population, the total population size is conserved at all times, i.e. at all times . Since we are primarily interested in large populations, we use the quantity
| 12 |
as a scaling parameter and study the behavior of the system as . We further assume as , where the limiting quantity is non-random (deterministic), and assume the initial number of recovered individuals is zero. Let and , bounded functions of time t, represent the time-varying infection and recovery rates respectively. Let us consider the scaled stochastic process , where , and . The scaled stochastic process is a continuous-time Markov process satisfying
where denotes the left-hand limit at u and the stochastic processes , and are square-integrable zero-mean martingales, which converge to the zero function in probability as . See Section B of the supplementary material for a sketch of the derivation of these trajectory equations. Let . As consequence of the functional law of large numbers, it can be proven that
| 13 |
where is the solution of the following system of ordinary differential equations
| 14 |
with the initial condition , and , and some (see, e.g., Theorem 3.1 of KhudaBukhsh and Rempała 2024, for a proof).
We note from (13) that the cumulative infection pressure converges to a deterministic limit, satisfying
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 , which is precisely the function S(t). That is, the function S(t) can be interpreted as an improper survival function (improper since ) 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
| 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 , which in the following correspond to different days, whereas the infection rate parameter of the generic ith observed country 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 at a generic ith location, observed up to some terminal time , the likelihood contribution of the ith observed series is given by
| 16 |
where is defined in (15) and obtained by integrating numerically the system in (14) with infection rate . 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 can be updated through an observation-specific Metropolis–Hastings step. Finally, the infection rates s, 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 populations, where the starting number of susceptibles is . We keep the recovery rate fixed at , we consider a time-varying rate of infection and a different starting proportion of infected 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 to time thus resulting in a time period of length . 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.
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 and depth of the proposal . We set 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 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 iterations, discarding 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 , different accuracies of the normalization constant and different proposal depths . 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
| 1 | 0.345 | 1 | 0.200 | 1 | 0.005 | |||
| 25 | 0.294 | 25 | 0.144 | 25 | 0.010 | |||
| 100 | 0.257 | 100 | 0.194 | 100 | 0.018 | |||
| 1 | 0.354 | 1 | 0.234 | 1 | ||||
| 25 | 0.323 | 25 | 0.042 | 25 | 0.010 | |||
| 100 | 0.281 | 100 | 0.162 | 100 | 0.008 | |||
| 1 | 0.320 | 1 | 0.280 | 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 and the proposal depth . 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 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 and the unique values of the infection rates out of each are sampled from a gamma distribution with (2, 10) as shape and rate parameters. We increase the accuracy of the normalization constants to , since we have days, we set to reduce the computational time, and . Finally, we do not consider the entire data, but a subset of infection times randomly sampled for each country. The MCMC algorithm is run for iterations of which 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.
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
Data are available in the European Central Bank website at https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html.
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
References
- Aghabozorgi, S., Seyed Shirkhorshidi, A., Ying Wah, T.: Time-series clustering – a decade review. Inf. Syst. 53, 16–38 (2015) [Google Scholar]
- Anderson, D.F., Kurtz, T.G.: Stochastic Analysis of Biochemical Systems. Springer International Publishing, Berlin (2015) [Google Scholar]
- Andersson, H., Britton, T.: Stochastic Epidemic Models and Their Statistical Analysis. Springer, New York (2000) [Google Scholar]
- Applebaum, D.: Semigroups of Linear Operators: With Applications to Analysis, Probability and Physics. Cambridge University Press, Cambridge (2019) [Google Scholar]
- 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]
- Barry, D., Hartigan, J.A.: Product Partition Models for Change Point Problems. Ann. Stat. 20(1), 260–279 (1992) [Google Scholar]
- Barry, D., Hartigan, J.A.: A bayesian analysis for change point problems. J. Am. Stat. Assoc. 88(421), 309–319 (1993) [Google Scholar]
- 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]
- Becker, N.G.: Parametric inference for epidemic models. Math. Biosci. 117(1), 239–251 (1993) [DOI] [PubMed] [Google Scholar]
- 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]
- Binder, D.A.: Bayesian cluster analysis. Biometrika 65(1), 31–38 (1978) [Google Scholar]
- 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]
- 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]
- Brault, V., Devijver, E., Laclau, C.: Mixture of segmentation for heterogeneous functional data. Electron. J. Stat. 18(2), 3729–3773 (2024) [Google Scholar]
- Britton, T., Pardoux, E.: Stochastic Epidemic Models with Inference. Springer Cham, Berlin (2019) [Google Scholar]
- Brodsky, E., Darkhovsky, B.: Nonparametric Methods in Change Point Problems. Springer, Netherlands (1993) [Google Scholar]
- 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]
- Chen, J., Gupta, A.: Parametric Statistical Change Point Analysis. Birkhäuser, Boston (2012) [Google Scholar]
- 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]
- 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]
- 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]
- 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]
- 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]
- Danese, L., Corradin, R., Ongaro, A.: BayesChange: Bayesian Methods for Change Points Analysis. R Package Version 1(1), 2 (2025) [Google Scholar]
- 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]
- Engel, K.J., Nagel, R.: One-Parameter Semigroups for Linear Evolution Equations. Springer-Verlag (2000) [Google Scholar]
- 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
- 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]
- Frühwirth-Schnatter, S., Pamminger, C.: Model-based clustering of categorical time series. Bayesian Anal. 5(2), 345–368 (2010) [Google Scholar]
- Frühwirth-Schnatter, S., Kaufmann, S.: Model-based clustering of multiple time series. J. Business Econ. Stat. 26(1), 78–89 (2008) [Google Scholar]
- 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]
- Giampino, A., Guindani, M., Nipoti, B., et al.: Local level dynamic random partition models for changepoint detection (2024)
- Gikhman, I.I., Skorokhod, A.V.: The Theory of Stochastic Processes II. Springer, Berlin Heidelberg (2004) [Google Scholar]
- 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]
- Green, P.J., Richardson, S.: Modelling heterogeneity with and without the dirichlet process. Scand. J. Stat. 28(2), 355–375 (2001) [Google Scholar]
- Hartigan, J.: Partition models. Commun. Stat. - Theory Methods 19(8), 2745–2756 (1990) [Google Scholar]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- Lau, J., Green, P.: Bayesian Model-Based Clustering Procedures. J. Comput. Graph. Stat. 16(3), 526–558 (2007) [Google Scholar]
- Lijoi, A., Prünster, I., Rigon, T.: The Pitman-Yor multinomial process for mixture modelling. Biometrika 107(4), 891–906 (2020) [Google Scholar]
- 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]
- 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]
- 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]
- Niels, G.B.: Martingale methods for the analysis of epidemic data. Stat. Methods Med. Res. 2(1), 93–112 (1993) [DOI] [PubMed] [Google Scholar]
- Niu, Y.S., Hao, N., Zhang, H.: Multiple change-point detection: A selective overview. Stat. Sci. 31(4), 611–623 (2016) [Google Scholar]
- Page, E.S.: Continuous inspection schemes. Biometrika 41(1–2), 100–115 (1954) [Google Scholar]
- 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]
- 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]
- Pedroso, R.C., Loschi, R.H., Quintana, F.A.: Multipartition model for multiple change point identification. TEST 32(2), 759–783 (2023) [Google Scholar]
- Pitman, J.: Exchangeable and partially exchangeable random partitions. Probab. Theory Relat. Fields 102(2), 145–158 (1995) [Google Scholar]
- Pitman, J.: Combinatorial Stochastic Processes. Springer, Berlin (2006) [Google Scholar]
- 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]
- 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)
- 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]
- Rempała, G.A., KhudaBukhsh, W.R.: Dynamical Survival Analysis for Epidemic Modeling, Springer International, p 1–17 (2023)
- 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]
- 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]
- Uhlenbeck, G.E., Ornstein, L.S.: On the theory of the brownian motion. Phys. Rev. 36, 823–841 (1930) [Google Scholar]
- Wade, S., Ghahramani, Z.: Bayesian Cluster Analysis: Point Estimation and Credible Balls (with Discussion). Bayesian Anal. 13(2), 559–626 (2018) [Google Scholar]
- 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]
- Young, D.S.: Mixtures of regressions with changepoints. Stat. Comput. 23(5), 661–671 (2013) [Google Scholar]
- 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.





