Mean and Variance of Bernoulli Distribution Example