This problem is motivated by trying to determine the success or failure of a gambler who goes to a casino with some amount of money initially and wants to leave with some larger amount of money at the end of the evening. For example, the goal of a gambler who comes to the casino with $100 at the beginning of the evening might be to leave the casino with $200. If the gambler walks in and places a bet for the entire amount of money, the problem is easy. The chance of winning will be determined by the game being played. However, if the gambler bets a small amount each time, the problem becomes a little more difficult to analyze.
We will assume that there are two possible outcomes in this problem; after a number of bets (1) the gambler will achieve the goal of winning the desired amount of money (say $200 from $100) and leave the casino, or (2) the gambler can end up with no money. In the second case the gambler is ruined, thus the name Gambler's Ruin for this problem. The goal of the casino, of course, is for the gambler to lose. To simplify the problem a little assume that the gambler will wager one dollar each time the game is played. We could use any unit of money as long as it is the same on each bet. In addition, assume that each time the gambler wagers there is some fixed chance (or probability) that the result will be a win and a fixed chance that the gambler will lose. For example, a gambler may choose to play the same color on a roulette wheel on every bet. In this case, the probability of winning is 18/38. The chance of losing is 20/38.
We could certainly restate this problem in terms of investment strategies or the success or failure of a farmer. Historically, the problem has been stated in terms of the success or failure of a gambler and we will use this approach. In addition, this problem is considered as a classical example of a problem in probability and statistics and appears in a number of standard textbooks on probability and statistics.
With this simple situation to model we must begin to translate the information in the description above into mathematical terms. To begin, we will need to keep track of the sequence of results from each wager. This requires the definition of some variables to keep track of each bet and the total amount of money the gambler has at any time. In the language of statistics these individual results can be defined in terms of random variables.
For our purposes we will assume that the probability of a win or that ion the play of the game is and that the probability that the gambler loses a game or that is . In the roulette example, and . Note that for each individual play of the game favors the gambler and favors the casino. We can now start to add things up over the entire process.
To analyze the problem we will assume that the gambler starts with dollars
(say $100) and wants to end up with dollars (say $200). Note that and
are integers with . Both values must be greater than or equal to 0
and if we are already to the goal and would not gamble. Then define the
amount of money the gambler has after each eager as which can be
computed using the formula
To compute the chance of succeeding in ending up with dollars we also need
to be able to define all possible ways of arriving at (success) or
(ruin). The reason for this is the following. From a simplistic point of
view, if we compute the total number of ways of success, and the total
number of ways of ruin, , we can compute the probability of success as
To keep track of things we will define sets that include the ways a gambler can
be successful or ruined in exactly plays of the game. For example, we will
define a set that includes all ways in which the gambler can succeed in exactly
130 plays. Similarly, we will define a set that includes all ways a gambler can
be ruined in exactly 130 plays of the game.
Define
1 | 1 | 1 | 6 |
2 | 1 | 2 | 7 |
3 | -1 | 1 | 6 |
4 | 1 | 2 | 7 |
5 | 1 | 3 | 8 |
As an example consider the situation where a gambler starts with $5 and wants to end up with $8. The set of ways that a gambler can be successful in exactly 5 plays of the game would include more than one sequence. One suce sequence would be to win, win, lose, win, win. This would mean, the variables we defined above would look like those shown in Table (1.1). It is not hard to image a number of other sequences of 5 plays that would lead to the same result. In addition, there are sequences of many lengths that would lead to success or ruin in the problem. The sets and provide a short hand notation for us to keep track of all the sequences.
If we take the union of all the sets we will get all possible ways
of winning and the union of all the sets will give all possible
ways of losing. So define
The next step is to define the probability of being in the sets, and .
We start by letting
There are two values of that are easy to obtain. If the gambler starts with no cash, it is impossible to reach the desired amount of money. Setting , this means that . Also if the gambler shows up with then it is not necessary to play since the gambler already has the desired amount of money. Setting implies that . These cases may not seem too interesting, but they are very important in characterizing the problem. These cases are the limiting (or boundary) cases in our simple problem.
Implicit in the definition of the probability is the probability, ,
of winning an individual play of the game. Using the probabilities, and
, we can also determine a relationship between different values of
. In particular, the probability can be related to the two
probabilities and as follows.
The result of all this work is the definition of a second order finite
difference equation for the function . To restate the problem we want to
find satisfying the second order difference equation