Algorithm Search⌘K

Time series and sequential analysis

Problems

  • Change-point detection

    Find the times at which the distribution of a sequence changes, offline from a whole series or online with a small delay and few false alarms.

    core

Algorithms

  • Augmented Dickey-Fuller test

    Tests the null of a unit root by the t-statistic of the lagged level in a regression of differences, with lagged differences added. Its null law is nonstandard.

    Θ(n k^2) worst · best1 languagescore
  • Binary segmentation

    Cuts a series at its single best change point, then repeats on each part while the split statistic exceeds a threshold. Cost O(n(m+1)) for m changes, O(n²) in the worst case.

    Θ(n(m+1)) worst1 languagescore
  • CUSUM

    Page's online detector that sums log likelihood ratios, clips the sum at zero and alarms above a threshold. Lorden proved it asymptotically optimal, Moustakides exactly optimal.

    Θ(n) worst1 languagescore
  • Holt-Winters method

    Forecasts by exponentially smoothed updates of a level, a trend and a seasonal component. Holt's method has level and trend only.

    Θ(n + h) worst · best1 languagescore
  • KPSS test

    Tests the null of stationarity around a level or trend against a unit root, by the partial sums of residuals. It complements the Dickey-Fuller test.

    Θ(n (l + 1)) worst · best1 languagescore
  • Ljung-Box test

    Tests whether the first h autocorrelations of a series or of model residuals are jointly zero by a weighted sum of their squares, which is approximately chi-squared under IID noise.

    Θ(n h) worst · best1 languagescore
  • STL decomposition

    Cleveland's decomposition of a series into trend, seasonal and remainder parts by alternating LOESS smoothers in an inner and a robust outer loop.

    Θ(k (r + 1) n (s + u + l) + r n log n) worst · best1 languagescore
  • Sequential probability ratio test

    Wald's test that reads one observation at a time and stops when the likelihood ratio leaves an interval (B, A). No test with its error rates has a smaller expected sample size.

    Θ(n) worst1 languagescore
  • Yule-Walker equations

    Estimates an AR(p) model by solving the Toeplitz system of sample autocovariances Gamma_p phi = gamma_p, in O(p^2) by the Levinson-Durbin recursion.

    Θ(n p) worst · best1 languagescore
  • Engle-Granger test

    Tests for cointegration by regressing one series on the others and applying a unit root test to the residuals.

    Θ(n (m + p)^2) worst · best1 languagesadvanced
  • Innovations algorithm

    Computes one-step predictors and their error variances from a covariance function by orthogonalizing the observations. It gives the exact Gaussian likelihood.

    Θ(n^3) worst1 languagesadvanced
  • Johansen test

    Finds the number of cointegrating relations in a vector autoregression by the canonical correlations between differences and lagged levels.

    Θ(n K^2 p^2 + K^3) worst · best1 languagesadvanced
  • O'Brien-Fleming boundary

    The group sequential boundary c_k = C sqrt(K/k), very strict at early looks and near the fixed-sample value at the last. C comes from recursive integration and bisection.

    O(B K m^2) worst1 languagesadvanced
  • PELT

    Finds the change points that minimize a penalized cost exactly. It runs the optimal partitioning recursion and prunes start points that can never be optimal again.

    Θ(n²) worst1 languagesadvanced
  • Bayesian online change-point detection

    Adams and MacKay's recursion for the posterior of the run length since the last change, from a hazard rate and a conjugate model for each segment.

    Θ(n²) worst1 languagesresearch
  • Mixture sequential probability ratio test

    An SPRT whose alternative is a mixture over effect sizes. Its likelihood ratio is a test martingale, so its test and its p-values stay valid at any stopping time.

    Θ(n) worst1 languagesresearch

Techniques

  • Box-Jenkins method

    The cycle of identifying an ARIMA model from the ACF and PACF, estimating it, and checking its residuals, repeated until the residuals look like white noise.

    core
  • Alpha spending function

    Lan and DeMets's rule that spends the type I error as a function of the information fraction, so the timing and number of interim looks need not be fixed in advance.

    1 languagesadvanced
  • Group sequential design

    A trial plan that analyses the data at a few interim points and may stop early, with boundaries chosen so that the overall type I error stays at alpha.

    advanced
  • Whittle likelihood

    Approximates the Gaussian likelihood of a stationary series by a sum over Fourier frequencies of log f plus the periodogram over f, with f the spectral density.

    1 languagesadvanced

Definitions

  • Stationary process

    A process whose mean is constant and whose autocovariance depends only on the lag. Strict stationarity asks that all joint laws be shift invariant.

    intro
  • Granger causality

    X Granger-causes Y when past values of X improve the prediction of Y beyond the past of Y alone. It is tested by an F-test in a vector autoregression.

    core
  • Partial autocorrelation function

    The correlation of X_t and X_(t+k) after removing the linear effect of the values between them. It cuts off after lag p for an AR(p) process.

    core
  • Cointegration

    Nonstationary series are cointegrated when some linear combination of them is stationary, so they share a common stochastic trend.

    advanced
  • Confidence sequence

    A sequence of confidence sets that contains the true parameter at all times at once with probability 1 - alpha, so it stays valid at any stopping time.

    research
  • Test martingale

    A nonnegative process that starts at 1 and is a martingale (or supermartingale) under the null. It is the wealth of a bettor against the null and can be checked at any time.

    research

Theorems

  • Wold decomposition theorem

    Every weakly stationary process is the sum of a deterministic part and an infinite moving average of its one-step prediction errors.

    advanced
  • Ville's inequality

    A nonnegative supermartingale that starts at 1 ever reaches 1 / alpha with probability at most alpha. It makes sequential tests valid under optional stopping.

    research

Models

  • Autoregressive model

    A model in which each value is a linear combination of the previous p values plus white noise. It has a causal stationary solution when the roots of phi(z) lie outside the unit circle.

    intro
  • Moving-average model

    A model in which each value is a linear combination of the current and previous q white noise terms. Its autocorrelation is zero beyond lag q.

    intro
  • ARIMA model

    An ARMA model for the series differenced d times, used for series with stochastic trends. Seasonal ARIMA adds seasonal differences and lags.

    core
  • ARMA model

    A stationary model with an autoregressive part of order p and a moving-average part of order q, a parsimonious form for many autocorrelation patterns.

    core
  • Vector autoregression

    An autoregressive model for a vector of series, in which each series depends on lags of all of them. It is fitted equation by equation with least squares.

    core
  • GARCH model

    Bollerslev's model in which the conditional variance depends on past squared errors, as in Engle's ARCH, and on its own past values. It captures volatility clustering.

    advanced