On the Causes and Consequences of Deviations from Rational Behavior