Chapter VI · 18 min
Random Variables
Numbers attached to outcomes
“A random variable is a function, and as such it is neither random nor a variable.”
Outcomes can be messy — a whole deck, a whole image, a whole game of Monopoly. What you can compute with is often a number you attach to that mess: the number of aces, the pixel intensity, the total score. A random variable is that attachment. It is a function, and as such it is neither random nor a variable. The randomness lives on ; the function just reports a number.
A function on Ω
A (real) random variable is a map . For a subset of the line, the event that lands there is the preimage
We write as shorthand for . The left side looks like a statement about a number; the right side is an ordinary event. Keeping both pictures in mind prevents a surprising amount of confusion.
Distributions, pmfs, cdfs
The distribution of is the push-forward of onto the line: the rule that tells you for sets of numbers. When takes finitely or countably many values, the distribution is recorded by a probability mass function
The cumulative distribution function (cdf)
is defined for every random variable, discrete or not. It is non-decreasing, right-continuous, and runs from 0 to 1. For a discrete variable it is a staircase; the height of the jump at is .
- Two different experiments can induce the same distribution. Fair-coin and “I drew an even die face” are different stories with the same .
- Functions of random variables are random variables: has .
- The pair is a random vector — a function to . Chapter 10.