Mathematics — Probability · gamblers-ruin-generating-functions
Problem
In the gambler's ruin problem, assume that the gambler initial stake is 1 dollar, and assume that her probability of success on any one game is p. Let T be the number of games until 0 is reached (the gambler is ruined). Show that the generating function for T is
h(z)=2pz1−1−4pqz2,
and that
h(1)={q/p,1,if q≤p,if q≥p,
and
h′(1)={1/(q−p),∞,if q>p,if q=p.
Interpret your results in terms of the time T to reach 0. (See also Example 10.7.)