Bayesian inference with Beta-Bernoulli