Skip to content

Mathematics · Ch 10 — Random Variables and Probability Distributions

Mean and Variance of a Discrete Probability Distribution

10.3

Mean and Variance of a Discrete Probability Distribution

Once a probability distribution is written down, two summary numbers describe it well: where it is centred, and how spread out it is. These play exactly the role that the mean and variance play for an ordinary frequency distribution in statistics — the only difference is that probabilities replace relative frequencies.

Mean. The mean (also called the expected value) of a discrete random variable XX with values xix_i and probabilities P(xi)P(x_i) is

μ=∑ixi P(X=xi)\mu = \sum_i x_i \, P(X = x_i).

It is a weighted average of the possible values, each value weighted by how likely it is. It represents the long-run average value of XX if the experiment were repeated a very large number of times.

Variance and standard deviation. The variance measures how far, on average, the values of XX spread out from the mean:

σ2=∑i(xi−μ)2 P(X=xi)\sigma^2 = \sum_i (x_i - \mu)^2 \, P(X = x_i).

Expanding the square and using ∑iP(xi)=1\sum_i P(x_i) = 1 and ∑ixiP(xi)=μ\sum_i x_i P(x_i) = \mu gives a much easier computational form:

σ2=∑ixi2 P(X=xi)−μ2\sigma^2 = \sum_i x_i^2 \, P(X = x_i) - \mu^2.

In words: the variance is the mean of the squares minus the square of the mean. This shortcut is what is actually used in every worked problem, since it avoids recomputing (xi−μ)(x_i - \mu) for every value. The non-negative square root σ\sigma is called the standard deviation of XX, and is in the same units as XX itself, which makes it easier to interpret than the variance.

Worked Example. A random variable XX takes the values 1,2,3,41, 2, 3, 4 with probabilities proportional to the value itself: P(X=x)=kxP(X = x) = kx for x=1,2,3,4x = 1,2,3,4, where kk is a constant to be found.

Step 1 — find kk. Since the probabilities must add to 11: k(1+2+3+4)=1⇒10k=1⇒k=110k(1+2+3+4) = 1 \Rightarrow 10k = 1 \Rightarrow k = \frac{1}{10}. So P(1)=0.1,  P(2)=0.2,  P(3)=0.3,  P(4)=0.4P(1) = 0.1,\; P(2)=0.2,\; P(3)=0.3,\; P(4)=0.4.

Step 2 — mean. μ=1(0.1)+2(0.2)+3(0.3)+4(0.4)=0.1+0.4+0.9+1.6=3.0\mu = 1(0.1) + 2(0.2) + 3(0.3) + 4(0.4) = 0.1+0.4+0.9+1.6 = 3.0. …