01. Probability Spaces and Random Variables — Where Understanding Distributions Begins
Background 1/5. Every distribution in this series is ultimately "a measure induced by a random variable defined on a probability space." The goal of this page is to make that sentence completely interpretable.
Why begin with axioms?
Starting from intuition, such as "each face has probability 1/6 when a die is rolled," causes no problem in finite cases. But to handle objects such as the alpha-stable distributions that are the final goal of this series—where even the mean may not exist—we need a rigorous foundation for "what probability is." That foundation is Kolmogorov's axiomatic system, on top of which Gaussian, Beta, and alpha-stable distributions are all described in the same language.
Probability space
A probability space is a triple .
1. Sample space
The set of every possible outcome.
- One coin toss:
- One die roll:
- Lifetime of a component: — an uncountably infinite set is also possible.
2. Event space (sigma-algebra)
This is the collection of "questions whose probability can be asked." A collection of subsets of satisfying the following three conditions is called a sigma-algebra (σ-algebra).
- — it must always be possible to ask whether "something happens."
- If , then — if an event can be asked about, so can its complement.
- If , then — a countable union can also be asked about.
When is uncountable, like an interval of real numbers, it is known to be impossible to assign a consistent probability (a notion of length) to every subset (Vitali sets and the Banach–Tarski paradox). A σ-algebra therefore contains only "sets for which probability can safely be asked." On the real line, the Borel σ-algebra generated by open intervals is the standard choice.
3. Probability measure — Kolmogorov's axioms
is a function satisfying three axioms.
- Non-negativity: for every
- Normalization:
- Countable additivity: for pairwise disjoint ,
These three lines are all there is. Conditional probability, independence, Bayes' theorem, the law of large numbers, and the central limit theorem—everything that follows—is a logical consequence of these axioms.
Random variables
A random variable is often introduced as a "random value," but its exact definition is a function.
Not every function qualifies: it must be measurable. For every Borel set , the preimage must belong to . This condition is what makes the question "what is the probability that falls inside ?" meaningful in the first place.
Distribution: the measure induced by a random variable
A random variable creates a new probability measure on the real line.
This is called the distribution (push-forward measure) of . It is precisely what "Gaussian distribution" or "Beta distribution" refers to. We can forget what the original probability space was and perform every calculation using only the measure on the real line.
Three ways to describe a distribution
Cumulative distribution function (CDF)
- Monotonically nondecreasing and right-continuous
- ,
- Every real-valued random variable has a CDF. A CDF always exists even when there is no density or no moments. A distribution such as an alpha-stable distribution, whose density has no closed form, is still completely defined by its CDF.
Probability mass function (PMF, discrete)
When takes only countably many values, is sufficient. Bernoulli, binomial, and Poisson distributions belong here.
Probability density function (PDF, continuous)
If the CDF is absolutely continuous, there is a density satisfying
Points to note:
- is not a probability. It is possible for (for example, near the center of Beta(5,5)). Probability is always obtained through an integral.
- In the continuous case, for every individual point.
Quantile function
This is the generalized inverse of the CDF, . When , the fact that has the same distribution as —inverse transform sampling—is a fundamental principle of random-number generation.
Joint distributions, independence, and conditioning
When handling several random variables together:
- Joint CDF:
- Independence: for every . If densities exist, this is equivalent to .
- Conditional density:
Independence is a central assumption throughout this series. The "independent and identically distributed (i.i.d.)" condition in the central limit theorem uses this exact definition, and likelihood factorization in Bayesian inference comes from conditional independence.
Example: same distribution, different probability spaces
Let , let be the length measure (Lebesgue measure), and define . Then . On the other hand, define on (infinitely many coin tosses), and the same distribution appears. The probability spaces differ, but the distributions are the same. This is why distribution theory is powerful: it abstracts away details of the underlying space and leaves only a measure on the real line.
What to remember from this page
- Probability is an axiomatic system on , and a distribution is the measure pushed onto the real line by a random variable.
- A CDF always exists. A PDF may exist or may have no closed form (foreshadowing alpha-stable distributions).
- A density value is not a probability. Probability is an integral.
- Any distribution can be sampled using its quantile function and a uniform distribution.
Next step
- Expectation, Moments, and Characteristic Functions — how to extract numerical summaries from the measure