likelihood function bernoulli