Spunk Odds Reference

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.

Doubling after losses, win chance 50.00% per bet
Doublings allowedBankroll needed (units)P(lose every step)As odds
4156.2500%1 in 16.0
6631.5625%1 in 64.0
82550.3906%1 in 256.0
112,0470.0488%1 in 2,048.0
1416,3830.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.

Net result of a doubling sequence that wins after k losses, payout 1.98x
Losses before the winFinal stakeNet for the sequence
010.98
240.92
4160.68
5320.36
664-0.28
8256-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.