likelihood function bernoulli distribution