CS 1063 Intro. to Computer Programming
|
Odds: With Las Vegas Roulette, assuming that you bet on a color, or on even or odd, the odds of winning are 18/38 = .47368421 (approximately). If you win you keep your bet and the house matches it, that is, you double your bet. If you lose, the house keeps your bet.
Let's pretend to bet over and over again, and until we have either lost all our money or have doubled our stake, that is, until we have $2000 and can quit satisfied: First try.
Study this first try carefully. Is this what you expected? The net amount you have won goes up and down, as you probably expected, but in these runs, we only doubled our stake twice in 31 tries; the rest of the time we lost all our money.
So here we pretend to play until our stake is gone or until we have doubled our stake, and we do this over and over again. This means that each line in the output of the next program represents a whole trip to Las Vegas with $1000 stake. Second try.
Study the wins and losses carefully. Whoa! We won $1000 only 7 times out of 80. We lost our $1000 73 times and won an extra $1000 just 7 times.
Look at the link, and see the results for 1000 days, and then 10000 and then 10000. We are doubling our money only about 11 percent of the time. That sucks, since we should be winning just somewhat less that half the time (the house edge).
Here is a table summarizing the results of these bets (the line in red is what we worked out experimentally above):
| Bet $1000, 0.4737 odds of winning | ||
|---|---|---|
| Number of bets | Size of each bet | % chance of doubling stake |
| 100 | $10 | 0.0028% |
| 50 | $20 | 0.52% |
| 40 | $25 | 1.43% |
| 20 | $50 | 10.85% |
| 10 | $100 | 25.87% |
| 5 | $200 | 37.16% |
| 2 | $500 | 44.70% |
| 1 | $1000 | 47.25% |
It is much better to bet larger amounts. From this, it becomes plausible that our best strategy is to bet the entire $1000 in one bet. In this case we will double our money 47.37 percent of the time, and lose all our money 52.63 percent of the time, on the average.
All this discussion assumes we are placing a bet with even odds of winning or losing (well, slightly worse than even). If we place a bet with long odds, then smaller bets are not as bad as with even odds.
Notice here that we lost all our money about 40% of the time, but we usually ended with more than $1000, so that the average winnings were about $954. This means that every time we play with $1000, we expect to lose about $46. This isn't a bad outcome.