wu :: forums (http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi)
riddles >> hard >> Two envelopes problem - a variation
(Message started by: Altamira_64 on Jun 17th, 2012, 5:42am)

Title: Two envelopes problem - a variation
Post by Altamira_64 on Jun 17th, 2012, 5:42am
This is a variation to the known problem, with both parties knowing their amount and also the possible amounts being within predefined boundaries:

Your grandpa gives one envelope with a checque to you and your sister Christine and tells you that the amount can be anything from $5 to $160 and that one checque has double the amount of the other. You take a secret look to your own checque inside the envelope and see that it's $10. Your sister does the same. Grandpa tells you that if you want, you have the option to swap your envelopes, provided you both agree.
Would you go for swapping or not? Take into consideration the following 2 clarifications:
It is equally likely for each checque to have half or double the amount of the other.
Your decision to swap or keep your checque must be secretely told to your grandpa, without the other party knowing each other's decision.

Title: Re: Two envelopes problem - a variation
Post by towr on Jun 17th, 2012, 6:45am
[hide]If it's 5 try to swap, if it's 160 don't.
Since the person with 160 isn't going to swap (no where to go but down), the person with 80 would only swap with the person with 40. So the person with 80 shouldn't swap either.
For similar reasons, in general: the person with 2x would only swap with the person with x; so never swap unless you have the lowest amount. In which case, don't bother.[/hide]

Title: Re: Two envelopes problem - a variation
Post by Altamira_64 on Jun 17th, 2012, 11:55am
"the person with 80 would only swap with the person with 40. So the person with 80 shouldn't swap either"

Yes but how does the person with 80 know that the other person has 40 and not 160? How do we deduce that he would not go for swapping?
Keep in mind that each person tells his decision (to swap or keep) secretely, so the other person's intention is not known yet.

Title: Re: Two envelopes problem - a variation
Post by towr on Jun 17th, 2012, 1:08pm
She doesn't know that the other person doesn't have 160, but she knows the person with 160 would not swap, because for him the only way is down. The only person that might swap would have 40, so she'd lose by swapping with him. The puzzle stipulates both have to agree to swap.
If the other would only ever agree to swap when he has a lower amount, then you shouldn't swap.

So either she has 80 and the other has 160, she swaps, he doesn't, she keeps 80.
Or the other person has 40, she swaps, he swaps, she get's 40 instead of 80, i.e. a net loss of 40.

And the reasoning runs all the way down from the top, so if there's an upper limit there is never a reason to swap, because the person with double the amount as you wouldn't swap.
Which is why the original "two envelope problem" were there isn't an upper limit "works".

Title: Re: Two envelopes problem - a variation
Post by Altamira_64 on Jun 17th, 2012, 3:07pm
Yes, but note the last assumption:
"Your decision to swap or keep your checque must be secretely told to your grandpa, without the other party knowing each other's decision".
Yes, they must both agree, but each of them tells grandpa whether he/she will swap or keep, without knowing what the other has decided.

