rewrite bayesian linear regression