Calculating accuracy of a bayesian model