Bayesian sampling

Metropolis-Hastings sampler for the mean of a normal model: posterior mean, interval, acceptance rate and effective sample size.