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.
1 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.
1 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.
1 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.
1 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.
1 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.
1 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.
1 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.
1 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.
1 languagescore - Engle-Granger test
Tests for cointegration by regressing one series on the others and applying a unit root test to the residuals.
1 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.
1 languagesadvanced - Johansen test
Finds the number of cointegrating relations in a vector autoregression by the canonical correlations between differences and lagged levels.
1 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.
1 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.
1 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.
1 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.
1 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