# Gambler's ruin

Consider a gambler who at each game is equally likely to either win or lose $1. Suppose the gambler will quit playing further when he (cumulatively) either wins$5000 or loses \$2000. Find the expected number of games the gambler plays.

×