Skip to content
QuantReadySign In
Stochastic Processes

Random Walks

Discrete-time random walks as the foundation for continuous models

6 min read1 practice problems

The Simplest Stochastic Process

A simple symmetric random walk is Sn=S0+X1++XnS_n = S_0 + X_1 + \cdots + X_n, where each Xi=+1X_i = +1 or 1-1 with equal probability. Despite its simplicity, it captures the essence of randomness in finance and is the building block for Brownian motion.

Key Properties

For a walk starting at S0=0S_0 = 0:

E[Sn]=0,Var(Sn)=n.E[S_n] = 0, \qquad \text{Var}(S_n) = n.

The expected position never changes (it's a martingale), but the spread grows as n\sqrt{n}.

Recurrence

By Pólya's theorem, a symmetric random walk in 1D and 2D returns to the origin with probability 1 (recurrent), but in 3D and higher escapes to infinity (transient).

Gambler's Ruin

A gambler starts with $k and bets $1 per round on a fair game, stopping at $0 (ruin) or $n (target):

P(win)=kn.P(\text{win}) = \frac{k}{n}.

For a biased game (p1/2p \ne 1/2): P(win)=1(q/p)k1(q/p)n\displaystyle P(\text{win}) = \frac{1 - (q/p)^k}{1 - (q/p)^n} where q=1pq = 1 - p.

Interview tip: Gambler's ruin is one of the most asked probability questions at trading firms. Know both formulas cold.

Worked Example

Starting at 0, what is the probability a symmetric walk reaches +5+5 before 3-3?

This is gambler's ruin with k=3k = 3 (distance from lower barrier) and n=8n = 8 (total gap):

P=38=0.375.P = \frac{3}{8} = 0.375.

Connection to Brownian Motion

Rescale steps to size 1/n1/\sqrt{n} at intervals 1/n1/n; as nn \to \infty, the walk converges to Brownian motion (Donsker's theorem). Every BM property has a discrete random walk analog.