Random Walk
A random walk is the simplest non-trivial discrete-time stochastic process: cumulative sums of independent, identically distributed shocks. Starting from , the process is defined by the recursion
where are i.i.d. with mean and variance . Equivalently, in closed form,
The mean function is for every , but the variance grows linearly with time, , so the process spreads out without bound. Because the variance depends on , the random walk is not stationary, and consequently the autocovariance depends on absolute times rather than just on lag.Adding a constant drift at every step gives the random walk with drift:
The mean function becomes the deterministic line while the variance still grows as . The drift adds a slope; the noise adds the wiggle.The autocovariance of a random walk has the same form as the covariance of Brownian motion sampled at integer times,
because two random-walk values at times share exactly the shocks accumulated up to time , and the shocks after that point are independent and contribute nothing.The most useful single fact about random walks for time-series modeling is that differencing recovers the underlying noise: . So a random walk is the integral of white noise, and white noise is the increment of a random walk. This is why an ARIMA(0, 1, 0) model, which differences once an otherwise-uncorrelated series, describes a random walk exactly.
Intuition
A random walk is the path traced out by an object that, at each tick of the clock, takes a step of random size and direction independent of its history. The position at time is the sum of all the steps taken so far, so even though each individual step has zero expected size, the cumulative deviation from the starting point grows steadily with time. The process has no preferred level (nothing pulls it back toward the origin), so it will eventually wander arbitrarily far in either direction. This is the fundamental difference from a stationary process: a random walk has no equilibrium distribution to settle into.
The drift extension simply adds a deterministic slope on top of this aimless wandering. With drift , each step has expected size rather than , so the path tilts upward (or downward) at rate . The wiggle around the trend is the same random walk as before. This is the standard model for many phenomena that combine a slow systematic change with day-to-day randomness: stock prices over long horizons, populations of growing species, atmospheric CO₂ concentrations, or accumulated evidence in a cognitive decision-making task. The drift captures the systematic component; the noise captures everything that is not.
Properties
(Independent Increments) The shocks are i.i.d. and equal the first differences of the walk.
By construction, , so the first-difference series is the original i.i.d. white noise. The differences over disjoint time intervals are sums of disjoint subsets of the , and therefore independent. This independent-increments property is what makes the random walk a Markov process and what lets the Brownian motion limit theorems carry through under rescaling.
(Mean and Variance Functions) Mean is ; variance is regardless of drift.
For the walk with drift, the mean is , and the variance is because the shocks are uncorrelated. The drift contributes nothing to the variance; only the noise does. The implication is that the signal-to-noise ratio of the trend, , grows like , which is why long records can detect tiny drift rates that look invisible at short horizons.
(Autocovariance) , depending on absolute times rather than just on lag.
Write and decompose . The first piece is independent of the second piece , since the latter is a sum of and the former is a sum of . So . The dependence on rather than on is the algebraic statement of non-stationarity: shifting both times forward by the same amount changes the covariance, because rather than .
(Differencing Yields White Noise) , so first differencing reduces the random walk to its noise driver.
This is the structural reason a random walk is denoted , integrated of order one, and modeled as ARIMA(0, 1, 0). The in the ARIMA triple means “difference once before fitting.” After differencing, the result is white noise that has no AR or MA structure left, so and . For the random walk with drift, is white noise plus a constant, and the constant becomes the drift coefficient in the fitted ARIMA model.
(Markov Property) The future depends on the past only through the present.
Conditional on , the next value is determined by adding a single fresh shock independent of everything before . So is a discrete-time Markov chain on (or on in the integer-step case). The transition density when the shocks are Gaussian is , a Gaussian centered on the previous value plus the drift.
(Martingale Property) The driftless random walk is a martingale; with drift , the centered process is a martingale.
For the driftless case, , since the future shock has mean zero and is independent of the past. The conditional expectation of the next value is the current value, the defining property of a martingale. With drift, the centered version satisfies the same identity. Martingale convergence and stopping theorems then apply, which is the basis of gambler’s-ruin calculations and many results in stochastic finance.
(Recurrence vs. Transience) In one and two dimensions a simple random walk returns to the origin with probability one; in three or more dimensions it does not.
For the symmetric random walk on with unit steps in each coordinate, Pólya’s theorem says the walker returns to the origin infinitely often almost surely when or , and only finitely often when . The classical phrasing is “a drunk man will find his way home, but a drunk bird may not.” The intuition is that the volume of -dimensional space available at distance grows as , while the variance of the walker’s position only grows as , so for the walker has too many directions to escape into.
(Brownian Limit) The rescaled random walk converges to Brownian motion.
By Donsker’s invariance principle, if are i.i.d. with mean and variance , then the scaled and interpolated process
converges in distribution (as a process on ) to standard Brownian motion as . So Brownian motion is the continuous-time scaling limit of the random walk, which gives a constructive justification for treating BM as “continuous-time random walk” and lets discrete random-walk results pass to BM in the appropriate limit.
Examples
Differencing a random walk to recover white noise
You observe a series that visually looks like a random walk: no preferred level, slow wandering, no obvious oscillation. How do you check whether it really is, and how do you model the noise?
Compute the first differences for , then look at the sample ACF of . If is a pure random walk, the differences are i.i.d. and the sample ACF of the differences should be flat (all entries inside the confidence band). If the ACF of the differences shows persistent structure, the original series is not a pure random walk: it has additional autocorrelation on top of the unit-root behavior, which would call for an ARIMA(p, 1, q) model with non-trivial or . The mean of estimates the drift; if the sample mean is significantly different from zero, fit an ARIMA with drift.
Autocovariance from definition
Verify the formula for when the increments are i.i.d. .
and . The covariance is the sum of over all pairs with and . Since the ‘s are uncorrelated, only the diagonal terms with survive, contributing each. The matching pairs are , giving . The same calculation generalizes to arbitrary : only the first shocks appear in both sums, and each contributes its variance.
Random walk with drift in disguise
Stock prices on long horizons are often modeled as a geometric random walk: , with . What is the model in terms of itself, and why is the log transform standard?
Exponentiating, , so prices grow multiplicatively rather than additively. Modeling as a random walk with drift gives a process whose log returns are i.i.d., a much more reasonable assumption than that price changes themselves are i.i.d. (since absolute price changes scale with the price level). The drift is the expected continuously compounded return per period, and the variance is the squared volatility. This is the simplest version of the Black-Scholes setup, with the geometric Brownian motion of stock prices as the continuous-time limit of this discrete log-random-walk.
See Also
- 4.6 Brownian Motion: continuous-time scaling limit via Donsker’s invariance principle.
- 4.3 Markov Chains: random walks are the canonical - or -valued Markov chains.
- 4.5 Martingales: driftless random walks are the canonical discrete-time martingale.
- 2.5.6 ARIMA(p,d,q) Process: the random walk is ARIMA(0, 1, 0); modeling non-stationary series usually starts by checking whether differencing recovers stationarity.
- 2.1. Time Series: the random walk is the standard non-stationary example used to motivate stationarity assumptions.