Skip to main content
Albero Academy

Random Variables

Variables whose value is determined by chance — and expected value.

Probability8 min

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

TypeValuesDescribed by
DiscreteCountable (0, 1, 2…)Probability mass function (PMF)
ContinuousAny value in a rangeProbability density function (PDF)

Expected value

the long-run average
E[X] = Σ (value × probability)
A fair die: E[X] = 1(1/6) + 2(1/6) + … + 6(1/6) = 3.5
The "expected" value need not be a possible outcome.

Key takeaways

  1. 01A random variable maps each random outcome to a number.
  2. 02Discrete variables take countable values (PMF); continuous take any value in a range (PDF).
  3. 03Expected value E[X] = Σ(value × probability) — the long-run average.
  4. 04The expected value need not be an achievable outcome (die → 3.5).

Finished this chapter?

Mark it complete to track your progress through Statistics.