The flawed expected value of the other envelope: 0.5 * 2X + 0.5 * X/2 = 1.25X. This argument is wrong.
You see $100.00. The naive argument says switching nets you $25.00 more - but this is wrong.
Next stepIf you can set a threshold T before looking: switch only when your amount is below T. This threshold strategy provably achieves better than 50% accuracy at picking the larger envelope, even without knowing the amounts in advance.