Change-Point Analysis

bayesianmcmcchange-pointtime-seriesmodel-selectionnonparametric

Definition

Change-point analysis concerns inference about the number and locations of structural breaks in a sequence of observations, where the data-generating process shifts at unknown times. In a piecewise-constant rate model for a Poisson process on [0,L][0, L], there are kk change-points 0<s1<<sk<L0 < s_1 < \cdots < s_k < L partitioning the timeline into k+1k+1 segments with constant rates h0,h1,,hkh_0, h_1, \ldots, h_k respectively; both kk and the parameters {sj,hj}\{s_j, h_j\} are unknown. Bayesian change-point analysis places a prior over kk and estimates the joint posterior p(k,s1,,sk,h0,,hky)p(k, s_1,\ldots,s_k, h_0,\ldots,h_k \mid y) via reversible-jump Markov chain Monte Carlo (RJMCMC).

Key Ideas

How It Works

Green (1995) Poisson Process Model

For observations y1,,yny_1,\ldots,y_n from a Poisson process with piecewise-constant rate x(t)x(t) on [0,L][0,L], the log-likelihood is

ilogx(yi)0Lx(t)dt\sum_i \log x(y_i) - \int_0^L x(t)\,dt

Birth move (kk+1k \to k+1): propose new step position sUniform[0,L]s^* \sim \text{Uniform}[0,L]; ss^* falls in interval (sj,sj+1)(s_j, s_{j+1}) with probability 1. The current height hjh_j is split into hjh_j' and hj+1h_{j+1}' using uUniform[0,1]u \sim \text{Uniform}[0,1]:

hj+1hj=1uupreserving(ssj)loghj+(sj+1s)loghj+1=(sj+1sj)loghj\frac{h_{j+1}'}{h_j'} = \frac{1-u}{u} \quad \text{preserving} \quad (s^* - s_j)\log h_j' + (s_{j+1} - s^*)\log h_{j+1}' = (s_{j+1} - s_j)\log h_j

Acceptance probability: min{1,R}\min\{1, R\} where R=(likelihood ratio)×(prior ratio)×(proposal ratio)×JacobianR = (\text{likelihood ratio}) \times (\text{prior ratio}) \times (\text{proposal ratio}) \times \text{Jacobian}, and the Jacobian is (hj+hj+1)2/hj(h_j' + h_{j+1}')^2/h_j.

Death move (k+1kk+1 \to k): reverse of birth; select one step sj+1s_{j+1} at random; merge hjh_j and hj+1h_{j+1} via the weighted geometric mean satisfying the same log-height conservation equation.

Coal Mining Disaster Application (Green 1995)

Data: n=192n=192 coal mining disasters (serious accidents), 1851–1962, L=40,907L=40{,}907 days. Hyperparameters: λ=3\lambda=3, kmax=30k_{\max}=30, α=1\alpha=1, β=200\beta=200. Run: 40,000 iterations after 4,000 burn-in (45 seconds, Sun Sparc 2). Results: posterior mode k=3k=3 change-points; main change-point near day 14420 ≈ 25 June 1890 (95% credible interval (CI): 24 May 1887–7 May 1896), consistent with Raftery-Akman (1986) and Carlin-Gelfand-Smith (1992) analyses. The posterior mean rate function shows a high accident rate 1851–1890 dropping sharply and plateauing around 0.002–0.003 events/day thereafter.

Wang-Zivot (2000) Multiple Structural Changes in AR Models

Wang and Zivot (2000) extend the Green (1995) framework to AutoRegressive (AR) time series with breaks in intercept, trend, and/or variance. For model (3) with nn breaks in the intercept: ut=μ1I(1t<k1)+μ2I(k1t<k2)++μn+1I(knt<T)+ρut1+εtu_t = \mu_1 I_{(1\le t<k_1)} + \mu_2 I_{(k_1\le t<k_2)} + \cdots + \mu_{n+1}I_{(k_n\le t<T)} + \rho u_{t-1} + \varepsilon_t conditional on nn, the break locations kjk_j are given a uniform prior over all ordered subsequences. The conditional posterior of each kjk_j given its neighbours kj1k_{j-1} and kj+1k_{j+1} is multinomial, making Gibbs sampling straightforward. Wang and Zivot use the Bayesian Information Criterion (BIC) to select nn.

