Random Variables and Distributions
A random variable is not a variable and is not random: it is a measurable function on the sample space. The name is a historical accident that survives because the objects behave, notationally, like the "random quantities" of informal usage.
This page makes the definition, introduces the law (the pushforward measure that carries all the information anyone ever uses), and works through the standard apparatus — distribution functions, densities, quantiles — as consequences. The punchline is §5: the sample space of kolmogorov-axioms.md drops out of every computation.
References: Billingsley, Probability and Measure, ch. 3; Durrett, Probability: Theory and Examples, §1.2; Kallenberg, Foundations of Modern Probability, ch. 1.
1. Definition
Definition. Let be a probability space. A random variable is a measurable map , i.e. for every . A random vector is a measurable map into ; a random element of a measurable space is a measurable map into it.
By the generator criterion (measure-theory.md §7) it suffices that for every . The abbreviations for and for are universal and used throughout.
Measurability is exactly the condition that makes the questions we want to ask be events. It is not a restriction on which functions are interesting; it is the requirement that be applicable.
Definition (-algebra generated by ). — the smallest -algebra making measurable.
is the information carried by : an event lies in it iff observing decides it. This reading is developed in conditional-expectation.md, and the following lemma is its technical backbone.
Doob–Dynkin lemma. is -measurable for some Borel .
"Determined by " and "a function of " are therefore the same thing — a statement with no analogue in the informal vocabulary, and one of the clearest payoffs of the measure-theoretic definition.
2. The Law
Definition. The law (or distribution) of is the pushforward measure on :
is a probability measure ( preserves disjoint countable unions), so every random variable induces a probability space on . Conversely every probability measure on is the law of some random variable — take , , . Laws and random variables are thus in many-to-one correspondence, and only the law is ever observable.
Two random variables with the same law are equal in distribution, written . They may live on different spaces and be quite different functions: on with fair , the variables and satisfy while . Equality in distribution is much weaker than equality, and keeping the two apart is the main notational discipline of the subject.
3. Distribution Functions
Definition. The cumulative distribution function of is .
Theorem (characterization). is the CDF of some random variable iff it is (i) non-decreasing, (ii) right-continuous, and (iii) , . The correspondence between Borel probability measures on and such functions is a bijection.
Proof. () Monotonicity is monotonicity of ; right-continuity is continuity from above along ; the limits are continuity along . () Given , the half-open intervals form a -system, is a premeasure on the algebra of their finite disjoint unions, and Carathéodory extends it (measure-theory.md §5). Uniqueness is the – corollary.
This is the Lebesgue–Stieltjes correspondence, and it is why a one-dimensional distribution can be handed over as a single function of a real variable. Note which direction is nontrivial: writing down is easy, but that a measure exists with that CDF is Carathéodory's theorem.
Right-continuity is a convention forced by using ; the jump of at is , so is continuous at iff is not an atom.
Lebesgue's trichotomy. By the decomposition theorem (lebesgue-integral.md §7), every law on splits uniquely as
an absolutely continuous part (has a density), a discrete part (atoms), and a singular continuous part — continuous , but concentrated on a Lebesgue-null set. The third is not pathological bookkeeping: the Cantor distribution is exactly such a law, and singular continuous spectra occur in quantum mechanics.
4. Densities
Definition. is absolutely continuous with density if , in which case
by Radon–Nikodym (lebesgue-integral.md §7).
So "has a density" is not a mild regularity assumption but a genuine dichotomy: densities exist exactly when the law assigns zero probability to every Lebesgue-null set. Discrete variables have no density (they charge points), the Cantor distribution has none (it charges a null set), and neither omission is repairable.
The density is unique only up to -a.e. equality, so pointwise statements about are meaningless unless a version has been fixed. When is , and the usual calculus applies.
For random vectors everything is identical with in place of ; marginals are obtained by integrating out coordinates, which is Fubini (product-measures.md §3).
5. Why Does Not Matter
Every probabilistic quantity attached to — its expectation, variance, moments, characteristic function, tail probabilities — is computed from alone. The change-of-variables formula for pushforwards,
proved in expectation.md §2, is the formal statement: the sample space is integrated away. Two consequences:
- One may always take (or , or ) with the identity or the coordinate maps. This canonical model is the standard device for proving existence — see extension-theorem.md.
- Conversely, a single rich enough carries every distribution at once:
Theorem (quantile/Skorokhod representation). Let be uniform on and any CDF. Define the generalized inverse . Then has CDF .
Proof. Right-continuity and monotonicity of give ; hence .
So supports a random variable of every one-dimensional law — and, using a measurable bijection , of every countable family at once. The apparatus of "choosing a probability space" is therefore never a real constraint, which is the sense in which is scaffolding (kolmogorov-axioms.md §2).
What is not determined by the laws. The joint behaviour. and fix every marginal question but no question about together: the joint law on is extra data, and many joint laws have the same marginals (the set of them is the coupling problem). Independence (independence.md) is precisely the choice of the product coupling.
6. Standard Families
Named distributions are just laws on that recur; nothing in the theory distinguishes them. The ones used elsewhere in this folder:
| Law | Density / weights | Appears in |
|---|---|---|
| Bernoulli, Binomial | ; | coin flips, concentration |
| Uniform | §5, canonical randomness | |
| Exponential | memorylessness, Poisson processes | |
| Normal | CLT, Brownian motion | |
| Cauchy | no mean; the standard CLT counterexample | |
| Poisson | rare events, counting processes |
The Cauchy law earns its place by being a stable law with no expectation: it shows that the hypotheses of the limit theorems are not decoration.
7. Where This Is Used
- Independence — joint laws that factor.
- Expectation — , made precise.
- Modes of convergence — convergence in distribution is convergence of the laws , not of the functions .
- The Kolmogorov extension theorem — the canonical model of §5 in its general form.