bernoulli function

Inference for the Bernoulli distribution