fastcpd:R 中的快速变点检测
fastcpd: Fast Change Point Detection in R
AI总结:
本文提出 R 包 fastcpd,基于 PELT 与序列梯度下降方法,为高斯序列、回归模型、ARMA/GARCH/VAR 及用户自定义模型等多种场景提供高效通用的变点检测框架。
摘要:
变点分析关注的是在按时间、空间或其他变量排序的观测序列中,检测并定位其底层模型的结构断裂。一种被广泛采用的变点分析方法是最小化一个目标函数,并在变点数量上加入惩罚项。该框架包含若干成熟的方法,例如使用(修正的)贝叶斯信息准则(BIC)或最小描述长度(MDL)的惩罚对数似然。由此产生的优化问题可以通过动态规划或其改进版本在多项式时间内求解,例如 Pruned Exact Linear Time (PELT) 算法(Killick, Fearnhead, and Eckley 2012)。然而,现有的计算方法通常存在两个主要局限:(1)基于直接实现动态规划或 PELT 的方法在长数据序列上往往耗时较长,因为需要对数据序列的不同片段反复计算代价值;(2)当前最先进的 R 包在用户处理不同变点设置和模型时灵活性不足。在本工作中,我们提出了 fastcpd 包,旨在为若干常见场景下的变点检测提供一个高效且通用的框架。我们算法的核心建立在 PELT 以及 Zhang 和 Dawn(2023)最近提出的序列梯度下降方法之上。我们通过若干示例说明 fastcpd 包的用法,包括(多元)高斯序列中的均值/方差变化、回归模型中的参数变化、ARMA/GARCH/VAR 模型中的结构断裂,以及用户自定义模型中的变化。
英文摘要:
Change point analysis is concerned with detecting and locating structure breaks in the underlying model of a sequence of observations ordered by time, space or other variables. A widely adopted approach for change point analysis is to minimize an objective function with a penalty term on the number of change points. This framework includes several well-established procedures, such as the penalized log-likelihood using the (modified) Bayesian information criterion (BIC) or the minimum description length (MDL). The resulting optimization problem can be solved in polynomial time by dynamic programming or its improved version, such as the Pruned Exact Linear Time (PELT) algorithm (Killick, Fearnhead, and Eckley 2012). However, existing computational methods often suffer from two primary limitations: (1) methods based on direct implementation of dynamic programming or PELT are often time-consuming for long data sequences due to repeated computation of the cost value over different segments of the data sequence; (2) state-of-the-art R packages do not provide enough flexibility for users to handle different change point settings and models. In this work, we present the fastcpd package, aiming to provide an efficient and versatile framework for change point detection in several commonly encountered settings. The core of our algorithm is built upon PELT and the sequential gradient descent method recently proposed by Zhang and Dawn (2023). We illustrate the usage of the fastcpd package through several examples, including mean/variance changes in a (multivariate) Gaussian sequence, parameter changes in regression models, structural breaks in ARMA/GARCH/VAR models, and changes in user-specified models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。