unbiased estimator of bernoulli distribution