Properties of Bernoulli random variables
If X ~ Ber(p), then
E(X2 ) = 02 (1 - p) + 12 p = p.
Var (X) = p – p2 = p(1 – p).