Expected time to expand a random-walk range Created 2026-10-05 Updated 2026-10-06
For a simple symmetric random walk on the integers, let be the first time that distinct vertices have been visited. The visited set is an interval, and at the walk is at an endpoint. The Strong Markov property turns the time to add one vertex into gambler's ruin between the two immediately exterior vertices, starting one step from a boundary. The expected duration of symmetric gambler's ruin is therefore . This also holds at .
Let and measure Lionel's fortune in unit stakes. This is gambler's ruin: the fortune moves by with probability and with probability , stopping at or . Let be the expected value of the absorption time starting at . It is finite: from any interior state, a run of wins or losses has a fixed positive probability of absorption within steps, giving a geometric bound on survival over successive blocks. First-step analysis therefore gives
For , the homogeneous solution of the recurrence is , and a particular solution is . Put . Imposing the two endpoint boundary conditions gives the expected duration of biased gambler's ruin
Consequently the expected number of games is
The denominator and numerator have matching signs, so this is positive. As a check its continuous limit at is , the expected duration of symmetric gambler's ruin.
Write . The Bellman equation implies for every available action. Under any competing policy, repeated conditioning gives
The last inequality uses . The monotone convergence theorem now gives , even when . If the comparison is immediate; otherwise the nonnegative conditional bounds justify each finite induction step. This proves Bellman comparison with nonnegative rewards and superunit discount without a vanishing-terminal-term assumption.
For the unit-bet policy in this gambler's ruin problem, put . The value satisfies
The characteristic equation has the repeated root , so . The boundary values give
To justify that this finite recurrence solution is the expected reward despite , let be the transition matrix on transient states . The matrix is diagonally similar, with diagonal factors , to the symmetric tridiagonal matrix with off-diagonal entries . Its eigenvalues are , , with absolute value below one. Thus its Neumann series converges and yields exactly the absorbed-payoff expectation and the unique recurrence solution.
When , at wealth bet once and then follow the unit-bet policy. Its expected value is , since . Therefore the unit-bet policy is not optimal.
Write . The embedded birth-death chain moves upward with probability and downward with probability away from zero. The gambler's ruin formula, obtained by solving its two-point difference equation on and then letting , gives . Translation gives return probability from to . From the chain hits almost surely: before that hit it remains in a finite reflecting interval, from every state of which a uniformly positive finite-step chance of hitting is available. This also proves that starting at zero it hits each almost surely.
After departure from the return probability is therefore
The holding rate is , so the exponential occupation-time parameter is . Applying the Strong Markov property at the almost-sure first hit gives
At zero the holding rate is and return probability after departure is , again giving parameter . From initial state , the expected occupation time at zero is , since the time is zero unless zero is reached. Averaging over the initial law with probability generating function yields
For , the interpretation is , for , and ; the same formulas hold.
Let be the probability that the simple random walk started at hits before zero. The first-step analysis recurrence and boundary conditions are
If , the characteristic equation of a linear recurrence has roots and , so the boundary conditions give
If , the repeated root gives the limiting formula . This is the gambler's ruin probability.
For a fixed integer stake , the fact that divides lets us measure Patricia's wealth in units of £. She starts at and succeeds upon reaching . The formula above factors as
For , , so this probability increases as decreases. She should therefore choose the largest stake, . For , , so the probability increases as increases; she should choose the smallest stake, .
Let be the expected remaining time when the walk is at . The first-step recurrence for gambler's ruin is
with . The quadratic
satisfies both the recurrence and the boundary conditions, and their finite linear system has a unique solution. Starting from zero therefore gives