Expected value and variance of a discrete random variable
◈ 6 cardsThe table method for μ, the shortcut Σx²p(x) − μ² for σ², and expected value as a decision criterion.
The long-run average
The expected value of a discrete random variable is its mean — the average value of over a very long run of repetitions, each value weighted by how often it occurs:
It is a weighted average with the probabilities as weights. The variance is the weighted average squared distance from , and the shortcut form is the one to compute by hand:
The standard deviation is , in the units of .
Worked example — the table method
Extend Maple Ledger's pmf with two columns and total each:
| 0 | 0.40 | 0.00 | 0.00 |
| 1 | 0.35 | 0.35 | 0.35 |
| 2 | 0.15 | 0.30 | 0.60 |
| 3 | 0.10 | 0.30 | 0.90 |
| total | 1.00 | 0.95 | 1.85 |
On average a batch has 0.95 late invoices, give or take about one. No batch ever has 0.95 late invoices — the expected value is a long-run average, not a possible outcome, exactly as a family can have 1.8 children. The third column is , not : square the value, then weight it.
Forgetting the
The most common slip is to report the third column's total, 1.85, as the variance. That is ; the variance is smaller by . A variance larger than is impossible, so a quick check is that always.
Expected value as a decision rule
Maple Ledger's partner can install a review control for \$8,000 a year, or accept that without it there is a 12 % chance of a \$50,000 loss from an undetected billing error. The expected loss without the control is
which is less than \$8,000 — on expected value alone, skip the control. But expected value is an average over many years; in any single year the firm either loses nothing or loses \$50,000, and a firm that cannot absorb \$50,000 may rationally pay \$8,000 to avoid the chance. Expected value ranks decisions by their long-run average; the risk appetite — how much variance the decision-maker will carry — is a separate input the paper often asks you to name.