Search

Search papers and lessons

Stationary Process

Level 3 · 9 min read

A stationary process is a random process whose statistical behaviour does not shift with time, so its mean is fixed and its correlations depend only on how far apart two moments are.

On this page

  • Colour = topic mix
  • Probability
  • Linear algebra
  • Stochastic processes
  • Discrete math
  • Sign in to see your progress

TL;DR

A stochastic process is stationary when its statistical character does not change as time goes by. Its mean stays the same, its spread stays the same, and the relation between the value at one moment and the value at another depends only on the gap between those two moments, not on where on the timeline they sit. Stationarity is what lets you learn the behaviour of a process from one long record and expect it to hold tomorrow.

Where you'll see it: in time-series forecasting (ARMA and state-space models assume it), in signal processing for noise and filters, and in the statistical tests that decide whether a financial or economic series can be modelled without first removing a trend.

Intuition

The same weather, any day

Think about the noise on a radio receiver. If you record it on Monday morning or on Friday afternoon, the hiss sounds the same: the same average level, the same loudness, and the same rhythm of crackle. The particular waveform differs, but the rules that generate it do not change over the week. A process with this property is stationary. Its law is fixed even though its values keep moving.

Now compare a bank balance that starts at zero and grows by random deposits. Its average keeps drifting upward, and its spread keeps widening. Yesterday's behaviour does not describe next year's. That process is not stationary, and no amount of past data gives you a fixed target to aim at.

This matters because almost all of statistics for time series works by assuming a fixed target. To estimate a mean from a record, to measure how fast the past fades from the present, or to predict the next value, you need the rules to hold still long enough to be learned. Stationarity is the assumption that makes a single long recording as informative as many independent ones.

Two things that must not move

Stationarity is about two features staying put. The mean of XtX_t must be the same at every time tt. The covariance between XsX_s and XtX_t must depend only on the gap ∣t−s∣|t-s|. Those two conditions, plus finite variance, define the version used in practice.

02468100246810time tvariance
  • random walk, Var(X_t) = t
  • AR(1) with φ = 0.5, constant variance
The random walk's variance grows without limit, so it is not stationary. The AR(1) process settles at a fixed variance of 4/3 (worked out below).

The math

Two definitions

Definition: Strict stationarity

A process {Xt}\{X_t\} is strictly stationary if, for every choice of times t1,…,tnt_1, \dots, t_n and every shift hh, the joint distribution of (Xt1,…,Xtn)(X_{t_1}, \dots, X_{t_n}) equals the joint distribution of (Xt1+h,…,Xtn+h)(X_{t_1+h}, \dots, X_{t_n+h}).

Strict stationarity says that shifting the whole pattern along the timeline changes nothing about its probabilities. It is a strong condition because it constrains every joint distribution, and it is hard to check from data.

Definition: Weak (covariance) stationarity

A process {Xt}\{X_t\} is weakly stationary if it has finite second moments and

E[Xt]=μfor all t,Cov(Xs,Xt)=γ(t−s)for all s,t,\mathbb{E}[X_t] = \mu \quad\text{for all } t, \qquad \mathrm{Cov}(X_s, X_t) = \gamma(t-s) \quad\text{for all } s, t,

where μ\mu is a constant and γ\gamma is a function of the lag only.

Here E\mathbb{E} is the expectation (the long-run average over many realisations), and Cov\mathrm{Cov} is the covariance. The function γ(h)\gamma(h) is called the autocovariance at lag hh: the covariance between two points that are hh steps apart. Weak stationarity only looks at the first two moments, which is what most estimation methods use. Strict stationarity implies weak stationarity (given finite variance), but not the reverse in general. For a Gaussian process the two coincide, because a Gaussian is completely described by its mean and covariance.

Autocovariance and autocorrelation

Write the variance as γ(0)=Var(Xt)\gamma(0) = \mathrm{Var}(X_t), which does not depend on tt. The autocorrelation is the autocovariance scaled to lie between −1-1 and 11:

ρ(h)=γ(h)γ(0).\rho(h) = \frac{\gamma(h)}{\gamma(0)}.

Two facts follow directly. First, γ(−h)=γ(h)\gamma(-h) = \gamma(h), because covariance is symmetric. Second, ∣γ(h)∣≤γ(0)|\gamma(h)| \le \gamma(0), since the correlation between two random variables cannot exceed one in absolute value. Together these mean that a stationary process has one variance and one curve ρ(h)\rho(h) describing how memory decays with lag. That curve is the fingerprint of the process.

