Ordering a Monte Carlo estimate of a boundary-hitting probability

You want to estimate, by simulation, the probability that a discrete-time random walk started at state ii reaches the upper boundary NN before the lower boundary 0. Each step goes up one state with probability pp and down one state otherwise. Put the steps of the simulation in the order you would carry them out.

  1. 1.

    Set the position to the starting state ii and fix the up-step probability pp.

  2. 2.

    Keep drawing and moving until the position equals 0 or NN, then record which boundary was reached.

  3. 3.

    Move up one state if U<pU < p; otherwise move down one state.

  4. 4.

    Draw a uniform random number UU on [0,1)[0, 1).

  5. 5.

    Repeat the whole path many times independently and report the fraction of paths that reached NN.

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: