Gambler's ruin - problem 2

You walk into Martin Gale's Betting Room with $2.

You can play the following game any number of times (if you have what it costs)

  • You pay Martin a dollar.
  • Martin tosses a fair coin
  • If the coin comes up heads Martin pays you two dollars. If it comes up tails, you get nothing.

You decide that you will play for a while, but if you ever get up to $5 you will cash out and go home. And, naturally, if you are left with no money then also you will go home.

What is the expected number of games you will play before you stop?


The answer is 6.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Varsha Dani
Feb 7, 2019

For 0 i 5 0 \le i \le 5 , let g i g_{i} be the expected number of games till you stop, from an initial budget of i i . We want to compute g 2 g_{2} . If you play the game once, then with probability 1/2 you increase your budget by 1 and with probability 1/2 you decrease it by one. And then you get to play again, as if you were starting with your new budget. Thus

  • g 0 = g 5 = 1 g_0 = g_{5} =1 Because those are the stopping criteria .
  • g i = 1 + 1 2 ( g i 1 + g i + 1 ) g_{i} = 1 + \frac{1}{2} (g_{i-1} + g_{i+1}) for 1 i 4 1\le i\le4 The +1 comes from the game you play to change your budget in one direction or the other.

This gives a system of linear equations in g 1 g 4 g_1 \dots g_4 . Solving it gives g 2 = 6 g_{2} = \boxed{6} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...