Random Walk
The simple random walk is the simplest non-trivial martingale, and a rich object in its own right. This page collects three results about it, each illustrating a different theme: optional sampling cashed out as gambler’s ruin, the dimension-dependent recurrence discovered by Pólya, and the continuous-time scaling limit, Brownian motion.
Gambler’s ruin
Section titled “Gambler’s ruin”A gambler starts with dollars and bets one dollar on a fair coin each round, quitting when broke or when the fortune first reaches a target , where . The fortune is the random walk
started at , and the game ends at the exit time
which is a stopping time, being the first hitting time of . Two questions: with what probability does the gambler reach the target rather than go broke, and how long does the game last on average?
Both answers rest on optional sampling. We may apply it because the stopped walk never leaves : it is bounded, hence uniformly integrable, so the theorem applies through its second remark even though itself is not. The exit time is finite almost surely too: from any interior state, consecutive up-steps force an exit, an event of probability at least in each block of steps, so , giving almost surely.
The expected duration needs a second martingale, built from the square of the walk.
The two results read cleanly together. A fair game is fair in stakes: the chance of turning into is exactly the fraction of the target you begin with, so on average you neither gain nor lose. Fairness says nothing about patience, though: the expected number of rounds is , largest when the gambler sits midway between the boundaries. Against an infinitely rich house, with fixed, the ruin probability and the expected time to ruin . The gambler is certain to be ruined, but is made to wait arbitrarily long for it.
Pólya’s recurrence
Section titled “Pólya’s recurrence”Gambler’s ruin lives inside a bounded interval, where the walk is forced to exit. Released on the whole lattice, does a random walk always come back to where it started? The answer depends, remarkably, only on the dimension. For one and two dimensions, the walk almost surely finds the way home. But say a bird flying through three-dimensional space, stepping in random directions, may never return: there is a positive probability of escaping to infinity.
“A drunk man will find his way home, but a drunk bird may get lost forever.” — Shizuo Kakutani
The dichotomy is visible by simulation. Below, three independent walks run continuously in 1D, 2D, and 3D; each restarts when it returns to the origin or after a step cap, and the counter tracks the empirical fraction that returned.
Watched for a while, the 1D and 2D rates climb toward (the step cap occasionally lets a wandering walk slip through before its certain eventual return), while the 3D rate settles well below, around the infinite-time limit thinned further by the cap. The qualitative gap between the dimensions is the theorem.
Brownian motion
Section titled “Brownian motion”Speed the walk up and shrink its steps at the same time, and a continuous process emerges in the limit. Take the symmetric walk with unit-variance steps and rescale space by and time by :
The central limit theorem already says the marginal is approximately ; Donsker’s invariance principle upgrades this to convergence of the whole path to standard Brownian motion . Drag up, or hit animate, to watch the coarse walk refine into a Brownian path inside the limiting bands.
The limit is the canonical continuous-time process.
Brownian motion is the continuous-time face of everything on the earlier pages. With the information up to time , the independent mean-zero increments make it a martingale: for ,
And exactly as the discrete walk needed the compensator to turn into the martingale , Brownian motion needs the compensator :
so is a martingale. The discrete is its random-walk shadow; the continuous compensator is the quadratic variation of the path, the seed of stochastic calculus.
The paths themselves are continuous but nowhere differentiable, wandering within the same standard-deviation bands the rescaled walk approached.