Martingale (betting system)
|This article needs additional citations for verification. (October 2010)|
A martingale is any of a class of betting strategies that originated from and were popular in 18th century France. The simplest of these strategies was designed for a game in which the gambler wins his stake if a coin comes up heads and loses it if the coin comes up tails. The strategy had the gambler double his bet after every loss, so that the first win would recover all previous losses plus win a profit equal to the original stake. The martingale strategy has been applied to roulette as well, as the probability of hitting either red or black is close to 50%.
Since a gambler with infinite wealth will, almost surely, eventually flip heads, the martingale betting strategy was seen as a sure thing by those who advocated it. Of course, none of the gamblers in fact possessed infinite wealth, and the exponential growth of the bets would eventually bankrupt "unlucky" gamblers who chose to use the martingale. It is therefore a good example of a Taleb distribution – the gambler usually wins a small net reward, thus appearing to have a sound strategy. However, the gambler's expected value does indeed remain zero (or less than zero) because the small probability that he will suffer a catastrophic loss exactly balances with his expected gain. (In a casino, the expected value is negative, due to the house's edge.) The likelihood of catastrophic loss may not even be very small. The bet size rises exponentially. This, combined with the fact that strings of consecutive losses actually occur more often than common intuition suggests, can bankrupt a gambler quickly.
Casino betting limits eliminate use of the martingale strategy.
Assuming that the win/loss outcomes of each bet are independent and identically distributed random variables, the stopping time has finite expected value. This justifies the following argument, explaining why the betting system fails: Since expectation is linear, the expected value of a series of bets is just the sum of the expected value of each bet.[dubious ] Since in such games of chance the bets are independent, the expectation of each bet does not depend on whether you previously won or lost. In most casino games, the expected value of any individual bet is negative, so the sum of lots of negative numbers is also always going to be negative.
The martingale strategy fails even with unbounded stopping time, as long as there is a limit on earnings or on the bets (which are also true in practice). It is only with unbounded wealth, bets and time that the martingale becomes a winning strategy.
One round of the idealized martingale without time or credit constraints can be formulated mathematically as follows. Let the coin tosses be represented by a sequence X0, X1, … of independent random variables, each of which is equal to H with probability p, and T with probability q = 1 – p. Let N be time of appearance of the first H; in other words, X0, X1, …, XN–1 = T, and XN = H. If the coin never shows H, we write N = ∞. N is itself a random variable because it depends on the random outcomes of the coin tosses.
In the first N – 1 coin tosses, the player following the martingale strategy loses 1, 2, …, 2N–1 units, accumulating a total loss of 2N − 1. On the Nth toss, there is a win of 2N units, resulting in a net gain of 1 unit over the first N tosses. For example, suppose the first four coin tosses are T, T, T, H making N = 3. The bettor loses 1, 2, and 4 units on the first three tosses, for a total loss of 7 units, then wins 8 units on the fourth toss, for a net gain of 1 unit. As long as the coin eventually shows heads, the betting player realizes a gain.
What is the probability that N = ∞, i.e., that the coin never shows heads? Clearly it can be no greater than the probability that the first k tosses are all T; this probability is qk. Unless q = 1, the only nonnegative number less than or equal to qk for all values of k is zero. It follows that N is finite with probability 1; therefore with probability 1, the coin will eventually show heads and the bettor will realize a net gain of 1 unit.
This property of the idealized version of the martingale accounts for the attraction of the idea. In practice, the idealized version can only be approximated, for two reasons. Unlimited credit to finance possibly astronomical losses during long runs of tails is not available, and there is a limit to the number of coin tosses that can be performed in any finite period of time, precluding the possibility of playing long enough to observe very long runs of tails.
As an example, consider a bettor with an available fortune, or credit, of (approximately 9 trillion) units, roughly half the size of the current US national debt in dollars. With this very large fortune, the player can afford to lose on the first 42 tosses, but a loss on the 43rd cannot be covered. The probability of losing on the first 42 tosses is , which will be a very small number unless tails are nearly certain on each toss. In the fair case where , we could expect to wait something on the order of tosses before seeing 42 consecutive tails; tossing coins at the rate of one toss per second, this would require approximately 279,000 years.
This version of the game is likely to be unattractive to both players. The player with the fortune can expect to see a head and gain one unit on average every two tosses, or two seconds, corresponding to an annual income of about 31.6 million units until disaster (42 tails) occurs. This is only a 0.0036 percent return on the fortune at risk. The other player can look forward to steady losses of 31.6 million units per year until hitting an incredibly large jackpot, probably in something like 279,000 years, a period far longer than any currency has yet existed. If , this version of the game is also unfavorable to the first player in the sense that it would have negative expected winnings.
Mathematical analysis of a single round
Let one round be defined as a sequence of consecutive losses followed by either a win, or bankruptcy of the gambler. After a win, the gambler "resets" and is considered to have started a new round. A continuous sequence of martingale bets can thus be partitioned into a sequence of independent rounds. Following is an analysis of the expected value of one round.
Let q be the probability of losing (e.g. for American double-zero roulette, it is 10/19 for a bet on black or red). Let B be the amount of the initial bet. Let n be the finite number of bets the gambler can afford to lose.
The probability that the gambler will lose all n bets is qn. When all bets lose, the total loss is
The probability the gambler does not lose all n bets is 1 − qn. In all other cases, the gambler wins the initial bet (B.) Thus, the expected profit per round is
Whenever q > 1/2, the expression 1 − (2q)n < 0 for all n > 0. Thus, for all games where a gambler is more likely to lose than to win any given bet, that gambler is expected to lose money, on average, each round. Increasing the size of wager for each round per the martingale system only serves to increase the average loss.
Suppose a gambler has a 63 unit gambling bankroll. The gambler might bet 1 unit on the first spin. On each loss, the bet is doubled. Thus, taking k as the number of preceding consecutive losses, the player will always bet 2k units.
With a win on any given spin, the gambler will net 1 unit over the total amount wagered to that point. Once this win is achieved, the gambler restarts the system with a 1 unit bet.
With losses on all of the first six spins, the gambler loses a total of 63 units. This exhausts the bankroll and the martingale cannot be continued.
In this example, the probability of losing the entire bankroll and being unable to continue the martingale is equal to the probability of 6 consecutive losses: (10/19)6 = 2.1256%. The probability of winning is equal to 1 minus the probability of losing 6 times: 1 − (20/38)6 = 97.8744%.
The expected amount won is (1 × 0.978744) = 0.978744.
The expected amount lost is (63 × 0.021256)= 1.339118.
Thus, the total expected value for each application of the betting system is (0.978744 − 1.339118) = −0.360374 .
In a unique circumstance, this strategy can make sense. Suppose the gambler possesses exactly 63 units but desperately needs a total of 64. Assuming q > 1/2 (it is a real casino) and he may only place bets at even odds, his best strategy is bold play: at each spin, he should bet the smallest amount such that if he wins he reaches his target immediately, and if he doesn't have enough for this, he should simply bet everything. Eventually he either goes bust or reaches his target. This strategy gives him a probability of 97.8744% of achieving the goal of winning one unit vs. a 2.1256% chance of losing all 63 units, and that is the best probability possible in this circumstance. However, bold play is not always the optimal strategy for having the biggest possible chance to increase an initial capital to some desired higher amount. If the gambler can bet arbitrarily small amounts at arbitrarily long odds (but still with the same expected loss of 2/38 of the stake at each bet), and can only place one bet at each spin, then there are strategies with above 98% chance of attaining his goal, and these use very timid play unless the gambler is close to losing all his capital, in which case he does switch to extremely bold play.
Alternative mathematical analysis
The previous analysis calculates expected value, but we can ask another question: what is the chance that one can play a casino game using the martingale strategy, and avoid the losing streak long enough to double one's bankroll.
As before, this depends on the likelihood of losing 6 roulette spins in a row assuming we are betting red/black or even/odd. Many gamblers believe that the chances of losing 6 in a row are remote, and that with a patient adherence to the strategy they will slowly increase their bankroll.
In reality, the odds of a streak of 6 losses in a row are much higher than the many people intuitively believe. Psychological studies have shown that since people know that the odds of losing 6 times in a row out of 6 plays are low, they incorrectly assume that in a longer string of plays the odds are also very low. When people are asked to invent data representing 200 coin tosses, they often do not add streaks of more than 5 because they believe that these streaks are very unlikely. This intuitive belief is sometimes referred to as the representativeness heuristic.
This is also known as the reverse martingale. In a classic martingale betting style, gamblers increase bets after each loss in hopes that an eventual win will recover all previous losses. The anti-martingale approach instead increases bets after wins, while reducing them after a loss. The perception is that the gambler will benefit from a winning streak or a "hot hand", while reducing losses while "cold" or otherwise having a losing streak. As the single bets are independent from each other (and from the gambler's expectations), the concept of winning "streaks" is merely an example of gambler's fallacy, and the anti-martingale strategy fails to make any money. If on the other hand, real-life stock returns are serially correlated (for instance due to economic cycles and delayed reaction to news of larger market participants), "streaks" of wins or losses do happen more often and are longer than those under a purely random process, the anti-martingale strategy could theoretically apply and can be used in trading systems (as trend-following or "doubling up").
- Michael Mitzenmacher; Eli Upfal (2005), Probability and computing: randomized algorithms and probabilistic analysis, Cambridge University Press, p. 298, ISBN 978-0-521-83540-4
- Lester E. Dubins; Leonard J. Savage (1965), How to gamble if you must: inequalities for stochastic processes, McGraw Hill
- Larry Shepp (2006), Bold play and the optimal policy for Vardi's casino, pp 150–156 in: Random Walk, Sequential Analysis and Related Topics, World Scientific
- Martin, Frank A. (February 2009). "What were the Odds of Having Such a Terrible Streak at the Casino?". WizardOfOdds.com. Retrieved 31 March 2012.