# 变点分析

变点分析是一种统计方法，用于检测时间序列或有序数据集中潜在分布或模型发生变化的点，并估计发生多少次这样的变化以及变化发生在哪里。完整的分析会输出变点数量、每个变点位置的估计（通常是扫描统计量的最大值点）、每个变化的幅度，以及一种不确定性度量，如置信区间或置信水平。<sup>[1](https://ar5iv.labs.arxiv.org/html/2210.07066)</sup><sup> • </sup><sup>[2](https://eecs.wsu.edu/~cook/pubs/kais16.2.pdf)</sup> 方法分为离线（回顾性）程序和在线（序贯）程序：前者考察完整数据集，后者与被监控的过程同时运行，并在数据到达时标记变化。<sup>[2](https://eecs.wsu.edu/~cook/pubs/kais16.2.pdf)</sup> 该领域从工业质量控制中发展而来，如今应用于气候科学、基因组学、金融和网络监控。

| 关键事实 | 详情 |
|---|---|
| 输出 | 变点数量、其位置（扫描统计量的最大值点）、变化幅度和置信度量<sup>[1](https://ar5iv.labs.arxiv.org/html/2210.07066)</sup> |
| 两种设定 | 对整个序列进行离线批处理分析；在线检测则需在虚警与检测延迟之间权衡<sup>[2](https://eecs.wsu.edu/~cook/pubs/kais16.2.pdf)</sup><sup> • </sup><sup>[3](http://temporalbook.apartsin.com/part-2-classical-forecasting/module-08-anomaly-changepoint/section-8.3.html)</sup> |
| 核心统计量 | 一种在线检测器是单侧 CUSUM 递推 \( S_{t} = \max(0,\, S_{t-1} + (x_{t} - \mu_{0}) - k) \)，它对来自 \( \mu_{0} \) 的上行偏移发出信号，并将松弛量 \( k \) 设为目标均值偏移的一半；离线单变点分析则使用标准化的前后对比，多变点分析使用分割或扫描方法<sup>[3](http://temporalbook.apartsin.com/part-2-classical-forecasting/module-08-anomaly-changepoint/section-8.3.html)</sup><sup> • </sup><sup>[1](https://ar5iv.labs.arxiv.org/html/2210.07066)</sup> |
| 起源 | E. S. 佩奇 1954 年发表于《生物计量学》的论文引入了累积和控制图，他 1955 年的论文处理了未知位置处的变点<sup>[4](https://ideas.repec.org/a/oup/biomet/v111y2024i2p367-391..html)</sup><sup> • </sup><sup>[5](https://doi.org/10.1093/biomet/41.1-2.100)</sup><sup> • </sup><sup>[6](https://doi.org/10.1093/biomet/42.3-4.523)</sup> |
| 精确多变点搜索 | 当变点数量随 \( n \) 线性增长时，PELT 以期望 \( O(n) \) 代价找到精确分割；最坏情况为 \( O(n^{2}) \)<sup>[7](https://wrap.warwick.ac.uk/id/eprint/135155/7/WRAP-Univariate-mean-change-point-Yu-2020.pdf)</sup><sup> • </sup><sup>[8](https://doi.org/10.1080/01621459.2012.737745)</sup> |
| 惩罚项决定答案 | 惩罚项太小会检测到噪声驱动的变化；惩罚项太大会只检测到最显著的变化，或什么都检测不到<sup>[9](https://ar5iv.labs.arxiv.org/html/1801.00718)</sup> |
| 检测延迟界 | 最优期望检测延迟的量级为 \( \log \gamma \) 除以变化前后分布之间的库尔贝克–莱布勒散度<sup>[10](https://arxiv.org/pdf/2210.05181)</sup> |

## 工作原理

标准模型是一个分段平稳的序列：在每个段内，数据抽自同一个分布，分析则定位各段的边界。对于方差已知的均值单变点，似然比检验统计量可以改写为 \( \mathrm{LR}_{\tau} = C_{\tau}^{2}/\sigma^{2} \)，其中 \( C_{\tau} \) 是 CUSUM 统计量。<sup>[1](https://ar5iv.labs.arxiv.org/html/2210.07066)</sup> CUSUM 简单地比较每个候选变点前后的样本均值，并重新缩放使统计量方差为 1；估计的变点是所有候选位置上的最大值点，变化幅度是变化后与变化前经验均值之差。<sup>[11](https://www.lancaster.ac.uk/~romano/teaching/2425MATH337/MATH337--Changepoint-Detection.pdf)</sup> 对于高斯均值偏移，广义对数似然比为 \( \log\Lambda = \max_{\tau} \, \frac{1}{2\sigma^{2}} \cdot \frac{\tau(n-\tau)}{n} \cdot (\bar{x}_{1:\tau} - \bar{x}_{\tau+1:n})^{2} \)，其中权重 \( \tau(n-\tau)/n \) 奖励均衡的分割。<sup>[3](http://temporalbook.apartsin.com/part-2-classical-forecasting/module-08-anomaly-changepoint/section-8.3.html)</sup>

在其序贯递推形式中，单侧 CUSUM 累积相对于受控均值 \( \mu_{0} \) 的偏差，并在和超过阈值时发出信号。<sup>[3](http://temporalbook.apartsin.com/part-2-classical-forecasting/module-08-anomaly-changepoint/section-8.3.html)</sup> 它对小偏移的敏感性来自使用了过程的全部历史，而早期的控制程序只使用固定且通常很少的近期观测；休哈特控制图是只使用最近一次观测的极端情形，它更接近序列离群点检测，而非变点检测。<sup>[4](https://ideas.repec.org/a/oup/biomet/v111y2024i2p367-391..html)</sup>

## 如何实施

离线算法由三个要素构成：衡量段拟合优度的代价函数、搜索方法，以及对变点数量的约束。<sup>[9](https://ar5iv.labs.arxiv.org/html/1801.00718)</sup> 最大统计量的理论阈值往往偏保守，因此常用最大统计量的蒙特卡洛模拟来设定阈值，但这会带来计算代价。<sup>[11](https://www.lancaster.ac.uk/~romano/teaching/2425MATH337/MATH337--Changepoint-Detection.pdf)</sup> 对于置信陈述，参数自助法和分块自助法为分段平稳时间序列近似变点估计量的有限样本分布，并为每个检测到的变点提供置信区间。<sup>[12](https://www.cambridge.org/core/journals/econometric-theory/article/abs/bootstrap-inference-for-multiple-changepoints-in-time-series/294446CE5E85FA00282C914B47E11BEA)</sup>

软件已经成熟。R 包 changepoint 实现了 AMOC、二分分割、片段邻域和 PELT，并支持 SIC、BIC、AIC 和 Hannan–Quinn 惩罚<sup>[13](https://www.lancs.ac.uk/~killick/Pub/KillickEckley2011.pdf)</sup>；Python 包 ruptures 实现了主要的离线算法<sup>[14](https://doi.org/10.1016/j.sigpro.2019.107299)</sup>；mosum 提供移动和方法<sup>[15](https://doi.org/10.18637/jss.v097.i08)</sup>；skchange 在 scikit-learn 风格的框架中提供 MOSUM、种子二分分割、PELT、FPOP 和 CROPS，并用 Numba 加速。<sup>[16](https://export.arxiv.org/pdf/2608.19767)</sup>

## 起源

在线变点检测的统计研究始于亚伯拉罕·沃尔德关于序贯分析的工作，发表于 1946 年的《数理统计年鉴》<sup>[17](https://doi.org/10.1214/aoms/1177730889)</sup>；CUSUM 统计量在佩奇（1954）中作为该工作的著名扩展被提出。<sup>[4](https://ideas.repec.org/a/oup/biomet/v111y2024i2p367-391..html)</sup> 佩奇 1954 年发表于《生物计量学》的论文《连续检验方案》引入了累积和控制图<sup>[5](https://doi.org/10.1093/biomet/41.1-2.100)</sup>，他 1955 年发表于《生物计量学》的论文分析了一种用于检验参数是否在未知位置发生变化的检验。<sup>[6](https://doi.org/10.1093/biomet/42.3-4.523)</sup> 20 世纪 50 年代最早的变点检测工作旨在为工业质量控制定位独立同分布高斯变量均值的偏移。<sup>[9](https://ar5iv.labs.arxiv.org/html/1801.00718)</sup>

后来的理论建立了性能保证：在最坏情况框架下，当 \( \gamma \to \infty \) 时，最优期望检测延迟为 \( \mathrm{EDD} = \log \gamma \, (1+o(1)) / D(f_{1}\|f_{0}) \)，并且 CUSUM 统计量在该框架下被证明是最优的。<sup>[10](https://arxiv.org/pdf/2210.05181)</sup><sup> • </sup><sup>[18](https://wrap.warwick.ac.uk/id/eprint/189987/1/A%20note%20on%20online%20change%20point%20detection.pdf)</sup> 在线研究的另一条线索形式化了在一段干净的“无污染”训练数据之后进行的监控。<sup>[18](https://wrap.warwick.ac.uk/id/eprint/189987/1/A%20note%20on%20online%20change%20point%20detection.pdf)</sup>

## 变体

多变点方法分为三类：二分分割（标准、野生和种子变体）、惩罚估计和移动窗口方法。<sup>[19](https://www.tandfonline.com/doi/full/10.1080/00401706.2026.2652820)</sup>

**二分分割**递归地一次搜索一个变点；它是一种复杂度为 \( O(n \log n) \) 的近似算法，其速度可能以精度为代价。<sup>[13](https://www.lancs.ac.uk/~killick/Pub/KillickEckley2011.pdf)</sup> 由于它一次添加一个变点，检测短段的功效可能较低。<sup>[20](https://onlinelibrary.wiley.com/doi/10.1002/sta4.291)</sup> 野生二分分割由彼得·弗莱兹莱维奇于 2014 年在《统计年鉴》上提出，具有更好的定位速率，并且是极小极大速率最优的，但计算代价更高，调优参数也更多。<sup>[21](https://doi.org/10.1214/14-aos1245)</sup><sup> • </sup><sup>[7](https://wrap.warwick.ac.uk/id/eprint/135155/7/WRAP-Univariate-mean-change-point-Yu-2020.pdf)</sup>

**精确动态规划**方法找到最优分割：片段邻域方法将搜索从指数级降低到 \( Q \) 个变点时的 \( O(Qn^{2}) \)<sup>[13](https://www.lancs.ac.uk/~killick/Pub/KillickEckley2011.pdf)</sup>，而 PELT 由基利克、费恩黑德和埃克利于 2012 年在《美国统计学会杂志》上提出，在变点数量线性增长时以期望 \( O(n) \) 代价获得精确分割。<sup>[8](https://doi.org/10.1080/01621459.2012.737745)</sup><sup> • </sup><sup>[7](https://wrap.warwick.ac.uk/id/eprint/135155/7/WRAP-Univariate-mean-change-point-Yu-2020.pdf)</sup> 尾部贪心自底向上分解由弗莱兹莱维奇于 2018 年在《统计年鉴》上提出，提供了另一种快速多变点选项。<sup>[22](https://doi.org/10.1214/17-aos1662)</sup> MOSUM 方法由艾兴格和基尔希于 2018 年在《伯努利》上提出，用移动窗口扫描并估计多个随机变点。<sup>[23](https://doi.org/10.3150/16-bej887)</sup><sup> • </sup><sup>[15](https://doi.org/10.18637/jss.v097.i08)</sup>

**贝叶斯方法。** 巴里和哈蒂根于 1993 年在《美国统计学会杂志》上发表了针对变点问题的贝叶斯分析。<sup>[24](https://doi.org/10.1080/01621459.1993.10594323)</sup> 贝叶斯在线变点检测由瑞安·普雷斯科特·亚当斯和戴维·J. C. 麦凯于 2007 年在 arXiv 上提出，通过消息传递维护关于运行长度（自上次变化以来的时间）的完整后验。<sup>[25](https://doi.org/10.48550/arxiv.0710.3742)</sup> 专门的变体包括用于高维变点的稀疏投影估计<sup>[26](https://doi.org/10.1111/rssb.12243)</sup> 和通过相对密度比估计进行的检测。<sup>[27](https://doi.org/10.1016/j.neunet.2013.01.012)</sup>

**惩罚项**决定检测到的变点数量。惩罚项太小会检测到噪声驱动的变化；惩罚项太大会只检测到最显著的变化，或什么都检测不到。<sup>[9](https://ar5iv.labs.arxiv.org/html/1801.00718)</sup> CROPS 在一系列惩罚值下计算分割，已在 skchange 中实现。<sup>[16](https://export.arxiv.org/pdf/2608.19767)</sup>

## 应用

该方法的根源在统计过程控制，佩奇的累积和控制图量化了工业过程偏离规格时会被多快发现。<sup>[5](https://doi.org/10.1093/biomet/41.1-2.100)</sup><sup> • </sup><sup>[3](http://temporalbook.apartsin.com/part-2-classical-forecasting/module-08-anomaly-changepoint/section-8.3.html)</sup> 已有实例展示的现代应用包括比特币价格变动、COVID-19 病例数、DNA 拷贝数变异和剂量探索临床试验。<sup>[19](https://www.tandfonline.com/doi/full/10.1080/00401706.2026.2652820)</sup> 在气候学中，变点技术用于校正台站记录中的人为偏移；美国气候序列平均每 17 年发生一次台站迁移或仪器更换。<sup>[28](https://journals.ametsoc.org/view/journals/clim/36/23/JCLI-D-22-0954.1.pdf)</sup> 在癌症基因组学中，拷贝数变异在许多相关肿瘤样本的相同位置表现为变点，这推动了高维稠密备择方法的发展。<sup>[29](https://www.sciencedirect.com/science/article/abs/pii/S0047259X21001111)</sup>

## 局限与替代方法

当噪声为独立高斯时，所有变点方法在估计变点数量和位置方面都表现尚可；重尾噪声或正自相关会导致变点数量被高估。<sup>[20](https://onlinelibrary.wiley.com/doi/10.1002/sta4.291)</sup> 即使小至 0.25 的一阶自相关也会对变点结论产生有害后果，检验通常最好应用于在无变点原假设下计算的一步向前预测残差。<sup>[30](https://arxiv.org/pdf/2101.01960)</sup> 数据中部的似然比统计量比边界附近的统计量依赖性强得多，因此，在没有最小段长约束时，检测到的变点位置会偏向边界。<sup>[1](https://ar5iv.labs.arxiv.org/html/2210.07066)</sup> 假设正确的最小段长会显著改善性能并带来稳健性，这就是 IDetect 和 MOSUM 在自相关或重尾噪声下表现强劲的原因。<sup>[20](https://onlinelibrary.wiley.com/doi/10.1002/sta4.291)</sup>

**CUSUM 特有的失效模式。** 佩奇的 CUSUM 对小于假设变化幅度一半的变化可能几乎没有功效，而移动窗口方法在窗口与变化幅度不匹配时会损失功效。<sup>[31](https://www.jmlr.org/papers/volume24/21-1230/21-1230.pdf)</sup> 当变化发生在长序列的后期时，CUSUM 也会损失功效，因为它将变化后的信号与所有先前数据平均<sup>[31](https://www.jmlr.org/papers/volume24/21-1230/21-1230.pdf)</sup>，并且当数据中有多个变点时，检测功效也可能损失。<sup>[11](https://www.lancaster.ac.uk/~romano/teaching/2425MATH337/MATH337--Changepoint-Detection.pdf)</sup> CUSUM 需要精确知道变化前后的分布，并且对模型误设不稳健。<sup>[10](https://arxiv.org/pdf/2210.05181)</sup>

**比较。** 休哈特控制图不在潜在变点位置上扫描，在平均运行长度/检测延迟指标下不是渐近最优的，尽管它在最大化瞬时检测概率方面是最优的。<sup>[10](https://arxiv.org/pdf/2210.05181)</sup> 研究最多的三种序贯监控程序是 CUSUM、EWMA 和希里亚耶夫–罗伯茨程序。<sup>[32](https://link.springer.com/book/10.1007/b100107)</sup> 在多变点情形下，没有明确的方法学优胜者；性能取决于具体场景。<sup>[30](https://arxiv.org/pdf/2101.01960)</sup>

## References

1. [Change-Point Detection and Data Segmentation, Chapter: Detecting A Single Change-point](https://ar5iv.labs.arxiv.org/html/2210.07066)
2. [A Survey of Methods for Time Series Change Point Detection (Aminikhanghahi & Cook, KAIS)](https://eecs.wsu.edu/~cook/pubs/kais16.2.pdf)
3. [Section 8.3: Change-Point Detection (offline and online) | Building Temporal AI](http://temporalbook.apartsin.com/part-2-classical-forecasting/module-08-anomaly-changepoint/section-8.3.html)
4. [The state of cumulative sum sequential changepoint testing 70 years after Page (Biometrika, 2024)](https://ideas.repec.org/a/oup/biomet/v111y2024i2p367-391..html)
5. [E. S. PAGE (1954). CONTINUOUS INSPECTION SCHEMES. Biometrika.](https://doi.org/10.1093/biomet/41.1-2.100)
6. [E. S. PAGE (1955). A test for a change in a parameter occurring at an unknown point. Biometrika.](https://doi.org/10.1093/biomet/42.3-4.523)
7. [Univariate mean change point detection: Penalization, CUSUM and optimality (Wang, Yu & Rinaldo)](https://wrap.warwick.ac.uk/id/eprint/135155/7/WRAP-Univariate-mean-change-point-Yu-2020.pdf)
8. [R. Killick, P. Fearnhead, I. A. Eckley (2012). Optimal Detection of Changepoints With a Linear Computational Cost. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.2012.737745)
9. [Selective review of offline change point detection methods (Truong, Oudre & Vayatis)](https://ar5iv.labs.arxiv.org/html/1801.00718)
10. [Sequential Change-Point Detection: computation versus statistical power trade-off (tutorial, Xie et al.)](https://arxiv.org/pdf/2210.05181)
11. [MATH337: Changepoint Detection (Lecture notes, Lancaster University, 2024/25)](https://www.lancaster.ac.uk/~romano/teaching/2425MATH337/MATH337--Changepoint-Detection.pdf)
12. [Bootstrap inference for multiple change-points in time series (Econometric Theory)](https://www.cambridge.org/core/journals/econometric-theory/article/abs/bootstrap-inference-for-multiple-changepoints-in-time-series/294446CE5E85FA00282C914B47E11BEA)
13. [changepoint: An R Package for Changepoint Analysis (Killick & Eckley, J. Stat. Softw.)](https://www.lancs.ac.uk/~killick/Pub/KillickEckley2011.pdf)
14. [Charles Truong, Laurent Oudre, Nicolas Vayatis (2020). Selective review of offline change point detection methods. Signal Processing 167.](https://doi.org/10.1016/j.sigpro.2019.107299)
15. [Alexander Meier, Claudia Kirch, Haeran Cho (2021). mosum: A Package for Moving Sums in Change-Point Analysis. Journal of Statistical Software.](https://doi.org/10.18637/jss.v097.i08)
16. [skchange: Fast and Flexible Algorithms for Changepoint Detection](https://export.arxiv.org/pdf/2608.19767)
17. [Abraham Wald (1946). Differentiation Under the Expectation Sign in the Fundamental Identity of Sequential Analysis. The Annals of Mathematical Statistics.](https://doi.org/10.1214/aoms/1177730889)
18. [A note on online change point detection (Padilla, Yu, Wang, Rinaldo)](https://wrap.warwick.ac.uk/id/eprint/189987/1/A%20note%20on%20online%20change%20point%20detection.pdf)
19. [Book review: Change Point Analysis: Theory and Application (Jin & Li) (Technometrics)](https://www.tandfonline.com/doi/full/10.1080/00401706.2026.2652820)
20. [Relating and comparing methods for detecting changes in mean](https://onlinelibrary.wiley.com/doi/10.1002/sta4.291)
21. [Piotr Fryzlewicz (2014). Wild binary segmentation for multiple change-point detection. The Annals of Statistics.](https://doi.org/10.1214/14-aos1245)
22. [Piotr Fryzlewicz (2018). Tail-greedy bottom-up data decompositions and fast multiple change-point detection. The Annals of Statistics.](https://doi.org/10.1214/17-aos1662)
23. [Birte Eichinger, Claudia Kirch (2017). A MOSUM procedure for the estimation of multiple random change points. Bernoulli.](https://doi.org/10.3150/16-bej887)
24. [Daniel Barry, J. A. Hartigan (1993). A Bayesian Analysis for Change Point Problems. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1993.10594323)
25. [Adams, Ryan Prescott, MacKay, David J. C. (2007). Bayesian Online Changepoint Detection. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.0710.3742)
26. [Tengyao Wang, Richard J. Samworth (2017). High Dimensional Change Point Estimation via Sparse Projection. Journal of the Royal Statistical Society Series B (Statistical Methodology).](https://doi.org/10.1111/rssb.12243)
27. [Song Liu and colleagues (2013). Change-point detection in time-series data by relative density-ratio estimation. Neural Networks.](https://doi.org/10.1016/j.neunet.2013.01.012)
28. [Good Practices and Common Pitfalls in Climate Time Series Changepoint Techniques: A Review (Journal of Climate)](https://journals.ametsoc.org/view/journals/clim/36/23/JCLI-D-22-0954.1.pdf)
29. [Spatial-sign based high-dimensional change point inference (Journal of Multivariate Analysis)](https://www.sciencedirect.com/science/article/abs/pii/S0047259X21001111)
30. [A Comparison of Single and Multiple Changepoint Techniques for Time Series Data (Shi, Gallagher, Lund, Killick)](https://arxiv.org/pdf/2101.01960)
31. [Fast Online Changepoint Detection via Functional Pruning CUSUM Statistics (FOCuS)](https://www.jmlr.org/papers/volume24/21-1230/21-1230.pdf)
32. [Inference for Change Point and Post Change Means After a CUSUM Test (Yanhong Wu, Lecture Notes in Statistics 180)](https://link.springer.com/book/10.1007/b100107)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Hypothesis testing

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/change-point-analysis

English original: https://www.edgepedia.org/change-point-analysis
