The State Space
The walker lives on a two-dimensional grid indexed by position and time ,
(1)
giving a grid of size . The walker always starts at the origin,
and time advances by one at each step, so simply counts how many moves have been taken. The walk ends at .
Allowed Moves
At each timestep the walker takes exactly one step, either up or down by one unit,
The position updates as , and the unbiased baseline is a uniform random walk where each action is chosen with equal probability.
Note that for the walk to return to the origin in exactly steps, the number of up-steps and down-steps must be equal, which requires to be even. This constraint is implicit in the problem structure.
What Is an Excursion?
A random walk excursion is a trajectory that starts at the origin and is conditioned to return there at the final time . Under the unbiased random walk, the probability of any particular excursion of length is , and the probability of returning to the origin at all decays as grows. For our toy example, we want to study the ensembles of trajectories which do come back to the origin and have between . These conditions dramatically lower the number of eligible trajectories, and the chances of sampling one at random become quite rare, especially for higher values of .
The Connection to Rare Event Sampling
This setup is chosen because it is a solid representation for a broad class of rare event problems in physics, all sharing the same structure: a stochastic system conditioned on an outcome that is vanishingly unlikely under the natural dynamics. The grid walk is tractable enough that we can compute exact solutions (see Exact solution) and use them to rigorously benchmark the RL methods we develop. With the problem defined, the next question is: what does the walker get rewarded for?
← Back to the main article: The case of the Random Walker