Bayes' rule and bias roles in the evolution of decision making