Consider the following questions:
All of these problems are known as the ``Gambler's Ruin Problem''--a gambler keeps betting until he goes broke, or until he reaches a certain goal, and there are no other possibilities. The problem has many elegant solutions which we will ignore. Let's just assume we're stupid and lazy, but we have a computer available to simulate the problem. Here is a nice matrix-based approach for stupid lazy people.
At any stage in the process, there are six possible states, depending on your ``fortune''. You have either $0 (and you've lost), or you have $10, $20, $30, $40 (and you're still playing), or you have $50 (and you've won). You know that when you begin playing, you are in a certain state (having $20 in the case of the very first problem). After you've played a while, lots of different things could have happened, so depending on how long you've been going, you have various probabilities of being in the various states. Call the state with $0 ``state 0'', and so on, up to ``state 5'' that represents having $50.
At any particular time, let's let
represent the probability
of having $0,
the probability of having $10, and so on,
up to
of having won with $50.
We can give an entire probabalistic description of your state as a column vector like this:
Now look at the individual situations. If you're in state 0, or in state 5, you will remain there for sure. If you're in any other state, there's a 50% chance of moving up a state and a 50% chance of moving down a state. Look at the following matrix multiplication:
So if the matrix on the left in equation (3) is called
, each time you multiply the vector corresponding to your initial
situation by
, you'll find the probabilities of being in the
various states. So after 1000 coin-flips, your state will be
represented by
, where
is the vector representing
your original situation (
and
).
But multiplying
by itself 1000 times is a pain, even with a
computer. Here's a nice trick: If you multiply
by itself,
you get
. But now, you can multiply
by itself to
get
. Then multiply
by itself to get
, and so
on. With just 10 iterations of this technique, we can work out
, which could even be done by hand, if you were desperate
enough.
Here's what the computer says we get when we calculate
to
ten digits of accuracy:
For all practical purposes, we have:
Basically, if you start with $0, $10, ..., $50, you have probabilities of 0, .2, .4, .6, .8, and 1.0 of winning (reaching a goal of $50), and the complementary probabilities of losing. As we said above, this can be proven rigorously, but just multiplying the transition matrix by itself repeatedly strongly implies the result.
To solve the second problem, simply do the same calculation with
either 6 states (a
matrix) or 11 states (an
matrix) and find a high power of the matrix. You'll find it doesn't
make any difference which strategy you use.
On the final problem, you can use exactly the same technique, but
this time the original matrix
will not have entries of
, but
rather of
and
. But after you know what
is, the
process of finding a high power of
is exactly the same. In
general,
if you have a probability
of winning each bet and a probability
of
of losing, here's the transition matrix calculation: