Var(X)=np(1-p)
Proof: Let X=X1+...+Xn where all Xi are independently Bernouli distributed random variables. Since Var(Xi)=p(1−p), we get
Var(X)=Var(X1+...+Xn)=Var(X1)+...+Var(Xn)=nVar(X1)=np(1−p)
E(X)=E(X1+X2+...+Xn)=E(X1)+E(X2)+...+E(Xn)=np
Since each X1 Ber(p)
Now there is a result that says that if Y1,Y2,...,YK arised out of k independent experiments then
V(Y1+Y2+...+YK)=V(Y1)+V(Y2)+...+V(YK)
We apply that result to get
V(X)=V(X1)+V(X2)+...+V(Xn)=np(1−p)