Two Envelopes

Two Envelopes Paradox is another one of those problems which test your probability and math basics. Some times being mathematically correct, means being methodical and writing each step properly in your logic. Leaving nothing but the axioms as assumptions.

So let’s quickly get into the problem.

The problem

Wiki Link

“You are given two indistinguishable envelopes, each containing money, one contains twice as much as the other. You may pick one envelope and keep the money it contains. Having chosen an envelope at will, but before inspecting it, you are given the chance to switch envelopes. Should you switch?”

A faulty argument

There’s an argument that favours switching. THe problem is to find the fault in this argument. (Obviously its no use switching your choices).

The switching argument: Now suppose you reason as follows:
1. I denote by A the amount in my selected envelope.
2.The probability that A is the smaller amount is 12, and that it is the larger amount is also 12.
3. The other envelope may contain either 2A or A/2.
4. If A is the smaller amount, then the other envelope contains 2A.
5. If A is the larger amount, then the other envelope contains A/2.
6. Thus the other envelope contains 2A with probability 12 and A/2 with probability 12.
7. So the expected value of the money in the other envelope is: \begin{align} \frac{1}{2} (2A) + \frac{1}{2} (\frac{A}{2}) = \frac{5A}{4} \end{align}
8. This is greater than A, so I gain on average by swapping.
9. After the switch, I can denote that content by B and reason in exactly the same manner as above.
10. I will conclude that the most rational thing to do is to swap back again.
11. To be rational, I will thus end up swapping envelopes indefinitely.
12. As it seems more rational to open just any envelope than to swap indefinitely, we have a contradiction.

Something’s fishy.(Part 1)

Let S be the total sum in both envelopes.

When Envelope 1 has larger value: \begin{align} S = A + \frac{A}{2} = \frac{3A}{2} \end{align}
When Envelope 1 has smaller value: \begin{align} S = A + 2A = 3A \end{align}

But, the sum should be constant in both the cases. This is, from a first look, what goes wrong here.

What’s A?

We saw in the last section that the sum of values in both envelopes were not coming out to be equal. This requires us to look at what is A.
What exactly is A?
Since A is being used to compare with the expected value of money in the second envelope, A is actually the expected value of money in Envelope 1.

Let a denote the value of the money in Envelope 1, then:

\begin{align} E_p[a] = A \end{align} where p is the probability density function on random variable a.

Now, that we understand what’s A. Let’s see what went wrong.

Something’s fishy.(Part 2)

As, stated earlier, sometimes being mathematically correct, means writing down things well.

Let b denote value of money in 2nd envelope. So, \begin{align} E_q[b] = B \end{align} \begin{align} B = P(a>b)E[a \mid a > b) + P(a>b)E[a \mid a > b) \end{align} \begin{align} B = \frac{1}{2}E[a \mid a > b] + \frac{1}{2}E[a \mid a < b] \end{align}

We observe that, \begin{align} E[a \mid a > b] > A\ \,, \ E[a \mid a < b] < A \end{align}


This is because average of $E[a \mid a > b]$ and $E[a \mid a < b]$ is A. And since intuitively,
\begin{align} E[a \mid a > b] > E[a \mid a < b] \end{align}

(8) should hold.

Hence substituting both $E[a \mid a > b]$ and $E[a \mid a < b]$ as A is wrong in step 7 of the argument.

However, we were asserting that being mathematically correct means writing everything down. So, let’s not leave (8) and (9) to intuition and see more concretely why they are true.

Be rigourous, be right

Let $P(x,y)$ denote the joint probability of amount x being in envelope 1 and amount y being in envelope 2.

We assert that \begin{align} P(x,y) = P(y,x) \end{align}

It’s easy to see this is true. If $x\neq2y$ or $2x\neq y$, then $P(x,y) = 0$.(such an arrangement is not possible as one of $x$ and $y$ must be double of other)

However, if this is not the case then they are equal. This is because envelope $1$ and envelope $2$ are not subject of any bias. That is they are indistinguishable and hence probability that amount $x$ is kept in envelope $1$ and $y$ is kept in envelope $2$ is same as $x$ is kept in $2$ and $y$ is kept in $1$.

So,

\begin{align} p(a | a > b) = p( \frac{a}{2} | a < b ) \end{align} Here, $a$ is money in envelope $1$ and $b$ is money in envelope $2$.

To see, why this is the case, let’s write it in terms of the joint probability distribution $P$.

\begin{align} p(a | a>b) = \frac{p(a>b | a) p(a)}{p(a>b)} \end{align}

Now, \begin{align} p1 = \sum_{b<a}P(a,b) \end{align}

\begin{align} p2 = \sum_{\forall b}P(a,b) \end{align}

\begin{align} p(a>b | a) = \frac{p1}{p2} \end{align}

\begin{align} p(a) = p2 \end{align}

We know that due to symmetry between envelopes $p(a >b) = \frac{1}{2}$ So,after substitutions $(12)$ becomes \begin{align} p(a | a>b) = 2(p1) \end{align} \begin{align} p(a | a>b) = 2 \sum_{b<a}P(a,b) \end{align} \begin{align} p(a | a>b) = 2 P(a,\frac{a}{2}) \end{align}

Similarly we can say, \begin{align} p(a | a<b) = 2 P(a,2a) \end{align}

Now, we can see why $(11)$ is true,

\begin{align} p(a|a>b) = 2P(a,\frac{a}{2}) \end{align}

\begin{align} p(\frac{a}{2}|a<b) = 2P(\frac{a}{2},a) \end{align}

or, more suitably,

\begin{align} p(a|a<b) = 2P(a,2a) \end{align}

Using $(10)$ we see that RHS of above 2 equations are same. So $(11)$ is true.

Now, $E[a | a > b] = \sum_a 2aP(a,\frac{a}{2}) $

$E[a | a < b] = \sum_a 2aP(a,2a) $

Using $(10)$ $E[a | a < b] = \sum_a 2aP(2a,a) $

Let $F(a) = 2P(a,\frac{a}{2})$

$E[a | a > b] = \sum_a aF(a) $

$E[a | a < b] = \sum_a aF(2a) $ Note that F is a pdf for $p(a|a>b)$

Let, $p(a| a<b ) = G(a)$ Note that G is a pdf for $p(a|a<b)$.

So, $G(a) = F(2a)$

Hence, G is is some sense left shifted version of F. Ex. $G(5) = F(10)$

So, it’s expectation will also shift left.

hence $(8)$ and $(9)$ are also true.



I imagine intuition for developing a proof shouldn’t be as rigorous. However, if we are to do correct mathematics, we must be rigorous and question everything. It is through these questionings that we can hope to learn the nuances

Related