Examples of stationary processes

White noise. Take independent random variables εt\varepsilon_t with mean 0 and variance σ2\sigma^2. Then γ(0)=σ2\gamma(0) = \sigma^2 and γ(h)=0\gamma(h) = 0 for every h≠0h \ne 0. There is no memory at all: knowing the present says nothing about the future.

Autoregressive model of order 1, AR(1). Let

Xt=φXt−1+εt,∣φ∣<1,X_t = \varphi X_{t-1} + \varepsilon_t, \qquad |\varphi| \lt 1,

with εt\varepsilon_t white noise of variance σ2\sigma^2. Each value is a fraction φ\varphi of the previous one plus a fresh shock. The condition ∣φ∣<1|\varphi| \lt 1 is what keeps the process from exploding. Assuming stationarity, the variance satisfies γ(0)=φ2γ(0)+σ2\gamma(0) = \varphi^2\gamma(0) + \sigma^2, so

γ(0)=σ21−φ2,γ(h)=φ∣h∣ σ21−φ2,ρ(h)=φ∣h∣.\gamma(0) = \frac{\sigma^2}{1-\varphi^2}, \qquad \gamma(h) = \varphi^{|h|}\,\frac{\sigma^2}{1-\varphi^2}, \qquad \rho(h) = \varphi^{|h|}.

The autocorrelation decays geometrically. A larger ∣φ∣|\varphi| means longer memory.

Why a random walk is not stationary

A random walk St=ε1+⋯+εtS_t = \varepsilon_1 + \dots + \varepsilon_t with i.i.d. steps of variance σ2\sigma^2 has Var(St)=tσ2\mathrm{Var}(S_t) = t\sigma^2. The variance grows with tt, so the process fails the first condition. Its differences εt=St−St−1\varepsilon_t = S_t - S_{t-1} are white noise, which is stationary. This is the standard way to make a process stationary: difference it until the trend goes away.

Spectral view

A stationary process also has a description in frequency. The spectral density f(ω)f(\omega) is defined through the autocovariance by

f(ω)=12π∑h=−∞∞γ(h) e−iωh,f(\omega) = \frac{1}{2\pi}\sum_{h=-\infty}^{\infty} \gamma(h)\, e^{-i\omega h},

where ω\omega is an angular frequency and ii is the imaginary unit. By the Wiener–Khinchin theorem, f(ω)f(\omega) is the power the process carries at frequency ω\omega. White noise has a flat spectrum (every frequency equally loud), while a slowly varying AR(1) with φ\varphi close to 1 concentrates its power at low frequencies. Reading a series in frequency is often easier than reading the autocorrelation curve, and both describe the same stationary object.

Worked examples

Example
AR(1) with φ = 0.5 and σ² = 1

We have Xt=0.5 Xt−1+εtX_t = 0.5\,X_{t-1} + \varepsilon_t with Var(εt)=1\mathrm{Var}(\varepsilon_t) = 1.

  1. Stationary variance: γ(0)=11−0.25=10.75≈1.3333\gamma(0) = \dfrac{1}{1 - 0.25} = \dfrac{1}{0.75} \approx 1.3333.
  2. Lag-1 autocovariance: γ(1)=0.5×1.3333≈0.6667\gamma(1) = 0.5 \times 1.3333 \approx 0.6667.
  3. Lag-2 autocovariance: γ(2)=0.52×1.3333≈0.3333\gamma(2) = 0.5^2 \times 1.3333 \approx 0.3333.
  4. Autocorrelations: ρ(1)=0.6667/1.3333=0.5\rho(1) = 0.6667 / 1.3333 = 0.5 and ρ(2)=0.3333/1.3333=0.25\rho(2) = 0.3333 / 1.3333 = 0.25, which matches φ∣h∣\varphi^{|h|} at h=1h = 1 and h=2h = 2.

Interpretation: the variance settles at about 1.33 however long the series runs. Two points one step apart have correlation 0.5, and two points two steps apart have correlation 0.25. The correlation halves with each extra step of lag.

Example
Random walk versus its differences

