Expected time for a random walk to exit an interval
Asked at HRT, Jump Trading
A simple symmetric random walk starts at and takes steps with probability each. It stops upon reaching or (with integers).
What is the expected number of steps until the walk stops?
Show a hint
Either solve the recurrence , or find a function of that is a martingale.