Resources
Expected value is not a value you expect
The expected value of a fair die is 3.5, which is not a face the die has. Nothing has gone wrong. The name is misleading in a way the definition is not, and unpicking the difference is most of what the topic asks.
The framework defines the quantity as a weighted sum, \(\mu_X = \textstyle\sum x_i \cdot P(x_i)\), and then supplies the reading that makes it usable: the expected value can be interpreted as the long-run average outcome of the random variable. Not the likeliest outcome, not a typical outcome, not an outcome at all. An average, of a great many results, none of which need resemble it.
Watch one settle
Each preset below is a probability distribution. The bars are the probabilities and the vertical line is \(\mu_X\), computed from the definition rather than from the simulation.
Top: the probability distribution, with a dashed vertical at the expected value and short marks one standard deviation either side. Bottom: the running average of the outcomes drawn so far, against the number of trials, with the same expected value as a dashed target. The scale is logarithmic in the number of trials, because the interesting behaviour is the settling and it happens over orders of magnitude. On three of the four presets the dashed vertical falls in the gap between two bars, so the running average converges to a number that no single trial can ever produce.
Three of the four are unreachable
The die averages 3.5. Five fair coin flips average 2.5 heads. A raffle ticket that pays 100 one time in a hundred and 10 one time in twenty is worth 1.50, and no ticket has ever been worth 1.50. In each case the dashed line lands in the gap between two bars, and the running average underneath walks toward it anyway.
Only the third preset, ten trials at a success rate of 0.3, produces an expected value that an outcome can equal — and even there, three successes is merely the likeliest of eleven possibilities, not something to be expected in any ordinary sense.
The standard deviation is the companion measurement and the framework gives it the same long-run reading: a typical deviation of the values from the mean, over the long run. The two short marks beside the dashed line are one such deviation either side. On the raffle they are far outside the picture, because a distribution that is almost always zero and occasionally 100 has a standard deviation of about 10 against a mean of 1.50 — which is the honest description of a lottery, and the reason expected value alone is a poor summary of one.
Why the binomial gets a shortcut
For most distributions, finding \(\mu_X\) means doing the weighted sum term by term. The binomial is exempted, and the exemption is worth understanding rather than memorising.
A binomial random variable counts successes in \(n\) repeated independent trials, each with two outcomes and the same probability \(p\) of success. Because the trials are identical and independent, each one contributes the same amount to the total on average, and the framework can state the result outright:
\[\mu_X = np, \qquad \sigma_X = \sqrt{np(1-p)}.\]Check it against the tool. For ten trials at \(p = 0.3\) the shortcut gives \(\mu = 3\) and \(\sigma = \sqrt{2.1} \approx 1.4491\), and the term-by-term sums over all eleven outcomes return the same two numbers. The shortcut is not an approximation.
The four conditions, and what breaks them
The shortcut is available only when the variable really is binomial, and the definition carries four requirements: a fixed number of trials, two outcomes per trial, the same probability of success on every trial, and independence between trials.
Drawing cards without replacement breaks the third and fourth at once, since each draw changes what is left. Counting how many trials it takes to get a first success breaks the first, because the number of trials is not fixed in advance — and that variable, once part of this course, is no longer in it, which is worth knowing if you are working from an older review book. Asking each subject a question with three possible answers breaks the second until the categories are collapsed to two.
Justifying that a variable is binomial is its own learning objective, so the four conditions are a sentence to write rather than a box to tick.
A check worth running on the raffle: draw a hundred trials, note the running average, then draw a thousand more and note it again. The number often moves away from 1.50 before it comes back, because a single hundred-pound prize arriving late in a short run drags the average up by a full point. That is not the law of large numbers failing. It is the law of large numbers being a statement about the long run only, and the reason a distribution this skewed needs both of its parameters reported rather than just the first.