Manuscript Offprint
arXiv:2610.20860Time-partitioning Gaussian Process Mixture Model
Abstract
Nonstationarity and heterogeneous dynamics are common in financial and macroeconomic time series. For instance, volatility alternates between calm and turbulent regimes, interest rates evolve with monetary-policy cycles, and major economic events can trigger persistent structural shifts. We propose the Time-partitioning Gaussian Process Mixture Model (TPGPMM), a Bayesian nonparametric framework that infers such regimes and their within-regime dependence directly from the data, without imposing a Markovian structure. The model combines (i) an adaptive Pitman–Yor process prior on ordered compositions, mapped to block-length sequences with contiguity enforced by construction, and (ii) regime-specific Gaussian processes that capture the temporal dependence within each regime. By inferring the Pitman–Yor discount parameter, the prior adapts to both homogeneous and highly heterogeneous regime lengths.
Unlike sequential or Markov-switching alternatives, this architecture flags persistent structural shifts as change points rather than reacting to every transient shock. A split–merge Metropolis-within-Gibbs sampler with exact Gibbs updates of the regime boundaries learns the change points and hyperparameters jointly through batch inference, yielding coherent uncertainty quantification over both the partition and the within-regime dynamics. With an RBF kernel and a fixed, data-informed noise level, TPGPMM produces a sparse, confident segmentation. On simulated data it recovers the true regime structure, and applied to the CBOE Volatility Index (VIX) and the 10-year United States Treasury yield it identifies regimes that align with documented market and monetary-policy events. Variants that estimate the noise level fit better than the change-point baselines and fit and forecast better than the main specification, at the cost of a segmentation that is less sparse or less aligned with these events; with a regime mean, they fit better than a stationary Gaussian process with fitted hyperparameters and forecast as accurately.
1 Introduction
Macro-financial time series rarely obey a single stable data-generating process. Volatility moves between calm and turbulent regimes, interest rates track monetary-policy cycles, and both are punctuated by structural breaks around major economic events. Identifying these regimes—and separating persistent shifts from transient shocks—is central to risk management, forecasting, and policy analysis, yet the number, timing, and duration of regimes are typically unknown a priori and must be inferred from the data. Mixture models offer a natural starting point, generating each observation from one of several latent components [McLachlan and Peel, 2000]; but classical finite mixtures require fixing the number of components in advance. Bayesian nonparametric methods relax this by placing a prior on an infinite mixture, so that the effective number of components is inferred from the data. A commonly used prior is the Dirichlet process (DP), introduced by Ferguson [1973], which induces the Dirichlet process mixture (DPM), with posterior computation and density estimation developed by Escobar and West [1995] and Neal [2000]. In the Gaussian case this yields the flexible, complexity-adaptive Dirichlet process Gaussian mixture model (DPGMM) [Görür and Rasmussen, 2010, Rasmussen, 1999].
In time-series applications, partition-based Bayesian nonparametric methods have often been applied in the context of outlier detection, as in Quintana and Iglesias [2003]. This is largely because standard DP-mixture formulations rely on exchangeability, an assumption that is inappropriate for ordered data where
*guilhermejlp@al.insper.edu.br temporal dependence is intrinsic. To overcome this limitation, researchers have extended these frameworks to allow the random mixing distribution to evolve with covariates. Key developments include the dependent Dirichlet process [MacEachern, 2026], order-based dependent Dirichlet processes [Griffin and Steel, 2006], and kernel stick-breaking processes [Dunson and Park, 2008].
In contrast, much of the time-series regime literature is built on state-space and switching formulations—including Markov-switching autoregressions [Hamilton, 1989] and hidden Markov models [Rabiner, 1989]. Bayesian nonparametric extensions allow an unknown number of regimes while typically retaining a Markovian latent state structure [Fox et al., 2011, Ko et al., 2015]. Partition-based change-point models [Barry and Hartigan, 1993, Chib, 1998, Fearnhead, 2006] and related exchangeable partition probability function (EPPF)—based constructions also often adopt simple or Markovian within-segment models; a notable example is Martínez and Mena [2014], who combine a prior on ordered compositions with discretely observed Ornstein–Uhlenbeck diffusion processes.
Motivated by these limitations, we develop the Time-partitioning Gaussian Process Mixture Model (TPGPMM), a Bayesian nonparametric framework designed to capture multiple regime changes and nonstationary dependence in time-ordered data without imposing a rigid Markovian structure. Standard Gaussian processes (GPs) provide a robust probabilistic framework for nonparametric regression, but the stationarity of their covariance kernels limits their ability to represent regime shifts and abrupt changes. The TPGPMM addresses this limitation by inferring both the number and locations of regimes directly from the data, representing nonstationarity through a flexible piecewise GP structure.
TPGPMM is designed for two purposes. The first is regime identification: the posterior over contiguous partitions gives the number and timing of regime changes, with their uncertainty, and separates persistent shifts from transient shocks, which is what risk management and policy analysis require. The second is nonstationary prediction: averaged over the posterior, the regime-specific GPs form a nonstationary GP whose predictive distribution adapts to the regime structure, both within the sample and beyond its end. The two purposes favour different choices of the observation-noise level. A conservative fixed level yields a sparse segmentation, whereas estimating the noise yields better fit and forecasts, so we evaluate the model for each purpose separately.
This connects our work to the broader literature on nonstationary GPs. Nonstationarity is often introduced via spatially varying kernels, such as process convolution constructions [Higdon et al., 1999] and nonstationary Matérn-type formulations [Paciorek and Schervish, 2003, Katzfuss, 2013], or by modelling input-dependent hyperparameters, including heteroskedastic GP frameworks [Heinonen et al., 2016, Binois et al., 2018]. Another line of work partitions the input space to fit local GPs with distinct hyperparameters, using approaches such as Voronoi tessellations [Kim et al., 2005], treed GPs [Gramacy and Lee, 2008], and local approximate GPs [Gramacy and Apley, 2015], which constructs a separate local GP approximation around each prediction location. A complementary strategy learns nonlinear transformations (warpings) of the input space to induce stationarity in a latent representation, originating with Sampson and Guttorp [1992] and Schmidt and O'Hagan [2003]. Building on this, Damianou and Lawrence [2013] introduced deep Gaussian processes (DGPs), which compose multiple GP layers to learn hierarchical warpings; recent work continues to develop full Bayesian inference for these models [Sauer et al., 2023].
Our work is most closely related to mixtures and segmentations of GPs. Rasmussen and Ghahramani [2001] proposed infinite mixtures of GP experts using DP-based mixing, while Tresp [2000] studied mixtures of GPs with gating functions. However, mixture-of-experts formulations generally allow non-contiguous assignments and are not tailored to contiguous regime segmentation in ordered data. In the change-point setting, Saatçi et al. [2010] and Garnett et al. [2010] introduced sequential online Bayesian methods in which each segment is modelled by a GP and change-points are governed by a hazard function. Compared to these alternatives, TPGPMM differs in two key respects: (i) the partition prior is exchangeable on compositions and position-neutral, so segmentation is driven entirely by the block-size distribution rather than by a Markovian run-length recursion; and (ii) inference is performed in batch, jointly across the entire series, so each candidate boundary is evaluated using global posterior evidence. As we show in Section 7, this combination identifies persistent structural shifts as change points rather than reacting to every transient volatility shock. We evaluate TPGPMM on simulated benchmarks and on two macro-financial series, the Chicago Board Options Exchange (CBOE) Volatility Index (VIX) and the 10-year United States (US) Treasury yield. For regime identification (Section 7), the main specification, with an RBF kernel and a fixed noise level, recovers a sparse segmentation aligned with major market and monetary-policy events. For nonstationary prediction
(Section 8), the specifications that estimate the noise level fit better than the change-point baselines and fit and forecast better than the main one, at the cost of a less sparse or less event-aligned segmentation, and with a regime mean they fit better than a fitted stationary GP and forecast as accurately.
where is a minimum regime length ( throughout). Given , we define the cumulative endpoints
so that . The internal regime boundaries are , and the corresponding contiguous blocks are
Each block is associated with block-specific hyperparameters . We define the time-indexed hyperparameter process by
so that is piecewise constant over time and can change only at the internal boundaries. Conditional on , we collect the block-specific hyperparameters as and assume
so that the block hyperparameters are independent and identically distributed given the partition.
For each block , let denote the latent function with GP prior governed by , and define the latent evaluations , , with global latent vector . Observations are conditionally independent given , with depending only on through a Gaussian noise model detailed in Section 4.
Figure 1 shows how dependence flows from the partition , which determines the contiguous segments , to the regime-specific hyperparameters , which characterise the non-Markovian GP dependence; combined with the inputs , these govern the latent function evaluations that generate the observed sequence .
3 Prior on the segmentation
The prior distribution on the segmentation is specified via a Gibbs-type prior on random partitions, specifically the Pitman–Yor process (PYP) [Pitman and Yor, 1997], which includes the DP as a special case. Rather than fixing K, this formulation allows the number and location of regimes to be inferred directly from the data. The partition probability is a product of block terms that depend only on the block sizes, times a weight that depends only on the number of blocks; this is the defining form of a Gibbs-type prior [Gnedin and Pitman, 2006, De Blasi et al., 2015], which induces a coherent joint distribution over the number and lengths of regimes consistent with the underlying EPPF. (Because of the weight on K, the prior is not a product partition model in the sense of Barry and Hartigan [1993].)
While Gibbs-type priors typically describe unordered exchangeable partitions, temporal order must be preserved in this setting. We therefore consider compositions of n, which are in one-to-one correspondence with ordered partitions into contiguous blocks. To obtain a prior on ordered segmentations, we map the

