Someone has prepared two envelopes containing money. One contains twice as much money as the other. You have decided to pick one envelope, but then the following argument occurs to you: Suppose my chosen envelope contains $X, then the other envelope either contains $X/2 or $2X. Both cases are equally likely, so my expectation if I take the other envelope is .5 * $X/2 + .5 * $2X = $1.25X, which is higher than my current $X, so I should change my mind and take the other envelope. But then I can apply the argument all over again. Something is wrong here! Where did I go wrong?

In a variant of this problem, you are allowed to peek into the envelope you chose before finally settling on it. Suppose that when you peek you see $100. Should you switch now?

Envelope Solution

lib/DbaDatabase.php:134: Warning: dba_replace() [<a href='function.dba-replace'>function.dba-replace</a>]: You cannot perform a modification to a database without proper access