Omni Calculator logo

Parrondo's Paradox Calculator

Created by Luciano Miño
Reviewed by Rijk de Wet
Based on research by
Gregory P. Harmer, Derek Abbott and Peter G. Taylor The Paradox of Parrondo's Games; JSTOR; Feb. 8, 2000
Last updated: Jan 18, 2024


The Parrondo's paradox calculator will illustrate how two losing games can combine to produce a winning game. This apparently contradictory statement is what Spanish physicist Juan Parrondo discovered while studying the Brownian Ratchet, a thought experiment in the field of physics.

In this calculator, you will find a simulation of Parrondo's paradox as it emerges from a loaded coin-tossing game, which you can experiment with to test this paradox.

We also included a brief mathematical description of how this situation develops using Markov chains and that Parrondo's paradox is, in fact, not so paradoxical.

Keep reading to learn more!

💡 This situation does not hold at all in casino games and is the expected outcome of a very particular arrangement of games.

What is Parrondo's paradox?

Parrondo's paradox describes the situation where two losing games can be mixed to produce a winning game in the long run. Although this winning strategy needs a particular setup to be feasible, it still has many applications in different fields, such as economics, game theory, and biology.

Parrondo's paradox in a coin-tossing game

Let's picture a scenario where you are given two games (game A and game B) that you can play repeatedly. Every time you win in either game, you earn $1. Otherwise, you lose $1.

  • Game A: In this game, you will toss an almost fair coin. Your winning odds here are P(A)=0.495\text{P}(A) = 0.495, which is slightly lower than 50/50 and leads to a guaranteed loss in the long run.

  • Game B: Before playing, you look at your current capital. If it's a multiple of 3, you play game B1. If it's not, you play game B2. In both B1 and B2, you will use a loaded coin — however, the odds differ significantly:

    • In game B1 (when your capital is a multiple of 3) your probability to win is P(B1)=0.095\text{P}(B_1) = 0.095.
    • In game B2 (when your capital is not a multiple of 3) your probability to win is P(B2)=0.745\text{P}(B_2) = 0.745.

As you can see, game B1 is extremely unfavorable to the player, but game B2's odds are about 3/4 in the player's odds. Overall, the expected value of game B is still negative — if you play game B exclusively, you are guaranteed to lose money in the long run, just like game A.

🙋 Check our expected value calculator to learn how to tell if a game is profitable or not in the long run.

Playing the games alternatively

So, how can we actually win if we only get to choose between two games where we know we are guaranteed to lose money? The answer is by switching back and forth between both games.

Parrondo's paradox simulation

This Parrondo's paradox calculator performs a simulation of this coin-tossing game using thousands of random trials of 100 games (so you don't have to actually play such an absurd number of games).

Let's check what happens when we try different strategies.

Game A

The graph below plots our capital to the number of games played:

Average capital vs games played for game A.

We can interpret this graph as a losing game. The more games we play, the further the graph will drop: we will lose money if we keep playing game A.

Game B

Average capital vs games played for game B.

With the same downward trend in the graph, we can say that game B is also a losing game (but we already knew that).

AABB sequence

What if we play the sequence AABB (two games of A followed by two games of B)? What would our capital look like after playing 100 games following this pattern?

Average capital vs games played for sequence AABB.

In this case, as the number of games goes up, the capital increases, too! This means that AABB is actually a winning strategy.

But why does this happen?

The short answer is that the AABB pattern allows the player to be in favorable states (more likely to win $1) more often than in unfavorable states (more likely to lose $1) of the system. So, even though each game has more unfavorable states, the combination AABB allows the player to play game B2 (the winning game) more often.

If you're still not convinced, let's see how we can explain Parrondo's paradox using Markov chain analysis.

💡 A random selection of games A and B also produces a favorable outcome in the long run! Select the random order in the Parrondo's paradox simulation and verify it yourself.

Why do we win? Markov chain analysis

