Maximize Gains with Coin-Flip Strategy

  • Context: Graduate 
  • Thread starter Thread starter Ursole
  • Start date Start date
  • Tags Tags
    Strategy
Click For Summary

Discussion Overview

The discussion revolves around a coin-flip strategy involving two boxes containing different amounts of money based on the number of coin flips until a head appears. Participants explore whether there is a strategy to maximize expected gains when choosing between the two boxes after observing the contents of one.

Discussion Character

  • Exploratory
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant suggests that if a box contains $3, switching is always beneficial, but if it contains more, the decision becomes less clear.
  • Another participant calculates the expected value of switching boxes based on the amount seen, concluding that switching is advantageous when the amount is $3 but not otherwise.
  • Some participants discuss the probabilities associated with the amounts in the boxes, noting that the probability of the other box containing less money is four times greater than it containing more, depending on the observed amount.
  • Concerns are raised regarding the conditional probabilities and the implications of always switching, with some arguing that it violates symmetry in the problem.
  • Several participants express confusion about the calculations and reasoning behind the probabilities, particularly when the observed amount is low.
  • One participant introduces a hypothetical scenario with different amounts in the boxes to illustrate their point about expected values and probabilities.

Areas of Agreement / Disagreement

Participants express differing views on the optimal strategy for switching boxes, with no consensus on whether switching is always beneficial or under what conditions it might be. The discussion remains unresolved regarding the implications of symmetry and the correct interpretation of probabilities.

Contextual Notes

Participants highlight limitations in their reasoning, particularly regarding the definitions of probabilities and the assumptions made about the distributions of amounts in the boxes. Some calculations are noted to be dependent on specific scenarios, leading to confusion about their general applicability.

Ursole
Messages
28
Reaction score
0
Assume I flip a fair coin n times until it comes up Heads. Now I take two large boxes, in one of which I place $3^n (3 to the power of n dollars) and in the other I place $3^(n+1) (3 to the power of n+1 dollars). I then give you the two closed seemingly identical boxes and allow you to open one box and count the money. At this point you can either take the money in the box you chose or take the unknown amount of money in the other box. Is there a strategy which you may employ in order to maximize your expected gain?

For example, if you open a box and see $3 you should always switch because there will definitely be $9 in the other box. However, if you open a box and see $9, switching might get you $3 or might get you $27.
 
Mathematics news on Phys.org
Let's say you open the box, and it has $3^x in it. Now, the chances that the box contains less money is 4 times greater than the chances it contains more, simply because:

(1/2)^{x-1} = 4 \times (1/2)^{x+1}

But if it contains more money, it contains 9x more than a box with less money. Let a = 3^x. Currently, you have $a. Switching boxes is expected to give:

(a/3)(4/5) + (3a)(1/5)
= 4a/15 + 3a/5
= 4a/15 + 9a/15
= 13a/15
< a

Of course, this doesn't work in the case where x=1. If you want to have n flips, with only the nth being a head, the probability of that happening is (1/2)^n, and that fact was used as the basis for claiming that the probability of the other box having less money was 4 times more than it having more. However, the probability that all flips are tails except the nth, for n=0 is undefined, so the equation doesn't make sense when x=1, because then we're calculating (1/2)^{1-1} = (1/2)^0 = 1, which doesn't really tell us the probability of all tails, and the zeroeth being heads, since that doesn't even make sense and should be undefined.

So, if the box has $3, change boxes, otherwise don't.
 
Ursole said:
...I then give you the two closed seemingly identical boxes and allow you to open one box and count the money...

They seem identical but once you open them there is a noticable difference.

The Bob (2004 ©)
 
If the underlying probability distribution (that $X is in a box) is flat, it would seem the the expectation value is always higher for the "other box". However, it is not possible to normalize a flat distribution from 0 to infinity. I think the paradox is resolved by understanding the underlying probabilities of putting money in the boxes.

EDIT : Didn't read the coin flip part. Ignore above discussion.
 
Last edited:
In honestly all I can think of is that if the box you pick has 0 or 3 dollars worth of coins then you change otherwise stick with the box. That is all you can do as that is all you can ensure will allow you more money in the other box.

The Bob (2004 ©)
 
