SECTION 1
Historical Context & Motivation
The notion of a random variable is so central to modern probability and statistics that it is difficult to imagine the discipline without it. Yet for centuries, probabilistic reasoning proceeded without any formal mechanism for mapping uncertain outcomes to numerical quantities. Early work by Pascal and Fermat in the seventeenth century focused on counting favorable outcomes in games of chance, treating probability as a ratio of combinatorial quantities rather than as a measure on an abstract space. The critical intellectual leap — viewing a numerical outcome of an experiment as a function defined on a sample space — took shape only gradually, driven by the demands of actuarial science, statistical mechanics, and eventually the quest for logical rigor in mathematics itself.
1713 • Bernoulli's Ars Conjectandi
1812 • Laplace's Théorie analytique
1933 • Kolmogorov's Axiomatization
1946 • Cramér's Mathematical Methods
1960s • Modern Measure-Theoretic Probability
The central question that the concept of a random variable answers is deceptively simple: how do we pass from a qualitative description of uncertainty — the set of possible outcomes of an experiment — to a quantitative, analytically tractable representation that supports calculus, integration, and the full machinery of real analysis? The answer, as Kolmogorov codified it, is to define a measurable function from the sample space to ℝ and then push the probability measure forward through that function, producing what we call a distribution function. Understanding this chain of ideas — from sample space to σ-algebra to measurable mapping to induced distribution — is the foundation upon which virtually all of probability and mathematical statistics is built.
SECTION 2
Core Principles & Definitions
Before defining random variables precisely, it is essential to recall the underlying probability space (Ω, ℱ, P). Here Ω is the sample space (the set of all possible outcomes), ℱ is a σ-algebra of events (subsets of Ω to which probability is assigned), and P is a probability measure on ℱ satisfying Kolmogorov's axioms. A random variable is the bridge that carries this abstract structure into the familiar setting of the real numbers, where we can compute expectations, variances, and perform statistical inference.
Random Variable as Measurable Function
Cumulative Distribution Function (CDF)
Induced (Pushforward) Measure
Discrete vs. Continuous Dichotomy
σ-Algebra Generated by X
KEY TAKEAWAY
SECTION 3
Visual Explanation — From Sample Space to Distribution
The diagram above captures the essential architecture of a random variable. On the left, the sample space Ω contains all possible experimental outcomes, which need not be numerical — they could be sequences of coin flips, molecular configurations, or any abstract set. The random variable X assigns to each outcome a real number, collapsing the potentially complex structure of Ω into a one-dimensional summary. The measurability condition ensures that this collapsing is 'compatible' with the probability structure: any question of the form 'does X fall in a given Borel set?' can be translated back to a well-defined event in the original space, to which the probability measure P can be applied. When we then define FX(x) = P(X ≤ x), we are effectively summarizing all probabilistic behavior of X in a single real-valued function — the cumulative distribution function.
SECTION 4
Mathematical Framework
We now formalize the definitions and state the fundamental properties that make random variables and their distribution functions the workhorses of probability theory. Throughout this section, (Ω, ℱ, P) denotes a probability space and 𝓑(ℝ) the Borel σ-algebra on ℝ.
RANDOM VARIABLE DEFINITION
A function X from Ω to ℝ is a random variable if and only if for every real number x, the set {ω : X(ω) ≤ x} is an event (belongs to ℱ). Equivalently, preimages of all Borel sets lie in ℱ. The equivalence holds because sets of the form (−∞, x] generate 𝓑(ℝ).
CUMULATIVE DISTRIBUTION FUNCTION
FX satisfies three fundamental properties: (1) Non-decreasing: if a ≤ b then FX(a) ≤ FX(b). (2) Right-continuous: lim(x→a⁺) FX(x) = FX(a). (3) Boundary conditions: lim(x→−∞) FX(x) = 0 and lim(x→+∞) FX(x) = 1.
PROBABILITY MASS FUNCTION (DISCRETE CASE)
When X takes values in a countable set {x₁, x₂, …}, the PMF gives the probability of each value. The CDF is then a step function: FX(x) = Σ_{k : ≤ x} pX(xk).
PROBABILITY DENSITY FUNCTION (CONTINUOUS CASE)
When FX is absolutely continuous, the PDF fX is its Radon–Nikodým derivative with respect to Lebesgue measure. Note that fX(x) is not itself a probability; it is a density, and P(X = x) = 0 for any single point.
Measure-Theoretic Subtlety
SECTION 5
Classification of Random Variables & Their Distributions
Random variables are most commonly classified by the nature of their range and the structure of their distribution function. This classification determines which analytical tools — summation, Riemann integration, Lebesgue–Stieltjes integration — are most natural for computing probabilities and expectations. The following diagram and table provide a comprehensive taxonomy.
| Type | Range of X | Characterization | CDF Structure |
|---|---|---|---|
| Discrete | Countable: {x₁, x₂, …} | PMF p(xk) = P(X = xk) | Step function; jumps at mass points |
| Absolutely Continuous | Uncountable (intervals of ℝ) | PDF f(x) = dF/dx (Radon–Nikodým derivative) | Smooth; differentiable almost everywhere |
| Singular Continuous | Uncountable but Lebesgue-null support | No PMF, no PDF; F' = 0 a.e. yet F increases | Continuous but not absolutely continuous (e.g., Cantor distribution) |
| Mixed | Combination of above | Lebesgue decomposition: μ = μd + μac + μsc | Smooth intervals interspersed with jumps (and possibly singular parts) |
Classification of random variables by distribution type
SECTION 6
Worked Example — Constructing and Analyzing a CDF
Consider a random variable X with a mixed distribution. Suppose X has a continuous component on [0, 1) with density f(x) = 1 (uniform) weighted by probability ¾, and a point mass at x = 1 with probability ¼. We will derive the CDF, verify its properties, and compute P(0.5 < X ≤ 1).
Mixed Distribution: CDF Construction and Probability Computation
- 1
Step 1 — Define the Distribution
The probability measure of X is a mixture: PX = ¾ × Uniform[0,1) + ¼ × δ₁, where δ₁ is the Dirac point mass at 1. For the continuous part, f(x) = 1 on [0, 1) means Fcont(x) = x for x ∈ [0,1). The discrete part places all its weight at x = 1.Mixture: ¾ · Uniform[0,1) + ¼ · δ₁ - 2
Step 2 — Build the CDF Piecewise
For x < 0: FX(x) = 0 (no probability mass below 0). For 0 ≤ x < 1: FX(x) = ¾ · x (accumulating the continuous density weighted by ¾). For x ≥ 1: FX(x) = ¾ · 1 + ¼ = 1 (the continuous part is fully accumulated and the point mass at 1 is included).FX(x) = 0 for x < 0; ¾x for 0 ≤ x < 1; 1 for x ≥ 1 - 3
Step 3 — Verify CDF Properties
Non-decreasing: On [0,1), FX(x) = ¾x has positive slope ¾. Right-continuity: At x = 0, lim(x→0⁺) ¾x = 0 = FX(0). At x = 1, lim(x→1⁺) 1 = 1 = FX(1). The left limit at x = 1 is lim(x→1⁻) ¾x = ¾ ≠ 1, confirming a jump of size ¼ at x = 1. Boundary conditions: lim(x→−∞) FX(x) = 0 and lim(x→+∞) FX(x) = 1. ✓All three CDF properties verified. Jump of ¼ at x = 1. - 4
Step 4 — Compute P(0.5 < X ≤ 1)
Using the CDF difference formula: P(a < X ≤ b) = FX(b) − FX(a). Here, P(0.5 < X ≤ 1) = FX(1) − FX(0.5) = 1 − ¾(0.5) = 1 − ⅜ = ⅝. This probability includes both the continuous density on (0.5, 1) — contributing ¾ × 0.5 = ⅜ — and the point mass at 1 contributing ¼. Indeed ⅜ + ¼ = ⅝. ✓P(0.5 < X ≤ 1) = ⅝ = 0.625
SECTION 7
PMF vs. PDF vs. CDF — Strengths & Limitations
In practice, probabilists and statisticians work with whichever characterization of a distribution is most convenient for the problem at hand. Each representation — the PMF, PDF, and CDF — has distinctive strengths and limitations. The following table summarizes the trade-offs.
| Feature | PMF p(x) | PDF f(x) | CDF F(x) |
|---|---|---|---|
| Applicability | Discrete random variables only | Absolutely continuous random variables only | All random variables — universal |
| Direct probability? | Yes: p(x) = P(X = x) | No: f(x) is a density, not a probability | Yes: F(x) = P(X ≤ x) |
| Computing P(a < X ≤ b) | Sum p(x) over x ∈ (a, b] | Integrate f(x) over (a, b] | F(b) − F(a) — no sum or integral needed |
| Uniqueness | Unique for a given discrete distribution | Unique only up to a.e. equivalence | Unique (right-continuous version) |
| Handling mixed distributions | Cannot represent continuous part | Cannot represent point masses | Handles all components seamlessly |
Comparison of distribution characterizations
KEY TAKEAWAY
SECTION 8
Connection to Advanced Theory
The elementary theory of random variables and CDFs serves as the launchpad for a wide array of advanced topics. In this section, we briefly sketch how the foundational ideas connect to multivariate distributions, characteristic functions, convergence theory, and stochastic processes — topics that constitute the remainder of a rigorous probability curriculum.
| Foundation Concept | Advanced Extension | Key New Idea |
|---|---|---|
| Univariate CDF F(x) | Joint CDF F(x₁, …, xn) | Random vectors in ℝⁿ; marginals recovered via limits; independence as factorization F = ∏ Fᵢ |
| PDF / PMF | Characteristic function φ(t) = E[eitX] | Always exists (unlike MGF); uniquely determines distribution; powerful for proving limit theorems |
| Single random variable X | Sequences {Xn} and convergence | Four modes: a.s., in probability, in Lᵖ, in distribution. Convergence in distribution is defined via CDFs: Fn(x) → F(x) at continuity points |
| CDF properties (right-continuity, limits) | Skorokhod space D[0,∞) | Càdlàg paths generalize right-continuous CDFs to stochastic process sample paths; foundational for martingale theory |
| Pushforward measure PX | Conditional distributions | Regular conditional probability; disintegration theorem; conditional expectation as a random variable |
From foundations to advanced probability theory
The probability integral transform is a particularly elegant theorem that underscores the power of the CDF. If X is a continuous random variable with strictly increasing CDF F, then the transformed variable U = F(X) follows a Uniform(0,1) distribution. Conversely, if U ~ Uniform(0,1), then X = F⁻¹(U) has CDF F. This result is the theoretical foundation of inverse-transform sampling in Monte Carlo simulation and connects random variable theory directly to computational statistics. More deeply, it shows that the CDF is not merely a description of a distribution but a canonical transformation that standardizes any continuous random variable to the uniform — a profound structural insight.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Summary — Random Variables & Distribution Functions
Summary
A random variable is a measurable function X : Ω → ℝ, where the measurability condition — requiring that preimages of Borel sets belong to the σ-algebra ℱ — ensures that expressions like P(X ≤ x) are well-defined. The cumulative distribution function (CDF) FX(x) = P(X ≤ x) is the universal descriptor of a random variable's distribution: it is non-decreasing, right-continuous, and satisfies the boundary conditions F(−∞) = 0, F(+∞) = 1. Every function with these three properties is the CDF of some random variable.
Random variables are classified as discrete (described by a PMF and a step-function CDF), absolutely continuous (described by a PDF and a smooth CDF), or mixed/singular (handled via the Lebesgue decomposition). The probability integral transform connects any continuous CDF to the Uniform(0,1) distribution, providing the theoretical basis for Monte Carlo simulation and a deep structural insight into the nature of randomness. These foundational ideas extend naturally to multivariate distributions, characteristic functions, convergence theory, and stochastic processes.