bayes stuff for fun