Saved

Press the star next to a tool's name to save it.

All my tools

Probability Paradox Calculator

Use this probability paradox calculator to see the answers to Bertrand's box, Bertrand's chord, Boy or Girl and Parrondo's paradoxes, and why the obvious answer is wrong.

Restored your last values ·

Choose one of four probability paradoxes. Bertrand's box and the random chord show the answers and why. The Boy or Girl paradox has three versions, including the Tuesday version with its own chance. For Parrondo's paradox, enter a pattern of games to see the average gain per game.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Choose a paradox, then press Show.

A probability paradox calculator shows the answers to four famous puzzles in probability and explains why the obvious answer is often wrong. It covers Bertrand's box paradox, Bertrand's paradox of the random chord, the Boy or Girl paradox with its Tuesday version, and Parrondo's paradox, in which two losing games combine into a winning one.

How to use the probability paradox calculator

  1. Choose a paradox from the list.
  2. For the chord, enter a circle radius. For the Boy or Girl paradox, choose a version. For Parrondo's paradox, type a pattern of games such as AABB.
  3. Press Show.

Bertrand's box paradox

The Wikipedia article on Bertrand's box paradox describes three boxes: one with two gold coins, one with two silver coins and one with one gold coin and one silver coin.[1] A coin is drawn at random from a randomly chosen box and it is gold. What is the chance that the other coin in the box is also gold? The page says the intuitive answer of 1/2 is wrong and that the probability is actually 2/3.[1] Of the six coins, only three could have been drawn: the two gold coins in the gold-gold box and the gold coin in the mixed box. Two of these three come from the gold-gold box.[1] The tempting answer counts boxes instead of coins and forgets that the gold-gold box is twice as likely as the mixed box to give a gold coin.

Bertrand's paradox of the random chord

The page on Bertrand's paradox asks for the probability that a random chord of a circle is longer than the side of the inscribed equilateral triangle.[2] With random endpoints the answer is 1/3, because the second point must lie on the opposite third of the circle.[2] With a random point on a radius and the chord perpendicular to it, the answer is 1/2, because the side of the triangle bisects the radius.[2] With a random midpoint in the disc, the answer is 1/4, because the midpoint must lie inside the circle of half the radius, which has a quarter of the area.[2] The page says that the methods weight diameters differently and that an infinite family of other selection methods gives other answers.[2] The calculator also gives the length to beat: for a circle of radius r, the side of the triangle is r times the square root of 3, our own geometry, so 3.4641 for r = 2.

The Boy or Girl paradox

The page on the Boy or Girl paradox sets up four equally likely families, BB, BG, GB and GG, with the sexes independent and equally likely.[3] If the older child is a girl, the chance that both are girls is 1/2.[3] If you are told that at least one child is a boy, the answer depends on how that information arose: if the family was chosen from those with at least one boy, the answer is 1/3, and if a child was chosen at random and was a boy, it is 1/2.[3] The calculator shows both answers for the second version. A flat prior of 1/3 for each type of family would give different values, which the page also shows, but the calculator uses the standard model with four equally likely families.[3]

The Tuesday version

The page gives the Tuesday version: if one child is a boy born on a Tuesday, the chance that both are boys is (2 − p) ÷ (4 − p), where p is the chance that a child is born on a Tuesday.[3] With p = 1/7 this is 13/27, about 0.48, and as p approaches 0 it tends to 1/2.[3] The assumptions are that birth days are equally likely and independent of sex and of the other child's birthday.[3] The calculator lets you enter another p; with p = 1 it gives 1/3, which is the same as the plain at-least-one-boy version.

Parrondo's paradox

The page on Parrondo's paradox describes games in which the capital changes by one unit per game. Game A is a coin with a win probability of 1/2 − ε, where ε is a small positive number, a losing game in the long run.[4] In Game B, if the capital is a multiple of M you toss coin 2 with win probability 1/10 − ε, and otherwise coin 3 with 3/4 − ε.[4] With M = 3 and ε = 0.005, the page calls Game B an almost surely losing game too, with coin 2 used about 38.36 percent of the time.[4] Yet alternating patterns can win: the page says AABBAABB is a winning game, ABABAB is a losing game and ABBABB is a winning game.[4]

What the calculator computes

Type a pattern and the calculator follows the capital modulo 3 together with the position in the pattern, finds the long-run state frequencies, and gives the average gain per game. This is our own working, since the page gives no gain figures. With ε = 0.005, Game A alone loses 0.01 per game, Game B alone loses about 0.0087, and AABB gains about 0.0147 per game, while ABAB loses about 0.0067 and ABBABB gains about 0.0574. The result agrees with the page's verdicts for all three patterns and shows how the pattern changes the sign.[4]

Why it works

The page explains that Game B is only a losing game under the long-run distribution of the capital modulo M when it is played alone, and that when the games alternate, the games are dependent, so a calculation that treats them as independent is wrong.[4] Game A shifts the capital so that Game B spends less time in its bad state, the multiples of 3. That is the trick behind the paradox.

Common mistakes

  • Counting boxes instead of coins. The gold-gold box has two chances to give a gold coin.
  • Not asking how the information was found. The Boy or Girl answer depends on the selection procedure.
  • Treating alternating games as independent. Parrondo's games depend on the capital.

What next

Use this often? Add Probability to your Home screen.

Frequently asked questions

What is a probability paradox calculator?

A tool that shows the answers to well-known probability puzzles, such as Bertrand's box and the Boy or Girl paradox, with the reasoning behind them.

What is the answer to Bertrand's box paradox?

2/3. Given that a gold coin was drawn, two of the three possible gold coins belong to the gold-gold box.

Why does Bertrand's chord paradox have three answers?

Random chord can be defined in different ways: random endpoints give 1/3, a random radial point gives 1/2 and a random midpoint gives 1/4.

What is the answer to the Tuesday boy problem?

13/27, about 0.48, from (2 − p) ÷ (4 − p) with p = 1/7.

What is Parrondo's paradox?

Two games that each lose in the long run can win when played in a suitable alternating pattern, such as AABB.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Math Tools