Learn / Library / Probability
Grid walk to the center
A token starts in a corner cell of a grid. At each step it moves to a uniformly random cell that shares a side with its current cell, independently of the past. What is the expected number of steps until the token first reaches the center cell?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Group the cells by type: corner, edge, center. Write equations for the expected time from a corner and from an edge cell.
Solution
- Let be the expected time from a corner and the expected time from an edge cell.
- A corner has neighbors, both edge cells, so .
- An edge cell has neighbors: the center and corners, so .
- Substituting gives , so and .
- Then , which is .
Answer: