Gambler's ruin

From HandWiki
Short description: Concept of probability theory and gambling

In statistics, gambler's ruin is the fact that a gambler playing a game with negative expected value will eventually go broke, regardless of their betting system.

The concept was initially stated: A persistent gambler who raises their bet to a fixed fraction of the gambler's bankroll after a win, but does not reduce it after a loss, will eventually and inevitably go broke, even if each bet has a positive expected value.[1]

Another statement of the concept is that a persistent gambler with finite wealth, playing a fair game (that is, each bet has expected value of zero to both sides) will eventually and inevitably go broke against an opponent with infinite wealth. Such a situation can be modeled by a random walk on the real number line. In that context, it is probable that the gambler will, with virtual certainty, return to their point of origin, which means going broke, and is ruined an infinite number of times if the random walk continues forever. This is a corollary of a general theorem by Christiaan Huygens, which is also known as gambler's ruin. That theorem shows how to compute the probability of each player winning a series of bets that continues until one's entire initial stake is lost, given the initial stakes of the two players and the constant probability of winning. This is the oldest mathematical idea that goes by the name gambler's ruin, but not the first idea to which the name was applied. The term's common usage today is another corollary to Huygens's result.

The concept has specific relevance for gamblers. However it also leads to mathematical theorems with wide application and many related results in probability and statistics. Huygens's result in particular led to important advances in the mathematical theory of probability.

History

The earliest known mention of the gambler's ruin problem is a letter from Blaise Pascal to Pierre Fermat in 1656 (two years after the more famous correspondence on the problem of points).[2] Pascal's version was summarized in a 1656 letter from Pierre de Carcavi to Huygens:

Let two men play with three dice, the first player scoring a point whenever 11 is thrown, and the second whenever 14 is thrown. But instead of the points accumulating in the ordinary way, let a point be added to a player's score only if his opponent's score is nil, but otherwise let it be subtracted from his opponent's score. It is as if opposing points form pairs, and annihilate each other, so that the trailing player always has zero points. The winner is the first to reach twelve points; what are the relative chances of each player winning?[3]

Huygens reformulated the problem and published it in De ratiociniis in ludo aleae ("On Reasoning in Games of Chance", 1657):

Problem (2-1) Each player starts with 12 points, and a successful roll of the three dice for a player (getting an 11 for the first player or a 14 for the second) adds one to that player's score and subtracts one from the other player's score; the loser of the game is the first to reach zero points. What is the probability of victory for each player?[4]

This is the classic gambler's ruin formulation: two players begin with fixed stakes, transferring points until one or the other is "ruined" by getting to zero points. However, the term "gambler's ruin" was not applied until many years later.[5]

The gamblers ruin problem is often applied to gamblers with finite capital playing against a bookie or casino assumed to have “infinite” or much larger amount of capital available. It can then be proven the probability of the gamblers eventual ruin tends to 1 even in the scenario where the game is fair (martingale).[6]

Reasons for the four results

Let [math]\displaystyle{ d }[/math] be the amount of money a gambler has at his disposal at any moment, and let [math]\displaystyle{ N }[/math] be any positive integer. Suppose that he raises his stake to [math]\displaystyle{ \frac{d}{N} }[/math] when he wins, but does not reduce his stake when he loses (this general pattern is not uncommon among real gamblers). Under this betting scheme, it will take at most N losing bets in a row to bankrupt him. If his probability of winning each bet is less than 1 (if it is 1, then he is no gambler), he is virtually certain to eventually lose N bets in a row, however big N is. It is not necessary that he follow the precise rule, just that he increase his bet fast enough as he wins. This is true even if the expected value of each bet is positive.

The gambler playing a fair game (with probability [math]\displaystyle{ \frac{1}{2} }[/math] of winning) will eventually either go broke or double his wealth. By symmetry, he has a [math]\displaystyle{ \frac{1}{2} }[/math] chance of going broke before doubling his money. If he doubles his money, he repeats this process and he again has a [math]\displaystyle{ \frac{1}{2} }[/math] chance of doubling his money before going broke. After the second process, he has a [math]\displaystyle{ \left(\frac{1}{2}\right)^2 = \frac{1}{4} }[/math] chance he has not gone broke yet. Continuing this way, his chance of not going broke after [math]\displaystyle{ n }[/math] processes is [math]\displaystyle{ \left(\frac{1}{2}\right)^n }[/math], which approaches [math]\displaystyle{ 0 }[/math], and his chance of going broke after [math]\displaystyle{ n }[/math] successive processes is [math]\displaystyle{ \sum_{i = 1}^{n}\left(\frac{1}{2}\right)^i }[/math] which approaches [math]\displaystyle{ 1 }[/math].

Huygens's result is illustrated in the next section.

The eventual fate of a player at a game with negative expected value cannot be better than the player at a fair game, so he will go broke as well.

Example of Huygens's result

Fair coin flipping

Consider a coin-flipping game with two players where each player has a 50% chance of winning with each flip of the coin. After each flip of the coin the loser transfers one penny to the winner. The game ends when one player has all the pennies.

If there are no other limitations on the number of flips, the probability that the game will eventually end this way is 1. (One way to see this is as follows. Any given finite string of heads and tails will eventually be flipped with certainty: the probability of not seeing this string, while high at first, decays exponentially. In particular, the players would eventually flip a string of heads as long as the total number of pennies in play, by which time the game must have already ended.)

If player one has n1 pennies and player two n2 pennies, the probabilities P1 and P2 that players one and two, respectively, will end penniless are:

[math]\displaystyle{ \begin{align} P_1 & = \frac{n_2}{n_1+n_2} \\[5pt] P_2 & = \frac{n_1}{n_1+n_2} \end{align} }[/math]

Two examples of this are if one player has more pennies than the other; and if both players have the same number of pennies. In the first case say player one [math]\displaystyle{ (P_1) }[/math] has 8 pennies and player two ([math]\displaystyle{ P_2 }[/math]) were to have 5 pennies then the probability of each losing is:

[math]\displaystyle{ \begin{align} P_1 & =\frac{5}{8+5} =\frac{5}{13} = 0.3846 \text{ or } 38.46\% \\[6pt] P_2 & =\frac{8}{8+5} =\frac{8}{13} = 0.6154 \text{ or } 61.54\% \end{align} }[/math]

It follows that even with equal odds of winning the player that starts with fewer pennies is more likely to fail.

In the second case where both players have the same number of pennies (in this case 6) the likelihood of each losing is:

[math]\displaystyle{ \begin{align} P_1 & =\frac{6}{6+6} = \frac{6}{12} = \frac{1}{2} = 0.5 \\[5pt] P_2 & =\frac{6}{6+6} = \frac{6}{12} = \frac{1}{2} = 0.5 \end{align} }[/math]

Unfair coin flipping

In the event of an unfair coin, where player one wins each toss with probability p, and player two wins with probability q = 1 − p, then the probability of each ending penniless is:

Simulations for player [math]\displaystyle{ 1 }[/math] with [math]\displaystyle{ P = 0.6 }[/math] starting with [math]\displaystyle{ 5 }[/math] pennies and player [math]\displaystyle{ 2 }[/math] with [math]\displaystyle{ 10 }[/math]. The probability of this stochastic process hitting level [math]\displaystyle{ 15 }[/math] prior to [math]\displaystyle{ 0 }[/math] is [math]\displaystyle{ \frac{59049}{67849} \approx 0.8703 }[/math] and the sloped line depicts the expected value around which most of the probability mass is clustered. The variance of a Bernoulli process i.e. a binomial distribution is [math]\displaystyle{ np(1-p)=npq }[/math] and proportion [math]\displaystyle{ \frac{pq}{n} }[/math].

[math]\displaystyle{ \begin{align} P_1 & = \frac{1-(\frac{p}{q})^{n_2}}{1-(\frac{p}{q})^{n_1+n_2}} \\[5pt] P_2 & = \frac{1-(\frac{q}{p})^{n_1}}{1-(\frac{q}{p})^{n_1+n_2}} \end{align} }[/math]

An argument is that the expected hitting time is finite and so with a martingale, associating the value [math]\displaystyle{ \left(\frac{q}{p}\right)^l }[/math] with each state so that the expected value of the state is constant, this is the solution to the system of equations:

[math]\displaystyle{ \begin{align} P_1 + P_2 & = 1 \\[5pt] \left(\frac{q}{p}\right)^{n_1} & = P_1 + P_2 \left(\frac{q}{p}\right)^{n_1+n_2} \end{align} }[/math]

Alternately, this can be shown as follows: Consider the probability of player 1 experiencing gamblers ruin having started with [math]\displaystyle{ n \gt 1 }[/math] amount of money, [math]\displaystyle{ P(R_n) }[/math]. Then, using the Law of Total Probability, we have

