Now, with this definition of this, and this is the most general definition of a Bernoulli distribution, it's really exactly what we did in the last video. I now want to calculate the expected value, which is the same thing as the mean of this distribution. And I also want to calculate the variance, which is the same thing as the expected squared distance of a value from the mean. So let's do that. So what is the mean over here? What is going to be the mean? Well, that's just the probability weighted sum of the values that this could take on.