Deriving the expected duration before a walk stops

A token starts at site 3 on the integer sites from 0 to 8. At each move it independently steps one site left or right, each with probability 1/21/2. It stops immediately upon reaching either endpoint.


A token starts at site three on an integer line with stopping sites zero and eight.


Arrange the following calculations into a derivation of the expected number of moves until stopping. Each calculation should use the notation or result established by the preceding calculations.

  1. 1.

    Rearrange the recurrence to obtain mj+1−2mj+mj−1=−2m_{j+1}-2m_j+m_{j-1}=-2.

  2. 2.

    Condition on the first move to obtain mj=1+12mj−1+12mj+1m_j=1+\tfrac12m_{j-1}+\tfrac12m_{j+1} for 1≤j≤71\leq j\leq7.

  3. 3.

    Define mjm_j as the expected number of remaining moves from site jj, with m0=m8=0m_0=m_8=0.

  4. 4.

    Apply the endpoint values to obtain B=0B=0 and A=8A=8, then evaluate m3=−32+8(3)=15m_3=-3^2+8(3)=15 moves.

  5. 5.

    Solve this second-difference equation to obtain mj=−j2+Aj+Bm_j=-j^2+Aj+B, where AA and BB are constants.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Random Walks Questions: