Live data from Hacker News

Two envelopes problem

en.wikipedia.org

251–260 of 318 posts

Re: Two envelopes problem

#251
post #142

A simple non-mathematical resolution is that no information has been gained by selecting the first envelope. Since no information about the contents was available before selecting the first envelope switching envelopes is a neutral act. While this sounds like just a lazy intuitive explanation, it calls out the key component - a lack of information about the outcome - that can help avoid the paradox in more complex si…

This is not a resolution, a resolution is where you point out the faulty step in the reasoning that leads to the paradox.

[deleted]

Re: Two envelopes problem

#252

The game looks like this in tree form: -> Keep -> 2A 2A -> Switch -> A 0.5 -> A -> Keep -> A -> Switch -> 2A Switch and keep both have an expectation of 3A/2 because (1/2) 2A + (1/2)A. In the equation in the article they use (1/2) 2A + (1/2)*A/2. They count A/2 as half of what the actual outcome should be. The mistake was abusing the A to have different meanings. They created two trees one with 2A. -> Keep -> 2A 2A -…

So why is this happening? Some people are pointing at the error I mentioned above, but I think the problem is actually much deeper than that. Identifying this error is basically identifying the superficial reason for why they went wrong. It doesn't dig deep enough to systematically eliminate the error. I want to point out something. Notice their logic when they call out why it is a paradox. You can switch multiple ti…

On reflection, it bites you on this particular problem too, because when you take the limit of P(Switch=1) the recursive switch case with a discount factor under the formalism mentioned above is zero.

So for every strategy selection except the one the article chooses, the EV is what I mentioned before. But for the last it is zero.

Its the same problem: they aren't walking the graph of the game tree. But its a bit different to my simplified version of the game that shows where there EV calculations went super wrong, because the actual game tree is of infinite length and there is /never/ a node with SWITCH that terminates in a reward, because every SWITCH recurses to another decision point.

You can solve it using various formalism by adding a discount factor. That lets the limit go to zero for the recursive cases. I guess technically its undefined since the game never ends, but I don't consider being stuck in a loop to be rational [1]. You really have to let your action probabilities vary as you solve imperfect information problems. It happens in MDP and MCCFR for a reason - you don't get the correct action without for the way your policy choice affects the outcome distribution. Your expectation is dependent on your policy it doesn't exist in a void.

That last statement, well, it should be very obvious in more complex situations. That it isn't obvious in this situation speaks to the problems deceptive simplicity.

[1]: Unlike people who think humans are irrational for having cognitive biases.

Re: Two envelopes problem

#253

Earlier quoted context omitted.

