A Bayesian perspective on biases in risk perception