Skip to content

Statistics · Ch 6 — Random Variable and Discrete Probability Distribution

Variance and Standard Deviation of a Random Variable

4

Variance and Standard Deviation of a Random Variable

The mean alone does not tell us how spread out the values of XX are around it. The variance, denoted Var(X)Var(X) or σ2\sigma^2, measures this spread:

Var(X)=E[(X−μ)2]=E(X2)−[E(X)]2Var(X) = E\big[(X - \mu)^2\big] = E(X^2) - [E(X)]^2

where E(X2)=∑ixi2 p(xi)E(X^2) = \sum_i x_i^2\, p(x_i) is the expectation of X2X^2. The second form on the right — "mean of the square minus square of the mean" — is the one almost always used in numerical work because it avoids computing (xi−μ)(x_i - \mu) for every value.

The standard deviation is SD(X)=σ=Var(X)SD(X) = \sigma = \sqrt{Var(X)}, expressed in the same unit as XX itself.

Property: Var(aX+b)=a2 Var(X)Var(aX + b) = a^2\, Var(X) — adding a constant bb shifts every value equally and does not change the spread, so bb drops out; scaling by aa scales the variance by a2a^2 (and hence the SD by ∣a∣|a|).

Example (continuing the two-coin case). …