Random walks, for quant interviews
A coin, a step, and a running total — the simplest process in finance and the one interviewers use to check whether you actually understand how uncertainty accumulates. The trap is that almost everything true of one step stops being true of the sum.
For candidates seeing hitting-probability, market-model, or gambler’s ruin prompts · Updated July 21, 2026
The step process is the whole object
A random walk is a running total of independent, identical bets. Let be the steps — each or — and let be your position after steps, starting from . In the symmetric walk each step is with probability ; in the biased walk it is with probability and with probability .
Before touching a specific question, say what an interviewer is really checking: whether you keep the two moments of straight. The step has an expectation and a variance; the sum inherits them by two different rules, and candidates who blur those rules get every downstream question — hitting times, ruin, volatility scaling — subtly wrong. State the two facts up front and the rest of the interview is bookkeeping: adds the step means, adds the step variances because the steps are independent.
Expectation stays put; variance grows
For one symmetric step, , so for every : the walk has no drift and no pull. But “expected position zero” does not mean “stays near zero.” The spread is what moves. Since and the steps are independent, variances add: . The standard deviation is .
That single line — variance linear in time, standard deviation like — is the most-tested fact about random walks, so anchor it with a number. After steps the typical displacement is about , not and not . Run it four times as long, to steps, and the spread only doubles to . Uncertainty accumulates, but it accumulates slowly, and the is why.
The derivation the interviewer wants on the board
When they ask you to show it, keep it to two lines and name the assumption each line uses.
— linearity of expectation, which needs no independence. For the symmetric walk so this is .
— and this line is where independence earns its keep: the cross-covariance terms vanish only because the steps are uncorrelated. For the symmetric walk , so and, because the mean is zero, — a favorite one-line follow-up. The whole law is just “independent variances add, then take a square root.”
Gambler’s ruin, with real numbers
Now the canonical trading-desk version: absorbing barriers at and , and you start with . In a fair game the reach-the-top probability is beautifully linear, . Take , : you reach with probability and go broke with probability , and the expected game length is steps.
Then they tilt the odds and watch you. Make each step with probability against you, so , and the win probability becomes . Plug in: , , giving . A -percentage-point edge against you did not shave down to — it collapsed it to about one in twenty-four. That geometric sensitivity, not the fair-game line, is the point of the question.
Hitting a level, recurrence, and the infinite wait
“Will the symmetric walk ever reach ?” Yes — with probability . The one-dimensional symmetric walk is recurrent: it returns to the origin, and reaches every level, almost surely. The catch that separates a good answer from a glib one: the expected time to get there is infinite. Certain to happen, but with no finite average wait — a distinction interviewers probe because it kills naive “it’ll mean-revert soon” reasoning.
Add drift and certainty breaks. With an upward bias, , the walk still climbs forever, but the probability it ever dips a dollar below its start is — even a persistent tailwind leaves a two-in-three chance of being underwater at some point. Ever reaching has probability ; ever reaching has probability . Recurrence is a knife-edge property of the exact symmetry, and it snaps the moment there is drift.
Why this is the market’s baseline model — and where it cracks
The reason interviewers care: the log-price of an asset is modeled as a random walk with drift, and the entire machinery becomes the rule for scaling volatility across horizons. If daily returns have standard deviation and are independent, then annual volatility is — you scale by , never by time. Every “annualize the vol” question is this fact wearing a suit.
Then name the caveats, because a candidate who recites the model without its failure modes looks junior. Real returns are not i.i.d.: volatility clusters, tails are fatter than the walk predicts, and scaling breaks the instant returns are autocorrelated. And prices are bounded below by zero, so the arithmetic walk (which happily goes negative) is replaced by a walk in log price — geometric, not additive. The random walk is the right first sentence and the wrong last word.
Common mistakes
- Confusing variance with standard deviation. Variance grows linearly in ; the spread grows like . Saying the walk wanders “proportionally to time” is the single most common error and it flips every scaling question.
- Believing the symmetric walk is pulled back to zero. Mean zero is not mean reversion. There is no restoring force; the walk is recurrent but drifts arbitrarily far, and “it’s due to come back” is the gambler’s fallacy.
- Reusing fair-game intuition on a biased game. In gambler’s ruin a tiny edge compounds geometrically, not linearly. Reaching for when is wrong by an order of magnitude, as the example shows.
- Forgetting the wait is infinite. “Reaches the level with probability one” and “reaches it in finite expected time” are different claims for the symmetric walk; only the first is true.
- Letting modeled prices go negative. Treating the price (not log-price) as an additive random walk permits negative prices and misses drift — a tell that you memorized the model without its constraints.
Practice the pattern
Random walks reward one discipline: keep the mean and the variance on separate tracks, and remember which one grows like . Drill step-process, hitting-time, and ruin questions in the LeetQuidity curriculum, or take the free calibration to see where your reasoning breaks under time.