First half of bayesian parameter estimation