grid approach to Bayesian prior
grid approach to beta prior