Title: Re: Two envelopes problem - a variation
Post by towr on Jun 17th, 2012, 10:19pm
That doesn't matter. If you have 160, then I know without you telling me that in that case you wouldn't swap. Not if you are in any way rational. If you have the highest amount you can get, then you wouldn't swap. If you have 160, you won't want to swap, because the only way is down. If you have 80, then the only way is down, because if the other had 160 she wouldn't want to swap, so therefor you shouldn't swap. If you have 40, you won't want to swap because if the other person had 80 he wouldn't want to swap, so you can never gain anything, only lose. If you have 20, you won't want to swap, because the person with 40 wouldn't.
Why would anyone swap if they only stand to lose? Is my opponent an idiot? Because then I'd swap as long as I don't have 160. But if she's in any way rational and capable of reasoning, then I wouldn't swap, because there is nothing to win and only anything to lose (except when I already have the lowest amount, but then she wouldn't swap anyway).

Title: Re: Two envelopes problem - a variation
Post by Altamira_64 on Jun 18th, 2012, 3:39am

on 06/17/12 at 22:19:37, towr wrote:
If you have 80, then the only way is down, because if the other had 160 she wouldn't want to swap, so therefor you shouldn't swap.


OK: If you have 80, you don't know what the other has. Maybe he has 160 but you don't know it by the time you (secretly) tell grandpa that you want to swap. You must first tell grandpa your decision and afterwards grandpa will tell you what your sister has decided. Your sister also (secretely) tells grandpa if she wants to swap or not, without knowing your decision!

Title: Re: Two envelopes problem - a variation
Post by towr on Jun 18th, 2012, 8:47am
I can't for the live of me fathom why you don't understand this.
If I have 80, there are two options:
Either I have 80 and the other person has 160, or I have 80 and the other person has 40. Correct or not?
If the other person has 160, then she has the highest amount she can get, and therefor she know that I have 80, so she will not want to share. Correct or not?
If the other person has 40, quite frankly, I'm not very interested if she will want to share or not, because I have nothing to gain and much to lose. Correct or not?
So either I want to share but she won't let me, or she might want to share and I shouldn't let her because I can only lose. In neither case should we both agree to share if we're both rational people with even a very limited capacity to think about what other people think.

If you still don't believe it, I would very much like to play this game with you a few hundred games, cause I can always use the extra money.
Or you could run a simulation.

Title: Re: Two envelopes problem - a variation
Post by Grimbal on Jun 18th, 2012, 12:29pm
I do agree with towr.

To elaborate on towr's answer:

If towr plays the game, he will propose a swap only when he finds an amount below $10.  He will keep his envelope otherwise.
This way he is certain he will never loose money in a swap.  If you play against him, you are certain never to win anything when proposing to swap.  So you might as well never offer to swap.

Title: Re: Two envelopes problem - a variation
Post by Altamira_64 on Jan 20th, 2013, 4:04am
Here is another variation:

Two players, A and B, are going to play a game. A perfect logician explains the terms:
I have several envelopes containing different amounts of money. I will randomly pick one of them, see the amount that it contains and will give it closed to player A. Then I toss a coin and if I get tails, I will get an empty envelope and put half the amount of player's A envelope, while if I get heads, will put double. I will then give this envelope (closed) to player B.
Then I will invite each of you privately and ask you to decide whether you will swap envelopes or not. If you both agree in swapping, you will do so, otherwise you will keep your initial envelopes.
A and B agree with the procedure and then A asks B to reveal his amount, so that they get an idea on what to propose to the logician. They both see that B has $100. Right afterwards, each of them must meet the logician to announce their decision. Which decision ensures the biggest expected gain for players A and B separately? Explain your answer.

Title: Re: Two envelopes problem - a variation
Post by towr on Jan 20th, 2013, 8:23am
[hide]A should want to switch and B shouldn't.
For any amount X that A gets there's 50-50 chance B gets either 2X or 1/2X, so on average A would gain from switching and by symmetry (as you'd expect) B would lose.[/hide]

Title: Re: Two envelopes problem - a variation
Post by Altamira_64 on Jan 24th, 2013, 10:56am
So, how does B know that he will lose by swapping?
He knows that A has either $50 or $200, so by swapping he has more to gain than to lose.

Title: Re: Two envelopes problem - a variation
Post by towr on Jan 24th, 2013, 10:08pm

on 01/24/13 at 10:56:42, Altamira_64 wrote:
He knows that A has either $50 or $200, so by swapping he has more to gain than to lose.
You don't know that, because it depends on the a priori probability of A getting a $50 or $200 bill. If there aren't any $200 bills on the table to start with, then B hasn't even a chance to gain.

Since you don't know the prior distribution any inference based on the observation that B has $100 is meaningless.

Title: Re: Two envelopes problem - a variation
Post by roady on Feb 26th, 2013, 12:52pm
The thing is that even though you know that A can have 1/2x or 2x given that B has X. the probability of it being either of those possibilities is NOT 50/50.
(So even though the chances of B given A are 50/50, the chances of A given B don't need to be 50/50 per sé)

In fact the observation that B has x adds no useful information for influencing A his decision.

Title: Re: Two envelopes problem - a variation
Post by antkor on Dec 16th, 2013, 4:46pm

on 01/20/13 at 08:23:10, towr wrote:
[hide]A should want to switch and B shouldn't.
For any amount X that A gets there's 50-50 chance B gets either 2X or 1/2X, so on average A would gain from switching and by symmetry (as you'd expect) B would lose.[/hide]


Could you analyze that a bit more? Perhaps giving some mathematic proof?

Title: Re: Two envelopes problem - a variation
Post by towr on Dec 16th, 2013, 10:26pm

on 12/16/13 at 16:46:38, antkor wrote:
Could you analyze that a bit more? Perhaps giving some mathematic proof?

?

EEnvB= 0.5*EnvA*2 + 0.5*EnvA/2 = 1.25 EnvA
EnvA < EEnvB, therefore A should want to switch and B shouldn't.

Title: Re: Two envelopes problem - a variation
Post by EdwardSmith on Jul 17th, 2014, 10:13am
Am I wrong again or is everybody else wrong.
No calculations are needed.

