Computes the bayesian rating for an item