Statistics · Random variables and sampling distributions
A random variable and its expectation
A number attached to an outcome, and a weighted average of it.
3.5 on a die with no 3.5
The expectation of a die roll is 3.5 — a number no face carries and no roll will ever produce. Yet it is the right description of the die. If it does not describe the next roll, what exactly does it describe?
A random variable attaches a number to every outcome of a process. Once that is done, the whole distribution can be summarised the way any distribution is: by a centre and a spread. The centre is called the expectation, and it is a weighted average rather than a plain one.
E(X) = \sum x_i \, P(x_i)
| The term | What it is |
|---|---|
| A random variable | A number attached to every outcome |
| Expectation | An average weighted by the probabilities |
| Variance | The spread about the expectation |
Two worked examples
Example 1 — a value that never occurs
- A fair die: each face has probability one sixth.
- Weight each value by its probability.
E(X) = \frac{1+2+3+4+5+6}{6} - That gives three and a half.
E(X) = 3.5 - No face carries that number.
Example 2 — when expectation is the wrong guide
- A bet has expectation of plus one unit.
- Played ten thousand times, gain is near certain.
- Played once for everything you own, it is not.
- Same expectation, wholly different decision.
- Reading the expectation as a value that will occur — It is an average over repetitions The expectation of a die is three and a half, and there is no such face.
- Comparing options by expectation alone — It suits only whoever repeats many times In a one-off decision about a large sum, the spread is what settles it.