The mean and variance of the binomial distribution b(x; n, p) are code example Example: variance of binomial distribution Var(X)=np(1-p)