Markov chains and random walks · A walk along a corridor · difficulty 3 of 5
Walking away from a wall
You stand with your back to a wall at the end of a corridor. Each second you take a step: from the wall you can only step away from it; anywhere else you step towards or away from the wall with equal chance. The door is 10 steps from the wall. What is the expected number of steps to reach the door?
Answer with an expected value. First lock in a gut guess with an 80% range, then solve it properly, then watch a simulation settle on the truth.
More markov chain and random walk puzzles
- Waiting for the ball · A game of catch
- Climbing with an edge · A winning streak
- From one spoke to another · A hub with spokes
- Playing until you're broke · A casino
- Rainy days in the long run · Weather
- The spider heads home · A spider's web
All markov chain and random walk puzzles · All puzzles · Market making game