Parrondo's Paradox Calculator

Parrondo's Paradox Calculator

Two coin games that each lose money in the long run can win when you alternate between them. Calculate the exact long-run gain per round for each game, a random mix and any sequence, and watch simulated capital rise or fall.

losing + losing → winning

Game A: win with probability ½ − ε. Game B: if your capital is a multiple of 3, win with probability 1/10 − ε; otherwise ¾ − ε. Each round wins or loses 1.

+0.0157
Expected gain per round mixing 50% A at random: a winning strategy
-0.01
Only game A
-0.0087
Only game B
+0.0147
Sequence AABB
710-532,000 rounds
Only AOnly BRandom mixSequence

What Is Parrondo's Paradox?

Parrondo's paradox is the discovery that two games which each lose money when played on their own can produce a steady profit when played alternately or at random. Physicist Juan Parrondo described it in 1996.

The trick is in game B. It has a bad coin, used when your capital is a multiple of 3, and a good coin, used otherwise. Played alone, B spends too much time on the bad coin and loses. Mixing in game A, a nearly fair coin, shakes up your capital so you land on the bad coin less often, and B's good coin does the rest.

It isn't a casino loophole, because B depends on your capital in a way real games don't. But the same mechanism, two losing processes combining into a winning one, appears in physics (Brownian ratchets), biology and finance.

Parrondo's Paradox Formulas

As set out in Harmer & Abbott (1999) and Harmer et al. (2000). See Sources.

1. Track capital modulo 3

states 0, 1, 2 · win → state + 1 · lose → state − 1

2. Find the long-run share of time in each state

π = π × P (stationary distribution of the Markov chain)

For a repeating sequence like AABB, the state also records where you are in the sequence.

3. Average the expected win

gain per round = Σ πᵢ × (2pᵢ − 1)

Worked Example: Why Mixing Wins

Given:
Parrondo's original settings, with ε = 0.005, played for £1 a round.
Step 1:
Game A alone:
2 × 0.495 − 1 = -0.01 per round
Step 2:
Game B alone (spends about 38% of its time on the bad coin):
-0.0087 per round
Step 3:
Pick A or B with a fair coin each round:
+0.0157 per round
Result:
About £16 profit per 1,000 rounds

Playing only A loses about £10 per 1,000 rounds, and only B about £9. Randomly switching turns two losers into a winner.

Parrondo Strategies Compared

Exact expected gain per round with ε = 0.005. Not every pattern wins.

Expected gain per round for several strategies
StrategyGain per roundPer 1,000 rounds
Only A-0.01−£10
Only B-0.0087−£8.7
AB-0.0067−£6.7
AAB+0.0092+£9.2
ABB+0.0574+£57.4
AABB+0.0147+£14.7
ABBB-0.0027−£2.7

Common Mistakes With Parrondo's Paradox

  • Applying it to casino games. Roulette and slots don't depend on your capital, so mixing them just averages two losses.
  • Thinking any mix wins. The sequence matters; some patterns still lose, as the table shows.
  • Judging by a short run. The edge is about 1–2p a round, far smaller than the round-to-round swings. You need thousands of rounds to see it.
  • Calling it a free lunch. Game A acts like an outside source of randomness that B exploits; nothing breaks the laws of probability.

Parrondo's Paradox FAQs

Why does game B lose on its own?

It lands on a multiple of 3 more often than a third of the time, about 38% with ε = 0.005, and the bad coin used there drags it down.

How does mixing in A help?

A moves capital up or down almost at random, which spreads time more evenly across 0, 1 and 2 and reduces visits to the bad coin.

What does ε do?

It tilts every coin slightly against you. Larger ε makes all strategies worse; above about 0.013 even the random mix loses.

Why does the simulation wander?

It’s one random run of 2,000 rounds. The exact figures above are the long-run averages the lines drift towards.

Can I enter my own sequence?

Yes, any pattern of A and B up to 20 letters, such as ABB or AABBB. It repeats forever.

Is it used in real life?

As a model: Brownian ratchets in physics, some population and evolution models, and portfolio rebalancing ideas.

Who discovered it?

Juan Parrondo in 1996; Harmer and Abbott published the first analysis in Nature in 1999.

How is the exact gain worked out?

By finding the long-run share of time spent in each state of a Markov chain on capital mod 3, then averaging the expected win in each state.

Sources

  • G. P. Harmer and D. Abbott, "Losing strategies can win by Parrondo's paradox", Nature 402 (1999), doi:10.1038/45387.
  • G. P. Harmer, D. Abbott, P. G. Taylor and J. M. R. Parrondo, "Parrondo's paradoxical games and the discrete Brownian ratchet", AIP Conference Proceedings 511 (2000), doi:10.1063/1.60002.

Related Tools