Skip to content

Stochastic trend

A stochastic trend accumulates random shocks. Learn why its effects persist, why a flat expected level can be nonstationary, and how differencing differs from detrending.

A stochastic trend is a nonstationary component of a time series that evolves through accumulated random shocks. In the standard unit-root model, a shock changes the level permanently rather than fading away. For a quant modelling an asset-price series, this means that a move away from an old average does not, by itself, create a reason to expect reversal.

“Trend” does not mean a smooth upward slope. A stochastic trend can wander up, down and sideways, even when its expected change is zero.

Where the shocks go

The simplest example is a random walk:
yt=yt−1+εt⟹yt=y0+∑s=1tεs.y_t=y_{t-1}+\varepsilon_t \quad\Longrightarrow\quad y_t=y_0+\sum_{s=1}^{t}\varepsilon_s.

Assume a fixed initial level y0y_0 and independent innovations with mean zero and constant finite variance σ2>0\sigma^2>0. Each innovation enters every subsequent level with coefficient one. Later shocks may offset an earlier shock in the total, but the model contains no restoring force pulling the series back to its pre-shock path.

Consider an index starting at 100 points. At equally spaced observations, stipulate realised shocks of +1+1, −2-2 and +3+3 points:

ObservationNew shock (points)Level (points)
t=0t=0—100
t=1t=1+1+1101
t=2t=2−2-299
t=3t=3+3+3102

The first shock contributes +1+1 to all three later levels. Holding the other shocks fixed and replacing that first shock with zero would give later levels of 100, 98 and 101. This counterfactual isolates persistence; it does not say the observed index must keep rising after a positive shock.

Synthetic random-walk levels are 100, 101, 99 and 102 index points at times zero through three. First differences are plus 1, minus 2 and plus 3 points. The first shock contributes zero initially and plus 1 point at every later observation.
Synthetic random-walk levels are 100, 101, 99 and 102 index points at times zero through three. First differences are plus 1, minus 2 and plus 3 points. The first shock contributes zero initially and plus 1 point at every later observation.
Original fixed illustration, not simulated or market data. The left panel accumulates the stipulated innovations; the right isolates the first innovation while holding the others fixed. All markers represent discrete observations; connecting lines guide the eye.
These four levels illustrate an assumed specification. They do not prove that a real series has a unit root, that its shocks are independent, or that it follows this model outside the sample.

Constant expected level, growing uncertainty

Under the stated assumptions,

E[yt]=y0,Var(yt)=tσ2.\mathbb{E}[y_t]=y_0, \qquad \text{Var}(y_t)=t\sigma^2.
The expected level is flat, yet the variance grows with elapsed observations. That alone rules out covariance stationarity. A stochastic trend therefore need not appear as a trend in the unconditional mean.

Adding a constant drift μ\mu gives yt=y0+μt+∑s=1tεsy_t=y_0+\mu t+\sum_{s=1}^t\varepsilon_s. The deterministic component μt\mu t and the accumulated random component coexist. Subtracting the drift leaves the stochastic trend in place.

Differencing and detrending answer different questions

A first difference removes accumulation in this model:
Δyt=yt−yt−1=εt.\Delta y_t=y_t-y_{t-1}=\varepsilon_t.

The example returns +1,−2,+3+1,-2,+3 points. Under the maintained innovation assumptions, these differences are stationary. The arithmetic alone does not establish those assumptions, and differencing is not a universal cure for nonstationarity.

By contrast, detrending subtracts a specified or fitted deterministic trend, such as a+bta+bt. A line cannot generally remove the accumulated shocks of a unit-root process. Fitting one can make a short sample look centred without creating a stable long-run mean.

For a genuinely trend-stationary model yt=a+bt+uty_t=a+bt+u_t with stationary utu_t, subtracting the true trend recovers utu_t. Differencing can also give a stationary series, but it produces b+ut−ut−1b+u_t-u_{t-1} and changes the noise dynamics. The choice concerns both the source of nonstationarity and the quantity being modelled.

The Stationarity and Unit Roots lesson develops the random-walk representation and practical test specifications (public preview; full lesson requires membership). Failing to reject a unit root is evidence to interpret under a test's assumptions, not proof of a random walk.
There is a further possibility in relative-value work: two series can share a stochastic trend that cancels in a suitable linear combination. That is the central idea behind cointegration. Similar-looking upward price charts alone do not establish that cancellation.

Sources

  • Chris Brooks, Introductory Econometrics for Finance, second edition, Cambridge University Press, 2008, §7.1.2, pp. 320–323: random walks, persistence of shocks, stochastic versus deterministic trends, and the different effects of differencing and detrending.
  • Rob J. Hyndman and George Athanasopoulos, Forecasting: Principles and Practice, third edition, §9.1: random walks with and without drift, first differences and the risk of unnecessary differencing.
Last updated
  • time series
  • stochastic trends
  • unit roots
  • stationarity
← Back to the glossaryBack to top ↑