"You take a secret look to your own checque inside the envelope and see that it's $10."

You are told what your amount is.
This means you have a chance of gaining $10 or losing $5.
The only other bit of information you can take into account is that is

"the amount can be anything from $5 to $160"

therefore your sisters cheque has more chance of being a higher amount.
Take the swap.

Title: Re: Two envelopes problem - a variation
Post by towr on Jul 17th, 2014, 1:33pm
Have you read the red-eyed monks puzzle? Because this is like that one. The problem is you have to consider a lot of possible-but-not-actual situations.

1) If you have $10, then you know that your sister has either $5 or $20
2) * If your sister has $5 dollar she knows you have $10 dollar, and will want to swap. And if you knew she had $5 dollar you would not want to swap.
3) * If your sister has $20, then she'll know that either you have $10 or $40
4) * * If you have $10 (which is actually the case, but your sister doesn't know this), then we're actually back at step 1, so I needn't have included it here again.
5) * * If you have $40, then you know that your sister either has $20 (goto step 3) or $80
6) * * * If she has $80, then she knows you have either $40 (goto step 5) or $160
7) * * * * If you have $160, then you don't want to swap, because there's no higher amount, though she'd be glad to swap.

* * * revisiting step 6: since you wouldn't swap if you had $160, she won't gain anything by proposing a swap and just set herself up to lose should you have $40. So she won't swap.
* * revisiting step 5: since she won't swap if she has $80, your just setting yourself up to lose if you propose to swap when you have $40, so you shouldn't.
* revisiting step 3:  your sister isn't a sucker, by now she'll have realized you wouldn't swap if you had $40, because she wouldn't at $80, because you wouldn't at $160. So she won't swap when she has $20.
revisiting step 1: your sister will only propose a swap if she has $5, cause that's the only case where she has nothing to lose and everything to gain. So in conclusion you shouldn't swap.


Now, the tricky bit for most people is realizing that the you's and she's from step 2 onward are hypothetical you's and she's, because obviously if you have $10 you know 5,6,7 are not the case. However, to the hypothetical sister in step 3) the you in step 5) is a hypothetical possibility, even though it isn't to you in step 1). You have to work through the whole graph of hypotheticals to get at the correct answer.


