Fearnhead, Paul and Maidstone, Robert and Letchford, Adam (2019) Detecting changes in slope with an L0 penalty. Journal of Computational and Graphical Statistics, 28 (2). pp. 265-275. ISSN 1061-8600
1701.01672v1.pdf - Submitted Version
Available under License Creative Commons Attribution-NonCommercial.
Download (912kB)
changes_in_slope.pdf - Accepted Version
Available under License Creative Commons Attribution-NonCommercial.
Download (826kB)
Abstract
While there are many approaches to detecting changes in mean for a univariate time series, the problem of detecting multiple changes in slope has comparatively been ignored. Part of the reason for this is that detecting changes in slope is much more challenging: simple binary segmentation procedures do not work for this problem, while existing dynamic programming methods that work for the change in mean problem cannot be used for detecting changes in slope. We present a novel dynamic programming approach, CPOP, for finding the “best” continuous piecewise linear fit to data under a criterion that measures fit to data using the residual sum of squares, but penalizes complexity based on an L 0 penalty on changes in slope. We prove that detecting changes in this manner can lead to consistent estimation of the number of changepoints, and show empirically that using an L 0 penalty is more reliable at estimating changepoint locations than using an L 1 penalty. Empirically CPOP has good computational properties, and can analyze a time series with 10,000 observations and 100 changes in a few minutes. Our method is used to analyze data on the motion of bacteria, and provides better and more parsimonious fits than two competing approaches. Supplementary material for this article is available online.