This comment explains the fundamental reason why the reasoning is incorrect. I offer the same perspective in a different comment ( https://news.ycombinator.com/item?id=31569991 ). In my opinion, the Wikipedia article is making a disservice to readers by mentioning unnecessarily complex mathematical arguments involving bayesian reasoning and infinite distributions. I believe all of these are distractions from the more…

They also fail the article's own premise > in particular, the puzzle is not solved by the very simple task of finding another way to calculate the probabilities that does not lead to a contradiction

Honestly, the more I've thought about this problem the more that statement bothers me. It is just such a nonsense goal.

The reason the calculations are wrong are fundamentally related to why correcting the calculations leads to the correct probabilities. If you understand why the problem gives you the wrong result, you proceed to correcting it, and you get the right result - that doesn't mean you didn't understand. It means you did. You can tell you did, because you have the correct answer.

But if I show the calculations produce the correct answers, well, that is a step too far. We can now dismiss the understanding on the basis that it got the correct answer, apparently?

It's no wonder the author of the wiki writes such a bullshit claim - that no one can agree on a definitive conclusion. Their terms of engagement are self-defeating. Correctness is error, because correctness means you didn't /really/ understand. Its a no true scottsman fallacy - get the right answer, and you aren't engaging with the 'real' problem.

But its a flawed no true scottsman, because it defines something measurable: it tells us the goal, that it is to avoid this type of mistake in our thinking. And generalized algorithms for solving decisions problems that include this as a case which is successfully solved are many - and they just so happen to be in the imperfect information setting. And that setting has studied the problem of infinite recursion and has solutions for them. Which I can apply. To get the right answer. And, in general, avoid the problems they claim we aim to avoid.

More importantly and to the point of this thread - this isn't an intractable debate, because its been solved and used in production settings for literally decades. So what if some people are going to pretend it isn't? This isn't an unsolved problem. The actual game theory math is /well/ beyond this level of complexity. Its contending with things like environments where you have so much complexity you have to reduce to a blueprint abstraction, not stumbling at a decision problem that is quite literally simpler than rock paper scissors.

Re: Two envelopes problem

#254
It is trivial! It is trivial!

The game defines a graph and your path through that graph is going to lead to an outcome. You have a strategy, a choice of how to move through the graph. However, you have no information about where you are in the graph. So when we think about how we move through the graph, we must always think the same way. We can never think differently, because no action changes the information we have about where we are. However, the terminal case is defined thusly. R(STAY) = {50%: 2A, 50% A}. There is never a reward for R(SWITCH). Anyone telling you to always choose switch when that is the only solution that can never have a reward is obviously wrong.

But why? Why were they wrong?

Simple. In imperfect information games things work differently than in perfect information games. In chess when you make a move it is that move. If you make a move it is a different move. The subgames are independent of each other. In poker, it isn't so! If you make a bet in Poker, you don't know what subgame you are in. You have to play as if you're in multiple at the same time.

Now look at the fast con that seems to be tripping people up. They are pretending we have perfect information. 2A, A/2? Phaw. We can't have that, because that supposes we know which subgame we are in, but we can't know which subgame we are in, because we were never given that information. Even if we were - it doesn't matter. We're in an imperfect information game! The places we didn't explore are relevant to our calculation! We can't ignore them! But we did, by insisting on an inequality which didn't hold.

This is probably counterintuitive. Its trivial, but people argue about it. So lets talk about this more concretely.

This is what they pulled on you. They claimed that these two different game trees could be treated as the same game tree:

             -> Keep    -> 2A
          2A -> Switch  -> A
    0.5 ->
          A  -> Keep    -> A
             -> Switch  -> 2A

                -> Keep    -> A
          A     -> Switch  -> A/2
    0.5 ->
          A/2   -> Keep    -> A/2
                -> Switch  -> A
Two different game trees! Two different game trees and they acted like they were the same. But they aren't! They can't be! You can't tell which subgame you are in you have to treat them as equal in imperfect information games! So what is our actual situation with their reasoning? Our actual situation is a contradiction. Since subgames depends on each other when they do this combination they are secretly speaking nonsense. Look closely: They are claiming that 2A=A; that A=A/2. They have to be, because in imperfect information games we have to be in every subgame at once, but they made two different games, but then they combined them. Since the correct formulation has to have every solution treated as the same, but they took something from a different subgame, they declared that two subgames were equal, but they weren't.

It is so trivial. That's why the correct calculation looks like only an expectation on one game tree. That's why it seems to make sense - your brain knows this sort of reasoning can be appropriate with perfect information. I realize a lot of people have argued about this, but frankly they should stop.

And if you're interested in exploring why you have to treat subgames as different in imperfect information, why you have to operate on information sets rather than state spaces in imperfect information, here is a great talk on the NIPS 2017 Best Paper award which happens to touch on the subject:

https://www.youtube.com/watch?v=tRiaGahlyy4

It is about solving poker, which is a much more complicated imperfect information game. But even the simple imperfect information games have this property.

Re: Two envelopes problem

#255
post #177

Earlier quoted context omitted.

Yeah I was looking for someone saying this to double down. I think the "paradox" comes down to information loss. The tricky bit is this framing: "when you're holding an envelope, the other envelope contains >= $MONEY, so there's no reason not to switch". But this omits (loses) the information of " both envelopes contain >= $MONEY". That is, as soon as you switch to the other envelope, the situation is still true, the…

The right resolution is: suppose the two amounts are $50 and $100. If the envelope you have contains $50 and you switch, your gain is $50. If it contains $100 and you switch, your gain is -$50. So your expected gain from switching is (0.5)(50) + (0.5)(-50) which is zero. The way that they fool you is by saying that you either double your money or you halve it, leading you to think that your expected ratio is 2.5/2. B…

That’s a different problem though. In the original problem you don’t know the two amounts ahead of time. All you see is $50 in your envelope - you don’t know if the other one is $100 or $25 and you’re back to square one.

Re: Two envelopes problem

#256
post #142

A simple non-mathematical resolution is that no information has been gained by selecting the first envelope. Since no information about the contents was available before selecting the first envelope switching envelopes is a neutral act. While this sounds like just a lazy intuitive explanation, it calls out the key component - a lack of information about the outcome - that can help avoid the paradox in more complex si…

This is not a resolution, a resolution is where you point out the faulty step in the reasoning that leads to the paradox.

No, he articulated the problem correctly. He's just wrong that the math isn't with him. Game theory solves imperfect information games using information sets. The math is with him.

In imperfect information games you are in an information set, not a subgame. When the value is 2A and you have to make a keep or switch decision, the value A is still part of how you calculate the solution. When the value A is the game you are in, it doesn't matter, the value 2A is still part of how you calculate the solution. It has to be this way, because you don't have a way of discriminating between which game state you are in. This is one of the notable and counterintuitive (apparently) results of game theory and it really matters, because when you don't notice it you run into a contradiction.

Check out Noam's talk on solving imperfect information games at NIPS 2017 for a more detailed treatment of this subject. I'm going to handwave it to dive deeper into the exact logical contradiction.

So 2A and A both have to exist still for the correct calculation. The subgames are still connected. But notice what happens? What the failed solution does though is it creates two different subgames!

In one they set 2A. In another they have A/2. But its still two different subgames. Now why does this seem appropriate? Because this sort of reasoning is okay in perfect information games! You can reason about different subgames independently of each other.

But we're not in a perfect information game. We're in a null information set. So 2A and A coexist.

Since we can't state that we are in the 2A case or the A case, being in an information set that prevents us from discrimination between these two things, they error when they try to build their reasoning on the supposition they are able to do so. In particular, they create a logical contradiction.

The dependence means you are required to have the subgame from the 2A as the other side of the equation. Required, but they don't do that. Instead they evaluate one subgame as if they are in a perfect information context.

That is the missing equality symbol that people aren't seeing. That dependence. So what is really happening is this: They claim 2A=A; assuming A is not zero, they claim that 2=1. You can see this very clearly when you take the actual correct probabilities for expectation and place them beside the incorrect ones:

Observe.

    They said: 5/4A = (1/2)2A + (1/2)A/2
    Reality  : 3/2A = (1/2)2A + (1/2)A
    Equality : (1/2)2A + (1/2)A/2 = (1/2)2A + (1/2)A
                         (1/2)A/2  = (1/2)A
                              A/2  =  A
                              A    = 2A
                              1    = 2
It's a bit worse than that in the error, because they omit that expectation is a function of both policy and information set. Trying to make the decision based on expected value when expected value is not well defined without a policy choice is another very fundamental error. I mean seriously, ask yourself if you get the same result by slamming your head into a wall as opposed to doing something productive. You don't. Policy choice matters. In this case literally the only policy choice that has 0 EV is the one they claim is the best. Its silly. When you look at the game tree, when you actually evaluate the proper graph, its literally the only bad decision you can make. There are quite literally an infinite number of strategies that give the same EV solution. All except the one they chose.

The reward for the game is only defined for R(KEEP) and it is defined as {0.5: A, 0.5: 2A}. R(SWITCH) ends up getting its valuation according to a bellman equation: R(SWITCH) = R(SWITCH) * P(SWITCH) + R(KEEP) * P(KEEP). This is obviously an infinite sequence if P(SWITCH) = 1. We actually tend to use a discount factor here like 0.9999999999*R(some_choice) because for this infinite sequence it lets us use limits to claim the case is defined as 0.

But this is like, an extension of why this is wrong - because game theory with information sets already solves for probabilities over action space. It already acknowledges it. So when you point to the information set problem? You point to game theory. And you point to the root of why their calculations were wrong: in an imperfect information game, you play both the game you're in and the game you're not in at the same time.

Re: Two envelopes problem

#257
post #247

Earlier quoted context omitted.

Variant: I tell you "These two envelopes contain money. One of the envelopes contains twice as much money as the other one. Pick one.". You pick one. I tell you the one you picked contains $60. You've now determined the amount in your selected envelope -- should you switch?

Now you know x is either 30 or 60. The expectation is either 45 or 90. Switching has equal likelihood of increasing or decreasing your take. The correct calculation will show the expected value of the other envelope as 60.

Inserting A=60 into the original line of reasoning (just to show that it doesn't immediately resolve the paradox):

1. Denote by A=60 the amount in the player's selected envelope.

2. The probability that A=60 is the smaller amount is 1/2, and that it is the larger amount is also 1/2.

3. The other envelope may contain either 2A=120 or A/2=30.

4. If A=60 is the smaller amount, then the other envelope contains 2A=120.

5. If A=60 is the larger amount, then the other envelope contains A/2=30.

6. Thus the other envelope contains 2A=120 with probability 1/2 and A/2=30 with probability 1/2.

7. So the expected value of the money in the other envelope is: 1/2(120) + 1/2(30) = 75

8. This is greater than A=60 so, on average, the person reasons that they stand to gain by swapping.

9. ...

edit: If anything, to me this obscures things further, because it makes it non-obvious that we are actually talking about ratios (i.e. 2A, 1/2A) rather than absolute numbers, and so the expectation calculated in step 7 is inappropriate - a geometric mean recovers the correct answer.

Re: Two envelopes problem

#258
post #62

Earlier quoted context omitted.

the point of the video is that given a distribution, the total expected profit cannot be defined, because the infinite sum of the probabilities of each case don't have an order, and also adds up to positive infinity and negative infinity. it doesn't really matter what the distribution of the amounts are, as long as there's an infinite number of possibilities in the distribution (ie., it's not a finite amount of possi…

That’s not true for all distributions. For example if instead of halving the probability of each value as he does in the video we take 1/20 then we get the expected value as the sum of 9/20^2 - 9/20^2 + 90/20^3 - 9/20^3 + … Here the series is absolutely convergent since the positive terms sum to 9/10 and the negative terms sum to 9/10.

> halving the probability of each value as he does in the video we take 1/20

but then the probabilities don't all add up to 1.

Re: Two envelopes problem

#259
post #257
post #247

Earlier quoted context omitted.

Now you know x is either 30 or 60. The expectation is either 45 or 90. Switching has equal likelihood of increasing or decreasing your take. The correct calculation will show the expected value of the other envelope as 60.

Inserting A=60 into the original line of reasoning (just to show that it doesn't immediately resolve the paradox): 1. Denote by A=60 the amount in the player's selected envelope. 2. The probability that A=60 is the smaller amount is 1/2, and that it is the larger amount is also 1/2. 3. The other envelope may contain either 2A=120 or A/2=30. 4. If A=60 is the smaller amount, then the other envelope contains 2A=120. 5.…

A can't collapse to sixty. It could still be 30, 60 or 120. The expected value calculation includes the value of A as defined in two different worlds: the world in which A/2 (30) and the world in which 2A (120).

But these two worlds never exist together. They are different realities. We can't determine which of them we are in without more information.

Trying to do so is an error, because we are in multiple subgames simultaneously. In imperfect information games you are already in more than one world. You are in the reality A and counterfactual 2A and you are in the reality 2A and counterfactual A. You can't tell which. You're in both.

In perfect information, you're not in both, so you can do this case based reasoning and not run into as much trouble. But when you're already in both worlds? Well doing the case based reasoning implies that the counterfactual world = the case based world. Its overwriting that part of the equations. Which means you just accidentally declared that either A/2=A or that 2A=A. That 2=1. You do this because you're still in the counterfactual reality, but you're pretending you are not.

Re: Two envelopes problem

#260
post #257
post #247

Earlier quoted context omitted.

Now you know x is either 30 or 60. The expectation is either 45 or 90. Switching has equal likelihood of increasing or decreasing your take. The correct calculation will show the expected value of the other envelope as 60.

Inserting A=60 into the original line of reasoning (just to show that it doesn't immediately resolve the paradox): 1. Denote by A=60 the amount in the player's selected envelope. 2. The probability that A=60 is the smaller amount is 1/2, and that it is the larger amount is also 1/2. 3. The other envelope may contain either 2A=120 or A/2=30. 4. If A=60 is the smaller amount, then the other envelope contains 2A=120. 5.…

[deleted]
Post reply on HN