Bertrand's Box Paradox Calculator

Bertrand's Box Paradox Calculator. Run a simulation of Bertrand's Box Paradox and see the true conditional probability unfold. Set the number of trials to simulate, choose your initial coin drawn (Gold or Silver), and the calculator returns the estimated probability that your chosen box contains two coins of the same type — along with a breakdown of trial outcomes and a Bayesian theoretical comparison. Also try the Roulette Payout Calculator.

How many times to simulate the box-drawing experiment. More trials → closer to the true probability.

Coin Drawn First *

You peek into a random box and see this coin. What is the probability the other coin in that box matches?

Number of gold coins in the Gold-Gold box (classic = 2).

Number of silver coins in the Silver-Silver box (classic = 2).

Number of gold (and silver) coins in the mixed box (classic = 1 each).

Results

Simulated Probability (Same-Type Box)

--

Theoretical Probability (Bayes' Rule)

--

Intuitive (Incorrect) Guess

--

Trials: Coin Drawn Matched & Box Same-Type

--

Trials: Coin Drawn Matched Condition

--

Simulation vs. Theory Difference

--

Results Table

Ever found a probability problem where your intuition led you astray? The Bertrand's Box Paradox Calculator offers a precise, visual solution to the classic three boxes paradox—helping you see why the odds defy "common sense" and what the real answer means for your reasoning. When you’re faced with games of chance, risk assessment, or tricky statistics brain teasers, understanding your posterior probability after extracting just one coin could change how you approach uncertainty. Use this calculator to uncover what happens when you’ve already found gold and want to determine whether the other coin is gold too—the result may surprise you and challenge your perception of odds.

Understanding Bertrand's Box Paradox: The Puzzle Unveiled

What is Bertrand's Box Paradox?

There are three closed boxes:
  • One contains two gold coins
  • Another holds two silver coins
  • The last box has one gold coin and one silver coin

You start by choosing a box at random, then draw a coin from one of its drawers. If you have already found one gold coin, what is the probability that the other coin in that box is also gold? This paradox, first presented by Joseph Bertrand, captivates mathematicians and puzzlers because the intuition that the answer is 1/2 is compelling—but, as we’ll see, it’s incorrect.

Each container is identical in appearance to remove any bias. After drawing a coin and finding it is gold, our perception of odds is easily mistaken because we overlook how likelihood and prior probabilities work together in statistics. The event—discovering a gold coin—gives us new information that changes the calculation in subtle ways.

Why the "Common Sense" Answer is Misleading

Let's consider the probability puzzle after you have already found one gold coin. Since there are two containers that could have led to this outcome—the one with two gold coins and the one with one gold coin and one silver coin—it seems natural to guess there's a 50/50 chance (1/2) that you selected the pair of gold coins container. But this overlooks the core structure of the paradox and the influence of likelihood on the posterior.

  • Each vessel is equally likely to be picked (priori probability of 1/3 each).
  • But the chances of drawing gold from these containers is not equal. Your odds of pulling gold from the one with two gold coins is 100%; from the mixed, it’s 50%; from the two silver coins stash, it’s 0%.

Because of these differences, seeing a gold coin makes it twice as likely that you are in the all-gold container compared to the mixed. This subtlety is why our perception of odds is easily mistaken.

Core paradox: After drawing gold, the probability the other coin is also gold is 2/3, not 1/2.
  • The sum of possibilities associated with extracting a gold coin matters.
  • The variation of the puzzle for more containers or coins often further complicates intuition.

How the Bertrand's Box Paradox Calculator Works: Simulation and Interpretation

Simulating Random Box and Coin Selection

The Bertrand's Box Paradox Calculator operates by simulating multiple instances of the following process, each representing a randomized experiment:

  1. Pick your box: Choose a container out of three ( two gold coins, two silver coins, or one gold coin and one silver coin).
  2. Extract a coin: From the selected container, randomly draw one coin.
  3. Conditional check: If the token is gold, record which container it was from, and whether the other token is also gold.
  4. Repeat: Repeat steps 1–3 thousands of times to estimate the probability of choosing each container empirically.
Sample Python simulation illustrating the logic behind the tool:
import random
boxes = [['G', 'G'], ['S', 'S'], ['G', 'S']]
gold_results = 0
two_gold_results = 0
trials = 100000
for _ in range(trials):
    box = random.choice(boxes)
    coin = random.choice(box)
    if coin == 'G':
        gold_results += 1
        if box == ['G', 'G']:
            two_gold_results += 1
print(f"Probability: {two_gold_results / gold_results:.2f}")

This simulation provides strong evidence that the probability of finding a second gold coin, given you have already drawn gold, converges to 2/3 as the number of trials increases—a result that aligns perfectly with the mathematical conclusion.

Interpreting Your Calculator Results

When using the calculator, the value it returns expresses this question: "Given you’ve picked a box at random and drawn a gold coin, what is the likelihood that you selected the container containing two gold coins?" That’s equivalent to asking about the updated chance after observing the outcome, especially in the context of simulation of bertrand's box paradox.

The calculator internally applies bayesian interpretation, using the updated data from your draw (the new information) to adjust the priori probability for each box being chosen:

Key point: The chance here is not the same as the unconditional chance; it specifically incorporates the knowledge that drawing gold has occurred.

Repeated simulation closely mirrors the real logic of Bayes rule:

  • Priors: Each container has a prior chance of 1/3.
  • Likelihoods: Odds of drawing gold from each: 1 (two gold coins), 1/2 (mixed), 0 (two silver coins).
  • Normalization: Sum the products of priors and likelihoods over all containers.
  • Updated: Calculate the revised chance for each container after seeing the new data.
Summary of Calculator Logic
BoxPrior ProbabilityLikelihood: Drawing GoldJoint Probability
Two Gold Coins1/311/3
One Gold Coin and One Silver Coin1/31/21/6
Two Silver Coins1/300

The calculator's result is the fraction of times the draw came from the two gold coins container divided by all draws where a gold coin appeared. As trials increase, this converges to 2/3 (the correct analysis).

This sort of statistical game highlights the contradiction between intuition and math—exactly what makes this scenario a fallacy worth investigating further.

Step-by-Step Solution: Bayesian Reasoning in Bertrand's Box Paradox

Applying Bayes' Rule to the Probability Problem

To formally compute the chance, we use Bayes' rule, the heart of bayesian reasoning. The question is: What’s the probability that you were choosing the box with two gold coins given that you drew a gold coin? In symbols:

$$P(B_{GG} | G) = \frac{P(G | B_{GG}) \cdot P(B_{GG})}{P(G)}$$
P(B_{GG} | G)
The updated likelihood: chance you've got the two gold coins box given you drew gold
P(G | B_{GG})
The likelihood: probability of drawing gold from the two gold coin container (which is 1)
P(B_{GG})
The priori probability: chance you start by choosing a box with two gold coins (1/3)
P(G)
The normalization factor: overall chance of drawing gold from any container

Now, let’s walk through the calculation step by step using the actual numbers for each scenario:

  1. Compute priors: Each container has a prior chance of 1/3.
  2. Calculate likelihoods:
    • If two gold coins, odds for gold: 1
    • If one gold coin and one silver coin (mixed), the chance: 1/2
    • If two silver coins, frequency: 0
  3. Joint probabilities: Multiply prior by likelihood for each container.
    • Two gold coins: 1 × 1/3 = 1/3
    • Mixed: 1/2 × 1/3 = 1/6
    • Two silver coins: 0 × 1/3 = 0
  4. Normalization: Add up joint probabilities: 1/3 + 1/6 = 1/2
  5. Result for two gold coins: (1/3) ÷ (1/2) = 2/3
Mathematical summary: The probability of choosing the box with another gold coin after drawing gold is $$\frac{2}{3}$$; a result only obtainable by using the full machinery of Bayes rule.

Calculation Table: Probabilities for Each Box

Bayes Table for Bertrand's Box Paradox
Box TypePrior ProbabilityLikelihood of Drawing GoldProductPosterior Probability
Two Gold Coins1/311/32/3
Mixed (One Gold, One Silver)1/31/21/61/3
Two Silver Coins1/3000

The result: after observing drawing gold, it’s 2/3 likely you’re in the two gold coins case, 1/3 in the mixed, and 0 in the two silver coins container. This is the revised distribution, based on the statistical insight of Bayesian interpretation and demonstrates the contradiction underlying the fallacy.

Worked Example #1: Draw a gold coin from the mixed box—what are the odds for the other coin?
  1. Prior: Start by choosing a box at random (1/3 chance for each).
  2. Draw gold: Mixed: you’d only see gold 50% of the time; two gold coin box: always gold; two silver coins container: never gold.
  3. Update result: After drawing gold, the probability for the mixed case is 1/3, so if you drew gold and were in the mixed, the other must be silver (0% chance the other is gold).
Worked Example #2: Draw from the two gold coins box; what if the next extraction is also gold?
  1. Prior: Box selected is two gold coins (chance is 2/3 after observing the first gold, from earlier).
  2. First extraction: Since both are gold, you'll always draw gold from this one if you draw again.
  3. Consequence: You will always draw gold next if you are indeed in the two gold coin case.
Worked Example #3: Draw a silver coin first—how does this update the probabilities?
  1. Start: Draw, and the coin is silver.
  2. Priors: The two gold coins case can be eliminated; only the mixed and two silver coins containers remain.
  3. Chance: The mixed container gives a silver coin 50% of the time; two silver coins box does so 100% of the time.
  4. Update: Probability of being in the mixed box after getting silver is $$\frac{1/3 * 1/2}{1/3 * 1/2 + 1/3 * 1} = \frac{1/6}{1/6 + 1/3} = \frac{1/6}{1/2} = 1/3$$ So, there's a 1/3 chance it's mixed (so the other coin is gold) and 2/3 it's the two silver coins container (so the other is silver). Your draw shifts things accordingly and highlights a classic statistical fallacy.

Frequently Asked Questions: Bertrand’s Box Paradox Explained with Bayes Theorem

Why is Bertrand's box paradox probability not 1/2?

  • The common sense answer ignores the crucial role of likelihood. The odds of drawing gold are greater in the two gold case than in the mixed, so drawing gold gives stronger data for having picked the two gold box. Thus, the actual number is 2/3 – a classic contradiction.

How do you use Bayes' rule for Bertrand's box paradox's solution?

  • Bayes' rule formalizes how new information (seeing a gold coin) modifies your belief about what you selected. Apply prior, likelihood, combine, and compute the result as shown above, being aware of the potential for fallacy if not done right.

What is the solution to Bertrand's box paradox?

  • The answer to Bertrand's box paradox is 2/3. After observing a gold coin, the odds that the other is also gold—i.e., that you picked the case with two gold coins—is 2/3. This is validated through simulation, calculation, and theory.

What is Bertrand's box paradox?

  • It’s a probability puzzle where three closed containers have different combinations of coins, and you must infer, after drawing gold, the odds the other is also gold. The contradiction lies in the fallacy of intuition—the real likelihood is not what you might expect according to probability theory.

What is Bertrand's Box Paradox?

Bertrand's Box Paradox is a classic probability puzzle introduced by Joseph Bertrand in 1889. There are three boxes: one with two gold coins (GG), one with two silver coins (SS), and one with one gold and one silver coin (GS). You pick a box at random and draw one coin — it's gold. The paradox asks: what is the probability that the other coin in the same box is also gold? Most people intuitively say 1/2, but the correct answer is 2/3. See also our Boy or Girl Paradox Calculator.

Why is the probability not 1/2?

The intuition of 1/2 comes from thinking there are only two possible boxes left (GG or GS), each equally likely. However, you must account for how you arrived at drawing a gold coin. There are three gold coins total, and two of them are in the GG box. So given that you drew a gold coin, the chance you're in the GG box is 2 out of 3 — not 1 out of 2.

How does Bayes' Rule solve Bertrand's Box Paradox?

Using Bayes' rule: P(GG | gold drawn) = P(gold drawn | GG) × P(GG) / P(gold drawn). P(gold | GG) = 1, P(GG) = 1/3, and P(gold drawn) = 1/2 (since 3 of 6 coins total are gold). This gives (1 × 1/3) / (1/2) = 2/3. Bayes' rule formalises the correct conditional probability by weighting each scenario by its likelihood of producing the observed outcome.

What is the solution to Bertrand's Box Paradox?

The correct probability that the other coin in the box is gold — given you already drew a gold coin — is 2/3 (approximately 66.67%). This can be verified by reasoning, Bayes' theorem, or through repeated simulation, which this calculator demonstrates.

How does simulation confirm the 2/3 result?

In a simulation, you randomly pick a box and randomly pick a coin from it. You record only the trials where the drawn coin matches your condition (e.g., gold). Among those valid trials, you count how many came from the same-type box (GG). As the number of trials grows, this ratio converges to 2/3, confirming the theoretical answer.

Is Bertrand's Box Paradox related to the Monty Hall Problem?

Yes — both are conditional probability puzzles where human intuition systematically gives the wrong answer. In both cases, failing to properly account for how the observed evidence was generated leads people to incorrectly assume equal probability among remaining options. The underlying mathematics in both is Bayes' rule.

Does the result change if I draw a silver coin first?

By symmetry, yes — if you draw a silver coin first, the probability that the other coin in that box is also silver is also 2/3. The same reasoning applies: there are three silver coins total, two of which are in the SS box, so given a silver coin was drawn, the probability you're in the SS box is 2/3.

Why do more trials give a more accurate simulation result?

This is the Law of Large Numbers. With few trials, random variation can cause the simulated probability to stray far from 2/3. As you increase the number of trials (try 100,000 or more), the simulated result converges reliably toward the theoretical value of 66.67%, reducing the impact of random noise.