Random Variables
From outcomes to numbers
A sample space is the set of all possible outcomes of an experiment. For a single coin flip, . For a six-sided die, . Outcomes can be abstract labels — winning a game, finding a particle in a detector, measuring a spin component. What matters is that the elements of are mutually exclusive and exhaustive.
A random variable is a function that assigns a real number to each outcome in the sample space:
It converts qualitative or labeled outcomes into quantities we can do arithmetic with. Labeling the coin so that and turns an abstract flip into a number we can average, square, or subtract.
Discrete and continuous random variables
When is finite or countably infinite the random variable is discrete: it takes values in a list . Each value carries a probability
The collection of all pairs is the probability distribution of .
When can take any value in an interval — as happens for continuous quantities like position or momentum — it is a continuous random variable. Its distribution is described by a probability density function such that
and the total area under integrates to . Probabilities are not point values but areas under the curve.
Why random variables appear in quantum mechanics
In quantum mechanics, a measurement outcome is not determined ahead of time — the theory assigns only probabilities to each possible result. When you measure an observable (energy, position, momentum, spin) on a quantum system, the outcome is a real number drawn from a probability distribution set by the state of the system. That outcome is precisely a value of a random variable.
For a spin- particle in a normalized state (with ), measuring the spin along gives:
- with probability ,
- with probability .
The measurement outcome is a random variable taking two values, with distribution determined by the amplitudes and . Understanding how to characterize and compute with such distributions — through expectation values, variances, and more — is the central mathematical thread of quantum probability.
Sign in on the full site to ask questions and join the discussion.