Definition

Let be a Random Variable with expected value . The variance of is

It measures how far typically deviates from its mean.

Standard deviation

The standard deviation of is the square root of the variance:

Unlike the variance, the standard deviation has the same unit as .

Useful identity

Expanding the square gives

Important

Short proof.

Since , this becomes

Affine transformations

For constants ,

So shifting by does not change the variance, and scaling by multiplies the variance by .

For the standard deviation,

Discrete and continuous forms

If is discrete, then

If is continuous with density , then

In both cases, .