- Introduced by
- Killick, Fearnhead & Eckley
- Year
- 2012
- Type
- Sequential segmentation algorithm
- Family
- Time-series monitoring
What does it do?
Change-point detection identifies time points at which the statistical properties of a sequence, such as its mean, variance, or distribution, shift abruptly.
The Pruned Exact Linear Time (PELT) algorithm, introduced by Killick, Fearnhead, and Eckley (2012), finds the exact optimal segmentation under a penalized cost criterion, and its expected computational cost is linear in the number of observations under mild conditions. This makes it applicable to long series of the kind found in genomics, finance, climatology, and signal processing.
The intuition behind the method
Imagine reading a long novel and noticing that the writing style suddenly changes — the sentences grow shorter, the tone shifts, the vocabulary changes. Change-point detection does exactly this for numerical data: it scans a sequence and marks the moments where the underlying 'author' of the data seems to have switched. PELT achieves this efficiently by discarding candidate split points that cannot possibly be optimal, much like pruning dead branches from a search tree.
History
PELT was introduced by Killick, Fearnhead, and Eckley in 2012 in the Journal of the American Statistical Association. Before it, exact penalized segmentation was available through dynamic programming methods whose cost the source describes as quadratic or cubic, which limited their use on long series. The 2012 paper's contribution is a pruning step that preserves the exact solution while reducing the expected computational cost to linear.
When to use it
Choose PELT when you have a univariate or multivariate series and want to locate abrupt changes in the mean, the variance, or another distributional parameter, with changepoints that are relatively few and sharp. It requires that each segment can be reasonably described by one distribution from the family you specify, so a cost function matched to the data (Gaussian, Poisson, and so on) must be chosen and a penalty must be set. Do not use it when the process drifts gradually or changes smoothly, because segment-wise constant models will split such drift into artificial steps; state-space models or locally weighted regression are better suited to that situation. If the question is the probability of being in each regime over time rather than the location of the break times, a regime-switching model is a closer fit.
Limitations and considerations
- Penalty sensitivity: beta is a single value applied to every changepoint, so a value that suits one part of the series may over-segment or under-segment another.
- Within-segment homogeneity: each segment is assumed to be internally homogeneous under the chosen cost. A gradual trend inside a segment is not modelled and can appear as spurious changepoints.
- Pre-specified distributional family: the likelihood family must be chosen in advance, and a cost function that does not match the data distribution weakens detection.
- Dependence on pruning: the linear-cost result relies on the pruning step removing candidates quickly. When changepoints are dense, fewer candidates are removed and the computational advantage over an exhaustive search is reduced.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Exact search: PELT returns the globally optimal segmentation under its penalized criterion, whereas binary segmentation is a greedy procedure that can miss the best joint configuration of changepoints. The source reports accuracy gains from this exactness in its simulation studies.
- Linear expected cost: the source reports that, under mild conditions, the computational cost grows linearly with the number of observations, and that the method can be orders of magnitude faster than alternative exact methods in simulation. This matters for long series when changepoints are not extremely dense.
- Cost-function flexibility: the segment cost is defined by a likelihood, so the same search applies to any family for which that likelihood can be written, such as Gaussian or Poisson models.
- Explicit complexity control: the penalty term makes the trade-off between fit and the number of changepoints explicit, and BIC, AIC, or MBIC give named starting points for choosing it.
Applications
- Genomics: detecting copy-number variations in DNA sequencing data by identifying shifts in read-depth along chromosomes.
- Finance: locating regime changes in asset return volatility for dynamic risk modeling and algorithmic trading strategies.
- Climatology: identifying shifts in temperature or precipitation time series associated with climate events or sensor changes.
- Industrial monitoring: detecting faults or degradation in sensor streams from manufacturing equipment before failures occur.
- Neuroscience: segmenting electroencephalogram (EEG) or functional MRI time series into stationary epochs for subsequent analysis.
How it works
How it works
For each candidate segment running from observation s+1 to t, the cost C is the negative twice log-likelihood under the assumed within-segment model (for example, Gaussian). The cost is small when the segment is well described by a single set of parameters and grows when it is not, so it supplies the signal that the search uses to locate breakpoints.
Formula
C(y_{(s+1):t}) = -2\ell(y_{(s+1):t})The algorithm looks for the number m and the positions tau of the changepoints that minimize the total segment cost plus a penalty of m times beta. The penalty beta, selected with a criterion such as BIC, AIC, or MBIC, sets the trade-off between fit and complexity: a larger penalty produces fewer changepoints and fewer false detections, while a smaller one recovers finer structure at the risk of spurious breaks.
Formula
\min_{m,\tau} \left[ \sum_{i=1}^{m+1} C(y_{(\tau_{i-1}+1):\tau_i}) + m\beta \right]F(t) denotes the minimum penalized cost of segmenting the data up to time t. It is computed recursively, starting from a base value at time zero: for each t, every candidate last changepoint s is considered, and the one giving the smallest value of F(s) + C(y_{s+1:t}) + beta is retained. Evaluating every candidate at every step makes the search grow quadratically with series length; PELT reduces this work by removing candidates that can no longer be optimal.
Formula
F(t) = \min_{s < t} \left[ F(s) + C(y_{(s+1):t}) + \beta \right]A candidate s is removed from future consideration when F(s) + C(y_{s+1:t}) + K is at least F(t), where K is a constant. The validity of this rule depends on the cost satisfying an inequality for splitting a segment: the cost of two adjacent segments, plus K, does not exceed the cost of the single merged segment. Under that condition a pruned candidate cannot become optimal at any later time, so the exact solution is preserved.
Formula
F(s) + C(y_{(s+1):t}) + K \geq F(t) \Rightarrow \text{prune } sCommon pitfalls
- Applying a Gaussian cost to heavy-tailed or count data without checking the fit can produce spurious changepoints, because the model reads ordinary outliers or count variability as shifts in the mean.
- Using one penalty value across segments with different noise levels: a single beta does not adapt to local variance, so detection sensitivity can differ between noisy and quiet segments, and the same penalty may not suit the whole series.
- Reporting changepoints as exact time stamps: the output is a point estimate of each break location, and the uncertainty around each break should be assessed before it is interpreted as a precise date.
- Comparing raw penalty values across series of different lengths: the same raw BIC value behaves differently for a series of length 100 than for one of length 1,000,000, so penalty choices should be made in the context of the series length.
Frequently asked questions
How do I choose the penalty parameter beta?
The page lists BIC, AIC, and MBIC as the penalty schemes. BIC-type penalties grow with the logarithm of the series length and with the number of parameters per segment, which is why they are common defaults; the exact MBIC form should be checked in the documentation of the implementation you use. In practice, plotting the number of detected changepoints against the penalty value, and checking whether the detected breaks remain stable across nearby penalty values, helps calibrate beta for a specific dataset and cost function.
Is PELT suitable for multivariate time series?
Yes. PELT can be applied to multivariate data by using a multivariate cost function, such as the negative twice log-likelihood (C = -2 l) of a multivariate Gaussian, which jointly models all dimensions. When the number of variables is large relative to the segment length, regularized covariance estimators or dimension-reduction preprocessing should be applied before running PELT to avoid rank-deficiency issues in the cost computation.
How does PELT differ from binary segmentation?
Binary segmentation greedily splits the series in two at the most significant point and then recurses on each subseries, which gives an approximate solution. PELT instead solves the global penalized problem exactly, so it returns the best segmentation under the chosen criterion. The source compares the two directly and reports accuracy improvements from this exactness in its simulation studies, which matters most when near-optimal greedy splits differ from the globally optimal partition.
Related methods
Sources
Killick, R., Fearnhead, P., & Eckley, I. A. (2012). Optimal detection of changepoints with a linear computational cost. Journal of the American Statistical Association, 107(500), 1590–1598.
Open DOI reference