Probability & Statistics

The Drunk on the Bridge

A drunk stands at the 17th meter of a 100-meter bridge, staggering one meter each way with equal chance. Does he reach the far end before falling off the start, and how long does he wander first?

solvedmedium1 min

A drunk man stands at the 17th meter of a 100-meter bridge. Each step he staggers one meter forward or one meter back, each with probability 12\tfrac{1}{2}, until he either falls off the near end (meter 00) or reaches the far end (meter 100100). What is the probability he reaches the far end, and what is the expected number of steps he takes before leaving the bridge?

Reveal solutionHide solution

#A fair walk between two cliffs

His position is a symmetric random walk on {0,1,,100}\{0, 1, \dots, 100\}, moving up or down one with equal chance, absorbing at both 00 and 100100.

#The hitting probability is linear

Let h(x)h(x) be the probability of reaching 100100 before 00 from position xx. It satisfies h(0)=0h(0) = 0, h(100)=1h(100) = 1, and the averaging rule h(x)=12h(x+1)+12h(x1)h(x) = \tfrac{1}{2}h(x+1) + \tfrac{1}{2}h(x-1), which forces hh to be linear. Hence h(x)=x100h(x) = \tfrac{x}{100} and

P(reaches the far end)=h(17)=17100.(1)\PP(\text{reaches the far end}) = h(17) = \frac{17}{100}. \tag{1}
10
you0100
A fair walk makes the chance of reaching the far end linear in the start, so from the 17th meter of a 100-meter bridge the walker reaches the end with probability 17/100.

#The expected wandering time

Let T(x)T(x) be the expected number of steps to absorption. It satisfies T(0)=T(100)=0T(0) = T(100) = 0 and T(x)=1+12T(x+1)+12T(x1)T(x) = 1 + \tfrac{1}{2}T(x+1) + \tfrac{1}{2}T(x-1), that is T(x+1)2T(x)+T(x1)=2T(x+1) - 2T(x) + T(x-1) = -2. The quadratic T(x)=x(100x)T(x) = x(100 - x) has constant second difference 2-2 and vanishes at both ends, so

E[steps]=T(17)=1783=1411.(2)\E[\text{steps}] = T(17) = 17 \cdot 83 = 1411. \tag{2}

#Read it off

He reaches the far end only 1717 times in 100100, since the head start of 1717 meters against a fall is small. Yet he is expected to wander 14111411 steps first, because a fair walk drifts nowhere and dawdles near the middle for a long time before either edge claims him.