Or just consider that you should never swap anything with someone that values them the same as you. (Because in that case you can't both be better off.)
As we say in the Netherlands "Van ruilen komt huilen" (swapping leads to tears).


There's also a graphical solution, maybe I'll add that tomorrow.

[edit]
I've attached a model of problem below, covering all possible states you (U) and your sister (C) could find yourself in, and how those states relate to each other.
The connecting lines denote which state you'd think are possible state you might be in given the one your actually in. So for example if you're in state U:$10,C:$5, then (because you don't know what your sister has) it's possible you're either in U:$10,C:$5 or U:$10,C:$20.

Now it's just a matter of filling in for each state how you and she should decide given the knowledge in that state. And the states to start with is where someone has full knowledge (i.e. no doubt about which state they are in).
These are states U:$10,C:$5, U:$5,C:$10, U:$80,C:$160, U:$160,C:$80; the person with $160 will know they don't want to swap, and the person with $5 does want to swap.

So now state U:$160,C:$80 becomes U:$160[won't  swap],C:$80, and U:$80,C:$160 becomes U:$80,C:$160[won't swap]
A person with $80 now has extra knowledge to consider. You might be in U:$80,C:$160[won't swap] or U:$80,C:$40, and regardless of whether your sister in the later state might want to swap or not, it's not a good proposition for you, because you know she wouldn't swap if she had $160. So states U:$80,C:$160[won't swap] and U:$80,C:$40 should be updated to U:$80[won't swap],C:$160[won't swap] and U:$80[won't swap],C:$40

And so on.
With the end result that only a person with $5 should propose swapping.
[/edit]

[e2]fixed error pointed out by rloginunix below.[/e2]

Title: Re: Two envelopes problem - a variation
Post by rloginunix on Jul 19th, 2014, 12:56pm
(Tiny typo in [edit] section, 3-rd paragraph beginning with "So now state": instead of "and U:$160,C:$80 becomes" you meant "and U:$80,C:$160 becomes")

I think towr should feel absolutely safe swapping the moderator and the explainer of things roles,  :).

Title: Re: Two envelopes problem - a variation
Post by towr on Jul 19th, 2014, 1:42pm
Thanks, both for the correction and the compliment.


Yet another way to explain it:
You can modify the problem so that you're the second youngest of 6 siblings, and grandpa's lined you all up from youngest to oldest and gives you $5,$10,$20,$40,$80,$160 respectively. Like before each sibling then gets to choose whether they're willing to swap (with an adjacent sibling but without the choice which). Also like before, the choices are kept secret from any other sibling and only shared with grandpa. And finally, when all choices are made, grandpa will randomly pick* two adjacent siblings that are willing to swap, and those two will swap their money.

And my claim is that this is actually equivalent to the original problem but without hypothetical states to consider.

*) the random pick here is solely because you can't swap your amount to both sides should your adjacent siblings by some fit of lunacy both be willing to.

Title: Re: Two envelopes problem - a variation
Post by dudiobugtron on Jul 20th, 2014, 5:24pm
Imagine a slight alteration to the puzzle as follows:

Each of you writes on a piece of paper, either 'swap' or 'don't swap', and gives this to your grandfather in secret.  The Grandfather then pulls one of these pieces of paper from his hat at random, to decide whether you will swap or not.

What should you write on your piece of paper?

Title: Re: Two envelopes problem - a variation
Post by gregpap on Aug 21st, 2014, 4:30am

on 12/16/13 at 22:26:17, towr wrote:
?

EEnvB= 0.5*EnvA*2 + 0.5*EnvA/2 = 1.25 EnvA
EnvA < EEnvB, therefore A should want to switch and B shouldn't.


This is the solution, as the expected return is higher that 1, you should always change, unless you have the  $160 check, where the expected return is negative already....

I don't believe this riddle should be in the hard category as it's very easy...cheers

Title: Re: Two envelopes problem - a variation
Post by rmsgrey on Aug 22nd, 2014, 7:07am

on 08/21/14 at 04:30:27, gregpap wrote:
This is the solution, as the expected return is higher that 1, you should always change, unless you have the  $160 check, where the expected return is negative already....

I don't believe this riddle should be in the hard category as it's very easy...cheers


But if I'm playing against that strategy, then my expected value for switching the $80 check is negative - I either lose $40 or gain nothing because you refuse to switch with me. so if I know my opponent is using your "solution", I can make a profit by always ending up with the $80 when it's $40 and $80 in the envelopes (for any other pair, either we always switch and I win half; lose half, or we never switch, and again, I win half; lose half)

Title: Re: Two envelopes problem - a variation
Post by Grimbal on Aug 22nd, 2014, 9:52am
Actually the condition "the amount can be anything from $5 to $160"  comes from the initial question, while towr's answer was to the alternate problem in reply #9.  It is not clear whether the limit applies to the second problem.

Rmsgrey's answer refers to the original problem where you end up swapping only with a value <10.

Towr's answers to the alternate problem where A is selected randomly and B calculated from A.  In that case, A should always switch and B never.

Title: Re: Two envelopes problem - a variation
Post by rmsgrey on Aug 23rd, 2014, 8:38am

on 07/20/14 at 17:24:51, dudiobugtron wrote:
Imagine a slight alteration to the puzzle as follows:

Each of you writes on a piece of paper, either 'swap' or 'don't swap', and gives this to your grandfather in secret.  The Grandfather then pulls one of these pieces of paper from his hat at random, to decide whether you will swap or not.

What should you write on your piece of paper?

Assuming that all 5 possible pairs of envelopes are equally likely, and that you're equally likely to get either of a pair, you should write "swap" unless you get the $160 envelope.

The key difference here is that the actual outcome only depends on what you write or on what your sister writes, not on what both of you write - what you write only counts if your paper gets picked, in which case your sister's choice is irrelevant, so there's no need to take account of what your sister knows.

Title: Re: Two envelopes problem - a variation
Post by Grimbal on Aug 25th, 2014, 12:05am
I see.  You are assuming there are 6 envelopes with amounts $5, $10, $20, $40, $80, $160, and a contiguous pair is choosen randomly.

This wasn't specified in the riddle.  At most, the range of $5 to $160 might suggests it.

This being said, the question is missing important information and you cannot solve it without making some assumptions how the envelopes are chosen.  And you clearly stated your assumptions.

But people can still disagree with you, not on the solution but on the assumptions.

Title: Re: Two envelopes problem - a variation
Post by dudiobugtron on Aug 25th, 2014, 6:06pm

on 08/25/14 at 00:05:57, Grimbal wrote:
I see.  You are assuming there are 6 envelopes with amounts $5, $10, $20, $40, $80, $160, and a contiguous pair is choosen randomly.

This wasn't specified in the riddle.  At most, the range of $5 to $160 might suggests it.


In the original riddle, it was specified that you know you received a $10 envelope.  So, $5, $10, $20, $40, $80, and $160 are the only amounts you need to consider.



Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board