given that f is a bernoulli random variable with parameter p=0.3, what is expectation and variance of f?
And the variance is
Where the value of is as well, because still is the same random variable (in this particular case).
Maybe you are wondering why should be true? That's because
Don't know why I'm writing this: it's almost certainly to be found in Wikipedia.