Figure 1: Graphical representation of the TPGPMM. Dashed blue boxes denote conditional independence across regimes, separating the global partition ( ) from local parameters ( ). Within each regime, the gray lines connecting latent nodes ( ) illustrate the non-Markovian GP covariance structure.
exchangeable partition induced by the PYP to an ordered composition using the exchangeable random order construction of Pitman [2006]. This prior closely relates to the one used in Martínez and Mena [2014]. By strictly reweighting the combinatorial order, this construction preserves the marginal distribution of K while ensuring position neutrality (i.e., conditional on block sizes, all orders are equally likely). This is advantageous because it avoids encoding time-asymmetry and the prior governs only the number and length of segments, while the data likelihood drives the specific placement of changes. As shown in Appendix A, this results in
Given , the corresponding segmentation is obtained by assigning the blocks deterministically to consecutive intervals, thereby enforcing contiguity by construction.
We require each regime to contain at least observations and therefore condition the prior on this minimum-length requirement:
Here, is the prior probability that every regime meets the requirement, computed using the recursion over in Appendix A. Because it depends only on , this normalising constant cancels in partition updates when these parameters are held fixed, but must be included when they are updated. Omitting it would implicitly replace the specified hyperprior with one proportional to .
We opt to work with the PYP instead of a simpler DP because the DP is the limiting case where ; estimating allows the data to determine which kind of prior is used, providing a parsimonious yet adaptable prior for segmentation. While the DP implies logarithmic growth in the number of blocks and favours homogeneous segment lengths, the PYP allows for polynomial growth and induces a heavy-tailed distribution where many short segments can coexist with a few long ones.
4 Gaussian process likelihood within blocks
Having specified the prior on the regime boundaries, we now turn to the within-regime dependence structure. Conditional on the partition and the induced contiguous blocks, we model the observations within each regime using independent GPs. Each block k is associated with a latent function with a GP prior
and observations within the block follow
(7) where the observation noise variance is shared across all blocks and denotes a covariance (kernel) function. To prevent the model from explaining regime shifts as noise changes, we share the observation-noise variance across regimes. This way, regimes differ only through their GP hyperparameters.
We adopt a squared exponential, or radial basis function (RBF), kernel, which induces smooth latent functions without assuming parametric Markov transition dynamics:
with block-specific length-scale and signal variance , so that . Independent log-normal priors are placed on and , with explicit hyperparameters given in Section 6. This flexible kernel allows the GP posterior to capture regime levels nonparametrically, bypassing explicit mean parameters.
For the main specification, we fix the observation-noise standard deviation to help distinguish observation noise from within-regime variation. The GP signal amplitude and the noise level can be difficult to separate from a single time series, so fixing the noise scale reduces ambiguity in the length-scale and amplitude parameters that drive the segmentation. A conservative noise level is intended to absorb short-horizon fluctuations and discourage spurious change-points. The chosen value and its empirical justification are given in Section 6.
To assess the role of the noise assumption and of the within-regime model, we also consider three alternative specifications in which the noise level is estimated rather than fixed. The first keeps the RBF kernel. The second replaces it with a Matérn-3/2 kernel [Stein, 1999], which induces continuous but rougher latent functions. The third adds to the Matérn-3/2 model a mean for each regime, which is integrated out analytically; we refer to it as the regime-mean alternative. These specifications allow us to examine how noise estimation, kernel smoothness and an explicit regime mean affect segmentation and prediction. Their kernels, block covariances and priors are given in Appendix B.
By the conditional-independence assumption (3), the collection is independent given . Integrating out yields the marginal likelihood for each block,
where is the covariance matrix induced by the kernel on the inputs in . For any positive semi-definite kernel and the matrix is positive definite, ensuring the likelihood is well-defined. Because the inputs are equally spaced and the kernel is stationary, it is also a symmetric Toeplitz matrix, which the sampler exploits (Section 5.1). Assuming conditional independence across blocks given the inputs , the partition , the block-specific hyperparameters, and the shared noise variance, the full likelihood factorises as
5 Posterior Computation
Combining the segmentation prior (5) with the block-wise GP likelihood (10), and with the hyperpriors , , specified in Section 6, the joint posterior is
with defined in (9). When is estimated, it joins the parameters on the left and its prior multiplies the right-hand side. Since the marginal posterior of is analytically intractable, we perform inference jointly on via Markov chain Monte Carlo (MCMC) and obtain marginals for by Monte Carlo.
5.1 Inference Algorithm
Standard MCMC moves that adjust individual change points at random often exhibit poor mixing and high computational cost. We therefore adopt a split-merge strategy that proposes global modifications to the partition structure in a single step. This approach parallels split-merge samplers for mixture models [Jain and Neal, 2004] and their extensions, enabling the chain to escape local modes more effectively. Because the number of blocks K is itself a random variable, structural moves are implemented within a reversible-jump MCMC (RJMCMC) framework [Green, 1995, Richardson and Green, 1997]: a split draws one auxiliary variable per hyperparameter and the merge is its exact inverse, so the move is dimension matched.
The Toeplitz structure makes two further moves cheap. The Cholesky factor of a leading sub-matrix of a covariance is the leading block of its Cholesky factor, and a symmetric Toeplitz matrix is unchanged by reversing the order of its rows and columns. One factorisation of a block's covariance therefore gives the log-likelihood of every prefix and every suffix of the block. We use this to draw each boundary exactly from its full conditional, and to propose split points in proportion to the target given the parent's hyperparameters, an informed proposal in the sense of Zanella [2020].
Our sampler targets (11) using a split–merge Metropolis-within-Gibbs scheme. Each iteration updates the partition by a split or merge, draws two regime boundaries from their full conditionals, updates the kernel hyperparameters of three random blocks by random-walk Metropolis, and updates the Pitman–Yor parameters and (and the noise level, when it is estimated). Because latent functions are integrated out, likelihood evaluations are block-wise and structural proposals recompute only the affected blocks. Proposal details and acceptance ratios are given in Appendix C, their derivation in Appendix D, and the procedure is summarised in Algorithm 1.
Algorithm 1 TPGPMM split-merge Metropolis-within-Gibbs sampler
Require: Data (X, y), hyperpriors, total iterations M, burn-in B, thinning T
1: Initialise , , ,
2: for do
3: (A) Propose a split (informed split point) or a merge and accept/reject by the RJMCMC ratio in Appendix C, recomputing only for the affected blocks
4: (A') Draw two randomly chosen boundaries from their full conditionals
5: (B) For three blocks k chosen at random, update and by random-walk Metropolis
6: (C) Update on the logit scale and on the log scale (including ); if is estimated, update
7: (D) If , refresh all from scratch
8: if and then
9: Store
10: end if
11: end for
5.2 Posterior Summaries
Let denote the retained post-burn-in, post-thinning samples. Several non-predictive summaries follow directly from these draws.
We estimate the posterior probability of a regime boundary at index t by
Because posterior mass for one boundary is often spread over neighbouring days, we also report the probability of at least one boundary within trading days of t.
To summarise which observations are consistently assigned to the same regime, we construct the posterior similarity matrix with entries , where denotes that observations and belong to the same block under .
We also summarise the marginal posteriors of the Pitman–Yor parameters and using their means, medians and equal-tailed 95% credible intervals computed from the retained draws. The posterior of is obtained as the empirical distribution of .
The construction of TPGPMM's in-sample posterior predictive density and of its forecasts is given in Section 8.1.
6 Experimental setup
We evaluate TPGPMM for its two purposes. Section 7 assesses regime identification, on simulated data with known change-points and on two macro-financial series whose regimes we compare with documented events. Section 8 assesses nonstationary prediction, within the sample and beyond its end, on the same two series. The data, baselines, model specifications and computational settings are described below. Appendices E and F contain implementation and metric details.
The first empirical series is the log-transformed VIX, , which we use as a proxy for financial stress. The daily observations span January 2015 to December 2023 ( ). This timeframe spans low-volatility phases, sudden spikes, and prolonged crises, providing a strong testbed for structural-change detection. We also analyse the daily 10-year US Treasury constant-maturity yield (Federal Reserve Economic Data, FRED, series DGS10) over the same period ( ), modelling the standardised yield level (centred and divided by its sample standard deviation). The Treasury yield provides a complementary setting: a trending interest-rate level shaped by monetary-policy cycles, alongside the mean-reverting, stress-sensitive VIX. Both are noisy financial time series. On this scale the fixed noise level corresponds to about 9 basis points of yield. For forecasting, both series are extended with the trading days of 2024, which are held out from fitting.
For regime identification, we compare TPGPMM with Bayesian online change-point detection (BOCPD) with a Normal–Inverse-Gamma run-length model [Adams and MacKay, 2007], the sticky hierarchical Dirichlet process switching linear dynamical system (HDP-SLDS) [Fox et al., 2011], and the Martinez–Mena method [Martínez and Mena, 2014]. We fit Martinez–Mena (MM) under both specifications and with the settings of the original paper (Appendix E.3): Model B (MM-B), with the autocorrelation parameter held fixed at zero, treats observations as independent and identically distributed given each block's parameters; Model A (MM-A) allows Markovian autoregressive dependence by assigning the autocorrelation parameter a U(0,1) prior. For nonstationary prediction, we compare with single stationary GPs with RBF and Matérn-3/2 kernels, fitting their hyperparameters by maximising the marginal likelihood. The fit comparisons additionally include the local approximate GP (laGP) of Gramacy and Apley [2015] and the posterior predictive distributions of HDP-SLDS and Martinez–Mena.
Throughout the experiments, TPGPMM denotes the main specification introduced in Section 4, with an RBF kernel and fixed . The alternatives estimate : TPGPMM ( estimated) keeps the RBF kernel, TPGPMM (Matérn-3/2, estimated) changes the kernel, and TPGPMM (Matérn-3/2, regime mean, estimated), the regime-mean alternative, adds an integrated regime mean to the Matérn-3/2 model.
The fixed noise level is informed by first- and second-difference estimates of the short-horizon noise level [Rice, 1984, Gasser et al., 1986]. These estimators are robust to smooth within-regime trends and give standard deviations of 0.056 and 0.048 for log-VIX, and 0.041 and 0.034 for the standardised Treasury yield. The chosen value of 0.1 is of the same order of magnitude as these estimates, but deliberately conservative: about twice the estimates for log-VIX and two to three times those for the yield. We use the main specification for regime identification (Section 7) and compare all four specifications for nonstationary prediction (Section 8).
For the kernel hyperparameters, we assign independent log-normal priors: and ; for the regime-mean alternative, , and the regime mean has prior mean and prior variance . The partition follows the Pitman–Yor process in (5) with and (prior mean 10). When the observation noise is estimated, .
Posterior inference uses four chains for each empirical series, each with its own random stream. The chains start from equal blocks and run for 60,000 iterations on VIX and 20,000 on the Treasury yield. We discard the first 50% as burn-in and retain every fifth draw. Each simulated dataset is fitted with one chain of 15,000 iterations. Posterior summaries are computed using retained draws and forecasts using 500. The convergence analysis of the sampler (acceptance rates, effective sample sizes
(ESS), and rank-normalised for ) is given in Appendix H.
The computational cost of inference benefits from conditional independence across blocks, which reduces the cost of GP likelihood evaluation from to . We use Cholesky factorization with diagonal jitter. Each proposal recomputes the likelihoods of the affected blocks, and a full refresh every 200 iterations limits numerical drift. Boundary updates reuse the Cholesky factorisations to evaluate the prefix and suffix likelihoods for all candidate positions. On one core of an Apple Silicon machine, a 60,000-iteration VIX chain () takes about 8 minutes for TPGPMM and up to 50 minutes for the alternatives (Table 11); the four chains run in parallel.
7 Regime identification
This section evaluates the segmentation of TPGPMM, the specification designed for it, and compares it with the change-point baselines. The estimated-noise alternatives are discussed where they segment differently.
7.1 Simulation Study
We evaluate change-point detection and the adaptation of the Pitman–Yor discount parameter on two synthetic scenarios at with true number of regimes . The homogeneous scenario splits the series into ten segments of equal length 90; the power-law scenario consists of one dominant block of length 810 plus nine shorter blocks of length 10. The scenarios share the same specification and differ only in the segment-size distribution; the exact data-generating configuration is given in Appendix G. Each scenario is run over 50 replications. For every replication and every method, we record segmentation-accuracy metrics , precision, recall, , and change-point mean absolute error (CP_MAE) at a 5-step tolerance (all defined in Appendix F).
Table 1: Simulation-study change-point recovery summary across 50 replications per scenario, for TPGPMM, its three alternatives with estimated noise and the baselines. SD denotes standard deviation.
| Scenario | Method | (mean SD) | Precision | Recall | F1 | CP_MAE |
|---|---|---|---|---|---|---|
| homogeneous | TPGPMM | 0.968 | 0.998 | 0.981 | ||
| homogeneous | TPGPMM ( estimated) | 0.973 | 0.998 | 0.984 | ||
| homogeneous | TPGPMM (Matérn-3/2, estimated) | 0.996 | 0.996 | |||
| homogeneous | TPGPMM (Matérn-3/2, regime mean, estimated) | 0.996 | 0.996 | |||
| homogeneous | BOCPD | 0.844 | 0.938 | 0.885 | ||
| homogeneous | HDP-SLDS | 0.563 | 0.833 | 0.658 | ||
| homogeneous | MM-A | 0.998 | 0.973 | 0.985 | ||
| homogeneous | MM-B | 0.493 | 0.964 | 0.650 | ||
| power-law | TPGPMM | 0.996 | 0.996 | 0.996 | ||
| power-law | TPGPMM ( estimated) | 0.996 | 0.998 | |||
| power-law | TPGPMM (Matérn-3/2, estimated) | 0.998 | 0.989 | 0.993 | ||
| power-law | TPGPMM (Matérn-3/2, regime mean, estimated) | 0.998 | 0.989 | 0.993 | ||
| power-law | BOCPD | 0.988 | 0.918 | 0.947 | ||
| power-law | HDP-SLDS | 0.614 | 0.567 | 0.554 | ||
| power-law | MM-A | 1.000 | 0.976 | 0.987 | ||
| power-law | MM-B | 0.675 | 0.958 | 0.788 |
Table 1 reports TPGPMM, its three alternatives with estimated noise and the baselines. In the power-law scenario TPGPMM achieves an of 0.996 and a CP_MAE of 0.05, recovering the true in 92% of the replications (). In the homogeneous scenario it over-segments slightly (, exact in 72% of the replications), so its precision is lower and its (0.981) is slightly below that of MM-A (0.985), although its CP_MAE is lower than that of every baseline.
The alternatives show what estimating the noise changes when the model is well specified. All three recover the noise level (posterior mean between 0.095 and 0.100, truth 0.1). With the RBF kernel, which is the data-generating kernel, estimating the noise gives results close to TPGPMM's ( of 0.984 and 0.997), including the slight over-segmentation of the homogeneous scenario (). The two Matérn-3/2 alternatives are the most accurate in that scenario (, exact in 96% of the replications), even though their kernel differs from the data-generating one. They find the same modal partition in 98 of the 100 datasets, so the regime mean makes no difference to segmentation here. On simulated data the noise is therefore identifiable; on the real series it is not, and estimating it with the RBF kernel fragments the segmentation (Section 7.2).
Among the baselines, MM-A is the closest, with tightly concentrated around the truth and and of 0.985 and 0.987. It rarely adds a spurious boundary but misses some and localises them less precisely (CP_MAE 3.38 and 1.22). BOCPD performs reasonably on power-law but over-segments on homogeneous . MM-B and HDP-SLDS over-segment substantially in both scenarios, with lower precision and inflated CP_MAE.
The posterior of the Pitman–Yor discount adapts to the underlying segment-size distribution (Figure 2). In the homogeneous scenario, where the true partition is uniform, the posterior mean is small ( on average), close to the DP limit. In the power-law scenario, where one dominant block coexists with many short ones, it moves well away from zero ( ), consistent with a heavier-tailed Pitman–Yor regime.
Figure 2 compares the posterior mean of across the 50 replicate seeds of the simulation study, separately for the two scenarios and for all four specifications. For every specification the two distributions are completely disjoint: across specifications, every homogeneous-scenario seed produces while every power-law seed produces , and the four specifications give almost the same values. This per-seed separation provides direct evidence that the posterior on adapts to the segment-size distribution of the data—staying near the Dirichlet-process limit when blocks are uniform and moving distinctly above zero when block sizes are heavy-tailed—rather than being pinned by the prior. Because it does not depend on the kernel, the noise model or the regime mean, the adaptation is a property of the partition prior. Including the truncation constant in (5) matters here: without it the effective prior on has mean 0.04 at , which pulls both scenarios towards the Dirichlet-process limit.

Figure 2: Distribution of the posterior mean of across 50 replicate seeds in the homogeneous and power-law scenarios, for TPGPMM and its three alternatives with estimated noise (one colour and marker per specification). Each point is the posterior mean for one seed, jittered within each specification; horizontal lines mark the medians.
These results highlight the role of two key ingredients in the TPGPMM architecture: a global Pitman–Yor-induced prior on contiguous compositions, which concentrates posterior mass on well-separated boundaries, and a within-block likelihood flexible enough to absorb regime-internal variation without creating spurious change points. In the synthetic setting, MM-A's Ornstein–Uhlenbeck process is expressive enough to generate good performance, whereas BOCPD and HDP-SLDS rely on local Markovian or run-length dynamics, and MM-B retains the partition prior but removes within-block dependence.

Figure 3: Analysis of the VIX dataset. Top panel: volatility index with the six benchmark market events. Lower five panels: posterior change-point probabilities for TPGPMM and the benchmark models.
7.2 VIX
We benchmark the posterior segmentation of log-VIX against six major market events, listed in Table 2, and use them as economic references to interpret the inferred regimes rather than as model constraints.
Table 2: Six benchmark market events used to interpret the posterior VIX segmentation.
| Event (Date) | Market Impact |
|---|---|
| China “Black Monday” (2015-08-24) | China slowdown triggered U.S. liquidity strains. |
| Brexit Vote (2016-06-24) | Surprise “Leave” vote sparked global equity sell-offs. |
| “Volmageddon” (2018-02-05) | VIX spike driven by short-volatility deleveraging. |
| COVID Panic (2020-03-16) | Pandemic lockdowns caused acute funding strains. |
| Russia-Ukraine (2022-02-24) | Invasion led to risk sell-offs and commodity surges. |
| US Bank Turmoil (2023-03-10) | Silicon Valley Bank failure sparked bank solvency and rate volatility. |
Figure 3 separates the five methods along two axes: the confidence of the change-point detections and the sparsity of the inferred segmentation. TPGPMM produces few, confident detections: its change-point probability exceeds 0.5 at 7 locations and 0.2 at 13. MM-A is as sparse (7 peaks above 0.5 and 9.8 regimes on average), but most of its boundaries fall between November 2016 and February 2018: it isolates the short spikes of August 2017 and February 2018 and places no boundary at the China sell-off (0.00) or the COVID-19 panic (0.00). MM-B has only 3 peaks above 0.5 but spreads moderate mass over many locations (14 above 0.2). BOCPD and HDP-SLDS produce denser and more diffuse boundary probabilities (20 and 38 peaks above 0.2), with HDP-SLDS in particular yielding a near-continuous stream of low-confidence transition candidates.
The posterior of TPGPMM places a mean of 13.4 regimes on the VIX (95% interval [11, 17]), and its modal partition has K = 11 regimes, with change-points on 2015-06-29, 2015-08-21, 2016-11-09, 2017-04-24, 2017-08-10, 2018-02-05, 2020-03-02, 2021-01-27, 2021-12-07 and 2022-04-22. The probability of a boundary within trading days of these dates is 0.96, 1.00, 1.00, 0.99, 0.98, 1.00, 0.99, 0.99, 0.68 and 0.42. Three of the six benchmark events are matched:
• China, August 2015 (1.00): a new regime opens on 21 August, the first day of the sell-off that culminated on 24 August.
• Volmageddon, February 2018 (1.00): a new regime opens on 5 February 2018.
• COVID-19, March 2020 (0.89): a new regime opens on 2 March 2020, at the start of the sell-off, two weeks before the 16 March peak.
The 2016 Brexit vote (0.00), the Russia–Ukraine invasion (0.01) and the 2023 bank turmoil (0.00) receive no boundary mass: these short-lived spikes are absorbed as within-regime variation of regimes that began earlier. TPGPMM thus identifies persistent structural shifts rather than isolated excursions, at the cost of not marking every major event.
The alternatives with estimated noise behave differently. With the RBF kernel and estimated noise ( ), the posterior fragments the series into 29.0 regimes on average. With the rougher Matérn-3/2 kernel ( ), the posterior is again parsimonious (8.7 regimes) and matches China and Volmageddon (1.00 and 1.00), but it absorbs the COVID-19 panic (0.00) into a long, elevated-volatility regime that runs from February 2018 to June 2022.
The BOCPD posterior at index t is a distribution over the run-length (time since the last change point) and tends to spread mass over windows of plausible boundary locations. Similarly, the Sticky HDP-SLDS uses a Markovian regime-switching prior on latent states but lacks global partition coherence, which can produce local and noisy transition probabilities.
Martinez–Mena also employs a Pitman–Yor-induced prior on ordered compositions; consequently, the differences between MM and TPGPMM are driven by the within-block likelihood rather than the prior. In the log-VIX application, the autocorrelation parameter of MM-A saturates near the unit root (posterior mean ), so each regime behaves like a random walk whose accumulated drift absorbs persistent level shifts: MM-A merges the China sell-off and COVID-19 into long regimes while still isolating a few short spikes. MM-B, whose observations are independent within a block, reacts instead to transient level changes and uses 16.7 regimes on average. TPGPMM, by contrast, models within-block dependence as a GP with non-Markovian covariance. Transient spikes can be absorbed into the within-block GP posterior, and the marginal likelihood penalizes adding new hyperparameters ( ) unless persistence and amplitude genuinely differ across a candidate boundary. This mechanism explains why TPGPMM's segmentation in Figure 3 is both sparse and aligned with persistent episodes.
To assess partition stability, we compute the Posterior Similarity Matrix (PSM) for each method, where entry is the posterior probability that observations i and j belong to the same regime (Figure 4). TPGPMM yields a clean block-diagonal structure. Eight of its ten modal boundaries are sharp (probability 0.96 or more). The main uncertainty concerns a possible split of the 2018–2020 regime during 2019 (boundary probabilities 0.21–0.28) and the boundaries of late 2021 and 2022, which receive probabilities between 0.36 and 0.68. MM-A and MM-B also yield sharply block-diagonal PSMs. MM-A's is dominated by two long blocks, from 2015 to November 2016 and from February 2018 to May 2022, which merge the China sell-off and the Brexit vote, and the COVID-19 panic and the Russia–Ukraine invasion; MM-B's has many smaller blocks. BOCPD exhibits cross-block bleeding consistent with its diffuse run-length posterior, while HDP-SLDS collapses to a near-diagonal pattern indicative of many short, weakly distinguished regimes.
Across the five methods, only TPGPMM produces a segmentation that is at once sparse, confident and aligned with persistent market episodes. The results suggest that parsimonious change-point detection requires both a global prior on contiguous partitions and a within-block likelihood flexible enough to absorb transient variation without introducing unnecessary regimes.


Figure 4: Posterior similarity matrices for the VIX time series under each method.
7.2.1 Interpretation of the inferred regimes
To obtain an interpretable summary of the latent structure, we extract the modal partition , defined as the most frequently sampled composition in the MCMC output. It accounts for only 0.19% of the draws, because boundary positions vary by a few days between draws; the boundary probabilities reported above show that the boundaries themselves are well identified. Conditional on this fixed partition, each block's kernel hyperparameters are set to the posterior mean of over the subset of MCMC draws with , and the per-block posterior mean function is then computed by standard GP conditioning on the within-block data with the noise variance . We refer to the resulting fit as the maximum a posteriori (MAP) segmentation for brevity, although it is technically a partition-MAP with within-block posterior-mean kernels.
Figure 5 shows the MAP segmentation for the VIX series. The eleven inferred regimes recover an economically coherent narrative; the dates of the boundaries coincide with the events named below, which we use only as interpretation:
• Block 1 is the calm first half of 2015 (VIX around 15), with a long length-scale.
• Block 2 opens on 29 June 2015, when Greece closed its banks, and runs to the eve of the August sell-off.
• Block 3 runs from the China sell-off of August 2015 to the 2016 US election. It is a volatile phase with a short length-scale ( ) that absorbs the Brexit vote.
• Blocks 4–6 capture the exceptionally calm period from November 2016 to January 2018, with the lowest VIX levels in the sample (around 10–12) and long length-scales. Their boundaries fall in late April 2017, after the first round of the French presidential election, and on 10 August 2017, a short-lived spike.

Figure 5: MAP segmentation of the VIX series. Coloured lines show the per-block GP posterior means under the modal partition , with kernel hyperparameters fixed to the posterior mean across MCMC draws matching that partition. Dashed vertical lines mark the inferred internal change-points. The legend gives the averaged kernel hyperparameters for each of the eleven blocks.
-
Block 7 opens with Volmageddon on 5 February 2018 and runs to the end of February 2020, absorbing the late-2018 sell-off.
-
Block 8 is the COVID-19 regime, from 2 March 2020 to January 2021, with the highest level in the sample (VIX around 30).
-
Block 9 opens with the retail-trading volatility spike of late January 2021 and has the largest signal variance ().
-
Blocks 10 and 11 cover December 2021 to April 2022, which contains the Russia–Ukraine invasion, and the 2022 bear market and its normalisation through 2023, which contains the bank turmoil of March 2023. Their boundaries are the least certain (0.68 and 0.42).
Throughout this discussion, “high-volatility” and “low-volatility” regimes refer to the level of implied by the within-regime posterior mean of , not to a model parameter: TPGPMM characterises each regime by its kernel hyperparameters —persistence and amplitude—and the level itself emerges from conditioning on the within-block data.
7.3 10-year Treasury yield
The posterior of TPGPMM places a mean of 7.0 regimes on the standardised yield (95% interval [5, 10]), with a 5-regime MAP partition. We interpret it against three monetary-policy events, listed in Table 3.
Table 3: Benchmark monetary-policy events used to interpret the posterior 10-year Treasury segmentation.
| Event (Date) | Policy / market impact |
|---|---|
| Fed mid-cycle easing (2019-07-31)COVID emergency cuts (2020-03-15)Hawkish pivot (2021-12-15) | First of three 2019 rate cuts as growth and trade-war risks mounted.Policy rate cut to the zero lower bound; large-scale asset purchases.The Federal Open Market Committee (FOMC) accelerated tapering, signalling the 2022 tightening cycle. |
The MAP partition (Table 4) splits the sample into five economically coherent regimes:
-
Normalisation and hiking cycle, from 2015 to mid-2019. It covers the December 2015 lift-off, the 2016–2018 rate hikes and the balance-sheet runoff.
-
Mid-cycle easing, from mid-2019. The timing of this boundary is uncertain: the modal partition places it on 30 July, the day before the first 2019 cut (0.22 within days), but more posterior mass (0.69) falls in early September 2019.
-
COVID and quantitative easing, from 20 March 2020, five days after the emergency cuts of 15 March, with probability 1.00.
-
Tightening onset, from late February 2022, three weeks before the first hike (probability 0.47).
-
Restrictive policy, from mid-June 2022, when the Fed moved to 75-basis-point hikes. The mass for this boundary is spread over June and July 2022.
The COVID cuts are identified with certainty, and the 2019 easing and the 2022 tightening are detected, but with uncertain timing. The hawkish pivot of December 2021 receives little mass of its own (0.11). The Matérn-3/2 alternative with estimated noise dates the tightening more sharply (probability 0.93 in February 2022) but gives no boundary for the 2019 easing (0.01). As with VIX, transient moves that do not persist are absorbed within regimes.
Table 4: MAP segmentation of the standardised 10-year Treasury yield under TPGPMM. Mean yield (in percent) and daily-change standard deviation (in basis points) are computed within each inferred block; the boundary posterior probability is the posterior probability of a change-point within trading days of the block's left boundary (regime 1 has no left boundary).
| Regime | Interpretation | Dates | N | Mean yield | Daily-change SD | Boundary post. prob. |
|---|---|---|---|---|---|---|
| 1 | Normalisation and hiking cycle | 2015-01-02 to 2019-07-29 | 1,144 | 2.32% | 4.22 bp | — |
| 2 | Mid-cycle easing | 2019-07-30 to 2020-03-19 | 160 | 1.65% | 6.50 bp | 0.22 |
| 3 | COVID; quantitative easing | 2020-03-20 to 2022-02-25 | 486 | 1.19% | 4.26 bp | 1.00 |
| 4 | Tightening onset | 2022-02-28 to 2022-06-10 | 73 | 2.61% | 7.15 bp | 0.47 |
| 5 | Restrictive policy | 2022-06-13 to 2023-12-29 | 388 | 3.77% | 7.74 bp | 0.38 |
8 Nonstationary prediction
This section evaluates TPGPMM as a nonstationary GP and asks whether it predicts better than a stationary one. We compare the posterior predictive distributions of all four specifications with stationary GPs whose hyperparameters are fitted to the data: their in-sample fit on 2015–2023, and their forecasts over the held-out year 2024. With a regime mean and estimated noise, the nonstationary model fits the training series more closely than the stationary GPs and forecasts about as accurately. Here the estimated-noise alternatives are the relevant models, and TPGPMM shows what its conservative noise level costs.
The results reveal a trade-off between sparse segmentation and predictive accuracy. TPGPMM produces the sparse, confident segmentation described in Section 7, with 13.4 regimes on VIX and 7.0 on the Treasury yield on average. Estimating the noise improves prediction. Every alternative fits more closely than TPGPMM in sample on both series; on VIX, their CRPS/sd is 0.093, 0.068 and 0.046, against 0.122. The alternatives also forecast more accurately in most comparisons across horizons and metrics, and the regime-mean alternative in all of them. These predictive gains are accompanied by changes in the inferred segmentation. With the RBF kernel, estimating the noise fragments the series into 29.0 regimes on VIX and 40.2 on the Treasury yield, and the regime-mean alternative uses 51 and 13. The Matérn-3/2 alternative remains parsimonious (8.7 and 8.2 regimes) but misses the COVID-19 regime on VIX and the 2019 easing on the Treasury yield.
8.1 Posterior predictive distribution
To characterise the latent function through a mixture of GPs and quantify in-sample uncertainty, we approximate the in-sample posterior predictive distribution via Monte Carlo integration, averaging over the MCMC draws of the partition and GP hyperparameters. The summaries reported here evaluate at

Figure 6: Posterior predictive mixture under TPGPMM on log-VIX. The red line is the posterior mean of , the shaded band is the 95% credible band, and the dashed vertical lines mark the modal-partition change-points. The construction follows Equation (16).
the same inputs used to fit the model; standard GP conditioning extends the construction to any at no additional cost.
For a given MCMC sample m, observation falls within some block under , and the conditional predictive distribution is Gaussian by standard GP conditioning on the within-block data:
with
where is the kernel matrix for block at the training inputs, is the cross-covariance vector between and the within-block training inputs, and is the prior variance at , all computed using . Marginalising over the joint posterior of yields the mixture
The predictive mean is the average of the and credible intervals are the exact quantiles of the mixture (16). This naturally propagates uncertainty in the partition, the within-regime GP hyperparameters and, when it is estimated, the noise level, and widens the bands in regions of structural ambiguity. Forecasts are built the same way: each draw forecasts from its own final regime, and the draws are averaged.
Figure 6 shows the posterior predictive mixture on the log-VIX series. The red curve is the posterior mean of , the shaded band is the pointwise 95% credible band, and the dashed vertical lines mark the modal-partition change-points discussed in Section 7.2. The fitted predictive mean tracks the series closely within each regime, including during the COVID-19 peak.
8.2 In-sample fit
Table 5 reports the in-sample posterior-predictive fit on the log-VIX series. On the scale-normalised metrics, which are the comparable ones because the baselines operate on different targets, TPGPMM (RMSE/sd 0.208, CRPS/sd 0.122) fits better than laGP, HDP-SLDS and MM-B, about as well as MM-A (0.224, 0.121), and less closely than the fitted stationary GPs (RBF: 0.146, 0.081; Matérn-3/2: 0.115, 0.065), because its conservative noise level deliberately attributes daily fluctuations to noise. MM-A has no observation noise, so its predictive of conditions on within the regime rather than on (Appendix E.3). The alternatives with estimated noise fit more closely than all the change-point baselines, and the regime-mean alternative fits best of all (0.076, 0.046). The fixed noise level that stabilises TPGPMM's segmentation therefore costs predictive accuracy, and we use TPGPMM for segmentation and the regime-mean alternative for prediction. Because in-sample fit rewards flexibility, the out-of-sample comparison is the forecasting exercise of Section 8.3.
Table 5: In-sample posterior-predictive fit on the log-VIX series ( trading days). RMSE, NLPD and CRPS are the in-sample posterior-predictive metrics; RMSE/sd, NLPD and CRPS/sd are their scale-normalised variants. Because the baselines operate on different targets (second column), the normalised columns are the comparable ones. Lower is better throughout. The standard GPs have hyperparameters fitted by maximum marginal likelihood; the laGP and HDP-SLDS rows are from the original study, and Martínez-Mena A and B are fitted with the settings of Martínez and Mena [2014]. Martínez-Mena A has no observation noise, so its predictive of conditions on within the regime (one step ahead) rather than on itself.
| Method | Target | RMSE | NLPD | CRPS | RMSE/sd | ΔNLPD | CRPS/sd | n |
|---|---|---|---|---|---|---|---|---|
| TPGPMM | log VIX | 0.0714 | -1.1042 | 0.0417 | 0.2082 | -1.4537 | 0.1215 | 2264 |
| TPGPMM ( estimated) | log VIX | 0.0564 | -1.4339 | 0.0318 | 0.1642 | -1.7834 | 0.0928 | 2264 |
| TPGPMM (Matérn-3/2, estimated) | log VIX | 0.0409 | -1.7048 | 0.0233 | 0.1193 | -2.0543 | 0.0678 | 2264 |
| TPGPMM (Matérn-3/2, regime mean, estimated) | log VIX | 0.0261 | -2.0406 | 0.0159 | 0.0760 | -2.3901 | 0.0463 | 2264 |
| Standard GP (RBF) | log VIX | 0.0502 | -1.5255 | 0.0277 | 0.1464 | -1.8750 | 0.0808 | 2264 |
| Standard GP (Matérn-3/2) | log VIX | 0.0394 | -1.7117 | 0.0223 | 0.1149 | -2.0612 | 0.0651 | 2264 |
| laGP | log VIX | 0.1328 | -0.7501 | 0.0691 | 0.3869 | -1.0996 | 0.2013 | 2264 |
| HDP-SLDS | 0.7444 | 1.2443 | 0.3903 | 0.2900 | -1.1174 | 0.1520 | 2263 | |
| Martínez-Mena A | log VIX | 0.0769 | -1.2057 | 0.0414 | 0.2241 | -1.5552 | 0.1206 | 2264 |
| Martínez-Mena B | log VIX | 0.1441 | -0.4771 | 0.0820 | 0.4199 | -0.8266 | 0.2388 | 2264 |
On the Treasury yield, Table 6 reports the in-sample posterior-predictive fit for the four specifications and the baselines. On the comparable scale-normalised metrics, TPGPMM (RMSE/sd 0.061, CRPS/sd 0.037) fits better than laGP (0.092, 0.046), HDP-SLDS and MM-B but less closely than MM-A (0.059, 0.032), whose regimes, with , track the yield from one day to the next, and than the fitted stationary GPs (CRPS/sd 0.025 for RBF and 0.018 for Matérn-3/2). The alternatives with estimated noise fit more closely than all the change-point baselines, and the regime-mean alternative fits best (0.021, 0.013).
Table 6: In-sample posterior-predictive fit on the standardised 10-year Treasury yield (). Columns as in Table 5.
| Method | Target | RMSE | NLPD | CRPS | RMSE/sd | ΔNLPD | CRPS/sd | n |
|---|---|---|---|---|---|---|---|---|
| TPGPMM | std. yield | 0.0605 | -1.1785 | 0.0371 | 0.0605 | -2.5972 | 0.0371 | 2251 |
| TPGPMM ( estimated) | std. yield | 0.0357 | -1.8700 | 0.0203 | 0.0357 | -3.2887 | 0.0203 | 2251 |
| TPGPMM (Matérn-3/2, estimated) | std. yield | 0.0244 | -2.1798 | 0.0143 | 0.0244 | -3.5985 | 0.0143 | 2251 |
| TPGPMM (Matérn-3/2, regime mean, estimated) | std. yield | 0.0215 | -2.2681 | 0.0129 | 0.0215 | -3.6868 | 0.0129 | 2251 |
| Standard GP (RBF) | std. yield | 0.0452 | -1.6580 | 0.0250 | 0.0452 | -3.0767 | 0.0250 | 2251 |
| Standard GP (Matérn-3/2) | std. yield | 0.0320 | -1.9500 | 0.0181 | 0.0320 | -3.3688 | 0.0181 | 2251 |
| laGP | std. yield | 0.0919 | -1.2189 | 0.0460 | 0.0919 | -2.6377 | 0.0460 | 2251 |
| HDP-SLDS | 1.9097 | 1.4495 | 0.7079 | 0.3094 | -1.7894 | 0.1147 | 2250 | |
| Martínez-Mena A | std. yield | 0.0588 | -1.5288 | 0.0318 | 0.0588 | -2.9476 | 0.0318 | 2251 |
| Martínez-Mena B | std. yield | 0.1428 | -0.4421 | 0.0843 | 0.1429 | -1.8608 | 0.0843 | 2251 |
8.3 Out-of-sample forecasting
Out-of-sample forecasting is the more demanding test. Table 7 evaluates 1–5 trading-day-ahead forecasts of log-VIX on a held-out 2024 window: all models are fit once on the 2015–2023 training series and forecast forward with a daily rolling origin, conditioning on the observed data up to each origin but without re-estimation. TPGPMM forecasts from each draw's final inferred regime and averages over draws; the standard GPs are single stationary GPs with hyperparameters fitted on the training window.
-
The regime-mean alternative is the most accurate model in CRPS at every horizon and in RMSE from two days ahead. At one day the fitted Matérn GP has a slightly lower RMSE (0.470 against 0.476). The margins are small: at five days the RMSE/sd is 0.940 against 0.946, and the CRPS/sd 0.482 against 0.496.
-
Without a regime mean, every TPGPMM specification is less accurate than the fitted standard GP with the same kernel, at every horizon. This includes TPGPMM itself, whose RMSE/sd is 0.706 at one day and 1.400 at five, against 0.503 and 1.003 for the fitted RBF GP.
-
Among the TPGPMM specifications, all three alternatives with estimated noise forecast more accurately than TPGPMM in CRPS at every horizon. In RMSE they do so at every horizon, except the RBF alternative at four and five days.
On VIX, the regime structure therefore matches the best stationary GP in forecasting only when each regime has its own mean and the noise is estimated. The value of TPGPMM itself lies in the segmentation.
Table 7: Out-of-sample forecasting on log-VIX. All models are fit once on the 2015–2023 training window and forecast 1–5 trading days ahead across 2024 (252 days) with a daily rolling origin, conditioning on observed data up to each origin but not re-estimated. TPGPMM forecasts are posterior mixtures over 500 draws, each forecasting from its final regime; the standard GPs are single stationary GPs with hyperparameters fitted by maximum marginal likelihood on the training window. Entries are horizon-wise RMSE and CRPS normalised by the test standard deviation; lower is better, best in bold.
| Model | RMSE/sd | CRPS/sd | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| h = 1 | 2 | 3 | 4 | 5 | h = 1 | 2 | 3 | 4 | 5 | |
| TPGPMM | 0.706 | 0.893 | 1.069 | 1.237 | 1.400 | 0.369 | 0.473 | 0.574 | 0.671 | 0.761 |
| TPGPMM ( estimated) | 0.636 | 0.846 | 1.046 | 1.243 | 1.435 | 0.322 | 0.436 | 0.544 | 0.649 | 0.752 |
| TPGPMM (Matérn-3/2, estimated) | 0.548 | 0.780 | 0.978 | 1.146 | 1.288 | 0.272 | 0.397 | 0.501 | 0.590 | 0.674 |
| TPGPMM (Matérn-3/2, regime mean, estimated) | 0.476 | 0.664 | 0.796 | 0.886 | 0.940 | 0.227 | 0.325 | 0.392 | 0.441 | 0.482 |
| Standard GP (RBF) | 0.503 | 0.726 | 0.886 | 0.978 | 1.003 | 0.249 | 0.360 | 0.440 | 0.496 | 0.533 |
| Standard GP (Matérn-3/2) | 0.470 | 0.670 | 0.808 | 0.898 | 0.946 | 0.230 | 0.332 | 0.402 | 0.455 | 0.496 |
On the Treasury yield we follow the same protocol (Table 8).
-
In RMSE, the regime-mean alternative and the fitted Matérn GP are close. The GP is more accurate at one and two days (0.248 against 0.250 at one day), and the regime-mean alternative from three days ahead (0.595 against 0.614 at five days).
-
In CRPS, the fitted Matérn GP is more accurate at every horizon (0.347 against 0.377 at five days). The regime-mean alternative's predictive bands are too wide, which the CRPS penalises: all 2024 observations fall inside its five-day interval.
-
Within the RBF family, TPGPMM is less accurate than the fitted RBF GP at one day but more accurate from three days ahead (0.729 against 0.909 at five days); with estimated noise, the RBF version is more accurate at every horizon. The Matérn-3/2 version without a regime mean is less accurate than the fitted Matérn GP at every horizon.
-
Among the TPGPMM specifications, the RBF and regime-mean alternatives forecast more accurately than TPGPMM at every horizon in both metrics. The Matérn-3/2 alternative does so in RMSE at every horizon except four days, but in CRPS only at one and two days.
As on VIX, the regime structure gives forecasts comparable to a well-tuned stationary GP rather than clearly better ones. Its advantages are the interpretable segmentation and, for the regime-mean alternative, the fit.
9 Conclusions
We introduced the Time-partitioning Gaussian Process Mixture Model, a Bayesian nonparametric framework that infers a contiguous segmentation of a time-ordered series jointly with regime-specific Gaussian processes,
Table 8: Out-of-sample forecasting on the standardised 10-year Treasury yield over 2024 (250 days), with the protocol of Table 7.
| Model | RMSE/sd | CRPS/sd | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| h = 1 | 2 | 3 | 4 | 5 | h = 1 | 2 | 3 | 4 | 5 | |
| TPGPMM | 0.331 | 0.433 | 0.530 | 0.632 | 0.729 | 0.194 | 0.247 | 0.301 | 0.359 | 0.414 |
| TPGPMM ( estimated) | 0.282 | 0.386 | 0.484 | 0.595 | 0.699 | 0.158 | 0.216 | 0.272 | 0.339 | 0.403 |
| TPGPMM (Matérn-3/2, estimated) | 0.265 | 0.428 | 0.525 | 0.639 | 0.725 | 0.149 | 0.246 | 0.320 | 0.406 | 0.483 |
| TPGPMM (Matérn-3/2, regime mean, estimated) | 0.250 | 0.383 | 0.448 | 0.531 | 0.595 | 0.141 | 0.222 | 0.274 | 0.330 | 0.377 |
| Standard GP (RBF) | 0.291 | 0.447 | 0.597 | 0.761 | 0.909 | 0.161 | 0.246 | 0.331 | 0.429 | 0.517 |
| Standard GP (Matérn-3/2) | 0.248 | 0.365 | 0.452 | 0.545 | 0.614 | 0.137 | 0.201 | 0.248 | 0.304 | 0.347 |
learning the kernel and partition hyperparameters, including the Pitman–Yor discount , directly from the data, with the observation noise fixed at a conservative, data-informed level in the main specification. The model serves two purposes. For regime identification, TPGPMM localises the simulated change points more accurately than every change-point baseline, with an at the level of the best one, Martinez–Mena A, and the alternatives with estimated noise perform comparably. On the log-VIX series it produces a confident segmentation whose boundaries match three of the six benchmark events (the China sell-off, Volmageddon and COVID-19), while shorter-lived spikes are absorbed within regimes; on the Treasury yield it identifies the COVID-19 cuts with certainty and the 2019 easing and the 2022 tightening with uncertain timing. For nonstationary prediction, the specifications that estimate the noise fit better than the change-point baselines, and the regime-mean alternative fits better than a fitted stationary GP and forecasts about as accurately (Section 8). The two purposes trade sparsity against predictive accuracy: fixing the noise at a conservative level keeps TPGPMM's segmentation sparse and aligned with the events, while estimating it improves fit and forecasts but either fragments the segmentation or misses events.
For segmentation, the results point to three ingredients. The Pitman–Yor-induced prior on contiguous compositions adapts between the Dirichlet-process limit and heavier-tailed segment-size structures; the non-Markovian GP likelihood absorbs short-range fluctuations as within-regime dynamics and penalises unnecessary boundaries through the marginal likelihood; and the conservative noise level keeps daily fluctuations from being modelled as new regimes. Without any one of them the segmentation changes: estimating the noise with the RBF kernel fragments the series; Martinez–Mena A, with the same prior but Markovian regimes, is as sparse but places its boundaries at short spikes rather than at the China sell-off and COVID-19; Martinez–Mena B, with independent observations, reacts to transient level changes; and BOCPD and HDP-SLDS produce diffuse, frequent boundaries.
TPGPMM is most useful for series that decompose into persistent regimes with non-Markovian within-regime dynamics, where transient shocks should be absorbed rather than flagged and each regime warrants a full functional description rather than only a mean or variance shift, as in regime analysis for risk management and policy evaluation; it is correspondingly less suited to rapidly switching or recurring states. With respect to limitations, we highlight three. First, inference is computationally demanding: each iteration factorises the covariances of the regimes it updates, at a cost cubic in their lengths, so specifications with fewer and longer regimes are slower. On one core, a 60,000-iteration chain on the VIX takes about 8 minutes for TPGPMM, 5 and 7 minutes for the RBF and regime-mean alternatives, and 50 minutes for the Matérn-3/2 alternative, which has the fewest and longest regimes. This is practical for series of several thousand observations, which suits macro-financial regime analysis on daily, monthly or quarterly data, whereas multivariate extensions and more complex kernels would raise the cost; we deliberately prioritised an accurate approximation of the posterior (Appendix I) over scaling to very long series. Second, although forecasts average over posterior draws, each draw forecasts from its own final regime, so the predictive mixture reverts towards the recent regime level and cannot anticipate a new regime; the forecasts are comparable to, rather than clearly better than, those of a well-tuned stationary GP, and a persistent component shared across regimes, such as a random-walk or long-range Ornstein–Uhlenbeck kernel, is the natural extension. Third, the composition prior is defined for a fixed series length, so online use would require a sequential construction.
References
Ryan Prescott Adams and David J. C. MacKay. Bayesian online changepoint detection. arXiv preprint arXiv:0710.3742, 2007.
Richard Arratia, A. D. Barbour, and Simon Tavaré. Logarithmic Combinatorial Structures: A Probabilistic Approach. EMS Monographs in Mathematics. European Mathematical Society, 2003. doi: 10.4171/000.
Daniel Barry and J. A. Hartigan. A Bayesian analysis for change point problems. Journal of the American Statistical Association, 88(421):309–319, 1993. doi: 10.1080/01621459.1993.10594323.
Mickaël Binois, Robert B. Gramacy, and Mike Ludkovski. Practical heteroscedastic Gaussian process modeling for large simulation experiments. Journal of Computational and Graphical Statistics, 27(4):808–821, 2018. doi: 10.1080/10618600.2018.1458625.
Siddhartha Chib. Estimation and comparison of multiple change-point models. Journal of Econometrics, 86(2):221–241, 1998. doi: 10.1016/S0304-4076(97)00115-2.
Andreas Damianou and Neil D. Lawrence. Deep Gaussian processes. In Proceedings of the Sixteenth International Conference on Artificial Intelligence and Statistics, volume 31 of Proceedings of Machine Learning Research, pages 207–215, 2013.
Pierpaolo De Blasi, Stefano Favaro, Antonio Lijoi, Ramsés H. Mena, Igor Prünster, and Matteo Ruggiero. Are Gibbs-type priors the most natural generalization of the Dirichlet process? IEEE Transactions on Pattern Analysis and Machine Intelligence, 37(2):212–229, 2015. doi: 10.1109/TPAMI.2013.217.
David B. Dunson and Ju-Hyun Park. Kernel stick-breaking processes. Biometrika, 95(2):307–323, 2008. doi:10.1093/biomet/asn012.
Michael D. Escobar and Mike West. Bayesian density estimation and inference using mixtures. Journal of the American Statistical Association, 90(430):577–588, 1995. doi: 10.1080/01621459.1995.10476550.
Paul Fearnhead. Exact and efficient Bayesian inference for multiple changepoint problems. Statistics and Computing, 16(2):203–213, 2006. doi: 10.1007/s11222-006-8450-8.
Thomas S. Ferguson. A Bayesian analysis of some nonparametric problems. The Annals of Statistics, 1(2): 209–230, 1973. doi: 10.1214/aos/1176342360.
Emily B. Fox, Erik B. Sudderth, Michael I. Jordan, and Alan S. Willsky. Bayesian nonparametric inference of switching dynamic linear models. IEEE Transactions on Signal Processing, 59(4):1569–1585, 2011. doi:10.1109/TSP.2010.2102756.
Roman Garnett, Michael A. Osborne, Steven Reece, Alex Rogers, and Stephen J. Roberts. Sequential Bayesian prediction in the presence of changepoints and faults. The Computer Journal, 53(9):1430–1446, 2010. doi: 10.1093/comjnl/bxq003.
Theo Gasser, Lothar Sroka, and Christine Jennen-Steinmetz. Residual variance and residual pattern in nonlinear regression. Biometrika, 73(3):625–633, 1986. doi: 10.1093/biomet/73.3.625.
Alexander Gnedin and Jim Pitman. Exchangeable Gibbs partitions and Stirling triangles. Journal of Mathematical Sciences, 138(3):5674–5685, 2006. doi: 10.1007/s10958-006-0335-z.
Tilmann Gneiting and Adrian E. Raftery. Strictly proper scoring rules, prediction, and estimation. Journal of the American Statistical Association, 102(477):359–378, 2007. doi: 10.1198/016214506000001437.
Dilan Görür and Carl Edward Rasmussen. Dirichlet process Gaussian mixture models: Choice of the base distribution. Journal of Computer Science and Technology, 25(4):653–664, 2010. doi: 10.1007/s11390-010-9355-8.
Robert B. Gramacy and Daniel W. Apley. Local Gaussian process approximation for large computer experiments. Journal of Computational and Graphical Statistics, 24(2):561–578, 2015. doi: 10.1080/10618600.2014.914442.
Robert B. Gramacy and Herbert K. H. Lee. Bayesian treed Gaussian process models with an application to computer modeling. Journal of the American Statistical Association, 103(483):1119–1130, 2008. doi:10.1198/016214508000000689.
Peter J. Green. Reversible jump Markov chain Monte Carlo computation and Bayesian model determination. Biometrika, 82(4):711–732, 1995. doi: 10.1093/biomet/82.4.711.
Jim E. Griffin and Mark F. J. Steel. Order-based dependent Dirichlet processes. Journal of the American Statistical Association, 101(473):179–194, 2006. doi: 10.1198/016214505000000727.
James D. Hamilton. A new approach to the economic analysis of nonstationary time series and the business cycle. Econometrica, 57(2):357–384, 1989. doi: 10.2307/1912559.
Markus Heinonen, Henrik Mannerström, Juho Rousu, Samuel Kaski, and Harri Lähdesmäki. Non-stationary Gaussian process regression with Hamiltonian Monte Carlo. In Proceedings of the 19th International Conference on Artificial Intelligence and Statistics, volume 51 of Proceedings of Machine Learning Research, pages 732–740, 2016.
David Higdon, Jenise Swall, and John Kern. Non-stationary spatial modeling. In J. M. Bernardo, J. O. Berger, A. P. Dawid, and A. F. M. Smith, editors, Bayesian Statistics 6, pages 761–768. Oxford University Press, 1999. doi: 10.1093/oso/9780198504856.003.0036.
Sonia Jain and Radford M. Neal. A split-merge Markov chain Monte Carlo procedure for the Dirichlet process mixture model. Journal of Computational and Graphical Statistics, 13(1):158–182, 2004. doi:10.1198/1061860043001.
Matthias Katzfuss. Bayesian nonstationary spatial modeling for very large datasets. Environmetrics, 24(3):189–200, 2013. doi: 10.1002/env.2200.
Hyoung-Moon Kim, Bani K. Mallick, and Chris C. Holmes. Analyzing nonstationary spatial data using piecewise Gaussian processes. Journal of the American Statistical Association, 100(470):653–668, 2005. doi:10.1198/016214504000002014.
Stanley I. M. Ko, Terence T. L. Chong, and Pulak Ghosh. Dirichlet process hidden Markov multiple change-point model. Bayesian Analysis, 10(2):275–296, 2015. doi: 10.1214/14-BA910.
Steven N. MacEachern. Dependent Dirichlet processes. Bayesian Analysis, pages 1–46, 2026. doi: 10.1214/26-BA1610. Advance publication.
Asael Fabian Martínez and Ramsés H. Mena. On a nonparametric change point detection model in Markovian regimes. Bayesian Analysis, 9(4):823–858, 2014. doi: 10.1214/14-BA878.
Geoffrey McLachlan and David Peel. Finite Mixture Models. Wiley, New York, 2000. doi: 10.1002/0471721182.
Radford M. Neal. Markov chain sampling methods for Dirichlet process mixture models. Journal of Computational and Graphical Statistics, 9(2):249–265, 2000. doi: 10.1080/10618600.2000.10474879.
Christopher J. Paciorek and Mark J. Schervish. Nonstationary covariance functions for Gaussian process regression. In S. Thrun, L. K. Saul, and B. Schölkopf, editors, Advances in Neural Information Processing Systems 16, pages 273–280. MIT Press, 2003.
Jim Pitman. Combinatorial Stochastic Processes, volume 1875 of Lecture Notes in Mathematics. Springer, Berlin, 2006. doi: 10.1007/b11601500.
Jim Pitman and Marc Yor. The two-parameter Poisson–Dirichlet distribution derived from a stable subordinator. The Annals of Probability, 25(2):855–900, 1997. doi: 10.1214/aop/1024404422.
Fernando A. Quintana and Pilar L. Iglesias. Bayesian clustering and product partition models. Journal of the Royal Statistical Society Series B: Statistical Methodology, 65(2):557–574, 2003. doi: 10.1111/1467-9868.00402.
Lawrence R. Rabiner. A tutorial on hidden Markov models and selected applications in speech recognition. Proceedings of the IEEE, 77(2):257–286, 1989. doi: 10.1109/5.18626.
Carl Edward Rasmussen. The infinite Gaussian mixture model. In Sara A. Solla, Todd K. Leen, and Klaus-Robert Müller, editors, Advances in Neural Information Processing Systems 12, pages 554–560. MIT Press, 1999.
Carl Edward Rasmussen and Zoubin Ghahramani. Infinite mixtures of Gaussian process experts. In Advances in Neural Information Processing Systems 14, pages 881–888. MIT Press, 2001.
John Rice. Bandwidth choice for nonparametric regression. The Annals of Statistics, 12(4):1215–1230, 1984. doi: 10.1214/aos/1176346788.
Sylvia Richardson and Peter J. Green. On Bayesian analysis of mixtures with an unknown number of components (with discussion). Journal of the Royal Statistical Society Series B: Statistical Methodology, 59(4):731–792, 1997. doi: 10.1111/1467-9868.00095.
Yunus Saatçi, Ryan D. Turner, and Carl Edward Rasmussen. Gaussian process change point models. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), pages 927–934, 2010.
Paul D. Sampson and Peter Guttorp. Nonparametric estimation of nonstationary spatial covariance structure. Journal of the American Statistical Association, 87(417):108–119, 1992. doi: 10.1080/01621459.1992.10475181.
Annie Sauer, Robert B. Gramacy, and David Higdon. Active learning for deep Gaussian process surrogates. Technometrics, 65(1):4–18, 2023. doi: 10.1080/00401706.2021.2008505.
Alexandra M. Schmidt and Anthony O'Hagan. Bayesian inference for non-stationary spatial covariance structure via spatial deformations. Journal of the Royal Statistical Society Series B: Statistical Methodology, 65(3):743–758, 2003. doi: 10.1111/1467-9868.00413.
Michael L. Stein. Interpolation of Spatial Data: Some Theory for Kriging. Springer Series in Statistics. Springer, New York, 1999. doi: 10.1007/978-1-4612-1494-6.
Volker Tresp. Mixtures of Gaussian processes. In Advances in Neural Information Processing Systems 13, pages 654–660. MIT Press, 2000.
Ryan Darby Turner. Gaussian Processes for State Space Models and Change Point Detection. PhD thesis, Department of Engineering, University of Cambridge, 2011.
Aki Vehtari, Andrew Gelman, Daniel Simpson, Bob Carpenter, and Paul-Christian Bürkner. Rank-normalization, folding, and localization: An improved for assessing convergence of MCMC. Bayesian Analysis, 16(2):667–718, 2021.
Giacomo Zanella. Informed proposals for local MCMC in discrete spaces. Journal of the American Statistical Association, 115(530):852–865, 2020. doi: 10.1080/01621459.2019.1585255.
A Derivation of the Pitman–Yor prior on ordered segmentations
A Gibbs-type prior is characterised by an EPPF of the form
where is a discount parameter, denotes the rising factorial , and the nonnegative weights satisfy the backward recursion
Different choices of recover familiar Bayesian nonparametric priors. In particular: Dirichlet process. For , Pitman–Yor process. For ,
which implies logarithmic growth of K.
which implies polynomial growth of K.
For , Gibbs-type priors are nonparametric and provide explicit control over the growth of the number of blocks through the discount parameter .
We derive the prior in (4) from the EPPF of the Pitman–Yor process. Let denote an exchangeable random partition of with blocks, and suppose that the block sizes are , where and . For an exchangeable partition with EPPF , the probability of any particular unordered partition of with these block sizes is
where the EPPF is symmetric in its arguments.
To induce a distribution on ordered compositions, we use the exchangeable random order construction of Pitman [2006]. Conditional on the unordered partition and on K, the K blocks are placed in a uniformly random order. Hence each ordered arrangement of the K blocks has conditional probability .
Now fix an ordered composition
The number of ordered assignments of the labels to blocks of sizes is the multinomial coefficient
Each ordered assignment corresponds to an unordered exchangeable partition together with a particular ordering of its K blocks. Therefore, summing over all ordered label assignments with block-size sequence gives
This is precisely the induced probability mass function on compositions under the exchangeable random order construction.
For the Pitman–Yor process with discount parameter and strength parameter , the EPPF is
with the convention that the empty product equals one when K = 1. Substituting this EPPF into the composition probability above yields
This is the expression in (4). Summing it over the compositions with blocks recovers the Pitman–Yor law of ; we checked this against the Chinese-restaurant recursion to machine precision.
Finally, in the segmentation model, an ordered composition determines a unique contiguous segmentation of by assigning the first block to observations , the second block to observations , and so on. Thus the probability mass assigned to the ordered composition is inherited directly by the corresponding contiguous segmentation. The resulting prior preserves the Pitman–Yor distribution on the number and sizes of blocks while restricting the support to temporally ordered contiguous regimes.
Two properties. Writing , the prior factorises as
The middle factor depends on only, so the prior is of Gibbs type but not a product partition model. The family is also not projective in : removing the last observation from a draw at size does not give the prior at size , because in a uniformly random order the last block is a uniformly chosen block, whereas the block containing a fixed element of an exchangeable partition is size-biased. For the total-variation distance between the two laws is 0.06–0.10. The model is therefore defined for a fixed series length, which is why an online version needs a different construction (Section 9).
Truncation constant. The normalising constant of the truncated prior (5) is
The sums , are computed by repeated convolution of the sequence with rescaling, on a grid of values, and interpolated linearly in ; the product is evaluated as . The table takes about ten seconds for and matches brute-force enumeration exactly for and 18. For and , when , so omitting it has a large effect on .
B Specifications of the within-regime model
The four specifications share the partition prior (5), the minimum regime length, the priors on and the prior . They differ in the kernel, in whether each regime has its own mean, and in whether the observation noise is fixed or estimated (Table 9).
Table 9: Within-regime specifications. The amplitude prior is except for the regime-mean alternative, for which it is .
| Specification | Kernel | Regime mean | Noise level |
|---|---|---|---|
| TPGPMM | RBF | no | fixed at 0.1 |
| TPGPMM ( estimated) | RBF | no | estimated |
| TPGPMM (Matérn-3/2, estimated) | Matérn-3/2 | no | estimated |
| TPGPMM (Matérn-3/2, regime mean, estimated) | Matérn-3/2 | yes | estimated |
Estimated observation noise. The noise level is shared across regimes, as in (7), with prior
centred on the value fixed in the main specification. Because enters every block covariance, each update of recomputes all block likelihoods (Appendices C.3 and D).
Matérn-3/2 kernel. The RBF kernel (8) is replaced by
with the same block hyperparameters and priors [Stein, 1999]. Its sample paths are continuous and once mean-square differentiable, whereas those of the RBF kernel are infinitely differentiable, so it can follow rougher within-regime variation. The kernel is stationary, so the block covariances remain symmetric Toeplitz and the sampler of Section 5.1 applies unchanged.
Regime mean. The regime-mean alternative writes the latent function of block k as a constant level plus a zero-mean GP with the Matérn-3/2 kernel (17),
with independent across regimes and of . Integrating out together with replaces the block marginal likelihood (9) by
Adding the constant to every entry keeps the covariance symmetric Toeplitz, so the sampler is again unchanged. We set and , the sample mean and variance of the series, and centre the amplitude prior on the sample variance, . The predictive distributions of Section 8.1 apply with replaced by , every kernel value increased by , and added to the predictive mean.
C MCMC implementation details
This appendix gives the full specification of the four update blocks summarised in Section 5.1. We write and , and for the normal prior densities of , including their normalising constants. The normalising constants matter because a split or a merge changes the number of hyperparameters. A derivation of every ratio is given in the accompanying note on the sampler equations.
C.1 Block A: structural updates of
We enforce a minimum block length . The structural move at each iteration is a split, which inserts a new internal boundary inside an existing splittable block, or a merge, which removes an internal boundary, fusing two adjacent blocks. If a split is proposed; otherwise a split is proposed with probability and a merge otherwise. We write for the probability of proposing a split when there are blocks and for the number of splittable blocks (those with ). Each structural move is followed by exact Gibbs draws of two regime boundaries.
Split . Choose uniformly from the splittable blocks and draw the length of the left child, , from
where
is the conditional distribution of the split point given the parent's hyperparameters [Zanella, 2020]; the uniform component keeps every split point reachable. All the prefix and suffix likelihoods come from one Cholesky factorisation of the parent's covariance (Section 5.1). The children's hyperparameters are
with , and . This map is invertible, with inverse and (and likewise for ), and its Jacobian on the log scale is one. The split is accepted with probability , where
The first two factors are the ratio of the partition priors (5), in which cancels. Equivalently, in terms of densities on the ratio carries the Jacobian .
Merge . Choose an internal boundary uniformly at random and merge the two adjacent blocks. The merged block receives the size-weighted geometric mean of the two children's hyperparameters, and , and . The merge is accepted with probability , with evaluated at the split that would recreate the current state from the merged one, including and of the merged composition. Because depends only on the pre-split state, which the merge recovers exactly, the ratio is valid for any choice of .
Boundary Gibbs draws. For two internal boundaries chosen at random, the boundary between blocks i and , with combined length starting at position a, is drawn from its full conditional
with the hyperparameters of both blocks held fixed. Unlike a uniform boundary shuffle, this move never proposes an implausible position, and it is cheap: the prefix likelihoods of block i and the suffix likelihoods of block each need a single Cholesky factorisation, so every candidate position is evaluated at the cost of one Metropolis proposal.
C.2 Block B: kernel hyperparameter update
Conditional on the current composition, we select three blocks at random and update and then of each by a random-walk Metropolis step,
accepted with probability
and likewise for . Written with densities on the ratio carries the Jacobian factor . The scale is adapted towards a 35% acceptance rate during burn-in and fixed afterwards, so the retained chain is a valid Markov chain. The dominant cost is the Cholesky factorisation required by .
C.3 Block C: Pitman–Yor and noise updates
The discount is updated by a random-walk Metropolis step on the logit scale (proposal SD 0.35) and the strength on the log scale (proposal SD 0.4), ten times each per iteration. The acceptance ratios are
where and are the Jacobians of the logit and log transformations. They involve only the partition prior and the hyperpriors, so no Cholesky factorisations are needed, but they do involve the truncation constant of Appendix A.
When the noise is estimated, one random walk on per iteration (step adapted during burn-in) is accepted with the ratio of times the normal prior density of ; it recomputes every block likelihood.
C.4 Block D: bookkeeping
To prevent numerical drift in the per-block log-marginals, the full set of likelihoods is recomputed from scratch every 200 iterations. We discard the first half of each chain as burn-in and thin the retained chain every five iterations.
D Derivation of the sampler
This appendix derives each update of Appendix C from the detailed-balance condition and identifies, for each, the term whose omission changes the distribution the chain targets. For every such term we state the target that results without it; Table 10 summarises them, and Appendix H.1 reports the tests that confirm the sampler targets (11).
D.1 Target in log coordinates
We work with and , so the hyperparameter priors are normal densities and , including their normalising constants and . In these coordinates the posterior (11), with fixed, is
on the union over of spaces of dimension , with restricted to compositions with blocks of at least observations. Each update below leaves (19) invariant. The splits and merges connect every composition to the single-block one, so the chain is irreducible on the partitions, and the rejections make it aperiodic.
D.2 Split and merge
The reversible-jump condition. A split maps the state with to of dimension by drawing auxiliary variables and applying a deterministic map ; the merge applies and draws nothing. Detailed balance between the two moves holds when is a bijection, the dimensions match , and the split is accepted with probability [Green, 1995],
and the merge with probability , with A evaluated at the split that would undo it.
Dimension matching. A split replaces by , so it needs exactly two auxiliary variables. With and ,
Proposition 1. The map is a bijection of with inverse , , and its Jacobian determinant has absolute value one. The same holds for .
Proof. and , so the stated map is the inverse. The Jacobian matrix is , whose determinant is .
The merged block therefore receives the size-weighted geometric means
and the merge recovers u exactly. A construction that perturbs each child independently around the parent draws four variables for a move that adds two. Its split and merge are then not inverse maps, (20) has no valid Jacobian, and the chain does not target the posterior.
Natural scale. Written in , the hyperpriors are log-normal, , and the Jacobian of the split is . The two forms agree:
Prior ratio. From (4), a split increases by one, multiplies by , divides by through , and replaces by . The truncation constant is the same on both sides and cancels. The hyperparameter prior ratio is , which has one more density factor in and one in in the numerator. The normalising constants therefore do not cancel.
Proposition 2. If in the split-merge ratio are replaced by unnormalised Gaussian kernels, the chain targets (19) multiplied by .
Proof. Each split multiplies the ratio by and each merge divides it by the same factor, so the modified ratio is the correct ratio for a target that carries this factor once per block.
With and the factor is , a strong bias towards more regimes that does not show up in fixed-dimension moves, where the constants cancel.
Proposal ratio. The split chooses the move with probability , a splittable block with probability and the split point with probability ; the merge chooses the move with probability and one of the boundaries of uniformly. With and unit Jacobian, (20) gives the ratio of Appendix C.1.
The informed split proposal is valid. depends on the parent block's data, its hyperparameters and , all of which belong to the pre-split state. The merge reconstructs that state exactly (Proposition 1), so the probability of the reverse split can be evaluated at the merge. Detailed balance therefore holds for any that gives positive probability to every , which the uniform component guarantees. The choice of and of affects only efficiency: proposes split points where the data support them, and lets the children's hyperparameters differ substantially, whereas very small makes most splits indistinguishable from the parent.
D.3 Boundary moves
Holding , every other boundary and all hyperparameters fixed, the boundary between blocks and (combined length , starting after position ) can take the values . In (19), , , , , the hyperpriors and the likelihoods of all other blocks do not depend on . The full conditional is therefore
a discrete distribution with at most T atoms that can be sampled exactly, so the move is a Gibbs update with no rejection. A uniform shuffle targets the same conditional but proposes most positions where it is negligible, so for long blocks nearly all its proposals are rejected. The Gibbs draw costs about as much as one shuffle proposal because of the following property.
Proposition 3. Let be the covariance of a block with equally spaced inputs and a stationary kernel, and , with the reversal permutation. Then for every ,
and the same sum with gives the log-likelihood of the suffix .
Proof. The Cholesky factor of a leading principal sub-matrix is the leading block of , and the leading block of is the inverse of that block, so the first entries of are the whitened prefix. is symmetric Toeplitz, hence persymmetric (), so the reversed suffix has the covariance of a prefix of the same length.
One factorisation for block and one for block thus give the likelihood of every candidate position. The same property gives for the informed split from a single factorisation of the parent.
D.4 Kernel hyperparameters
The random walk proposes with , which is symmetric in . Metropolis–Hastings with the target density in gives the ratio . In terms of the log-normal density on , the same ratio is .
Proposition 4. If the random walk on is accepted with the natural-scale ratio
without the factor , the chain targets a prior on shifted from to , and likewise for .
Proof. That ratio is the correct one for the density in , and .
With our priors the shifts are -0.36 for and -0.64 for : shorter length-scales and smaller amplitudes than the prior states.
The step depends on the block length, which this update does not change, so the proposal remains symmetric given . The scale is adapted towards a 35% acceptance rate only during burn-in. After burn-in the transition kernel is fixed, so the retained draws come from a time-homogeneous Markov chain with stationary distribution (19), and no conditions on vanishing adaptation are needed.
D.5 Pitman–Yor parameters and the truncation constant
Given , the conditional of is proportional to . The random walks act on and , whose densities carry the Jacobians and . This gives the ratios of Appendix C.3. Unlike in the split and merge, depends on the parameters being updated and does not cancel.
Proposition 5. A sampler that omits from the updates of targets the posterior under the hyperprior , normalised.
Proof. Omitting multiplies the conditional density of by . This is the same as replacing by in (19), and no other update depends on it.
is the prior probability that every block has at least observations. It falls quickly as grows, because larger produces more and smaller blocks. For the block counts of each size are asymptotically independent Poisson variables with means [Arratia et al., 2003], so for . Under our Beta(1,1) Gamma(5,0.5) hyperprior, the tilted prior has mean and mean for both and , instead of 0.5 and 10. It pulls both parameters towards the Dirichlet-process limit regardless of the data. In the simulation study, omitting lowers the average posterior mean of from 0.121 and 0.526 (Section 7.1) to about 0.03 and 0.06, so the adaptation of to the segment sizes is largely masked. Appendix A gives the exact computation of .
D.6 Observation noise
When is estimated, the prior is normal on and the random walk is symmetric on that scale. The acceptance ratio is therefore the ratio of times the ratio of the normal prior densities, with no Jacobian. Since enters every block covariance, every block likelihood is recomputed.
D.7 Summary
Table 10: Terms each update of the sampler must include, the distribution targeted without them, and how the sampler was checked. The last two rows concern efficiency, not correctness.
| Term | Without it | Check |
|---|---|---|
| Dimension-matched split with exact inverse merge (Prop. 1)Normalising constants of the hyperpriors (Prop. 2)Log-scale Jacobian of the random walk (Prop. 4)Truncation constant in the updates (Prop. 5)Adaptation during burn-in only | Split and merge are not inverse maps; the reversible-jump ratio is undefinedTarget multiplied by Prior of and shifted by ()Hyperprior tilted to mean , Retained chain is not a fixed Markov kernel | Prior-only runsPrior-only law of Prior-only marginalsPrior-only KS tests; exact sampler— |
| Gibbs draw of the boundaries (Prop. 3)Informed split proposal and | Uniform shuffles, mostly rejectedUninformed or near-identical splits, mostly rejected | ESS (Appendix H)ESS (Appendix H) |
The prior-only runs of Appendix H.1 switch the likelihood off, so the chain must reproduce the prior exactly. A missing term in the first four rows shows up there as a distorted law of or of the hyperparameters; with all terms included, the total-variation distance from the exact law of is 0.014. With the likelihood on, the exact grid sampler of Appendix I, which uses no MCMC moves at all, agrees with the chains on the posterior of and on the boundary probabilities.
E Implementation details of benchmark methods
This appendix specifies the implementation used for each benchmark method in Sections 7 and 8. BOCPD, HDP-SLDS and laGP's in-sample fit are those of the original study of this model, and their results are reproduced from it. Martinez-Mena is refitted for this paper with the settings of Martínez and Mena [2014]. The standard-GP fits and forecasts were computed for this paper. Each method is applied to the same observation series y as TPGPMM unless otherwise stated.
E.1 BOCPD: Bayesian online change-point detection with a Normal-Inverse-Gamma conjugate underlying predictive model
The underlying predictive model of this baseline is a Normal–Inverse-Gamma conjugate model rather than a Gaussian process, so we refer to it as Bayesian online change-point detection [BOCPD; Adams and MacKay, 2007]. The pipeline follows the “Industry Portfolios” specification of Saatçi et al. [2010], with implementation details as in Turner [2011]:
Preprocessing (VIX only). Daily close-to-close returns are first standardised using the sample mean and standard deviation of the first observations, . Each standardised return is then Gaussianised by applying the probability-integral transform under a Student- distribution with degrees of freedom, followed by the inverse standard-normal cumulative distribution function (CDF): . This nonlinear warping maps the heavy-tailed marginal of financial returns into approximate standard normality, ensuring that the Gaussian assumptions of the conjugate model are satisfied. For the simulation study, the synthetic series is already Gaussian by construction and is fed to the model unchanged; no preprocessing is applied.
Within-segment model. Within each run, the (Gaussianised) observations are modelled as , with a Normal-Inverse-Gamma conjugate prior and . We fix , , , throughout. Marginalising both and , the one-step-ahead predictive distribution is Student-t with degrees of freedom , location , and scale , where the posterior parameters update analytically from the within-run sufficient statistics.
Run-length recursion. We use the standard forward recursion of Adams and MacKay [2007] with a constant hazard and , corresponding to a geometric prior on inter-changepoint intervals with an expected gap of one trading year. The run-length posterior is truncated at , and hypotheses with probability below are pruned at each step.
Change-point detection. We declare a change-point at time when the recent-changepoint score exceeds a threshold of 0.5, with a cooldown of 5 trading days suppressing duplicate detections within the same event. A short warmup of steps is applied so the cumulative score is well-defined.
E.2 Sticky HDP-SLDS
We implement the Markov-switching stochastic volatility (MSSV) variant of the sticky HDP-SLDS of Fox et al. [2011]. The latent log-volatility process follows
with mode-specific process-noise mean , shared dynamic coefficient , and a discrete mode sequence . The observation model is , where is approximated by a 10-component mixture-of-Gaussians fit to the density. The mode sequence follows a sticky hierarchical Dirichlet process hidden Markov model (HDP-HMM) prior with truncation level and concentration hyperpriors , , . The dynamic-parameter prior is , , .
Inference. A blocked Gibbs sampler alternates between (i) forward-filtering / backward-sampling of given and the parameters, (ii) sampling the mixture-component indicators of the measurement noise, (iii) sampling given and , (iv) block sampling via forward-backward over the truncated HDP transition distributions, and (v) resampling the HDP transition rows and the global stick-breaking weights . The simulation study uses Gibbs iterations with a burn-in of 500; the VIX application uses with a burn-in of 1,000. After burn-in, we accumulate the per-time change-point score and, when needed, the posterior-predictive moments and .
E.3 Martinez-Mena: Pitman-Yor-OU change-point detection
We replicate the change-point procedure of Martínez and Mena [2014]. The method shares the Pitman–Yor-induced prior on ordered contiguous compositions used by TPGPMM (Section 3), but combines it with a markedly different within-block model and is fit through a dedicated split–merge–shuffle MCMC sampler. We evaluate two specifications from the original paper.
Composition prior. The prior on the segmentation is the same Pitman–Yor-induced ordered-composition prior derived in Appendix A, with discount and strength .
Within-block likelihood. Conditional on the partition, observations within each block follow a discretely-observed Ornstein–Uhlenbeck process,
with regime-specific mean and precision , and a shared autocorrelation parameter . The within-block parameters are assigned the conjugate Normal–Gamma prior , , and integrated out analytically, yielding a closed-form per-block marginal likelihood given by Eq. 9 of Martínez and Mena [2014]. We use and throughout, as in the paper.
Inference. A split-merge-shuffle MCMC sampler iterates over (i) a structural move on (split, merge, or boundary shuffle, operating on the integrated within-block likelihood directly, with no within-block hyperparameters to perturb), (ii) random-walk Metropolis updates of the autocorrelation parameter on the logit scale when it is free, and (iii) random-walk updates of the Pitman–Yor strength on the log scale. The discount is held fixed across both specifications, following Martínez and Mena [2014].
Specifications. We evaluate the two specifications of the original paper's application [Martínez and Mena, 2014, Section 6], with its settings. Model A treats observations as Markovian within each block, with . Model B treats them as independent and identically distributed within each block ( held fixed). In both models the discount is fixed at and the strength has the shifted Gamma prior , that is, ; and ; and we run 20,000 iterations after a burn-in of 10,000, for the VIX and Treasury series and for each simulated dataset.
Preprocessing. For VIX, and the series is centred on its sample mean before fitting, so the Normal–Gamma prior with prior mean is well-calibrated. For the simulation study, the synthetic series is also centred on its sample mean; no further transform is applied.
Change-point detection. We declare a change-point at index when the marginal posterior probability that is an internal boundary, , exceeds the threshold 0.5, with the same 5-step cooldown used by BOCPD and HDP-SLDS.
In-sample predictive. For each retained draw, of every regime has the Normal–Gamma posterior given the regime’s data and the draw’s , and the predictive of is Student-t; the draws are mixed as for TPGPMM. For Model B ( ) the predictive of every in a regime is that of a new observation from the regime. Model A has no observation noise, so a predictive that conditions on would be degenerate; instead is predicted one step ahead from , with mean , and the first observation of a regime from the regime’s stationary distribution. With the two coincide.
E.4 Gaussian-process benchmarks
Standard GP. A single stationary GP on the whole training series, with RBF or Matérn-3/2 kernel and hyperparameters (length-scale, signal variance, noise) set by maximising the marginal likelihood (ML-II). It is used for the in-sample scores and for the forecasts. The in-sample predictive conditions on the whole training series; for forecasting it conditions on the last 150 observations and is centred on their mean.
laGP. The local approximate GP of Gramacy and Apley [2015] (R package laGP), with a local design for each prediction point that starts from its 10 nearest neighbours and is extended to 60 observations by the ALC-ray criterion, length-scale and nugget by maximum likelihood, and predictions at the training inputs.
TPGPMM forecasts. For each of 500 posterior draws, the forecast is the GP predictive of that draw's final regime, conditioning on at most the last 150 observations of the regime; specifications without a regime mean are centred on the mean of that window. The draws are averaged, and scores use the mean and variance of the resulting mixture.
F Definitions of evaluation metrics
This appendix defines the metrics used in Sections 7 and 8. Throughout, is the observed series, and a method's posterior predictive at index is summarised by its mean and variance .
F.1 Posterior-predictive metrics
Root mean squared error (RMSE).
Same units as y. Sensitive only to the predictive mean, not the spread.
Negative log predictive density (NLPD). Under a Gaussian predictive ,
Lower is better. NLPD penalises both location error and miscalibration of the predictive variance.
Continuous ranked probability score (CRPS). We use the closed-form Gaussian-approximation CRPS [Gneiting and Raftery, 2007],
with , , and the standard-normal CDF and probability density function (PDF). The reported CRPS is the average . Lower is better. Like NLPD, CRPS is a strictly proper scoring rule that rewards both accurate point predictions and well-calibrated uncertainty, but unlike NLPD it remains finite under heavy-tailed errors. For TPGPMM, and are the mean and variance of the mixture (16).
Scale-normalised variants. Because TPGPMM, laGP, and HDP-SLDS operate on different targets, we report scale-normalised versions to make magnitudes comparable across rows of Tables 5 and 6. Let denote the empirical standard deviation of the target. Then
The bracketed term is the NLPD that a marginal-Gaussian baseline would obtain on its own data. Negative values of NLPD therefore indicate that the model improves on the trivial constant-Gaussian fit; RMSE/sd and CRPS/sd less than 1 indicate improvements over a constant-mean predictor. For the out-of-sample forecasts, is the standard deviation of the 2024 test window.
F.2 Change-point detection metrics
Let be the set of true internal change-points and the set of inferred change-points. We say that a true change-point is matched if there exists with , where the matching tolerance is set to 5 trading days throughout. Each true change-point is matched to at most one inferred change-point and vice versa, in a greedy nearest-neighbour fashion, yielding matched pairs.
Inferred regime count. , the pruned number of inferred regimes after applying any method-specific merge radius. For TPGPMM, is the set of change-points of the modal composition.
Precision, recall, .
Precision penalises spurious detections; recall penalises missed change-points. is their harmonic mean and is the standard one-number summary because precision and recall are in tension—a method can score perfect recall by predicting change-points everywhere, at the cost of precision.
Change-point mean absolute error.
The localisation error of the closest inferred change-point to each true change-point, averaged across true change-points. Reported in trading-day units. By convention CP_MAE = 0 when both sets are empty, and undefined (NaN) when but .
F.3 TPGPMM-specific summaries
For the simulation study we additionally summarise the marginal posteriors of the Pitman–Yor parameters from the TPGPMM chains. Given the retained samples ,
with the q-th empirical quantile of the chain. The reported posterior mean in the body text is seed-averaged: for a batch with replicate seeds, we report . The same convention applies to and when reported.
G Simulation-study configuration
This appendix gives the exact specification used to generate the synthetic scenarios in Section 7.1, sufficient to reproduce all reported TPGPMM numbers from the code release.
Data-generating process. For each block , the latent function is sampled from a zero-mean Gaussian process with squared-exponential kernel of length-scale and signal variance . The block-specific mean is added, and observations are drawn as with and . The inputs are integer indices . Continuity at boundaries is not enforced.
The data-generating process includes an explicit per-block mean in addition to the within-block kernel hyperparameters , while the fitted TPGPMM has only the kernel hyperparameters as block-specific parameters. This is deliberate: the simulation tests whether TPGPMM recovers regime structure when regimes differ in mean as well as in covariance, a setting strictly more general than the model's prior. The chain has no parametric mean to fit, so the mean shift is absorbed by the within-block GP posterior; recovery of the true partitions in Section 7.1 indicates this absorption is effective for the level scales and segment lengths considered. The data are generated with a squared-exponential kernel and , so TPGPMM uses the data-generating kernel family and noise level and differs from the data-generating process only in the block means. The Matérn-3/2 alternative with estimated noise is misspecified in the kernel and has to learn the noise, which makes it the more demanding test.
Per-block parameters. The two scenarios share identical per-block kernels and means; only the block lengths differ:
| Block | |||
| 1 | 25.0 | 0.85 | 0.0 |
| 2 | 8.0 | 0.70 | 1.8 |
| 3 | 6.0 | 0.75 | |
| 4 | 10.0 | 0.70 | 1.6 |
| 5 | 7.0 | 0.70 | |
| 6 | 12.0 | 0.65 | 1.7 |
| 7 | 9.0 | 0.75 | |
| 8 | 11.0 | 0.70 | 1.9 |
| 9 | 8.0 | 0.70 | |
| 10 | 7.0 | 0.70 | 1.7 |
Block lengths.
-
Homogeneous: , total .
-
Power-law: , total .
Replication and seeds. Each scenario is replicated times. For replication , the data-generating seed is and the MCMC seed is , for both scenarios. Each replication is fitted with one chain of 15,000 iterations, the first half discarded. Martinez-Mena A and B are fitted on the same datasets, with the same seeds. The BOCPD and HDP-SLDS results in Table 1 are taken from the original study, which used the same design with data seeds 1000–1049; for those two baselines the comparison is therefore between draws from the same data-generating process, not on identical datasets.
Evaluation. Change-point matches are declared within trading days. Adjacent inferred change-points within a merge radius of 4 days are collapsed before computing precision, recall, , and CP_MAE.
H Sampler diagnostics
To assess sampler mixing over the partition space, we report acceptance rates for the split and merge moves, the fraction of boundary Gibbs draws that move a boundary, effective sample sizes for the global quantities , , and , and the rank-normalised split- across four chains started from very different partitions. Detailed numbers are collected in Table 11; the traces of the global quantities for the VIX chains are shown in Figure 7.
Table 11: Sampler diagnostics. Four chains per series started at ; acceptance rates are averaged over chains; ESS is the rank-normalised bulk effective sample size pooled over chains and the rank-normalised split- [Vehtari et al., 2021], reported as the maximum over ; statistics on the second half of each chain.
| Series | Specification | acc_split | acc_merge | moved_Gibbs | ESS | ESS | ESS | (max) | min/chain |
|---|---|---|---|---|---|---|---|---|---|
| VIX | TPGPMM | 0.055 | 0.055 | 0.439 | 143 | 7336 | 3013 | 1.031 | 8.3 |
| VIX | TPGPMM ( estimated) | 0.065 | 0.064 | 0.381 | 12 | 14083 | 51 | 1.266 | 5.3 |
| VIX | TPGPMM (Matérn-3/2, estimated) | 0.061 | 0.061 | 0.354 | 544 | 3452 | 10183 | 1.006 | 50.0 |
| VIX | TPGPMM (Matérn-3/2, regime mean, estimated) | 0.147 | 0.145 | 0.452 | 88 | 8470 | 280 | 1.047 | 6.5 |
| Treasury | TPGPMM | 0.126 | 0.127 | 0.780 | 387 | 1762 | 4441 | 1.011 | 13.8 |
| Treasury | TPGPMM ( estimated) | 0.095 | 0.091 | 0.539 | 26 | 4604 | 158 | 1.139 | 2.0 |
| Treasury | TPGPMM (Matérn-3/2, estimated) | 0.115 | 0.115 | 0.667 | 147 | 1655 | 4148 | 1.023 | 18.1 |
| Treasury | TPGPMM (Matérn-3/2, regime mean, estimated) | 0.062 | 0.062 | 0.597 | 96 | 2952 | 1417 | 1.031 | 6.7 |
For TPGPMM the four chains agree: the largest over is 1.031 on VIX and 1.011 on the Treasury yield, and the effective sample size of is 143 and 387. The same holds for the Matérn-3/2 and regime-mean alternatives. The RBF model with estimated noise is the exception ( on VIX and 1.14 on the Treasury yield, with on VIX): its chains settle at different combinations of the noise level and the

