From a distribution to two numbers
In Topic 2.8 you described a discrete random variable with a probability distribution: a list of every possible value and its probability. A table like that tells you everything, but it is hard to compare or report. So, just as you summarised a data set with a mean and a standard deviation in Topic 1.7, you now summarise a probability distribution with two numbers:
- the mean, or expected value, which tells you the centre;
- the standard deviation, which tells you the variability.
A discrete random variable can take only a countable set of values, often a finite list such as 0, 1, 2, 3, 4. That is why we can add up over every value.
Parameters and statistics
A parameter is a number that describes a whole probability distribution, or a whole population. It has one fixed value. It does not change from one day, sample or experiment to the next.
A statistic is a number calculated from data, such as a sample. Different samples give different values, so a statistic varies.
| Parameter | Statistic | |
|---|---|---|
| Describes | a probability distribution or population | a sample of data |
| Value | fixed | changes from sample to sample |
| Mean written as | μ, μ_X or E(X) | x̄ |
| Standard deviation written as | σ, σ_X or SD(X) | s |
The subscript in μ_X and σ_X names the random variable, which helps when a problem has more than one. The mean and standard deviation of a random variable are parameters. When you collect or simulate data, the sample mean x̄ is a statistic that estimates μ.
The data used in this guide
A fictional mountain rescue station, Harrowmoor Rescue, studied its records. Let X = the number of call-outs the station receives on a randomly chosen day. Its probability distribution is:
| x (call-outs) | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| P(X = x) | 0.25 | 0.40 | 0.20 | 0.10 | 0.05 |
Check: 0.25 + 0.40 + 0.20 + 0.10 + 0.05 = 1, so this is a valid distribution.
The mean (expected value) of a discrete random variable
Multiply each value by its probability and add:
μ = E(X) = Σ xᵢ · P(xᵢ)
Here xᵢ is a possible value of X and P(xᵢ) is its probability. This is a weighted average: values that happen more often count for more.
Interpretation. The expected value is the long-run average value of X. If you observed X again and again, for a very large number of repetitions, the average of the results would get closer and closer to μ.
Notice two things.
- μ need not be a value that X can take. You will see that μ = 1.3 call-outs, even though a day always has a whole number of call-outs.
- μ is not the most likely value. The most likely value here is 1.
The standard deviation of a discrete random variable
The standard deviation measures how far the values of X typically are from μ, in the long run. Weight each squared deviation by its probability:
σ = SD(X) = √[ Σ (xᵢ − μ)² · P(xᵢ) ]
The square of the standard deviation is the variance, written σ² or V(X). Its units are squared, so we usually report σ.
How to calculate σ by hand:
- Find μ.
- Subtract μ from each value of X to get its deviation.
- Square each deviation.
- Multiply each squared deviation by its probability.
- Add the results. This is the variance, σ².
- Take the square root.
Interpretation. The standard deviation is a typical distance between a value of X and its mean, over the long run. It is not the largest possible distance.
Seeing μ and σ on a probability histogram
The mean is the balance point of the probability histogram. The long right tail (3 and 4 call-outs) pulls it to the right of the tallest bar.
Worked example 1: mean and standard deviation of daily call-outs
Question. For the Harrowmoor distribution above, calculate μ, σ² and σ. Interpret μ and σ in context.
Mean.
| x | P(x) | x · P(x) |
|---|---|---|
| 0 | 0.25 | 0 |
| 1 | 0.40 | 0.40 |
| 2 | 0.20 | 0.40 |
| 3 | 0.10 | 0.30 |
| 4 | 0.05 | 0.20 |
| Sum | 1 | 1.30 |
μ = 0(0.25) + 1(0.40) + 2(0.20) + 3(0.10) + 4(0.05) = 1.3 call-outs.
Standard deviation.
| x | x − μ | (x − μ)² | (x − μ)² · P(x) |
|---|---|---|---|
| 0 | −1.3 | 1.69 | 0.4225 |
| 1 | −0.3 | 0.09 | 0.0360 |
| 2 | 0.7 | 0.49 | 0.0980 |
| 3 | 1.7 | 2.89 | 0.2890 |
| 4 | 2.7 | 7.29 | 0.3645 |
| Sum | 1.2100 |
σ² = 1.21 (call-outs)², so σ = √1.21 = 1.1 call-outs.
Interpretation of μ. Over a very large number of days, Harrowmoor Rescue averages about 1.3 call-outs per day.
Interpretation of σ. Over the long run, the number of call-outs on a day typically differs from the mean of 1.3 by about 1.1 call-outs.
Check. With values in one list and probabilities in another, one-variable statistics gives x̄ = 1.3 and σx = 1.1. The unweighted average of the five values, (0 + 1 + 2 + 3 + 4) ÷ 5 = 2, is wrong because it ignores the probabilities. As a sense check, over 30 days the station should expect about 30 × 1.3 = 39 call-outs in total.
Parameter versus statistic: a simulation
A computer simulated days at Harrowmoor using the distribution above.
| Number of simulated days | Mean number of call-outs (a statistic) |
|---|---|
| 50 | 1.2 |
| 1,000 | 1.285 |
| 100,000 | 1.30 |
Each run’s mean is a statistic: a different run of 50 days would give a different value. The expected value μ = 1.3 is a parameter: it never changes. As the number of simulated days grows, the simulated mean settles close to μ. That is exactly what “long-run average” means.
Worked example 2: is the charity game worth playing?
Question. At a fictional school fair, a spinner game costs $5 to play. A player wins $20 with probability 0.10, wins $5 (their money back) with probability 0.20, and wins nothing with probability 0.70. Let X = the player’s net gain in dollars on one play.
(a) Write the probability distribution of X. (b) Calculate E(X) and SD(X). (c) Interpret both in context, and say what the charity can expect from 400 plays.
(a) Net gain = prize − $5.
| Net gain x ($) | 15 | 0 | −5 |
|---|---|---|---|
| P(X = x) | 0.10 | 0.20 | 0.70 |
The probabilities add to 1.
(b) Mean:
E(X) = 15(0.10) + 0(0.20) + (−5)(0.70) = 1.5 + 0 − 3.5 = −$2.
Standard deviation, using deviations from −2:
- Deviations: 15 − (−2) = 17; 0 − (−2) = 2; −5 − (−2) = −3.
- Squared: 289, 4, 9.
- Weighted: 289(0.10) + 4(0.20) + 9(0.70) = 28.9 + 0.8 + 6.3 = 36.
- σ² = 36 dollars², so SD(X) = √36 = $6.
(c) Mean: over many, many plays, players lose an average of $2 per play. Equivalently, the charity gains an average of $2 per play, so over 400 plays it can expect about 400 × $2 = $800.
Standard deviation: a player’s net gain on one play typically differs from the mean of −$2 by about $6, over the long run. The large σ comes from the rare $15 gain: most plays lose $5, but a few win.
Check. The negative mean makes sense: the charity designed the game to raise money. No single play ever gives exactly −$2; it is a long-run average.
Common misconceptions
- “The mean is the average of the possible values.” Averaging 0, 1, 2, 3, 4 gives 2 call-outs and ignores the probabilities. Always weight by P(xᵢ).
- “The expected value is what will happen” or “the most likely value”. E(X) is a long-run average. One day can never have 1.3 call-outs, and the most likely number is 1.
- Dividing by n or n − 1. For a random variable, each squared deviation is multiplied by its probability. There is no division by a count. On a calculator, read σx, not Sx.
- Forgetting the square root. Σ(xᵢ − μ)² · P(xᵢ) is the variance. Report σ, in the units of X.
- Squaring the deviations but not weighting them, or weighting the deviations but not squaring them. The weighted deviations (not squared) always add to 0, which is a useful check on μ.
- “A parameter is any number in the problem.” A parameter describes the whole distribution or population and is fixed. A mean from simulated or collected data is a statistic.
- Interpreting with no context. “μ = 1.3” is incomplete. Say “over a very large number of days, the station averages about 1.3 call-outs per day”.
- “Standard deviation is the maximum distance from the mean.” On a day with 4 call-outs, X is 2.7 from μ, more than σ = 1.1. σ is a typical distance.
Where this leads
Next, in Topic 2.10, you meet the binomial distribution, a family of discrete random variables whose mean and standard deviation come from short formulas instead of a full table. Try the practice questions now, then use the revision notes and the checklist. When you are ready, move on to The Binomial Distribution.
Quick questions
Why is there no n − 1 in the standard deviation of a random variable?
The n − 1 in the sample standard deviation corrects for estimating the mean from the same sample. A probability distribution describes the whole process, and μ is known exactly, so each squared deviation is simply weighted by its probability.
Can the expected value be a number that X can never take?
Yes. If X counts call-outs per day, E(X) = 1.3 is impossible on any one day. It is the average over a very large number of days.