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.

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.

Why It Matters

Open Questions

Related