A variance of a random variable
X is the quantity
Var(X)=E[(X−E[X])2],defined when E[X2]<∞ (so in particular the expectation
E[X] is finite). Equivalently,
Var(X)=E[X2]−(E[X])2.Variance is the second centered moment
of X. It is also the special case Var(X)=Cov(X,X) of covariance
, and it is used to normalize covariance
into the correlation coefficient
.
Examples:
- If X is Bernoulli(p) (so P(X=1)=p, P(X=0)=1−p), then Var(X)=p(1−p).
- If X∼N(μ,σ2), then Var(X)=σ2.