Two Envelopes Paradox Calculator
Two Envelopes Paradox calculator. Bayesian resolution, Monte Carlo simulation. See why E(switch) = E
Why This Statistical Analysis Matters
Why: Statistical calculator for analysis.
How: Enter inputs and compute results.
Two Envelopes Paradox — Why Naive Switching Fails
Bayesian resolution and simulation. Naive: E(switch)=1.25X. Reality: E(switch)=E(stay). Run the simulation to see it.
Real-World Scenarios — Click to Load
Simulation Parameters
For educational and informational purposes only. Verify with a qualified professional.
Key Takeaways
- The Paradox: Two envelopes contain money. One has twice the other. You pick one and see X. Naive argument: "E(switch) = 0.5(X/2) + 0.5(2X) = 1.25X. Always switch!" But that leads to infinite switching.
- Resolution: The naive argument double-counts. With a proper Bayesian prior, E(switch) = E(stay). No advantage to switching.
- Monte Carlo: Run this simulation — average gain from switch stays near 0. The paradox vanishes when the prior is properly specified.
- Connection: Related to St. Petersburg paradox — both involve infinite expectation fallacies.
Did You Know?
Expert Tips
Run multiple trials
100,000 trials — switch advantage stays ~0
Try different distributions
Fixed, uniform, exponential — all show no advantage
Connect to St. Petersburg
Both involve infinite expectation fallacies
Bayesian prior
The resolution requires specifying the prior
How It Works
1. The Setup
Two envelopes: one has A, the other has 2A. You pick one and see amount X. The other has either X/2 or 2X.
2. The Naive Argument (Flawed)
"E(other) = 0.5(X/2) + 0.5(2X) = 1.25X. Always switch!" But then you'd want to switch back endlessly — a paradox.
3. Bayesian Resolution
The problem: X/2 and 2X are not equally likely. With a proper prior (e.g., uniform on [1,∞)), E(switch) = E(stay). No advantage.
4. Monte Carlo Simulation
This calculator runs trials: randomly assign smaller/larger, pick one, compare stay vs switch. Average gain from switch stays near 0.
Why the Naive Argument Fails
The naive argument assumes: when you see X, the other envelope has X/2 or 2X with probability 50% each. But this is wrong:
- If X is the smaller amount, the other has 2X.
- If X is the larger amount, the other has X/2.
- P(X is smaller) vs P(X is larger) depends on the prior distribution of amounts.
- With proper prior, these probabilities balance so E(switch) = E(stay).
Connection to St. Petersburg Paradox
The St. Petersburg paradox: A fair game pays 2^n if the first heads appears on toss n. The expected payoff is infinite, yet people would pay only a finite amount to play. Similarly, the Two Envelopes paradox involves improper use of expectation: the naive argument leads to "always switch" which implies infinite expected gain. Both paradoxes are resolved by properly specifying the probability space and avoiding improper priors or infinite expectations.
Frequently Asked Questions
Why does the naive argument say always switch?
It assumes X/2 and 2X are equally likely when you see X. That assumption is wrong — the probabilities depend on the prior distribution.
What is the Bayesian resolution?
With a proper prior (e.g., uniform on amounts), the expected value of switching equals the expected value of staying. No advantage.
How is this related to St. Petersburg paradox?
Both involve infinite or improper expectation assumptions. St. Petersburg: infinite expected payoff from a fair game. Two envelopes: improper prior leads to infinite switching.
Does the simulation prove the resolution?
Yes. Run 100,000 trials — the average gain from switching stays near 0. The paradox vanishes when the setup is properly specified.
What is the double-counting fallacy?
The naive argument treats X as both the smaller and larger amount in the same calculation. You cannot condition on X without specifying the prior.
By the Numbers
Official Sources
Disclaimer: This calculator demonstrates the Two Envelopes Paradox for educational purposes. The Bayesian resolution (E(switch) = E(stay)) is mathematically rigorous. Simulations converge with more trials.
Related Calculators
Monty Hall Problem Calculator
Interactive Monty Hall Problem simulator. Choose a door, host reveals a goat, switch or stay. Run Monte Carlo simulation to prove switching wins 2/3.
StatisticsBertrand's Box Paradox
Interactive Bertrand's Box Paradox simulator. Explore why the probability of the other coin being gold is 2/3, not 1/2, with Monte Carlo simulation and Bayesian proof.
StatisticsBertrand's Paradox
Explore Bertrand's Paradox — three valid methods for choosing a random chord give three different probabilities (1/3, 1/2, 1/4). Interactive simulation and visualization.
StatisticsBoy or Girl Paradox
Interactive Boy or Girl Paradox (Two-Child Problem). Explore why 'the older child is a boy' gives P=1/2 while 'at least one is a boy' gives P=1/3. With Monte Carlo simulation.
StatisticsError Propagation Calculator
Propagate uncertainties through mathematical operations: addition, subtraction, multiplication, division, powers, and custom functions. Uses partial...
StatisticsBayes' Theorem Calculator
Calculate posterior probabilities using Bayes' theorem. Input prior, likelihood, and evidence to update beliefs with step-by-step Bayesian reasoning.
Statistics