Bernoulli Distribution

Probability Distribution Function

A random variable X has a Bernoulli distribution, denoted by X∼Bernoulli(p) if and only if it has the probability distribution function as

f(x)=px(1−p)1−x for x=0,1

where p=P(X=1)

E(X)=∑xxf(x)=pVar(X)=E(X2)−[E(X)]2=p−p2=p(1−p)