Skip to main content
QUICK REVIEW

[Paper Review] Bayesian Online Changepoint Detection

Ryan P. Adams, David Mackay|ArXiv.org|Oct 19, 2007
Bayesian Methods and Mixture ModelsComputer Science23 references601 citations
TL;DR

This paper introduces a Bayesian online changepoint detection algorithm that computes the exact posterior distribution over the current run length (time since the last changepoint) using a recursive message-passing framework. By modeling the interval between changepoints with a discrete exponential prior and leveraging predictive distributions for new observations, the method enables real-time, causal inference with modularity across data types, demonstrated on well-log, financial returns, and coal mining disaster data with accurate changepoint detection.

ABSTRACT

Changepoints are abrupt variations in the generative parameters of a data sequence. Online detection of changepoints is useful in modelling and prediction of time series in application areas such as finance, biometrics, and robotics. While frequentist methods have yielded online filtering and prediction techniques, most Bayesian papers have focused on the retrospective segmentation problem. Here we examine the case where the model parameters before and after the changepoint are independent and we derive an online algorithm for exact inference of the most recent changepoint. We compute the probability distribution of the length of the current ``run,'' or time since the last changepoint, using a simple message-passing algorithm. Our implementation is highly modular so that the algorithm may be applied to a variety of types of data. We illustrate this modularity by demonstrating the algorithm on three different real-world data sets.

Motivation & Objective

  • To develop a causal, online Bayesian inference method for changepoint detection that supports real-time prediction.
  • To enable exact computation of the posterior distribution over the current run length using recursive message passing.
  • To provide a modular framework where the changepoint algorithm can be decoupled from the likelihood model for various data types.
  • To demonstrate the method's effectiveness on diverse real-world time series with different generative models.
  • To bridge the gap between offline Bayesian segmentation and online filtering by providing a principled online predictive framework.

Proposed method

  • The algorithm uses a recursive message-passing scheme to compute the posterior over run length $ r_t $, the time since the last changepoint, based on observed data $ \boldsymbol{x}_{1:t} $.
  • It models the prior on run length transitions via a hazard function $ H(\tau) $, which defines the probability of a changepoint at time $ t $ given a run length $ r_{t-1} $.
  • The predictive distribution $ P(x_{t+1} \mid r_t, \boldsymbol{x}_t^{(r)}) $ is computed using a likelihood model (e.g., Gaussian, Poisson) conditioned on the current run's data.
  • The joint distribution $ P(r_t, \boldsymbol{x}_{1:t}) $ is updated recursively using the transition $ P(r_t \mid r_{t-1}) $ and the likelihood $ P(x_t \mid r_{t-1}, \boldsymbol{x}_t^{(r)}) $.
  • The method assumes i.i.d. parameters within each run and uses a discrete exponential prior $ P_{\sf{gap}}(g) $ for the interval between changepoints.
  • The framework is modular: the changepoint inference engine is decoupled from the likelihood model, enabling plug-in support for different data types.

Experimental results

Research questions

  • RQ1How can Bayesian changepoint detection be made causal and online, rather than retrospective?
  • RQ2Can exact posterior inference over the current run length be achieved efficiently in an online setting?
  • RQ3How can the algorithm be made modular to support diverse data models (e.g., Gaussian, Poisson) without re-implementation?
  • RQ4What is the performance of the method in detecting abrupt changes in real-world time series with varying statistical properties?
  • RQ5How does the choice of prior on changepoint intervals (e.g., geometric) affect detection sensitivity and accuracy?

Key findings

  • The algorithm successfully detects abrupt changes in the mean of well-log data, with run-length posterior drops aligning closely with visual changepoints.
  • On Dow Jones daily returns (1972–1975), the method identifies increased volatility around major economic events such as the OPEC oil embargo and Nixon's resignation, with posterior run-length probabilities dropping at relevant times.
  • For coal mining disaster data, the posterior run-length distribution indicates a significant change in accident rate after 1887, coinciding with the introduction of the Coal Mines Regulations Act.
  • The predictive variance increases immediately after detected changepoints, reflecting reduced confidence in future predictions due to data scarcity in the new run.
  • The method achieves exact inference via message passing without requiring Monte Carlo sampling, ensuring computational efficiency and numerical stability.
  • The modular design allows the same inference engine to be used with Gaussian, Gaussian with unknown variance, and Poisson likelihoods, demonstrating broad applicability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.