🏠
Guest Not signed in

Random walk: gambler's ruin and hitting probabilities

On a finite line, the probability you hit the right wall before the left is just your distance from the left over the total distance. Symmetric and clean.

Method · Random Walk
Intro
A 2D random walk path drawing itself step by step across the plane over 2500 steps
Laszlo Nemeth β€” https://commons.wikimedia.org/wiki/File:Random_walk_2500_animated.gif · CC BY-SA 4.0 · Wikimedia Commons

A walker on the integers steps $\pm 1$ each tick. Two questions dominate interviews: (a) probability of hitting one boundary before another, and (b) expected number of steps to absorption. First-step analysis turns both into one-line recurrences with closed-form solutions.

βœ“ Intro Β· expand
Independent · Legal