Mean and Variance of the Bernoulli Distribution

Derive and apply the formulas for the mean, variance, and standard deviation of a Bernoulli random variable, and recover the parameter pp from a given variance.

Step 1 of 157%

Tutorial

Mean of a Bernoulli Random Variable

A Bernoulli random variable XX with parameter pp takes the value 11 with probability pp and the value 00 with probability q=1p.q = 1-p.

By the definition of expected value for a discrete random variable,

E[X]=xxP(X=x)=0(1p)+1p=p.E[X] = \sum\limits_x x \cdot P(X=x) = 0 \cdot (1-p) + 1 \cdot p = p.

So the mean of a Bernoulli random variable with parameter pp is

μ=E[X]=p.\mu = E[X] = p.

For example, if XBernoulli(0.25),X \sim \text{Bernoulli}(0.25), then E[X]=0.25.E[X] = 0.25.

navigate · Enter open · Esc close · ⌘K/Ctrl K toggle