Bayesian decision theory allows these failures of rationality to be described as part of a statistically optimized system for decision making.
Empirical Bayes method | Bayes' theorem | Bayes estimator |