Markov chains can be used to model the transitions between different states of a system. In our example, they can be used to show how the probability of playing each game changes as the number of games increases.

We will use probability vectors π\pi (a column vector) and a matrix called the transition matrix PP, which will simulate playing one game given a specific state:

πn+1=Pπn\pi^{n+1} = P \pi^n

Specifically,

  • Each element mijm_{ij} of PP represents the probability of transitioning from state jj to ii.
  • Each vector element πkn\pi_k^n is the probability of the system being at state kk after nn games.

Modelling game B

Let's say we want to model game B using this method.

To decide whether we play game B1 or B2 at a given time, we use the operation modulo 3 on our current capital (modulo delivers the remainder after dividing our capital by 3). So, no matter how many games we have played, this operation will return either 0, 1, or 2. We can separate our future capital into these three sets.

Since we have three possible states, our probability vector will have three components.

We can build the transition matrix for game B as follows:

P=(01P(B2)P(B2)P(B1)01P(B2)1P(B1)P(B2)0)P = \left(\begin{smallmatrix} 0 & 1 - \text{P}(B_2) & \text{P}(B_2) \\ \text{P}(B_1) & 0 & 1 - \text{P}(B_2) \\ 1 -\text{P}(B_1) & \text{P}(B_2) & 0 \\ \end{smallmatrix}\right)

Here each column corresponds to a state where the remainder of dividing our capital by 3 is 0, 1, or 2, respectively. And each element of said columns (from top to bottom) is the probability of transitioning to 0, 1, or 2, respectively.

If we're at state 2 (third column), for example, our capital is not a multiple of 3. Therefore we'll play game B2:

  • The probability of moving to state 0 is the probability of winning B2 since our capital will then be a multiple of 3;
  • The probability of moving to state 1 is the probability of losing B2; and
  • The probability of moving to state 2 is zero since we're at state 2, and we can only either lose or win.

Therefore, PP is equal to:

P=(00.2550.7450.09500.2550.9050.7450) P = \begin{pmatrix} 0 & 0.255 & 0.745 \\ 0.095 & 0 & 0.255 \\ 0.905 & 0.745 & 0 \\ \end{pmatrix}

How to find the probability after a large number of games

These types of transition matrices involving probabilities are called stochastic, and there is a theorem called the Perron–Frobenius theorem, which ensures that the system will converge to a steady-state in the long run.

This means that after playing a large number of games, the probability of playing each of them doesn't change anymore:

π=Pπ\pi = P \pi

Note that this is an eigenvalue equation for λ=1\lambda = 1.

If we apply this result to the transition matrix for game B, we can find the associated eigenvector and, therefore, the steady state.

You can use our eigenvalue and eigenvector calculator to verify that the eigenvector is:

v1=(0.830140.333861)v_1= \begin{pmatrix} 0.83014\\ 0.33386\\ 1 \end{pmatrix}