[math]\displaystyle{ P(R_n) = P(R_n\mid W)P(W) + P(R_n\mid\bar{W})P(\bar{W}), }[/math]

where W denotes the event that player 1 wins the first bet. Then clearly [math]\displaystyle{ P(W) = p }[/math] and [math]\displaystyle{ P(\bar{W}) = 1 - p = q }[/math]. Also [math]\displaystyle{ P(R_n \mid W) }[/math] is the probability that player 1 experiences gambler's ruin having started with [math]\displaystyle{ n+1 }[/math] amount of money: [math]\displaystyle{ P(R_{n+1}) }[/math]; and [math]\displaystyle{ P(R_n \mid \bar{W}) }[/math] is the probability that player 1 experiences gambler's ruin having started with [math]\displaystyle{ n-1 }[/math] amount of money: [math]\displaystyle{ P(R_{n-1}) }[/math].

Denoting [math]\displaystyle{ q_n = P(R_n) }[/math], we get the linear homogeneous recurrence relation

[math]\displaystyle{ q_n = q_{n+1} p + q_{n-1} q, }[/math]

which we can solve using the fact that [math]\displaystyle{ q_0 = 1 }[/math] (i.e. the probability of gambler's ruin given that player 1 starts with no money is 1), and [math]\displaystyle{ q_{n_1 + n_2} = 0 }[/math] (i.e. the probability of gambler's ruin given that player 1 starts with all the money is 0.) For a more detailed description of the method see e.g. Feller (1970), An introduction to probability theory and its applications, 3rd ed.

N-player ruin problem

The above-described problem (2 players) is a special case of the so-called N-Player Ruin problem.[7] Here [math]\displaystyle{ N \geq 2 }[/math] players with initial capital [math]\displaystyle{ x_1, x_2, \ldots, x_N }[/math] dollars, respectively, play a sequence of (arbitrary) independent games and win and lose certain amounts of dollars from and to each other according to fixed rules. The sequence of games ends as soon as at least one player is ruined. Standard Markov chain methods can be applied to solve this more general problem in principle, but the computations quickly become prohibitive as soon as the number of players or their initial capitals increase. For [math]\displaystyle{ N = 2 }[/math] and large initial capitals [math]\displaystyle{ x_1, x_2 }[/math] the solution can be well approximated by using two-dimensional Brownian motion. (For [math]\displaystyle{ N \geq 3 }[/math] this is not possible.) In practice the true problem is to find the solution for the typical cases of [math]\displaystyle{ N \geq 3 }[/math] and limited initial capital. Swan (2006) proposed an algorithm based on matrix-analytic methods (Folding Algorithm for ruin problems) which significantly reduces the order of the computational task in such cases.

See also

Notes

  1. Coolidge, J. L. (1909). "The Gambler's Ruin". Annals of Mathematics 10 (4): 181–192. doi:10.2307/1967408. ISSN 0003-486X. https://www.jstor.org/stable/1967408. 
  2. David, Florence Nightingale (1998). Games, Gods, and Gambling: A History of Probability and Statistical Ideas. Courier Dover Publications. ISBN 978-0486400235. 
  3. Edwards, J. W. F. (April 1983). "Pascal's Problem: The 'Gambler's Ruin'". Revue Internationale de Statistique 51 (1): 73–79. doi:10.2307/1402732. 
  4. Jan Gullberg, Mathematics from the birth of numbers, W. W. Norton & Company; ISBN:978-0-393-04002-9
  5. Kaigh, W. D. (April 1979). "An attrition problem of gambler's ruin". Mathematics Magazine 52: 22–25. doi:10.1080/0025570X.1979.11976744. 
  6. "12.2: Gambler's Ruin" (in en). 2018-06-25. https://stats.libretexts.org/Bookshelves/Probability_Theory/Book%3A_Introductory_Probability_(Grinstead_and_Snell)/12%3A_Random_Walks/12.02%3A_Gambler's_Ruin. 
  7. Rocha, Amy L.; Stern, Frederick (1999-08-01). "The gambler's ruin problem with n players and asymmetric play" (in en). Statistics & Probability Letters 44 (1): 87–95. doi:10.1016/S0167-7152(98)00295-8. ISSN 0167-7152. https://www.sciencedirect.com/science/article/abs/pii/S0167715298002958. 

References

  • R., Epstein (1995). The Theory of Gambling and Statistical Logic (Revised ed.). Academic Press. 

External links