Let StS_t be a random walk with steps of variance σ2=1\sigma^2 = 1, so Var(St)=t\mathrm{Var}(S_t) = t.

  1. At t=4t = 4, Var(S4)=4\mathrm{Var}(S_4) = 4. At t=100t = 100, Var(S100)=100\mathrm{Var}(S_{100}) = 100.
  2. The variance is different at the two times, so StS_t is not stationary.
  3. Define Dt=St−St−1D_t = S_t - S_{t-1}. Then DtD_t is one fresh step, so E[Dt]=0\mathbb{E}[D_t] = 0 and Var(Dt)=1\mathrm{Var}(D_t) = 1 at every tt.
  4. For h≠0h \ne 0, DtD_t and Dt+hD_{t+h} use different steps, so γ(h)=0\gamma(h) = 0.

Interpretation: DtD_t is stationary white noise. Differencing turned a process whose spread keeps growing into one whose spread stays at 1. A sales or price series that trends upward is often modelled this way: fit the model to the differences, then add the trend back when forecasting.

Tradeoffs and failure modes

Stationarity is a modelling choice, and real data often violates it. The table below lists the usual situations.

SituationWhat goes wrongBetter choice
Series with a visible trendThe mean is not constant, so sample averages are biased for the current levelRemove the trend, or difference the series until it looks stationary
Variance grows with the level (prices, counts)Constant-variance formulas underestimate spreadTransform first (logarithm or square root), then check stationarity
Structural break (a policy change, a new sensor)One fitted law covers two different regimesSplit the record, or use a model with changing parameters
Unit root, φ=1\varphi = 1The AR(1) formula σ2/(1−φ2)\sigma^2/(1-\varphi^2) divides by zero, and the process wandersUse a random-walk model with differences
Short recordSample autocorrelations are noisy, so the stationarity check itself is unreliableGather more data, or avoid heavy time-series claims

A practical warning: stationarity tests such as the augmented Dickey–Fuller test have their own assumptions and error rates, so a single test result should not settle the question. Plot the series and its autocorrelation first, then test.

History

The modern theory grew out of two lines of work. Autoregressive models were used by George Udny Yule in the 1920s to study sunspot cycles, and the idea of a process whose statistical properties are fixed over time was made precise in the 1930s. Aleksandr Khinchin published a foundational treatment of stationary stochastic processes in 1934, building on work by Norbert Wiener on the relationship between correlation and spectra. Herman Wold later showed that any weakly stationary process can be split into a deterministic part and a sum of uncorrelated shocks, which is why AR and moving-average models are so central. Stationarity caught on because it turned a single noisy record into something statistics could estimate, in engineering, economics and later in machine learning for sequences.

Check yourself

QuestionWhich two conditions define weak (covariance) stationarity?Show answer

The mean E[Xt]\mathbb{E}[X_t] must be the same constant μ\mu at every time, and the covariance Cov(Xs,Xt)\mathrm{Cov}(X_s, X_t) must depend only on the lag ∣t−s∣|t-s|. Finite second moments are also assumed. Nothing is said about higher moments or the full joint distribution, which is what distinguishes weak from strict stationarity.

QuestionAn AR(1) process has φ=0.8\varphi = 0.8 and σ2=1\sigma^2 = 1. What is its stationary variance γ(0)\gamma(0)?Show answer

Use γ(0)=σ2/(1−φ2)=1/(1−0.64)=1/0.36≈2.778\gamma(0) = \sigma^2/(1-\varphi^2) = 1/(1-0.64) = 1/0.36 \approx 2.778. The variance is larger than the one in the worked example because the process keeps more of its past, so shocks accumulate more before they fade.

QuestionWhy does a random walk fail to be stationary even though its steps are stationary white noise?Show answer

The position is the running sum of the steps, so its variance is tσ2t\sigma^2, which grows with time. The steps themselves have constant variance, but the sum does not. Stationarity is a property of the process as a whole, not of its increments.

QuestionA series has γ(0)=4\gamma(0) = 4, γ(1)=2\gamma(1) = 2 and γ(2)=1\gamma(2) = 1. What are ρ(1)\rho(1) and ρ(2)\rho(2), and what does the sequence suggest about the model?Show answer

ρ(1)=2/4=0.5\rho(1) = 2/4 = 0.5 and ρ(2)=1/4=0.25\rho(2) = 1/4 = 0.25. The autocorrelation halves at each lag, which is the geometric decay of an AR(1) with φ=0.5\varphi = 0.5. This is only suggestive: several models share a similar shape, so a real analysis would also check the partial autocorrelation.

Sources