We now divide each component by the sum of the components (since it's a probability vector) and obtain the steady state:

π=(0.383610.154280.46211)\pi = \begin{pmatrix} 0.38361\\ 0.15428\\ 0.46211 \end{pmatrix}

This means that by playing game B, we will be at state 0 (our capital is a modulus of 3, so we play the losing game) about %38.4 of the time.

To calculate the probability to win on game B, we just need to multiply the probability of being at each state by the probability of winning at each state and add them:

Pwin= 0.38361×0.095 +0.15428×0.745 +0.46211×0.745\begin{align*} P_{win} =\ &0.38361 × 0.095\ +\\ &0.15428 × 0.745\ +\\ &0.46211 × 0.745 \end{align*}
Pwin=0.49565P_{win} = 0.49565

which proves that game B is a losing game.

Random sequence

We can apply the same analysis to a random pick between games A and B.

If we toss a fair coin to decide which game to play (50/50 odds), the transition matrix is:

P=(00.380.620.29500.380.7050.620)P =\footnotesize \begin{pmatrix} 0 & 0.38 & 0.62 \\ 0.295& 0 & 0.38 \\ 0.705& 0.62 & 0 \end{pmatrix}

🔎 Note that here the odds of winning at state 0 are the odds of playing game A and winning plus the odds of playing game B1 (since capital is a multiple of 3) and winning. We can apply this logic to each element of PP to build the transition matrix.

The resulting steady-state vector is:

π=(0.345070.254110.40082)\pi = \begin{pmatrix} 0.34507 \\ 0.25411 \\ 0.40082 \end{pmatrix}

This gives us a winning probability of:

Pwin= 0.34507×0.295 +0.25411×0.62 +0.40082×0.62\begin{align*} P_{win} =\ &0.34507 × 0.295\ +\\ &0.25411 × 0.62\ +\\ &0.40082 × 0.62 \end{align*}
Pwin=0.50785P_{win} = 0.50785

This shows that even if we play both losing games (A and B) in a random sequence, we are guaranteed to win in the long run!

This setup is not the only scenario where Parrondo's paradox appears. By making the probabilities of winning each game differ by ε (linking them), one can prove that the paradox emerges in other combinations of games and conditions as long as ε is sufficiently small.

FAQ

How do I replicate Parrondo's paradox?

To replicate the paradox by yourself, you should:

  1. Pick a small value ε (ε < 0.005) to make the probabilities of each game differ slightly.
  2. Write the probabilities of each game:
    • Win game A = 0.5 - ε;
    • Win game B1 (played if capital is multiple of 3) = 0.1 - ε;
    • Win game B2 (played if capital is not a multiple of 3) = 0.75 - ε.
  3. Pick an order or sequence to alternate between games A and B.
  4. Repeat several times and average the capital after a set number of games.

Is Parrondo's paradox applicable in casinos?

No. Parrondo's paradox only works in specific scenarios where games A and B are related by an external mean — in the simplest case, the player's capital.

Can I model Parrondo's paradox only with toin-cossing games?

No. Parrondo's paradox can emerge in any game where a relation exists between the games to be played. Games such as dice-tossing or other random processes can also exhibit the behavior of this paradox.

Luciano Miño
Parrondo's paradox
Parrondo's paradox describes the counterintuitive result of how two losing games can produce a winning game. Picture the following scenario:

You have two games (game A and game B) in which you flip a loaded coin whose odds are specific to the game. Every time you win a game, you earn $1 — otherwise, you lose $1.

Game A:
In this game, you have a 0.495 chance to win.

Game B:
Here, your odds depend on your money. You'll play game B1 if your current capital is a multiple of 3, and you'll play game B2 if it's not.
B1: 0.095 chance to win.
B2: 0.745 chance to win.

If you play any of these games exclusively, you are guaranteed to lose money in the long run.

However, playing these games alternatively may result in a guaranteed positive outcome!
Simulation
Strategy
Select...
Below, you will find a simulation of thousands of 100-game runs starting at $0.

You can select the strategy by which you'd choose which games are played:
— Play only Game A;
— Play only Game B;
— Play one game of A followed by one game of B and repeat;
— Play two games of A followed by two games of B and repeat; or
— Randomly pick between both games.
Check out 33 similar probability theory and odds calculators 🎲
AccuracyBayes theoremBertrand's box paradox… 30 more
People also viewed…

Books vs e-books

Discover the ultimate paper books vs. e-books calculator. Make an informed choice with our handy tool. Find out which is best for the environment!

Boy or girl paradox

The boy or girl paradox is an excellent example of why how we ask questions matters!

First quartile

Our first quartile calculator will teach you all there is about the lower quartile.

Plastic footprint

Find out how much plastic you use throughout the year with this plastic footprint calculator. Rethink your habits, reduce your plastic waste, and make your life a little greener.
Copyright by Omni Calculator sp. z o.o.
Privacy, Cookies & Terms of Service