The random walk is one of the most classic models in stochastic-process theory. On the surface it’s just “each step randomly goes left or right,” but what it actually studies is a very general structure: what macroscopic pattern emerges once a large number of small random changes keep accumulating? A random walk ties together random variables, the Markov property, independent increments, the central limit theorem, recurrence, and Brownian motion, making it the central model for understanding the various stochastic processes that follow.
1. One-Dimensional Random Walks
1.1 Definition: independent increments, with the state as the accumulated result
Starting from , each step’s random increment takes or with equal probability, and the state updates recursively as — this is the simplest one-dimensional symmetric random walk. Expanding the recursion gives : is the new random perturbation at each step, and is the state after all historical perturbations have accumulated. are usually set to be i.i.d., but are clearly not independent — ‘s own definition already includes . One concrete sample path might be 0 → 1 → 2 → 1 → 0 → -1 → 0, and another might be an entirely different 0 → -1 → -2 → -1 → 0 → 1 → 0: both paths follow the same rule, choosing each step’s direction with the same probability, yet they can trace out completely different trajectories — this is exactly what “random” really means in a random walk: the rule is fixed, but the realization is not.
1.2 Why a random walk is Markov
Suppose it’s known that ; the next step only has two possibilities: moving to 4 with probability , or to 6 with probability . How it got to 5 in the past has no additional effect on the next step, i.e., . A simple random walk is therefore a standard first-order Markov process — the most direct example of the conditional-independence property from Stochastic Processes 5: Markov Processes.
2. Fluctuation Scale and Drift
2.1 The mean position is 0, but the typical distance isn’t
For a symmetric random walk, , so ; but this doesn’t mean the random walk stays near the origin the whole time. , with standard deviation : after steps, the typical distance is on the order of , not . The reason is that positive and negative increments largely cancel each other out; the central limit theorem gives , showing that ‘s own natural scale is — this is really just another manifestation of the standard-error scale from Stochastic Processes 4, except this scale describes the cumulative sum itself, rather than the average.
2.2 A random walk with drift
If each step is no longer symmetric, , the increment has a nonzero expectation , and . The random walk can then be understood as “a deterministic trend plus random fluctuation”: the long-run trend grows linearly with , while the random fluctuation is still on the order of — this is the most basic drift-plus-noise structure, and the prototype for the drift and diffusion terms in stochastic differential equations later on.
3. Dimension and Recurrence
3.1 The key difference between one, two, and three or more dimensions
Extend the position to a -dimensional vector , with each step randomly choosing one of coordinate directions — the mathematical structure isn’t fundamentally different from one dimension. But the long-run behavior of a symmetric simple random walk changes qualitatively with dimension: a one- or two-dimensional random walk almost surely returns to the origin (recurrent), while in three or more dimensions there’s a positive probability of never returning to the origin again (transient). This is one of the most famous dimensional effects in stochastic-process theory.
3.2 Why is exactly the critical dimension
After steps, a random walk’s typical distance is on the order of ; in -dimensional space, the volume of a region of radius grows roughly as , so the probability of returning to some fixed position is roughly on the order of . Determining recurrence amounts to determining whether the series diverges: for , the series looks like , which diverges; for , it looks like the harmonic series , which still diverges; for , it looks like , a -series with , which converges. A divergent series means “infinitely many chances to accumulate at least one true return,” which is exactly the underlying reason one and two dimensions are recurrent while three or more are transient — sits precisely at the critical point between divergence and convergence, the harmonic series.
3.3 The “escape” probability in three or more dimensions can actually be computed exactly
“Transient” sounds like a vague qualitative description, but the probability that a three-dimensional simple symmetric random walk eventually returns to the origin actually has a precise value: this constant is called Pólya’s random walk constant, approximately — in other words, on a random walk over a lattice, only about 34% of paths ever return to the starting point, while the remaining 66% never do. At , this probability drops further to about — the higher the dimension, the harder it is to return to the origin. These numbers turn “recurrent in one and two dimensions, transient in three or more” from a simple binary classification into a probability curve that decreases continuously with dimension, with landing exactly on the boundary where the probability equals 1.
4. Hitting Times and Gambler’s Ruin
4.1 Hitting time
A random walk naturally raises questions like “when does it first reach a certain position.” Define as the first time position is reached; is itself a random variable. Similarly, one can study the first return to the origin, the first time a threshold is exceeded, or the first time a boundary is hit — these questions later develop into the full theory of hitting time, first-passage time, and stopping time.
4.2 The reflection principle: computing the probability of reaching a position within steps
The event (having reached at some point within steps) can be computed exactly using the reflection principle, without needing to enumerate every path. The intuition: any path that “reaches at some point and ends at ” can have the portion after touching flipped upside down, mapping it one-to-one onto a path “ending at ,” and this correspondence is one-to-one and equally likely. Working through this correspondence gives (for integer ). Taking , as an example, plugging into the binomial distribution gives : after 100 steps, there’s about a 32% probability of having reached position 10 at some point, even though itself has expectation 0 and a standard deviation of only 10. The reflection principle is the discrete version of the calculation used later for Brownian motion’s first-passage probability — both use the same symmetry argument.
4.3 The Gambler’s Ruin problem, worked out
Suppose someone starts with units of wealth, winning or losing 1 unit each round with equal probability; their wealth process is then a simple random walk with two absorbing boundaries ( meaning ruin, meaning reaching the goal). The question “starting from , does it reach or 0 first” is the classic Gambler’s Ruin problem. For a fair coin (), the probability of going broke before reaching is exactly , and the probability of reaching first is — this clean result can be proven using the fact that the wealth process is itself a martingale, though it can be used directly without first understanding martingales. Taking , as an example, the probability of reaching 100 first is , and the probability of going broke first is ; raising to 90 increases the probability of reaching 100 first to — the closer the starting capital is to the goal, the more likely it is to reach the target before going broke. This linear relationship only holds for a fair coin; once , the formula becomes (with ), no longer a simple linear proportion.
5. Generalizations of the Random Walk
5.1 Random walks on graphs
A random walk doesn’t have to happen on a line or a regular grid: if the state space is a graph and each step randomly chooses one of the current node’s neighbors, the result is a random walk on a graph, widely seen in PageRank, network analysis, community detection, MCMC, and diffusion-propagation models. The classic intuition behind PageRank is a user continually clicking random links between web pages, and studying which pages get visited more in the long run.
5.2 Brownian motion: the continuous-time limit
If both the spatial step size and time interval of each step are made progressively finer, with appropriate rescaling, a random walk’s entire sample path gradually approaches Brownian motion: Brownian motion can be understood as the continuous-time limit of a random walk — this connection is the generalization of the central limit theorem to the level of “the entire stochastic process,” not just the distribution at a single moment.
6. Common Misconceptions and Summary
The easiest misconception about random walks is conflating “the mean position is 0” with “the random walk stays near the origin the whole time” — Section 2.1 already explained that the typical distance keeps growing over time, just far more slowly than linear growth. Another common misconception is equating recurrence with “it’s guaranteed to come back many times”: recurrence in one and two dimensions only guarantees a probability of 1 of returning to the origin at least once (in fact, infinitely often), but the expected return time can still be infinite — recurrence doesn’t mean returning “quickly.”
The most basic form of a random walk is , that is, “current state = previous step’s state + a new random perturbation” — an extremely simple definition that nevertheless naturally gives rise to the Markov property, independent increments, the fluctuation scale, dimension-dependent recurrence/transience, hitting times, and absorbing-boundary problems like Gambler’s Ruin, all the way connecting to random walks on graphs and Brownian motion. A random walk isn’t an isolated toy example — it’s the central model that ties together a large number of core concepts in stochastic-process theory.