A variation of gamblers ruin problem.

  • Thread starter Thread starter MaxManus
  • Start date Start date
  • Tags Tags
    Variation
Click For Summary

Homework Help Overview

The discussion revolves around a variation of the gambler's ruin problem, where a gambler starts with $2 and aims to reach $10 by betting on the outcome of a fair coin toss. The gambler's strategy involves betting all their money when they have $5 or less and betting just enough to secure a win when they have more than $5. The problem is situated within the context of Markov chains as presented in a statistics textbook.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • Participants discuss setting up the problem as a Markov chain and explore the transition matrix for different states of the gambler's capital. Questions arise regarding the expected value of the strategy and the probability of reaching $10. There is also a focus on the states the gambler can occupy and the implications of those states on the transition probabilities.

Discussion Status

The discussion is active, with participants providing insights into the structure of the Markov chain and the transition matrix. Some participants express uncertainty about the correct formulation of the transition probabilities and the expected outcomes, while others clarify the states involved in the problem. There is no explicit consensus yet, but various interpretations and approaches are being explored.

Contextual Notes

Participants note that the gambler only bets all when having $5 or less, which influences the setup of the Markov chain. There is also mention of the infinite nature of the chain and the potential outcomes based on the initial capital.

MaxManus
Messages
268
Reaction score
1

Homework Statement


A gambler has 2$ and wants to have 10$. To get the money he enters a game where a fair coin is tossed. If he bets on the right side he wins doubles his stake and if he bets wrong he loses his stake. The strategy is to bet everythig if he has 5$ or less and just enough to walk away with 10$ if he has more than 5$

The Attempt at a Solution



X(0) = 2$. He start with 3$
P(X(1) = 4) = 1/2
P(X(1) = 0) = 1/2

P(X(2) = 8 l X(1) = 4) = 1/2

Bets 3 $
P(X(3) = 10 l X(2) = 8) = 1/2
P(X(3) = 6 l X(2) = 8) = 1/2But this is probably ot the way to solve it because you can continiue for ever.
The problem is from a markow chain chapter in my statistics book.
 
Last edited:
Physics news on Phys.org
what are you trying to do? find the expectation value of the strategy?
 
however you could set it up as markov chain, with 5x5 transition matrix as follows, let the 5 states be (0,2,4,8,16)

P(x_j|x_i) =
1 if xi = xj = 16 (walk away), otherwise 0 if xi = 16
0.5 if x_i = x_j-1
0.5 if x_j = 0
0, otherwise
 
Sorry, I want to find the probability that the gambler achives 10$ and the expected number of tosses until the gambler either walks away with 10$ or 0 $
 
lanedance said:
however you could set it up as markov chain, with 5x5 transition matrix as follows, let the 5 states be (0,2,4,8,16)

P(x_j|x_i) =
1 if xi = xj = 16 (walk away), otherwise 0 if xi = 16
0.5 if x_i = x_j-1
0.5 if x_j = 0
0, otherwise

Thanks, but the states are (0,1,2,3,4,5,6,7,8,9,10), the gambler only bets all when he has 5$ or less.
 
ok i get it now, well you i think i have given you enough to come up with the transition matrix for those states
 
MaxManus said:
Thanks, but the states are (0,1,2,3,4,5,6,7,8,9,10), the gambler only bets all when he has 5$ or less.

MaxManus, have you drawn out the Markov chain? Not all of those states are possible. You should notice by the fourth or fifth step (depending on how you count steps), you have either won, lost or returned to the initial state of $2? The chain is infinite, but it's a simple form of infinite.
 
Last edited:
Thanks I see it now, states are (0,2,4,6,8,10). P = <br /> <br /> \begin{bmatrix} 1 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 \\<br /> .5 &amp; 0 &amp; .5 &amp; 0 &amp; 0 &amp; 0 \\<br /> .5 &amp; 0 &amp; 0 &amp; 0 &amp; .5 &amp; 0 \\ 0 &amp; .5 &amp; 0 &amp; 0 &amp; 0 &amp; .5 \\ 0 &amp; 0 &amp; 0 &amp; .5 &amp; 0 &amp; .5 \\ 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 1 \end{bmatrix}


First part: Find the probability that the gambler with initial capital 2$ will achieve his aim .

But I'm not sure what to do now.
 
well, if you start out in the state P($2=1)=(0,1,0,0,0,0) and contunually play the game this is equivalent to repeated multiplication by P so what is the limit of P^n?
 
  • #10
Thanks, but it seems like I have the wrong P . My P^n converges to [1 0 0 0 0 0;.8 0 0 0 0 .2;.6 0 0 0 0 .4;.4 0 0 0 0 .6;.2 0 0 0 0.8;0 0 0 0 0 1]
where space is next column and ; is next row. Matlab.

Edtit: Sorry, it seems to converge to a the right values. You either end up with 0 or 15 and the more money you start with the more likely you end up with 15.

Thanks againg
 
Last edited:
  • #11
I got P from

when you have 0 you have 0 in the next period
when you have 2 you either have 0 or 4 in the next period
when you have 4 you either have 0 or 8 in the next period
when you have 8 you either have 6 or 10 in the next period
when you have 6 you either have 2 or 10 in the next period.
when you have 10 you have 10 in the next period.
 
  • #12
i think your P is ok, what do you mean by 15?
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
Replies
2
Views
1K
Replies
15
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
7
Views
2K