Skip to content

Mathematics and Statistics · Ch 16 — Probability Distributions

Expected Value (Mean) and Variance

4

Expected Value (Mean) and Variance

A distribution is summarised by two numbers: the expected value (mean), which locates its centre, and the variance, which measures its spread.

Note

Expected value (mean) E(X)E(X)

For a discrete variable with p.m.f. pi=P(X=xi)p_i = P(X=x_i),

E(X)=μ=∑ixi pi.E(X) = \mu = \sum_{i} x_i\, p_i .

For a continuous variable with density f(x)f(x),

E(X)=μ=∫−∞∞x f(x) dx.E(X) = \mu = \int_{-\infty}^{\infty} x\, f(x)\,dx .

The expected value is the long-run average value of XX over very many repetitions of the experiment — a probability-weighted average of the values it can take.

Note

Variance and standard deviation

Var⁡(X)=σ2=E[(X−μ)2]=E(X2)−[E(X)]2.\operatorname{Var}(X) = \sigma^2 = E\big[(X-\mu)^2\big] = E(X^2) - \big[E(X)\big]^2 .

where E(X2)=∑ixi2 piE(X^2) = \sum_i x_i^2\, p_i (discrete) or ∫x2f(x) dx\int x^2 f(x)\,dx (continuous). The standard deviation is σ=Var⁡(X)\sigma = \sqrt{\operatorname{Var}(X)}.

The identity Var⁡(X)=E(X2)−[E(X)]2\operatorname{Var}(X) = E(X^2) - [E(X)]^2 is almost always the easier route in numerical work: compute E(X)E(X) and E(X2)E(X^2) from the table, then subtract the square of the mean. Variance is never negative, and σ\sigma carries the same units as XX, which is why it is the preferred measure of spread.

Tip

Useful properties (for constants a,ba, b)

E(aX+b)=a E(X)+bE(aX + b) = a\,E(X) + b and Var⁡(aX+b)=a2 Var⁡(X)\operatorname{Var}(aX+b) = a^2\,\operatorname{Var}(X). Adding a constant shifts the mean but leaves the spread unchanged; scaling by aa scales the variance by a2a^2. …

Definition 8Expected value (mean) $E(X)$

E(X)=∑xipiE(X)=\sum x_i p_i (discrete) or ∫xf(x) dx\int x f(x)\,dx (continuous): the probability-weighted average / long-ru …

Definition 9Variance $\operatorname{Var}(X)$

Var⁡(X)=E(X2)−[E(X)]2\operatorname{Var}(X)=E(X^2)-[E(X)]^2, a non-negative measure of spread; its square root σ\sigma is the …