ProbabilityLesson 2 of 6
Attach a number, get a distribution
Random variables, PMFs, and PDFs
One number per outcome
Section titled “One number per outcome”Toss 3 fair coins, each toss independent of the others, and let = the number of heads — a rule that attaches a number to each outcome. That rule is a random variable. It is a numerical measurement of an outcome: HTT reads 1, HHT reads 2. The randomness is in which outcome occurs; X just reports.
Because the tosses are fair and independent, the bag Ω holds 8 equally likely outcomes:
HHH, HHT, HTH, THH, HTT, THT, TTH, TTT
A statement about X gets its probability the only way it can — from the outcomes behind it. is, by definition, the probability of the outcomes where the measurement reads 2:
| value of | outcomes that give it | probability |
|---|---|---|
| 0 | TTT | 1/8 |
| 1 | HTT, THT, TTH | 3/8 |
| 2 | HHT, HTH, THH | 3/8 |
| 3 | HHH | 1/8 |
The measurement has moved all the probability onto the number line. We can now answer questions about X directly from its distribution, without listing the underlying coin sequences each time.
The table is the distribution
Section titled “The table is the distribution”The table gives the distribution of : each possible value and its probability. For a discrete random variable, these probabilities are described by a probability mass function, or PMF:
The subscript names the variable; the input is the value you ask about. So . The entries sum to : the table slices the whole bag by value, and nothing is left out. Everything you’d want to know about — like the average — is computed straight from this table.
When every exact value has probability 0
Section titled “When every exact value has probability 0”Now draw a number uniformly from the interval — all the numbers from −1 to 1, every spot equally likely. What is ? Zero — not tiny, zero. Under a uniform draw every point would have to carry the same mass. If that mass were positive, choosing sufficiently many distinct points would exceed total probability 1. Therefore each point has mass zero. Infinitely many possible values alone is not enough for this conclusion: an infinite discrete distribution can give positive probability to individual values. A table would be all zeros and say nothing.
Individual points have probability zero in this model, but intervals can have positive probability. For a variable with a density, we calculate those probabilities as areas. For example, asks how much probability lies between 0 and , with meaning “less than or equal to.”
The probability density function, or PDF, is written . For this uniform distribution, the density is constant across :
Probability is area under the density. With a flat density, areas are just rectangles:
The total area is width × height = 2 × 1/2 = 1 — always 1, the same whole-bag rule the table obeyed. And a density can be taller than 1: a uniform draw from has density 10, because 1/10 × 10 = 1. A density of 10 means probability accumulates at a rate of 10 per unit of length on that interval. An interval of width therefore has probability . The density is a height; the probability is an area.
Piled probability gets a table; smeared probability gets a height that isn’t itself a probability. One running total covers both — and its slope is the density.