Performing Bayesian regression