A random variable assigns a number to each outcome of a random process — the result of a die roll, tomorrow's demand. It's the bridge from probability to data, and its expected value is the long-run average.
Discrete vs continuous
| Type | Values | Described by |
|---|---|---|
| Discrete | Countable (0, 1, 2…) | Probability mass function (PMF) |
| Continuous | Any value in a range | Probability density function (PDF) |
Expected value
E[X] = Σ (value × probability)A fair die: E[X] = 1(1/6) + 2(1/6) + … + 6(1/6) = 3.5The "expected" value need not be a possible outcome.
Key takeaways
- 01A random variable maps each random outcome to a number.
- 02Discrete variables take countable values (PMF); continuous take any value in a range (PDF).
- 03Expected value E[X] = Σ(value × probability) — the long-run average.
- 04The expected value need not be an achievable outcome (die → 3.5).
