Glossary
Math FoundationsBeginner7 min read

Random Walk

A random walk is a mathematical model where the value of a variable changes by random steps over time, with each step independent of previous steps. In finance, random walk theory β€” popularized by Burton Malkiel β€” suggests that stock prices follow an unpredictable path, making consistent outperformance through technical analysis impossible. This idea is closely related to the efficient market hypothesis.

Prerequisites:Expected Value

What Is a Random Walk?

A random walk is a mathematical process where a value changes by random, independent steps over time. The simplest example: start at position 0 on a number line. At each time step, flip a fair coin: heads moves you +1, tails moves you -1. The sequence of positions {0, 1, 0, -1, -2, -1, ...} is a simple random walk.

The key property is independence of increments: knowing the entire history of past steps tells you nothing about the next step. The walk has no memory.

In finance, the random walk hypothesis states that stock price changes are like random steps β€” each day's return is independent of previous returns. This was popularized by Burton Malkiel's 1973 book "A Random Walk Down Wall Street" and is closely related to the Efficient Market Hypothesis. If prices truly follow a random walk, then technical analysis (chart patterns, trends, support/resistance levels) cannot predict future prices.

The random walk model is also the discrete-time precursor to Brownian motion β€” as the step size and time interval both shrink to zero, the random walk converges to a continuous Brownian motion path.

Properties of Random Walks

The simple symmetric random walk (equal probability of +1 and -1 steps) has several important properties:

  • Expected position: E[Sn] = S0 for all n. The expected position is always the starting point β€” the walk has no drift.
  • Variance: Var(Sn) = n. The variance grows linearly with the number of steps, so the standard deviation grows as √n. After 100 steps, you're on average about 10 steps from the origin.
  • Recurrence (1D): A one-dimensional random walk returns to the origin with probability 1 β€” no matter how far it wanders, it always comes back. (This is not true in 3 or more dimensions.)
  • Arcsine law: The fraction of time a random walk spends positive is NOT uniformly distributed β€” it follows the arcsine distribution. Counterintuitively, the walk spends most of its time either mostly positive or mostly negative, not split evenly.
  • Markov property: The random walk is a Markov chain β€” the next step depends only on the current position, not the path taken.

For a biased random walk (probability p > 0.5 of going up), there is a positive drift: E[Sn] = S0 + n(2p - 1). This models a stock market with a positive expected return.

Get free quant interview prep resources

Mock interviews, resume guides, and 500+ practice questions β€” straight to your inbox.

Worked Example: Random Walk and Gambling

Problem: A gambler starts with $50 and makes $1 fair bets (50% chance of +$1, 50% chance of -$1). The game ends when the gambler reaches $100 (wins) or $0 (goes broke). What is the probability of winning?

This is the classic gambler's ruin problem. For a fair random walk:

P(reaching $100 before $0 | starting at $50) = 50/100 = 50%

The result is intuitive for a fair game: starting halfway to the target gives a 50% chance. But consider the expected duration β€” it takes, on average, 50 Γ— 50 = 2,500 bets for the game to end. Random walks wander extensively before being absorbed.

With a slight edge: If the gambler wins each bet with probability 51% instead of 50%, the probability of reaching $100 before $0 is approximately:

P = (1 - (49/51)50) / (1 - (49/51)100) ≈ 88%

A tiny 1% edge transforms a coin-flip outcome into near-certainty over 100 dollars. This demonstrates the power of a small positive edge over many trials β€” the mathematical foundation of quant trading.

Want personalized guidance from a quant?

Speak with a quant trader or researcher who’s worked at a top firm.

Book a Free Consult

Random Walk Theory and Quant Finance

The random walk hypothesis has profound implications for quantitative finance:

  • If prices are a pure random walk: No trading strategy can consistently outperform the market (after costs). Technical analysis is useless. Index investing is optimal. This is the implication of the Efficient Market Hypothesis in its strong form.
  • Reality is more nuanced: Decades of research have shown that stock prices are approximately random walks but not perfectly so. Small departures from randomness β€” mean reversion at short horizons, momentum at intermediate horizons, value effects over long horizons β€” represent the alpha that quant firms exploit.
  • Testing for randomness: Statistical tests (variance ratio tests, autocorrelation tests, runs tests) evaluate whether a price series is a random walk. Rejecting the random walk hypothesis for a particular instrument or time horizon suggests that predictable patterns exist β€” and potentially tradable.
  • Modeling foundation: Even though prices aren't perfect random walks, the random walk / Brownian motion model remains the starting point for most financial models. Departures from the random walk (fat tails, volatility clustering, predictable patterns) are modeled as modifications to the basic framework.

The practical takeaway for aspiring quants: understanding the random walk is essential both as a baseline model and as the null hypothesis against which all alpha signals are measured.

Key Formulas

Simple symmetric random walk: the sum of n independent +1/-1 steps. The position after n steps has mean S_0 and variance n.

Variance of a random walk grows linearly with time; standard deviation grows with the square root of time. This 'square-root-of-time' rule applies to both random walks and Brownian motion.

Key Takeaways

  • A random walk is a process where each step is independent of previous steps β€” tomorrow's price change is unpredictable from today's information.
  • The random walk hypothesis for stock prices implies that technical analysis (chart patterns, trends) cannot consistently predict future prices.
  • A symmetric random walk has a 50% chance of going up and 50% down β€” the variance grows linearly with the number of steps.
  • The random walk is the discrete-time analog of Brownian motion and is closely related to the Efficient Market Hypothesis.
  • Quant firms challenge the pure random walk by finding statistical patterns (momentum, mean reversion) that represent departures from randomness.

Why This Matters for Quant Careers

Random walk theory is foundational for anyone entering quantitative finance. Interview questions may include random walk problems (gambler's ruin, expected return to the origin), discussions of market efficiency, or statistical tests for randomness. Understanding the random walk as both a model and a null hypothesis is essential for research roles at Citadel, Two Sigma, and other quant firms.

Book a free consultation to discuss your preparation for quant research interviews.

Frequently Asked Questions

Do stock prices really follow a random walk?

Approximately, but not exactly. Stock prices are close enough to a random walk that most simple trading strategies fail β€” you can't reliably predict tomorrow's return from today's. However, research has identified small but statistically significant departures: short-term mean reversion (hours to days), intermediate-term momentum (months), and long-term mean reversion (years). These departures are what quant strategies attempt to exploit.

What is the difference between a random walk and Brownian motion?

A random walk is a discrete-time process (steps happen at fixed intervals). Brownian motion is a continuous-time process (values change continuously). Brownian motion is the mathematical limit of a random walk as the step size and time interval both approach zero. In practice, a random walk is used for daily return models, while Brownian motion is used for continuous-time pricing models like Black-Scholes.

If markets are a random walk, how do quant firms make money?

Markets are approximately but not perfectly random. Quant firms find small, statistically significant departures from randomness β€” predictable patterns in returns, temporary mispricings between related securities, and risk premiums. These alpha signals are often tiny (fractions of a percent per trade) and require sophisticated models, fast technology, and massive trade volume to exploit profitably. The edge is real but small β€” which is why quant trading is so competitive and technology-intensive.

Master These Concepts for Quant Interviews

Our bootcamp covers probability, statistics, trading intuition, and 500+ real interview questions from top quant firms.

Book a Free Consult