Product Partition Model (Barry-Hartigan 1993)

An alternative to reversible-jump that avoids trans-dimensional moves entirely. The timeline is partitioned into contiguous blocks of constant parameter value (block starts = change points), and the prior probability of a partition pp is proportional to a product of prior cohesions, P(p)blocks ijcijP(p)\propto\prod_{\text{blocks }ij}c_{ij}, with block parameters independent given the partition (Barry-Hartigan 1993). The decisive property is closure: multiplying this product-form prior by a product-form likelihood leaves the posterior a product partition model, with posterior cohesions cijfij(Xij)c_{ij}f_{ij}(X_{ij}) (prior cohesion × block marginal likelihood) and updated independent block posteriors. A common cohesion makes each position a change point with probability pp independently (equivalently a Markov parameter sequence that stays constant w.p. 1p1-p); for normal data the block mean has prior N(μ0,σ02/(ji))\mathcal N(\mu_0,\sigma_0^2/(j-i)), so short blocks are allowed larger deviations. Parameter estimates average over all partitions (a Bayesian model average, not a single chosen segmentation) and are computable exactly in O(n2)O(n^2) or by O(n)O(n)-per-sweep Gibbs sampling over the change-point indicators. Barry-Hartigan report it avoids the failure modes of Schwarz-BIC, Chernoff-Zacks, and Yao estimators and is superior for sharp, short-lived changes.

Metropolized Carlin-Chib (MCC) extension (Summers 2002): Summers (2002) treats nn itself as unknown by running independence reversible-jump MCMC. A flat prior is placed over n{0,,5}n \in \{0,\ldots,5\}; a proposed n1n_1 is drawn, parameters for the n1n_1-break model drawn from their full conditional posteriors (serving as proposal density), and the move accepted with probability equal to the standard Metropolis ratio. This is equivalent to Green's (1995) reversible-jump algorithm for the special case where the proposal is the full conditional — an "independence" variant that avoids specifying bijections between different-dimensional parameter spaces. Posterior probabilities of each nn are estimated as visit frequencies over 10,000 iterations.

Change-points as hidden-Markov durations (Chib 1998; Koop-Potter 2004)

For time-series change-point problems a different construction dominates. Chib (1998) attaches a latent regime-indicator Markov chain to the observations and converts "where are the breaks?" into "how long does each regime last?" — the change-points are the durations of the Markov regimes, sampled by Chib's (1996) forward-filter/backward-sample algorithm (valid even for non-time-homogeneous chains). Because within-regime exit probability is constant, this construction forces a Geometric duration distribution: a regime is most likely to end in its first period and monotonically less likely thereafter.

Koop and Potter (2004) relax this in two ways: (i) they let the number of change-points be unknown and unbounded, avoiding the awkward prior a fixed count imposes (fixing KK breaks forces a non-time-homogeneous chain at the sample end with undesirable prior properties); and (ii) they replace the Geometric duration with a Poisson duration inside a hierarchical prior, giving a non-monotone, more realistic regime-length distribution while keeping conditionally-conjugate updates. The resulting model approximately nests both the time-varying-parameter model (a break every period) and the small-fixed-KK change-point model, and — applied to US GDP and PCE inflation — finds more breaks than earlier work, behaving like a TVP-with-stochastic-volatility model with heterogeneous transition innovations. The distinction matters most for forecasting, where only a model admitting future breaks of history-dependent size yields honest predictive uncertainty.

The companion Koop-Potter (2006) adds a full hierarchical prior on both durations and regime parameters and shows how to do real-time forecasting with the model by writing it in state-space form and running a sequential importance sampler: as each new observation arrives the importance weights are updated recursively — wT+1p(yT+1zT+1)p(zT+1zT)/q()w_{T+1}\propto p(y_{T+1}\mid z_{T+1})p(z_{T+1}\mid z_T)/q(\cdot) — so predictive densities roll forward without re-running the MCMC (a Negative-Binomial regime-count tail supplies extra future-regime durations when the horizon needs them).

Why It Matters

Open Questions

Related