Julia functions from W.M. Bolstad's "Understanding Computational Bayesian Statistics"