changepoint_index.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>Changepoint detection &#8212; State Space Models: A Modern Approach</title>
  7. <link href="../../_static/css/theme.css" rel="stylesheet">
  8. <link href="../../_static/css/index.ff1ffe594081f20da1ef19478df9384b.css" rel="stylesheet">
  9. <link rel="stylesheet"
  10. href="../../_static/vendor/fontawesome/5.13.0/css/all.min.css">
  11. <link rel="preload" as="font" type="font/woff2" crossorigin
  12. href="../../_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.woff2">
  13. <link rel="preload" as="font" type="font/woff2" crossorigin
  14. href="../../_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.woff2">
  15. <link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
  16. <link rel="stylesheet" type="text/css" href="../../_static/sphinx-book-theme.css?digest=c3fdc42140077d1ad13ad2f1588a4309" />
  17. <link rel="stylesheet" type="text/css" href="../../_static/togglebutton.css" />
  18. <link rel="stylesheet" type="text/css" href="../../_static/copybutton.css" />
  19. <link rel="stylesheet" type="text/css" href="../../_static/mystnb.css" />
  20. <link rel="stylesheet" type="text/css" href="../../_static/sphinx-thebe.css" />
  21. <link rel="stylesheet" type="text/css" href="../../_static/panels-main.c949a650a448cc0ae9fd3441c0e17fb0.css" />
  22. <link rel="stylesheet" type="text/css" href="../../_static/panels-variables.06eb56fa6e07937060861dad626602ad.css" />
  23. <link rel="preload" as="script" href="../../_static/js/index.be7d3bbb2ef33a8344ce.js">
  24. <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
  25. <script src="../../_static/jquery.js"></script>
  26. <script src="../../_static/underscore.js"></script>
  27. <script src="../../_static/doctools.js"></script>
  28. <script src="../../_static/clipboard.min.js"></script>
  29. <script src="../../_static/copybutton.js"></script>
  30. <script>let toggleHintShow = 'Click to show';</script>
  31. <script>let toggleHintHide = 'Click to hide';</script>
  32. <script>let toggleOpenOnPrint = 'true';</script>
  33. <script src="../../_static/togglebutton.js"></script>
  34. <script>var togglebuttonSelector = '.toggle, .admonition.dropdown, .tag_hide_input div.cell_input, .tag_hide-input div.cell_input, .tag_hide_output div.cell_output, .tag_hide-output div.cell_output, .tag_hide_cell.cell, .tag_hide-cell.cell';</script>
  35. <script src="../../_static/sphinx-book-theme.d59cb220de22ca1c485ebbdc042f0030.js"></script>
  36. <script>const THEBE_JS_URL = "https://unpkg.com/thebe@0.8.2/lib/index.js"
  37. const thebe_selector = ".thebe,.cell"
  38. const thebe_selector_input = "pre"
  39. const thebe_selector_output = ".output, .cell_output"
  40. </script>
  41. <script async="async" src="../../_static/sphinx-thebe.js"></script>
  42. <link rel="index" title="Index" href="../../genindex.html" />
  43. <link rel="search" title="Search" href="../../search.html" />
  44. <link rel="next" title="Timeseries forecasting" href="../timeseries/timeseries_index.html" />
  45. <link rel="prev" title="Bayesian non-parametric SSMs" href="../bnp/bnp_index.html" />
  46. <meta name="viewport" content="width=device-width, initial-scale=1" />
  47. <meta name="docsearch:language" content="None">
  48. <!-- Google Analytics -->
  49. </head>
  50. <body data-spy="scroll" data-target="#bd-toc-nav" data-offset="80">
  51. <div class="container-fluid" id="banner"></div>
  52. <div class="container-xl">
  53. <div class="row">
  54. <div class="col-12 col-md-3 bd-sidebar site-navigation show" id="site-navigation">
  55. <div class="navbar-brand-box">
  56. <a class="navbar-brand text-wrap" href="../../index.html">
  57. <h1 class="site-logo" id="site-title">State Space Models: A Modern Approach</h1>
  58. </a>
  59. </div><form class="bd-search d-flex align-items-center" action="../../search.html" method="get">
  60. <i class="icon fas fa-search"></i>
  61. <input type="search" class="form-control" name="q" id="search-input" placeholder="Search this book..." aria-label="Search this book..." autocomplete="off" >
  62. </form><nav class="bd-links" id="bd-docs-nav" aria-label="Main">
  63. <div class="bd-toc-item active">
  64. <ul class="nav bd-sidenav">
  65. <li class="toctree-l1">
  66. <a class="reference internal" href="../../root.html">
  67. State Space Models: A Modern Approach
  68. </a>
  69. </li>
  70. </ul>
  71. <ul class="current nav bd-sidenav">
  72. <li class="toctree-l1 has-children">
  73. <a class="reference internal" href="../ssm/ssm_index.html">
  74. State Space Models
  75. </a>
  76. <input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"/>
  77. <label for="toctree-checkbox-1">
  78. <i class="fas fa-chevron-down">
  79. </i>
  80. </label>
  81. <ul>
  82. <li class="toctree-l2">
  83. <a class="reference internal" href="../ssm/ssm_intro.html">
  84. What are State Space Models?
  85. </a>
  86. </li>
  87. <li class="toctree-l2">
  88. <a class="reference internal" href="../ssm/hmm.html">
  89. Hidden Markov Models
  90. </a>
  91. </li>
  92. <li class="toctree-l2">
  93. <a class="reference internal" href="../ssm/lds.html">
  94. Linear Gaussian SSMs
  95. </a>
  96. </li>
  97. <li class="toctree-l2">
  98. <a class="reference internal" href="../ssm/nlds.html">
  99. Nonlinear Gaussian SSMs
  100. </a>
  101. </li>
  102. <li class="toctree-l2">
  103. <a class="reference internal" href="../ssm/inference.html">
  104. States estimation (inference)
  105. </a>
  106. </li>
  107. <li class="toctree-l2">
  108. <a class="reference internal" href="../ssm/learning.html">
  109. Parameter estimation (learning)
  110. </a>
  111. </li>
  112. </ul>
  113. </li>
  114. <li class="toctree-l1 has-children">
  115. <a class="reference internal" href="../hmm/hmm_index.html">
  116. Hidden Markov Models
  117. </a>
  118. <input class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" type="checkbox"/>
  119. <label for="toctree-checkbox-2">
  120. <i class="fas fa-chevron-down">
  121. </i>
  122. </label>
  123. <ul>
  124. <li class="toctree-l2">
  125. <a class="reference internal" href="../hmm/hmm_filter.html">
  126. HMM filtering (forwards algorithm)
  127. </a>
  128. </li>
  129. <li class="toctree-l2">
  130. <a class="reference internal" href="../hmm/hmm_smoother.html">
  131. HMM smoothing (forwards-backwards algorithm)
  132. </a>
  133. </li>
  134. <li class="toctree-l2">
  135. <a class="reference internal" href="../hmm/hmm_viterbi.html">
  136. Viterbi algorithm
  137. </a>
  138. </li>
  139. <li class="toctree-l2">
  140. <a class="reference internal" href="../hmm/hmm_parallel.html">
  141. Parallel HMM smoothing
  142. </a>
  143. </li>
  144. <li class="toctree-l2">
  145. <a class="reference internal" href="../hmm/hmm_sampling.html">
  146. Forwards-filtering backwards-sampling algorithm
  147. </a>
  148. </li>
  149. </ul>
  150. </li>
  151. <li class="toctree-l1 has-children">
  152. <a class="reference internal" href="../lgssm/lgssm_index.html">
  153. Linear-Gaussian SSMs
  154. </a>
  155. <input class="toctree-checkbox" id="toctree-checkbox-3" name="toctree-checkbox-3" type="checkbox"/>
  156. <label for="toctree-checkbox-3">
  157. <i class="fas fa-chevron-down">
  158. </i>
  159. </label>
  160. <ul>
  161. <li class="toctree-l2">
  162. <a class="reference internal" href="../lgssm/kalman_filter.html">
  163. Kalman filtering
  164. </a>
  165. </li>
  166. <li class="toctree-l2">
  167. <a class="reference internal" href="../lgssm/kalman_smoother.html">
  168. Kalman (RTS) smoother
  169. </a>
  170. </li>
  171. <li class="toctree-l2">
  172. <a class="reference internal" href="../lgssm/kalman_parallel.html">
  173. Parallel Kalman Smoother
  174. </a>
  175. </li>
  176. <li class="toctree-l2">
  177. <a class="reference internal" href="../lgssm/kalman_sampling.html">
  178. Forwards-filtering backwards sampling
  179. </a>
  180. </li>
  181. </ul>
  182. </li>
  183. <li class="toctree-l1 has-children">
  184. <a class="reference internal" href="../extended/extended_index.html">
  185. Extended (linearized) methods
  186. </a>
  187. <input class="toctree-checkbox" id="toctree-checkbox-4" name="toctree-checkbox-4" type="checkbox"/>
  188. <label for="toctree-checkbox-4">
  189. <i class="fas fa-chevron-down">
  190. </i>
  191. </label>
  192. <ul>
  193. <li class="toctree-l2">
  194. <a class="reference internal" href="../extended/extended_filter.html">
  195. Extended Kalman filtering
  196. </a>
  197. </li>
  198. <li class="toctree-l2">
  199. <a class="reference internal" href="../extended/extended_smoother.html">
  200. Extended Kalman smoother
  201. </a>
  202. </li>
  203. <li class="toctree-l2">
  204. <a class="reference internal" href="../extended/extended_parallel.html">
  205. Parallel extended Kalman smoothing
  206. </a>
  207. </li>
  208. </ul>
  209. </li>
  210. <li class="toctree-l1 has-children">
  211. <a class="reference internal" href="../unscented/unscented_index.html">
  212. Unscented methods
  213. </a>
  214. <input class="toctree-checkbox" id="toctree-checkbox-5" name="toctree-checkbox-5" type="checkbox"/>
  215. <label for="toctree-checkbox-5">
  216. <i class="fas fa-chevron-down">
  217. </i>
  218. </label>
  219. <ul>
  220. <li class="toctree-l2">
  221. <a class="reference internal" href="../unscented/unscented_filter.html">
  222. Unscented filtering
  223. </a>
  224. </li>
  225. <li class="toctree-l2">
  226. <a class="reference internal" href="../unscented/unscented_smoother.html">
  227. Unscented smoothing
  228. </a>
  229. </li>
  230. </ul>
  231. </li>
  232. <li class="toctree-l1">
  233. <a class="reference internal" href="../quadrature/quadrature_index.html">
  234. Quadrature and cubature methods
  235. </a>
  236. </li>
  237. <li class="toctree-l1">
  238. <a class="reference internal" href="../postlin/postlin_index.html">
  239. Posterior linearization
  240. </a>
  241. </li>
  242. <li class="toctree-l1">
  243. <a class="reference internal" href="../adf/adf_index.html">
  244. Assumed Density Filtering
  245. </a>
  246. </li>
  247. <li class="toctree-l1">
  248. <a class="reference internal" href="../vi/vi_index.html">
  249. Variational inference
  250. </a>
  251. </li>
  252. <li class="toctree-l1">
  253. <a class="reference internal" href="../pf/pf_index.html">
  254. Particle filtering
  255. </a>
  256. </li>
  257. <li class="toctree-l1">
  258. <a class="reference internal" href="../smc/smc_index.html">
  259. Sequential Monte Carlo
  260. </a>
  261. </li>
  262. <li class="toctree-l1">
  263. <a class="reference internal" href="../learning/learning_index.html">
  264. Offline parameter estimation (learning)
  265. </a>
  266. </li>
  267. <li class="toctree-l1">
  268. <a class="reference internal" href="../tracking/tracking_index.html">
  269. Multi-target tracking
  270. </a>
  271. </li>
  272. <li class="toctree-l1">
  273. <a class="reference internal" href="../ensemble/ensemble_index.html">
  274. Data assimilation using Ensemble Kalman filter
  275. </a>
  276. </li>
  277. <li class="toctree-l1">
  278. <a class="reference internal" href="../bnp/bnp_index.html">
  279. Bayesian non-parametric SSMs
  280. </a>
  281. </li>
  282. <li class="toctree-l1 current active">
  283. <a class="current reference internal" href="#">
  284. Changepoint detection
  285. </a>
  286. </li>
  287. <li class="toctree-l1">
  288. <a class="reference internal" href="../timeseries/timeseries_index.html">
  289. Timeseries forecasting
  290. </a>
  291. </li>
  292. <li class="toctree-l1">
  293. <a class="reference internal" href="../gp/gp_index.html">
  294. Markovian Gaussian processes
  295. </a>
  296. </li>
  297. <li class="toctree-l1">
  298. <a class="reference internal" href="../ode/ode_index.html">
  299. Differential equations and SSMs
  300. </a>
  301. </li>
  302. <li class="toctree-l1">
  303. <a class="reference internal" href="../control/control_index.html">
  304. Optimal control
  305. </a>
  306. </li>
  307. <li class="toctree-l1">
  308. <a class="reference internal" href="../../bib.html">
  309. Bibliography
  310. </a>
  311. </li>
  312. </ul>
  313. </div>
  314. </nav> <!-- To handle the deprecated key -->
  315. <div class="navbar_extra_footer">
  316. Powered by <a href="https://jupyterbook.org">Jupyter Book</a>
  317. </div>
  318. </div>
  319. <main class="col py-md-3 pl-md-4 bd-content overflow-auto" role="main">
  320. <div class="topbar container-xl fixed-top">
  321. <div class="topbar-contents row">
  322. <div class="col-12 col-md-3 bd-topbar-whitespace site-navigation show"></div>
  323. <div class="col pl-md-4 topbar-main">
  324. <button id="navbar-toggler" class="navbar-toggler ml-0" type="button" data-toggle="collapse"
  325. data-toggle="tooltip" data-placement="bottom" data-target=".site-navigation" aria-controls="navbar-menu"
  326. aria-expanded="true" aria-label="Toggle navigation" aria-controls="site-navigation"
  327. title="Toggle navigation" data-toggle="tooltip" data-placement="left">
  328. <i class="fas fa-bars"></i>
  329. <i class="fas fa-arrow-left"></i>
  330. <i class="fas fa-arrow-up"></i>
  331. </button>
  332. <div class="dropdown-buttons-trigger">
  333. <button id="dropdown-buttons-trigger" class="btn btn-secondary topbarbtn" aria-label="Download this page"><i
  334. class="fas fa-download"></i></button>
  335. <div class="dropdown-buttons">
  336. <!-- ipynb file if we had a myst markdown file -->
  337. <!-- Download raw file -->
  338. <a class="dropdown-buttons" href="../../_sources/chapters/changepoint/changepoint_index.md"><button type="button"
  339. class="btn btn-secondary topbarbtn" title="Download source file" data-toggle="tooltip"
  340. data-placement="left">.md</button></a>
  341. <!-- Download PDF via print -->
  342. <button type="button" id="download-print" class="btn btn-secondary topbarbtn" title="Print to PDF"
  343. onclick="printPdf(this)" data-toggle="tooltip" data-placement="left">.pdf</button>
  344. </div>
  345. </div>
  346. <!-- Source interaction buttons -->
  347. <div class="dropdown-buttons-trigger">
  348. <button id="dropdown-buttons-trigger" class="btn btn-secondary topbarbtn"
  349. aria-label="Connect with source repository"><i class="fab fa-github"></i></button>
  350. <div class="dropdown-buttons sourcebuttons">
  351. <a class="repository-button"
  352. href="https://github.com/probml/ssm-book"><button type="button" class="btn btn-secondary topbarbtn"
  353. data-toggle="tooltip" data-placement="left" title="Source repository"><i
  354. class="fab fa-github"></i>repository</button></a>
  355. <a class="issues-button"
  356. href="https://github.com/probml/ssm-book/issues/new?title=Issue%20on%20page%20%2Fchapters/changepoint/changepoint_index.html&body=Your%20issue%20content%20here."><button
  357. type="button" class="btn btn-secondary topbarbtn" data-toggle="tooltip" data-placement="left"
  358. title="Open an issue"><i class="fas fa-lightbulb"></i>open issue</button></a>
  359. </div>
  360. </div>
  361. <!-- Full screen (wrap in <a> to have style consistency -->
  362. <a class="full-screen-button"><button type="button" class="btn btn-secondary topbarbtn" data-toggle="tooltip"
  363. data-placement="bottom" onclick="toggleFullScreen()" aria-label="Fullscreen mode"
  364. title="Fullscreen mode"><i
  365. class="fas fa-expand"></i></button></a>
  366. <!-- Launch buttons -->
  367. </div>
  368. <!-- Table of contents -->
  369. <div class="d-none d-md-block col-md-2 bd-toc show noprint">
  370. </div>
  371. </div>
  372. </div>
  373. <div id="main-content" class="row">
  374. <div class="col-12 col-md-9 pl-md-3 pr-md-0">
  375. <!-- Table of contents that is only displayed when printing the page -->
  376. <div id="jb-print-docs-body" class="onlyprint">
  377. <h1>Changepoint detection</h1>
  378. <!-- Table of contents -->
  379. <div id="print-main-content">
  380. <div id="jb-print-toc">
  381. </div>
  382. </div>
  383. </div>
  384. <div>
  385. <div class="tex2jax_ignore mathjax_ignore section" id="changepoint-detection">
  386. <span id="ch-changepoint"></span><h1>Changepoint detection<a class="headerlink" href="#changepoint-detection" title="Permalink to this headline">¶</a></h1>
  387. <p><span id="id1">[<a class="reference internal" href="../../bib.html#id22" title="Diego Agudelo-España, Sebastian Gomez-Gonzalez, Stefan Bauer, Bernhard Schölkopf, and Jan Peters. Bayesian online prediction of change points. In UAI, volume 124 of Proceedings of Machine Learning Research, 320–329. PMLR, 2020. URL: http://proceedings.mlr.press/v124/agudelo-espana20a.html.">AEspanaGGB+20</a>]</span>, <span id="id2">[<a class="reference internal" href="../../bib.html#id23" title="Ryan Prescott Adams and David J C MacKay. Bayesian online changepoint detection. arxiv, October 2007. URL: http://arxiv.org/abs/0710.3742, arXiv:0710.3742.">AM07</a>]</span>, <span id="id3">[<a class="reference internal" href="../../bib.html#id24" title="Paul Fearnhead. Exact bayesian curve fitting and signal segmentation. IEEE Trans. Signal Processing, 53:2160–2166, 2004. URL: http://www.maths.lancs.ac.uk/~fearnhea/software/ARPS.html.">Fea04</a>]</span>, <span id="id4">[<a class="reference internal" href="../../bib.html#id25" title="Paul Fearnhead. Exact and efficient bayesian inference for multiple changepoint problems. Statistics and computing, 16:203–213, 2006.">Fea06</a>]</span>, <span id="id5">[<a class="reference internal" href="../../bib.html#id26" title="P. Fearnhead and Z. Liu. Online inference for multiple changepoint problems. J. of Royal Stat. Soc. Series B, 69:589–605, 2007.">FL07</a>]</span>,
  388. <span id="id6">[<a class="reference internal" href="../../bib.html#id27" title="Paul Fearnhead and Zhen Liu. Efficient bayesian analysis of multiple changepoint models with dependence across segments. Statistics and Computing, 21(2):217–229, 2011. URL: https://eprints.lancs.ac.uk/id/eprint/26279/.">FL11</a>]</span></p>
  389. </div>
  390. <script type="text/x-thebe-config">
  391. {
  392. requestKernel: true,
  393. binderOptions: {
  394. repo: "binder-examples/jupyter-stacks-datascience",
  395. ref: "master",
  396. },
  397. codeMirrorConfig: {
  398. theme: "abcdef",
  399. mode: "python"
  400. },
  401. kernelOptions: {
  402. kernelName: "python3",
  403. path: "./chapters/changepoint"
  404. },
  405. predefinedOutput: true
  406. }
  407. </script>
  408. <script>kernelName = 'python3'</script>
  409. </div>
  410. <!-- Previous / next buttons -->
  411. <div class='prev-next-area'>
  412. <a class='left-prev' id="prev-link" href="../bnp/bnp_index.html" title="previous page">
  413. <i class="fas fa-angle-left"></i>
  414. <div class="prev-next-info">
  415. <p class="prev-next-subtitle">previous</p>
  416. <p class="prev-next-title">Bayesian non-parametric SSMs</p>
  417. </div>
  418. </a>
  419. <a class='right-next' id="next-link" href="../timeseries/timeseries_index.html" title="next page">
  420. <div class="prev-next-info">
  421. <p class="prev-next-subtitle">next</p>
  422. <p class="prev-next-title">Timeseries forecasting</p>
  423. </div>
  424. <i class="fas fa-angle-right"></i>
  425. </a>
  426. </div>
  427. </div>
  428. </div>
  429. <footer class="footer">
  430. <p>
  431. By Kevin Murphy, Scott Linderman, et al.<br/>
  432. &copy; Copyright 2021.<br/>
  433. </p>
  434. </footer>
  435. </main>
  436. </div>
  437. </div>
  438. <script src="../../_static/js/index.be7d3bbb2ef33a8344ce.js"></script>
  439. </body>
  440. </html>