AKG said:
Let's say you open the box, and it has $3^x in it. Now, the chances that the box contains less money is 4 times greater than the chances it contains more, simply because:

(1/2)^{x-1} = 4 \times (1/2)^{x+1}

But if it contains more money, it contains 9x more than a box with less money. Let a = 3^x. Currently, you have $a. Switching boxes is expected to give:

(a/3)(4/5) + (3a)(1/5)
= 4a/15 + 3a/5
= 4a/15 + 9a/15
= 13a/15
< a

So, if the box has $3, change boxes, otherwise don't.

While it's true that the probability of picking the box with the larger amount is 1/2, the conditional probability that the other box contains more money given that the first box contained a dollars is 1 if a = 3 and 1/3 otherwise.

So if you find a (a > 3) in the box and stick, you get a. If you switch, you get a/3 2/3 of the time, and 3a 1/3 of the time, for an expected value of 11a/9. So should you always switch? We don't need to open the boxes at all then.

Well, that's one way of looking at it, but there's a bit more to the puzzle than that.

.
 
Last edited:
Ursole said:
While it's true that the probability of picking the box with the larger amount is 1/2, the conditional probability that the other box contains more money given that the first box contained a dollars is 1 if a = 3 and 1/3 otherwise.
First of all, where did I go wrong? Second of all, why is the conditional proability 1/3?
 
AKG said:
First of all, where did I go wrong? Second of all, why is the conditional proability 1/3?

Let n = number of times the coin is flipped.
I open a box and see 3^a dollars, where a > 1.
I know n = a or a-1, and Prob(n = a) is half of Prob(n = a-1);
Prob(n = a) = 1/3
Prob(n = a-1) = 2/3

By the way, an 'optimum' strategy of always switching violates symmetry.

.
 
Last edited:
Ursole said:
Let n = number of times the coin is flipped.
I open a box and see 3^a dollars, where a > 1.
I know n = a or a-1, and Prob(n = a) is half of Prob(n = a-1);
Prob(n = a) = 1/3
Prob(n = a-1) = 2/3

By the way, an optimum strategy of always switching violates symmetry.
That explains why the conditional probability is 1/3, but then where did I go wrong?
 
  • #10
Ursole said:
By the way, an 'optimum' strategy of always switching violates symmetry.
.

So let's say that I choose some value with an even distribution of 0 and 1, and put 1000^x in one box, and 3^{x+1} in another.
Now, there are four equally likely possibilities when the first box has been pulled:
Flipped 0, pulled 0, Flipped 0, pulled 1
Flipped 1, pulled 1, Flipped 1, pulled 2.

Obviously, in half the cases, the optimal behavior is clear. That leaves the situation where the box contains 1000 dollars.

Clearly this is one of the two cases, and those two cases must be equally likely, so, the expected payout from switching is $499,000.5, but according to you, the violation of symetry indicates that the player should gain no benefit from switching. However it's easy to see that the expected value is *much* higher for switching.

Now, let's take a look at the problem probabilities:

Flipped once, pulled low box (1/4)
Flipped once, pulled high box (1/4)
Flipped twice, pulled low box (1/8)
Flipped twice, pulled high box (1/8)
.
.
.
Flipped n times, pulled low box (\frac{1}{2*2^n})
Flipped n times, pulled high box (\frac{1}{2*2^n})
Flipped n+1 times, pulled low box (\frac{1}{2*2^{n+1}})
Flipped n+1 times, pulled high box (\frac{1}{2*2^{n+1}})

So, let's assume you pull a box with 3^x dollars where x&gt;1

So the possibilities are:
flipped x-1 times and pulled the high box \frac{1}{2*2^{x-1}}
and
flipped x times and pulled the low box \frac{1}{2*2^{x}}
Renormalizing yields that the probability that the box is high is \frac{1}{3}.
So the expected gain from switching is \frac{2}{3} * 3^{x-1} + \frac{1}{3} * 3^{x+1} - 3^x
or
2 \times 3^{x-2}
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 20 ·
Replies
20
Views
6K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 37 ·
2
Replies
37
Views
9K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 29 ·
Replies
29
Views
7K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 143 ·
5
Replies
143
Views
12K