Coin flip guide
Cobra Coin Flip: the doubling system, taken apart
Cobra is only the label this page is listed under. The subject is the coin flip format and one well-known staking plan, the martingale.
The plan
The martingale says: stake one unit; after a loss, double the stake; after a win, go back to one unit. On a fair coin that pays 2x, the first win recovers every earlier loss and adds one unit of profit. The plan seems to turn a 50/50 game into a steady earner. It does not, and the coin flip shows why more clearly than most games.
Problem 1: the bankroll runs out
Each doubling needs more money. Allowing L stakes in a sequence needs 2^L - 1 units in reserve. If all L stakes lose, the whole reserve is gone.
| Doublings allowed | Bankroll needed (units) | P(lose every step) | As odds |
|---|---|---|---|
| 4 | 15 | 6.2500% | 1 in 16.0 |
| 6 | 63 | 1.5625% | 1 in 64.0 |
| 8 | 255 | 0.3906% | 1 in 256.0 |
| 11 | 2,047 | 0.0488% | 1 in 2,048.0 |
| 14 | 16,383 | 0.0061% | 1 in 16,384.0 |
With 11 doublings you need 2,047 units to earn one unit per completed sequence, and the chance of losing everything in a given sequence is 0.0488%. Over 1,000 sequences, the chance of meeting that loss at least once is 38.64%.
Problem 2: 1.98x does not cover the doubling
Pure doubling assumes a win returns twice the stake. At 1.98x it does not. After k straight losses the stake is 2^k units and the losses so far total 2^k - 1. A win then returns 1.98 x 2^k, so the net result of the sequence is 1 - 0.02 x 2^k units.
| Losses before the win | Final stake | Net for the sequence |
|---|---|---|
| 0 | 1 | 0.98 |
| 2 | 4 | 0.92 |
| 4 | 16 | 0.68 |
| 5 | 32 | 0.36 |
| 6 | 64 | -0.28 |
| 8 | 256 | -4.12 |
From six losses onward a winning sequence is a losing sequence. A martingale player on this payout has to grow stakes faster than doubling to recover, which needs an even larger reserve.
Problem 3: the expected value never changes
Every stake in the sequence is a flip with an expected loss of 1% of that stake. Adding up stakes of any sizes gives an expected loss of 1% of the total staked. The martingale only rearranges the results: many small wins and one rare, very large loss. The average is unchanged, and the total staked grows quickly.