Code for simple Bayesian Statistics, mostly taken from Rossi et al and Gelman et al