the two envelopes problem, also known as the exchange paradox, is a brain teaser, puzzle, or paradox in logic, probability, and recreational mathematics. it is of special interest in decision theory, and for the bayesian interpretation of probability theory. historically, it arose as a variant of the necktie paradox.