Figure 7: Post-burn-in traces of the global quantities , and the log-posterior) for the four VIX chains of TPGPMM, started from equal blocks (first half of the 60,000 iterations discarded as burn-in). The four chains overlap in every panel.
number of regimes. This is the weak separability of within-regime amplitude and noise that motivates fixing (Section 4).
For comparison, a basic split-merge sampler for TPGPMM, with uniform split points, a uniform boundary shuffle and hyperparameter perturbations of scale 0.05 at a split, gives and split- for a 20,000-iteration VIX chain. Three features account for the difference: the exact Gibbs draws of the boundaries, the informed split proposal, and the dimension-matched split with auxiliary variables of scale .
H.1 Verification of the sampler
Prior-only runs. With the likelihood switched off (n = 20, noise estimated), four chains of 60,000 iterations reproduce the prior: the total-variation distance between the sampled and the exact law of K is 0.014, and the Kolmogorov–Smirnov distances of and from their priors are 0.019 and 0.002. A sampler that omits gives mean and mean in the same setting, against the prior means 10 and 0.5. Block likelihoods from the Toeplitz prefix computation match a direct multivariate normal density to relative error for all kernels, with and without the regime mean.
Exact sampler. With the likelihood switched on, Appendix I compares the chains with an exact sampler that needs no MCMC moves. The two agree on the posterior of the number of regimes, the boundary probabilities and the Pitman–Yor parameters.
I Validation against an exact sampler
For TPGPMM's main specification, with an RBF kernel and fixed noise, the posterior of the partition can be computed without MCMC once the kernel hyperparameters are restricted to a grid. Its draws are independent, so it has no convergence issue, and its only approximation is the grid. It therefore provides a reference against which to check that the chains of Appendix C converge to the right distribution.
Discretised hyperprior. We replace the log-normal priors on by a discrete prior on a regular grid of , covering and , with weights . Because the block hyperparameters are independent across blocks, they can be summed out block by block. Each block then contributes the collapsed likelihood
and the posterior of is
As the grid is refined, this converges to the posterior of the continuous model (19).
All block likelihoods at once. Every block covariance at grid point is a leading sub-matrix of the same Toeplitz matrix . Let be its Cholesky factor and the Hankel matrix whose column holds . By Proposition 3, the cumulative sums down each column of the matrix with entries
are the log-likelihoods of all blocks . One factorisation and one triangular solve per grid point therefore give the whole matrix S.
Forward recursion and backward sampling. The prior is a product of block terms times a function of K (Appendix A), so the recursion carries the number of blocks:
and
We place on a grid of 24 values of and 120 log-spaced values of , weighted by their priors. Each independent draw takes three steps [Fearnhead, 2006]:
-
draw from its posterior on the grid;
-
draw K with probability proportional to ;
-
draw the boundaries backwards. The last block starts at s with probability
and the earlier boundaries follow in the same way.
We use 4,000 draws and three grids, with G = 210, 783 and 1,760 points. On 12 cores the block likelihoods take 7–51 seconds and a complete run two to three minutes.
Results. Table 12 and Figure 8 compare the exact posterior with TPGPMM's four chains.
• Number of regimes. On VIX, the exact posterior mean of K is 13.48 on the 783-point grid and 13.69 on the finest grid, against 13.44 for the chains, whose Monte Carlo standard error is 0.15. The total-variation distance between the posteriors of K from the finest grid and from the chains is 0.049. On the Treasury yield the two means are 6.95 and 7.00 (standard error 0.07), with a total-variation distance of 0.024.
-
Boundary locations. The probabilities of a boundary within trading days of each date agree closely along both series: the mean absolute difference is 0.007 on VIX and 0.002 on the Treasury yield, and the largest is 0.14 and 0.04.
-
Pitman–Yor parameters. The posterior means of and are 0.082 and 3.58 (exact) against 0.090 and 3.56 (chains) on VIX, and 0.367 and 5.16 against 0.375 and 5.26 on the Treasury yield.
-
Effect of the grid. The coarsest grid, with 210 points, overstates the number of regimes on VIX (14.43). The two finer grids differ from each other by about as much as they differ from the chains, so the remaining gap is of the order of the discretisation error. On the Treasury yield all three grids agree with the chains.
The chains therefore converge to the exact posterior, up to Monte Carlo error and the discretisation of the hyperprior. The check is limited to the main specification. With estimated noise, would add a third grid dimension, and the cost of the block-likelihood matrix grows linearly with the grid size.
Table 12: TPGPMM's chains against the exact grid sampler, which includes the truncation constant. is the total-variation distance between the two posteriors of , and the largest difference between the probabilities of a boundary within trading days of each date. Exact results use 4,000 independent draws.
| Series | Method | (95% interval) | ||||
|---|---|---|---|---|---|---|
| VIX | Exact, 210-point grid | 14.43 [11, 18] | 0.072 | 3.67 | 0.227 | 0.24 |
| VIX | Exact, 783-point grid | 13.48 [10, 18] | 0.083 | 3.51 | 0.029 | 0.15 |
| VIX | Exact, 1,760-point grid | 13.69 [11, 18] | 0.082 | 3.58 | 0.049 | 0.14 |
| VIX | TPGPMM chains (MCMC) | 13.44 [11, 17] | 0.090 | 3.56 | — | — |
| Treasury | Exact, 210-point grid | 7.04 [5, 10] | 0.359 | 5.01 | 0.045 | 0.09 |
| Treasury | Exact, 783-point grid | 6.97 [5, 10] | 0.367 | 5.17 | 0.030 | 0.03 |
| Treasury | Exact, 1,760-point grid | 6.95 [5, 10] | 0.367 | 5.16 | 0.024 | 0.04 |
| Treasury | TPGPMM chains (MCMC) | 7.00 [5, 10] | 0.375 | 5.26 | — | — |

Figure 8: Exact grid sampler against TPGPMM's chains, for VIX (left) and the 10-year Treasury yield (right). Top: posterior of the number of regimes K. Bottom: posterior probability of a boundary within trading days of each date. The exact results use the finest grid and 4,000 independent draws.