Bagel: A Fast Bayesian Online Changepoint Detection Algorithm for Linear Models via Posterior Merging
Ziyang Yang, Paul Fearnhead, Dan Grose
Abstract
Bayesian online changepoint detection provides a natural framework for quantifying uncertainty about whether and when a change has occurred. It also enables the use of prior information which can increase detection power. Exact Bayesian inference sequentially updates the posterior of whether and when a change has occurred. We present a unified approach to calculating and updating this posterior for a class of regression models covering standard changepoint scenarios, such as changes in mean and slope, whilst also allowing common structure such as seasonal effects. However, naive implementation has a computational cost that increases linearly over time. We, further, introduce approximate updates that keep this cost constant. These are based on novel ideas of merging changepoint times, and are an alternative to existing pruning approaches. We show that merging enables better approximations of the posterior of when a change occurs. Furthermore, we introduce a novel condition for merging that accounts for both the posterior probability of the changepoint times and the similarity of their corresponding post-change parameters. We show that this is more accurate than conditions that only consider the former. We demonstrate the advantage of our approach on simulated data, and the Azure LLM inference traces.
Create a lesson
Related papers
Covariate Adjustment for Time-Restricted Marginal Win Statistics in Randomized Trials: Assumption-Lean Inference and Guaranteed Efficiency Gain
Baoshan Zhang, Laine E. Thomas, Yuan Wu et al.
Inferential Issues in Model-based Small Area Estimation: Some History and Selective Recent Advances
J. N. K. Rao, J. Sunil Rao
Aggregate Calibration Can Mask Stress-State Undercoverage: Bounded-Memory Forecast Intervals under Recurrent Financial Stress
Ruihang Han, Li-Hsiang Lin
Deterministic Uniformization for Estimation and Latent Trajectory Inference in Interval-Censored Multistate Triansition Models
Yuxi Zhu
Terrain-Surface-Area Cover from LiDAR: Inverse-Probability-Weighted Estimation and a Global Cramér-von Mises Lack-of-Fit Test
Marco Mandap
A generalized lasso formulation of weighted and regularized (nearly-)isotonic regression on graphs
Vladimir Pastukhov