Autocorrelation Created 2026-09-28 Updated 2026-10-14
The autocorrelation function of a real weakly stationary process with positive variance is its normalized autocovariance:
It is dimensionless, with , , and by the Cauchy-Schwarz inequality. It is unchanged by replacing with for fixed . This makes autocorrelation useful when comparing records measured on different scales. The ACF is a property of the model; the sample autocorrelation function estimates it and will generally not reproduce theoretical zeros exactly.
An AR(1) with coefficient has autocorrelations at lags one through three. With these become : the same diminishing magnitude, alternating in sign. An MA(1) with instead has lag-one autocorrelation and zero at every higher lag. Equal numerical coefficients in an autoregressive model and a moving-average model do not mean equal dependence. See Bartlett, lecture 3: theoretical ACFs and prediction.
Figure 1.
Theoretical autocorrelation: AR(1) with coefficients 0.7 and -0.7, compared with MA(1) with coefficient 0.7
. Details.
The bars show exact model autocorrelations, not estimates from the illustrated sample paths in time series. The AR(1) retains a diminishing trace of a disturbance at arbitrarily large lags; the MA(1) stops sharing driving noise after lag one. A zero autocorrelation means uncorrelated random variables, and does not generally imply independent random variables. For a Gaussian process it does imply independence of the two coordinates.
There is a direct prediction interpretation. Among affine predictions based on just , the best linear predictor of is , with mean squared prediction error . Thus negative autocorrelation is also useful predictive information. A prediction using the whole observed past can do better; best linear prediction from a finite past describes that problem. Interpreting the affine prediction as a conditional expectation requires additional assumptions, such as a joint normal distribution.
For a causal autoregressive moving-average model driven by independent white noise, multiply its recursion by and take covariance. When , all driving white noise values in its moving-average term occur strictly after , so their covariances with vanish. The resulting homogeneous tail recurrence has the same characteristic roots as the autoregressive model recursion. Distinct roots of modulus below one give exponential autocovariance decay.
A conditional likelihood function conditions on an initial observation or another specified statistic. In an autoregressive model, conditioning on the first observed state avoids modeling its initial density. For Gaussian transitions, maximizing this likelihood is a regression problem; treating an autoregressive coefficient as known changes the exact distribution of an estimated mean.
Correlogram 2026-10-14
A correlogram plots the estimated autocorrelation function against lag. The plot helps distinguish the finite autocorrelation cutoff of a moving-average model from the decaying dependence of a causal autoregressive model. Estimated cutoffs are diagnostics, not exact finite-sample identities.
A weakly stationary process satisfying an autoregressive model can depend on future driving white noise. For with , the convergent in the sense of mean-square convergence solution is . Its autocovariance is . This is different from a causal time series.
Order identification by autocorrelation cutoffs Created 2026-10-06 Updated 2026-10-07
For minimal causal and invertible models, the partial autocorrelation function cuts off after the order of a pure autoregressive model, whereas the autocorrelation function cuts off after the order of a pure moving-average model. Estimated cutoffs suggest candidate orders; finite-sample noise and residual diagnostics still matter.
Partial autocorrelation function Created 2026-10-06 Updated 2026-10-14
The partial autocorrelation at lag is the correlation of and after their linear projections onto the intervening observations are removed. A causal autoregressive model of order has zero partial correlations after lag . This complements the finite cutoff of the autocorrelation function for a moving-average model.
For a weakly stationary process with finite second moments, let and , independent of . If , its autocorrelation function is . Given observations , one usual sample autocovariance function is
The correlogram plots against lag . The partial autocorrelation function at lag is the correlation between and after linearly projecting each onto the intervening observations. Its sample version can be calculated by solving the Yule-Walker regression equations
then taking the last coefficient . Equivalently, use the corresponding residual correlation from the sample regressions, with a consistent covariance convention.
For a minimal causal autoregressive model of order , the population partial autocorrelation function is zero after lag , while the autocorrelation function follows an exponentially decaying or damped oscillatory tail. For a moving-average model of order , its autocovariance and hence autocorrelation are zero after lag , because observations farther apart share no driving-noise terms; its partial correlations usually tail off. These order identification by autocorrelation cutoffs patterns suggest AR or MA candidate orders. Sample cutoffs are approximate and should be judged with sampling uncertainty and residual diagnostics; the familiar white-noise bands near are a null approximation, not universal confidence limits for a dependent series.
For the trend problem, write a symmetric estimator as
Reproducing arbitrary constant and quadratic trends requires and ; the linear-trend condition holds automatically by symmetry. These constraints follow by expanding for a trend . Thus , . Since the errors are uncorrelated and the estimator is unbiased, its mean squared error is
The strictly convex quadratic is minimized at , giving the five-point symmetric quadratic trend smoother
This weighted moving average allows negative coefficients; a convex average could not cancel the quadratic moment.
For three points, symmetry gives weights . Unbiasedness for every quadratic requires and , so the only solution is . Thus there is no nontrivial three-point quadratic-preserving smoother. The literal claim that there is no unbiased estimator at all is false, since is unbiased with error variance . This is the three-point quadratic reproduction forces the identity filter distinction.
For seasonal extraction by a centred moving average, use the additive decomposition , where has period and its values over one period sum to zero. An average covering a full period removes the seasonal component and approximately retains a slowly changing trend. If is odd, take the centred length- average; if is even, centre it by averaging two adjacent length- averages, giving half weights at the two endpoints. Subtract this trend estimate from the data, average residuals within each seasonal phase over different cycles, and centre the resulting phase estimates to sum to zero. For a multiplicative decomposition, use ratios and normalize the phase estimates to average one.
Successive moving averages compose by convolution of their weights. Even an initially uncorrelated noise series becomes correlated: for weights , the filtered noise has covariance . Further smoothing changes this covariance again and can turn random variation into apparently persistent patterns while obscuring genuine short-scale features. Spectrally, repeated use of a transfer function multiplies the spectrum by after applications, so repeated smoothing is not harmless repetition of the same estimate.
In simple exponential smoothing, choose and update . Iteration gives , so older observations receive exponentially decreasing weights. Forecast for every . This is appropriate for a locally stable level with no persistent trend or seasonality.
For a local linear trend, double exponential smoothing supplies level and slope. Holt's linear trend method uses
Another standard convention is Brown's double exponential smoothing: smooth twice with the same gain, and , then put , and forecast . These variants handle a nonseasonal trend; seasonal effects need separate modelling, and a long-horizon linear extrapolation assumes the current local slope persists.
For a weakly stationary process with mean and nonzero variance, put and . The function is its autocorrelation function. For observations , one common sample autocorrelation function is
A correlogram plots these estimates against lag; the population analogue plots .
The lag- partial autocorrelation function measures the correlation between and after removing their linear projections on the intervening observations. Its sample counterpart can be calculated by the Yule-Walker equations: solve
and take , assuming the matrix is nonsingular. This defines a standard sample partial autocorrelation function.
For a minimal causal autoregressive model of order , the autocorrelation typically decays geometrically, possibly with damped oscillations, whereas the partial autocorrelation function is zero beyond lag : after those preceding values have been projected out, the innovation is orthogonal to older values. For a moving-average model of order , nonoverlapping sets of driving white noise give for ; its partial autocorrelation function generally tails off when the representation is invertible. Thus an ACF cutoff suggests an MA order; a PACF cutoff suggests an AR order. An ARMA model generally has neither cutoff. These are population properties; sample noise makes cutoffs approximate, so fitted residuals and uncertainty should also be inspected. Under independent white noise, fixed-lag sample correlations have approximate standard error , giving a rough diagnostic band rather than a universal simultaneous test.
Let . The causality root criterion for an autoregressive model,
is a sufficient condition for a weakly stationary process solution, and gives the causal solution . Indeed is analytic in a disk of radius greater than one, so its Taylor coefficients decay geometrically. The series therefore has mean-square convergence and defines a linear filter of a stationary time series; multiplying by verifies the equation.
For the specified order-two model, put . Since ,
When , its roots are and . Both have modulus greater than one exactly when . The case is white noise and satisfies the same inequality. Consequently
This is the causal stationarity condition selected above. Without causality, a two-sided autoregressive model can also have a noncausal stationary autoregression when its polynomial has no unit-circle zeros. Thus the inequality is not a necessary condition for all conceivable weak stationarity solutions; the causal interpretation is the one required by the subsequent innovations and forecasting questions.
To find the Wold representation, expand . Matching coefficients gives , and . Hence
Here are the Fibonacci numbers. The coefficient formula also follows by partial fractions in the displayed factorization. Absolute summability follows from and . The past observation span equals the past noise span, because the causal series gives one inclusion and gives the reverse inclusion. Thus these noises are the linear innovations, and there is no additional deterministic component. This is the Fibonacci-coefficient autoregression.
The best linear prediction from an infinite past is the orthogonal projection onto the closed span of . Future white noise is orthogonal to that span. Substitution in the recursion therefore gives
The respective errors are and , so their mean squared errors are and . No normal distribution assumption is needed for these linear forecasts.
A weakly stationary process has finite second moments, a mean independent of , and a covariance depending only on the separation of the observations. Its autocovariance function and autocorrelation function are
where the autocorrelation requires .
Write the autoregressive polynomial as , so the autoregressive model is , with the backshift operator. It is important to distinguish a weakly stationary process from a causal time series: weak stationarity alone does not require to depend only on present and past white noise.
For a two-sided weakly stationary process, the two-sided stationary inverse of an autoregressive polynomial exists and is unique if has no root on the unit circle. To find the excluded parameters, set . The imaginary part of gives
The case is harmless. The possible frequencies are . Since , and , the exceptional parameters are and . Thus, with nondegenerate white noise, the literal two-sided answer is
For completeness, away from those values has an absolutely summable Laurent series on an annulus containing the unit circle. Its bilateral coefficients define an -convergent linear filter of a stationary time series applied to , giving the required solution. Applying the same inverse to the equation gives uniqueness. At an exceptional value, the spectral measure of a stationary time series would have to satisfy . A zero of on the unit circle makes the resulting density nonintegrable near that zero, contradicting finite variance.
If the usual additional causal time series convention is intended, the causality root criterion for an autoregressive model requires the roots of to lie outside the closed unit disk. Equivalently, the roots of lie strictly inside it. The real quadratic stability conditions reduce to and , giving the narrower answer
The printed question does not explicitly impose this extra convention. Both answers have therefore been distinguished. If , the exceptional parameters permit nonunique stationary homogeneous solutions rather than the nonexistence conclusion above.
At ,
Consequently the Wold representation is
The coefficients are absolutely summable, and . The past of lies in the closed linear span of the past white noise; conversely recovers that noise from present and past . Thus is orthogonal to the past of and is its one-step linear prediction error, as required for the Wold decomposition. There is no deterministic component.
Using orthogonality of the white noise, put and calculate the autocovariance by geometric sums:
Hence
In particular, and ; these also satisfy the Yule-Walker equations for this autoregressive model.
For a series with constant mean , write . An autoregressive moving-average process has the form
where is zero-mean white noise with variance . The backshift operator is . Define the autoregressive polynomial and the moving-average polynomial by
The autoregressive operator and moving-average operator give the concise equation
Orders are normally specified minimally, with nonzero last coefficients and no common polynomial factor. A displayed unreduced equation can have larger orders than the process actually needs.
Causality means that the stationary process can be recovered from present and past noise:
Invertibility means that the noise can be recovered from present and past observations:
The causality and invertibility root criteria for an ARMA model, for the reduced representation, are
Indeed the transfer series are and . When all denominator roots lie outside the closed unit disc, each rational function is analytic on a larger disc, so its Taylor coefficients decay geometrically and are absolutely summable. Conversely, a genuine denominator zero in the closed unit disc gives a pole incompatible with such a convergent filter. The reduced-representation proviso prevents a cancelled root from being mistaken for an obstruction.
For order identification by autocorrelation cutoffs, first estimate the sample autocorrelation function and sample partial autocorrelation function from a suitably stationary, centred series. The autocorrelation function is . The lag- partial autocorrelation function is the last coefficient in the best linear regression of on , equivalently the correlation left after removing the intervening lags.
For a pure moving-average model of order , observations more than lags apart share no noise, so the population ACF is zero beyond , while the PACF usually tails off. For a pure autoregressive model of order , the PACF is zero beyond , while the ACF usually decays, possibly with damped oscillation. Thus a clear sample ACF cutoff suggests an MA order and a clear PACF cutoff suggests an AR order. For a mixed ARMA process both usually tail off, so these plots guide a small set of candidate orders rather than determine uniquely. Sampling variation blurs cutoffs; compare fitted candidates and check that their residual ACF resembles white noise. Common-factor cancellation can also disguise the orders in a displayed equation.
The useful autoregressive model is for the squares, not for signed observations. Put and
Then
The errors form a martingale difference sequence relative to the noise history, because the current standardized noise is independent of the past. When the fourth moment is finite they have finite variance and are uncorrelated across distinct times, although their conditional variance depends on the regressor. In centered form, .
For ordinary least squares, use the response-regressor pairs , , . With their separate means and , minimize . If the regressor sum of squares is positive, the estimators are
The two means use the matched pairs; replacing them indiscriminately by a single full-sample mean is not the exact least-squares formula. The noise-series representation supplies an ergodic stationary process. If , finite regressor second moments and the error's zero conditional expectation justify the usual population regression and statistical consistency argument. The observations still define a finite-sample least-squares fit outside that moment range, but the ordinary finite-variance justification must not be claimed there. If parameter constraints are required, minimize the same criterion subject to and , rather than assert that unconstrained estimates automatically satisfy them.
Use the sample autocorrelation function and sample partial autocorrelation function to look for approximate cutoffs. For a minimal causal autoregressive model of order , the partial autocorrelation function is zero beyond , while the autocorrelation function usually tails off, possibly with damped oscillation. For an invertible moving-average model of order , the autocorrelation function is zero beyond , while the partial autocorrelation function tails off. In a mixed autoregressive moving-average model, both generally tail off.
Thus the last visibly nonzero partial correlation suggests an autoregressive order, and the last visibly nonzero autocorrelation suggests a moving-average order. Finite samples do not produce exact zeros. Approximate white-noise reference bands can help flag clearly nonzero lags, but they are not universal confidence intervals for arbitrary correlated processes. Fit a few suggested orders and check residual autocorrelation, rather than treating these plots as a proof of the model order. This is order identification by autocorrelation cutoffs.
For a causal autoregressive model of order , the population partial autocorrelation function cuts off after lag , whereas the autocorrelation function generally decays. For an invertible moving-average model of order , the autocorrelation function cuts off after lag , whereas the partial correlation coefficients generally decay. For a mixed autoregressive moving-average model, both generally decay. Exponential decay may alternate in sign or show damped oscillations. Sample correlation coefficients only approximate these patterns, so isolated crossings of the significance bands are not exact order tests.
In PDF Figure 1, the autocorrelation function alternates sign, with a large negative lag-one correlation coefficient and geometrically decreasing magnitude. The partial autocorrelation function has essentially one substantial spike, negative at lag one and about ; later values mostly lie within the displayed bands. Thus a stationary AR(1) with a negative coefficient is the natural first model, with initially near . The trace fluctuates around an approximately constant mean and shows no evident deterministic trend.
Fit that model, compare nearby low-order alternatives using likelihood function and an Akaike information criterion or Bayesian information criterion, and inspect the residual autocorrelation function and residual variance. A few small later PACF spikes are expected in a plot with many lags. The roughly white noise bands are a guide, rather than simultaneous guarantees for every lag.
The sign alternation also suggests concentration of spectral power near the high-frequency end: the AR(1) denominator is smallest near when . From estimated and lag-one correlation coefficient one can estimate innovation variance as . The persistence parameter controls the decay rate and long-run variance of a stationary process. These plots do not establish a normal distribution, independence, or the absence of nonlinear dependence; correlation coefficients of squared residuals can provide a separate variance diagnostic.
Time series Created 2026-09-28 Updated 2026-10-13
A time series is a sequence of observations indexed by time: hourly temperatures, daily sales, or successive measurements of a fluctuating signal. A probabilistic model treats these observations as one sample path of a stochastic process . For equally spaced observations, take and measure a lag of a time series in observation intervals. The order matters: shuffling a record preserves its observed values but destroys information about how one value follows another.
Two basic ways to model temporal dependence are an autoregressive model, which feeds past observations into the next value, and a moving-average model, which combines present and past white noise. An AR(1) carries a disturbance forward with diminishing weights; an MA(1) carries it into just two observations. Their autocorrelation functions make this difference visible. A weakly stationary process supplies a common mean and a lag-dependent autocovariance with which to describe that dependence.
These models help forecast future observations and quantify the uncertainty of averages. Successive measurements need not provide as much information as the same number of independent random variables: the long-run variance of a stationary process accounts for their accumulated covariances. Trend and seasonality require attention before fitting a stationary model; differencing and a seasonal difference operator can help, but do not automatically make every process stationary. See Peter Bartlett, Introduction to Time Series Analysis, lecture 1: objectives and models.
Figure 1.
Stationary Gaussian examples: positive AR(1) persistence, negative AR(1) alternation, and MA(1) short memory
. Details.
The three illustrated sample paths have zero mean and unit variance, so the visual comparison concerns dependence rather than scale. The AR(1) paths start from their stationary normal distribution, independently of future discrete Gaussian white noise; the MA(1) path includes the noise preceding its first observation. These are finite random examples, not exact pictures of an ACF. Compare their theoretical autocorrelation functions in autocorrelation.
Historically, Yule's 1927 study investigated disturbed periodicities in sunspot observations; it should not be read as the discovery of the particular AR(1) examples here. Slutsky studied how summing random inputs could produce wave-like records, a warning against inferring a periodic cause from appearance alone. The editorial note to his 1937 English paper identifies the 1927 Russian original. See G. Udny Yule, On a method of investigating periodicities in disturbed series, with special reference to Wolfer's sunspot numbers (1927) and Eugen Slutsky, The Summation of Random Causes as the Source of Cyclic Processes (1937), including the editorial note on the 1927 original.
If an autoregressive model has white noise of positive variance, a unique weakly stationary process solving its equation on all integer times exists precisely when its autoregressive polynomial has no root on the unit circle. In that case has an absolutely summable Laurent series on an annulus containing the unit circle; its coefficients define a bilateral linear filter of a stationary time series. Applying that inverse also proves uniqueness among bounded second-moment solutions. A root on the unit circle forces the candidate spectral density of a stationary process to have a nonintegrable singularity. The stronger causality root criterion for an autoregressive model requires every root outside the closed unit disk.
Yule-Walker equations 2026-10-14
For a causal autoregressive model with centered white noise of variance , multiplying by past values and taking expectations yields for , and . These Yule-Walker equations determine the autocovariance from the coefficients and noise variance, or estimate coefficients from observed autocovariances. Causality supplies the needed orthogonality of the current noise to past observations.