Limit Theorems & Product Measures

From Translation to Tools Convergence Theorems for Probability Independence and Product Measures

From Translation to Tools

In Measure-Theoretic Probability, we translated the basic vocabulary of probability into the language of measure theory. Random variables became measurable functions, distributions became pushforward measures, and expectations became Lebesgue integrals. That translation unified discrete and continuous probability under a single integral \(\int g \, dP_X\), where \(X\) is a random variable with distribution \(P_X\) and \(g\) is a Borel function.

This page puts the translated machinery to work. First: when can we interchange limits and expectations? The Monotone Convergence Theorem, Fatou's Lemma, and the Dominated Convergence Theorem were stated for abstract measure spaces in \(L^p\) Completeness & Convergence. They now receive their probabilistic names and applications.

Second: what does independence really mean? The condition of independence \(\mathbb{P}(A \cap B) = \mathbb{P}(A)\,\mathbb{P}(B)\) is elevated to independence of \(\sigma\)-algebras and formalized via product measures and Fubini's theorem. This construction gives "i.i.d. sampling" its mathematical content.

Convergence Theorems for Probability

A recurring challenge in probability and machine learning is the interchange of limits and expectations: \[ \lim_{n \to \infty} \mathbb{E}[X_n] \stackrel{?}{=} \mathbb{E}\!\left[\lim_{n \to \infty} X_n\right]. \] When does this hold? The answer is not always. The conditions under which it does are precisely the subject of the convergence theorems of Lebesgue integration.

We stated and used the Monotone Convergence Theorem (MCT), Fatou's Lemma, and the Dominated Convergence Theorem (DCT) to prove the completeness of \(L^p\). In that context, we were dealing with abstract measure spaces and the Riesz-Fischer Theorem. Here, we give these same theorems their probabilistic names and interpretations. The measure becomes \(\mathbb{P}\), the measurable functions become random variables, the integrals become expectations, and "a.e." becomes "a.s."

The Translation Table

Before stating the theorems, we make the correspondence explicit. Every statement in the left column is literally the same mathematical assertion as the corresponding statement in the right column. Only the vocabulary changes.

Convention: Measure Theory \(\leftrightarrow\) Probability Dictionary

Let \((\Omega, \mathcal{F}, \mathbb{P})\) be a probability space, and write \(\mu = \mathbb{P}\) in the left column.

Measure Theory Probability
Measurable function \(f\) Random variable \(X\)
\(\int_\Omega f \, d\mu\) \(\mathbb{E}[X]\)
Almost everywhere (a.e.) Almost surely (a.s.)
Convergence in measure Convergence in probability
\(f \in L^p(\mu)\) \(X \in L^p(\mathbb{P})\)
Dominating function \(h \in L^1(\mu)\) Integrable bound: \(\mathbb{E}[|Y|] \lt \infty\) with \(|X_n| \leq Y\) a.s.

In Convergence in \(L^p\), we developed the hierarchy of convergence modes for measurable functions and noted that on probability spaces, a.e. convergence becomes a.s. convergence and convergence in measure becomes convergence in probability. In Modes of Convergence, we introduced the probabilistic modes (a.s., in probability, in distribution) and established their hierarchy. We now complete the picture by showing how the three great limit theorems of Lebesgue integration operate within this probabilistic framework.

The Three Limit Theorems in Probability

We state each theorem in probabilistic language, with explicit reference to its analytical counterpart.

Theorem: Monotone Convergence Theorem (Probabilistic Form)

Let \((X_n)\) be a sequence of random variables satisfying \(0 \leq X_1 \leq X_2 \leq \cdots\) a.s., and let \(X = \lim_{n \to \infty} X_n\) (which exists in \([0, \infty]\) a.s. by monotonicity). Then \[ \lim_{n \to \infty} \mathbb{E}[X_n] = \mathbb{E}[X]. \]

Analytical form: MCT with \(\mu = \mathbb{P}\). Under this specialization, a.e. becomes a.s., integrals become expectations, and the two statements are literally identical.

The MCT requires two conditions: nonnegativity and monotone increase. Under these conditions, expectations and limits commute without any integrability assumption. The limit \(\mathbb{E}[X]\) may be \(+\infty\), and the theorem still holds as an equality.

Example: Computing an infinite-series expectation.

Let \(Y_1, Y_2, \ldots\) be nonnegative random variables. Define \(X_n = \sum_{k=1}^n Y_k\). Then \((X_n)\) is nonnegative and increasing, so by the MCT and additivity for nonnegative functions, extended to finite sums by induction: \[ \begin{align*} \mathbb{E}\!\left[\sum_{k=1}^\infty Y_k\right] &= \lim_{n \to \infty} \mathbb{E}\!\left[\sum_{k=1}^n Y_k\right] \\\\ &= \sum_{k=1}^\infty \mathbb{E}[Y_k]. \end{align*} \] This justifies interchanging summation and expectation for nonnegative terms. The step is used constantly in probability, for example in computing expectations of counting random variables.

Theorem: Fatou's Lemma (Probabilistic Form)

Let \((X_n)\) be a sequence of random variables satisfying \(X_n \geq 0\) a.s. Then \[ \mathbb{E}\!\left[\liminf_{n \to \infty} X_n\right] \leq \liminf_{n \to \infty} \mathbb{E}[X_n]. \]

Analytical form: Fatou's Lemma with \(\mu = \mathbb{P}\). This is a literal specialization, with a.e. replaced by a.s. and integrals replaced by expectations.

Fatou's lemma is the safety net. When we cannot verify monotonicity (needed for the MCT) or find a dominating variable (needed for the DCT), Fatou still gives an inequality for nonnegative variables. The inequality can be strict, because probability mass can "escape to infinity" in the limit.

Example: Mass escape.

Let \(X_n = n \cdot \mathbf{1}_{\{U \leq 1/n\}}\), where \(U \sim \operatorname{Uniform}(0,1)\). Then \(\mathbb{E}[X_n] = n \cdot (1/n) = 1\) for all \(n\). But \(X_n \to 0\) a.s. (for any fixed \(\omega\) with \(U(\omega) \gt 0\), eventually \(1/n \lt U(\omega)\) and \(X_n(\omega) = 0\)). Thus \[ \mathbb{E}[\lim X_n] = 0 \lt 1 = \lim \mathbb{E}[X_n]. \] Fatou's inequality is strict here.

Geometrically, as a function of the value of \(U\), \(X_n\) is a spike of height \(n\) on the interval \((0, 1/n]\). The area (expectation) is always \(1\), but the spike narrows and grows without bound. For each fixed value \(u \gt 0\) of \(U\), the spike eventually passes beyond it and leaves zero behind. The mass is not destroyed. It escapes to infinity, beyond the reach of the pointwise limit.

Theorem: Dominated Convergence Theorem (Probabilistic Form)

Let \((X_n)\) be a sequence of random variables converging almost surely to a random variable \(X\). Suppose there exists an integrable dominating variable \(Y\) with \(\mathbb{E}[|Y|] \lt \infty\) and \(|X_n| \leq Y\) a.s. for all \(n\). Then \(\mathbb{E}[|X|] \lt \infty\) and \[ \lim_{n \to \infty} \mathbb{E}[X_n] = \mathbb{E}[X]. \]

Analytical form: DCT with \(\mu = \mathbb{P}\). The dominating function \(h \in L^1(\mu)\) becomes an integrable dominating variable \(Y\), and the statement is otherwise identical.

The DCT is the most commonly applied of the three in practice. It guarantees the full equality \(\lim \mathbb{E} = \mathbb{E}[\lim]\) at the cost of requiring an integrable dominating variable. The domination condition \(|X_n| \leq Y\) with \(\mathbb{E}[|Y|] \lt \infty\) prevents the mass-escape phenomenon seen in the Fatou example above.

A Decision Guide: Which Theorem When?

When we need to interchange \(\lim\) and \(\mathbb{E}\), the choice of theorem depends on what we know about the sequence:

Remark: Interchanging Limits and Expectations

Given a sequence \((X_n)\) with \(X_n \to X\) a.s.:

  1. If \(X_n \geq 0\) and \(X_n \uparrow X\) (nonnegative and increasing): use MCT. No integrability condition is needed, and the limit may be infinite.
  2. If \(X_n \geq 0\) (nonnegative but not necessarily monotone): use Fatou. This yields only \(\mathbb{E}[X] \leq \liminf \mathbb{E}[X_n]\), not equality.
  3. If \(|X_n| \leq Y\) a.s. with \(\mathbb{E}[|Y|] \lt \infty\) (dominated by an integrable variable): use DCT. This yields full equality, and it is the most versatile tool.

The three theorems above provide sufficient conditions for interchanging limits and expectations. A deeper theory, built on uniform integrability and the associated Vitali convergence theorem, gives a necessary and sufficient condition for the stronger statement \(\mathbb{E}[|X_n - X|] \to 0\), which implies \(\mathbb{E}[X_n] \to \mathbb{E}[X]\). For integrable \(X_n\), it states that \(X_n \to X\) in \(L^1\) if and only if both \(X_n \to X\) in probability and \((X_n)\) is uniformly integrable. We state this criterion without proof, and uniform integrability is not defined on this page. Domination by an integrable variable (the DCT hypothesis) is one way to guarantee uniform integrability, but not the only way. This more refined criterion is essential for martingale theory and will arise naturally if that path is pursued.

Connecting to the Convergence Hierarchy

We established the hierarchy of probabilistic convergence modes: \[ \xrightarrow{a.s.} \Longrightarrow \xrightarrow{P} \Longrightarrow \xrightarrow{D}. \] We also proved the analytical counterpart. Convergence in \(L^p\) implies convergence in measure (convergence in probability when \(\mu = \mathbb{P}\)), and, for \(1 \leq p \lt \infty\), a.e. convergence with domination by a function in \(L^p\) implies convergence in \(L^p\) (the \(L^p\)-DCT).

The three limit theorems above add a new perspective to this picture. They tell us when convergence of random variables (here, almost sure convergence) can be upgraded to convergence of expectations. The key insight is:

Remark: Convergence of Variables vs. Convergence of Expectations

Convergence of random variables (a.s., in probability, in distribution) does not automatically imply convergence of their expectations. Additional conditions, such as nonnegativity with monotonicity (MCT) or domination (DCT), are required to pass the limit inside \(\mathbb{E}\), and nonnegativity alone (Fatou) yields only an inequality. Without such conditions, expectations can diverge even when the variables themselves converge.

In the mass-escape example above, \(X_n \to X = 0\) a.s. (the strongest of the three modes in the displayed hierarchy), yet \(\mathbb{E}[X_n] = 1 \not\to 0 = \mathbb{E}[X]\). The limit theorems are precisely the tools that bridge this gap.

Connection to Machine Learning: Gradient-Expectation Interchange

In stochastic gradient descent (SGD), we need the gradient of an expected loss: \[ \nabla_{\boldsymbol{\theta}} \, \mathbb{E}_{X \sim P}\!\bigl[\ell(X, \boldsymbol{\theta})\bigr] \stackrel{?}{=} \mathbb{E}_{X \sim P}\!\bigl[\nabla_{\boldsymbol{\theta}} \, \ell(X, \boldsymbol{\theta})\bigr]. \]

The left side is the true gradient of the risk. The right side is the expectation of sample gradients, the quantity that SGD approximates via mini-batches. Differentiation under the integral sign justifies the interchange. This principle is a standard consequence of the DCT applied to the difference quotients \(\frac{\ell(X, \boldsymbol{\theta} + h \mathbf{e}_j) - \ell(X, \boldsymbol{\theta})}{h}\) along every sequence of nonzero numbers \(h = h_m \to 0\), where \(\boldsymbol{\theta} \in \mathbb{R}^d\) and \(\mathbf{e}_j\) is the \(j\)-th standard basis vector. Suppose that there is a neighborhood \(N\) of \(\boldsymbol{\theta}\), the same for every value \(x\) of \(X\), such that \(\ell(X, \boldsymbol{\theta}')\) is integrable for every \(\boldsymbol{\theta}' \in N\), \(\ell(x, \cdot)\) is differentiable on \(N\) for every \(x\), and an integrable dominating function \(Y(X)\) exists with \(|\partial \ell / \partial \theta_j| \leq Y(X)\) on \(N\) for every \(j\). Then the DCT hypothesis is satisfied, since the mean value theorem bounds the difference quotients by \(Y(X)\).

The DCT argument is one rigorous ingredient, among others, in the analysis of SGD. When these conditions hold, the interchange is exact, and, at a fixed \(\boldsymbol{\theta}\), the average of the gradients at samples drawn from \(P\) is an unbiased estimator of the true gradient of the risk.

When no integrable dominating function exists, the interchange need not hold. Heavy-tailed gradient distributions, reported in some large-scale training runs, are a related but distinct difficulty. In that regime, the average of the sample gradients can remain unbiased while its variance is very large or infinite. The empirical practice of gradient clipping, analyzed in its norm-clipping form as a remedy for exploding gradients in deep recurrent networks (Pascanu, Mikolov & Bengio, 2013), can be read in this light as restoring an effective domination bound, at the price of bias. The historical motivation came from optimization dynamics rather than measure theory, however, and the connection to the DCT is interpretive.

Independence and Product Measures

We defined two events \(A\) and \(B\) to be independent if \(\mathbb{P}(A \cap B) = \mathbb{P}(A)\,\mathbb{P}(B)\). This condition was stated for individual events, without further explanation of why it generalizes correctly to random variables, \(\sigma\)-algebras, or infinite collections. The measure-theoretic framework provides the definitive formulation.

Independence of \(\sigma\)-Algebras

The fundamental definition is not independence of events or of random variables, but independence of \(\sigma\)-algebras. All other notions are derived from it.

Definition: Independence of \(\sigma\)-Algebras

Let \((\Omega, \mathcal{F}, \mathbb{P})\) be a probability space. Sub-\(\sigma\)-algebras \(\mathcal{G}_1, \ldots, \mathcal{G}_n \subseteq \mathcal{F}\) are independent if \[ \mathbb{P}(A_1 \cap \cdots \cap A_n) = \mathbb{P}(A_1) \cdots \mathbb{P}(A_n) \] for every choice of \(A_i \in \mathcal{G}_i\), \(i = 1, \ldots, n\).

An arbitrary (possibly infinite) family \(\{\mathcal{G}_\alpha\}_{\alpha \in I}\) is independent if for every finite collection of distinct indices \(\alpha_1, \ldots, \alpha_n \in I\), the sub-\(\sigma\)-algebras \(\mathcal{G}_{\alpha_1}, \ldots, \mathcal{G}_{\alpha_n}\) are independent.

Why define independence at the level of \(\sigma\)-algebras rather than individual events or random variables? One reason is that this formulation makes stability under measurable transformations immediate. If \(X\) and \(Y\) are independent, then so are \(f(X)\) and \(g(Y)\) for any measurable functions \(f\) and \(g\). This follows immediately from the inclusion \(\sigma(f(X)) \subseteq \sigma(X)\), which says that any information extractable from \(f(X)\) is already contained in the information generated by \(X\). Defining independence via \(\sigma\)-algebras captures this closure property automatically. We make the statement precise below, once independence of random variables has been defined.

Independence of events is the special case where each \(\mathcal{G}_i = \sigma(A_i) = \{\emptyset, A_i, A_i^c, \Omega\}\), the smallest \(\sigma\)-algebra containing \(A_i\). (The elementary condition, namely \(\mathbb{P}\bigl(\bigcap_{i \in J} A_i\bigr) = \prod_{i \in J} \mathbb{P}(A_i)\) for every sub-collection \(J \subseteq \{1, \ldots, n\}\), propagates to every sub-collection \(J\) with any of its \(A_i\) replaced by \(A_i^c\), in particular to all \(2^n\) choices of \(A_i\) or \(A_i^c\). The propagation is an induction on the number of complements, based on the identity \(\mathbb{P}(E \cap A_i^c) = \mathbb{P}(E) - \mathbb{P}(E \cap A_i)\) with \(E\) the intersection of the other sets. The propagated condition yields the full \(\sigma\)-algebra factorization.)

For three or more events, mutual independence, which is the elementary condition above, asks for the product formula on every sub-collection \(J\), not only on pairs, and is strictly stronger than pairwise independence. Toss two fair coins independently, and let \(A\) be the event that the first coin shows heads, \(B\) the event that the second coin shows heads, and \(C\) the event that the two coins agree. Each event has probability \(1/2\), and each of \(A \cap B\), \(A \cap C\), and \(B \cap C\) is the event that both coins show heads, which has probability \(1/4\), so the three events are pairwise independent. But \(\mathbb{P}(A \cap B \cap C) = 1/4 \neq 1/8 = \mathbb{P}(A)\,\mathbb{P}(B)\,\mathbb{P}(C)\), so \(A\), \(B\), and \(C\) are not independent.

Independence of random variables \(X_1, \ldots, X_n\) means that their generated \(\sigma\)-algebras \(\sigma(X_i) = \{X_i^{-1}(B) : B \in \mathcal{B}(\mathbb{R})\}\) are independent:

Definition: Independence of Random Variables

Random variables \(X_1, \ldots, X_n\) are independent if for all Borel sets \(B_1, \ldots, B_n \in \mathcal{B}(\mathbb{R})\), \[ \mathbb{P}(X_1 \in B_1, \ldots, X_n \in B_n) = \prod_{i=1}^n \mathbb{P}(X_i \in B_i). \] Equivalently, the joint distribution factors as a product measure of the marginals: \[ P_{(X_1, \ldots, X_n)} = P_{X_1} \otimes \cdots \otimes P_{X_n}. \]

Proposition: Independence Is Preserved by Borel Functions

Let \(X_1, \ldots, X_n\) be independent random variables and let \(f_1, \ldots, f_n : \mathbb{R} \to \mathbb{R}\) be Borel-measurable. Then \(f_1(X_1), \ldots, f_n(X_n)\) are independent.

Proof.

Each \(f_i(X_i)\) is a random variable by the proposition on composition with a Borel measurable function. Fix Borel sets \(B_1, \ldots, B_n \in \mathcal{B}(\mathbb{R})\). Each preimage \(f_i^{-1}(B_i)\) is again a Borel set, by the definition of Borel measurability. Since \(\{f_i(X_i) \in B_i\} = \{X_i \in f_i^{-1}(B_i)\}\), the product formula of the definition above, applied to the Borel sets \(f_1^{-1}(B_1), \ldots, f_n^{-1}(B_n)\), gives \[ \begin{align*} \mathbb{P}\bigl(f_1(X_1) \in B_1, \ldots, f_n(X_n) \in B_n\bigr) &= \prod_{i=1}^n \mathbb{P}\bigl(X_i \in f_i^{-1}(B_i)\bigr) \\\\ &= \prod_{i=1}^n \mathbb{P}\bigl(f_i(X_i) \in B_i\bigr). \end{align*} \] Since the \(B_i\) were arbitrary, the variables \(f_i(X_i)\) are independent.

The second formulation in the definition of independence of random variables, which factors the joint distribution into a product of marginals, is the form most directly connected to the product measure construction that follows.

A key consequence of independence concerns expectations of products:

Proposition: Expectation of Products

If \(X_1, \ldots, X_n\) are independent random variables with \(\mathbb{E}[|X_i|] \lt \infty\) for each \(i\), then the product \(X_1 \cdots X_n\) is integrable and \[ \mathbb{E}[X_1 \cdots X_n] = \mathbb{E}[X_1] \cdots \mathbb{E}[X_n]. \]

Proof.

We treat all \(n\) factors at once, working from the product formula of the definition of independence rather than from its product-measure form. Every product of finitely many random variables is again a random variable. The proposition on operations preserving measurability shows that the product of two measurable functions is measurable, and induction extends this to any finite number of factors.

Step 1: simple functions of the \(X_i\). For each \(i\), let \(s_i = \sum_{j=1}^{m_i} a_{ij} \mathbf{1}_{B_{ij}}\) with an integer \(m_i \geq 1\), \(a_{ij} \in \mathbb{R}\) and Borel sets \(B_{ij} \in \mathcal{B}(\mathbb{R})\). Expanding the product, we obtain \[ \begin{align*} \prod_{i=1}^n s_i(X_i) &= \sum_{j_1, \ldots, j_n} a_{1 j_1} \cdots a_{n j_n} \, \mathbf{1}_{B_{1 j_1}}(X_1) \cdots \mathbf{1}_{B_{n j_n}}(X_n) \\\\ &= \sum_{j_1, \ldots, j_n} a_{1 j_1} \cdots a_{n j_n} \, \mathbf{1}_{\{X_1 \in B_{1 j_1}, \ldots, X_n \in B_{n j_n}\}}, \end{align*} \] a finite sum of bounded, hence integrable, random variables. The linearity stated in the properties of expectation extends to finite sums of integrable random variables by induction. Applying it together with \(\mathbb{E}[\mathbf{1}_A] = \mathbb{P}(A)\) and the product formula, we find \[ \begin{align*} \mathbb{E}\Bigl[\prod_{i=1}^n s_i(X_i)\Bigr] &= \sum_{j_1, \ldots, j_n} a_{1 j_1} \cdots a_{n j_n} \prod_{i=1}^n \mathbb{P}(X_i \in B_{i j_i}) \\\\ &= \prod_{i=1}^n \sum_{j=1}^{m_i} a_{ij} \, \mathbb{P}(X_i \in B_{ij}) \\\\ &= \prod_{i=1}^n \mathbb{E}[s_i(X_i)]. \end{align*} \]

Step 2: nonnegative variables. Suppose that \(X_i \geq 0\) for each \(i\). For \(k \geq 1\), let \(\varphi_k(x) = \min\bigl(k, \, 2^{-k} \lfloor 2^k x \rfloor\bigr)\) for \(x \geq 0\) and \(\varphi_k(x) = 0\) for \(x \lt 0\). Each \(\varphi_k\) is a Borel function taking finitely many values \(a\), so it has the form of Step 1 with the level sets \(\varphi_k^{-1}(\{a\})\). On \([0, \infty)\) the functions satisfy \(0 \leq \varphi_k \leq \varphi_{k+1}\), and \(\varphi_k(x) \uparrow x\) as \(k \to \infty\). Hence \(\varphi_k(X_i) \uparrow X_i\) for each \(i\), and, since all factors are nonnegative, \(\prod_i \varphi_k(X_i) \uparrow \prod_i X_i\). Step 1 gives \(\mathbb{E}\bigl[\prod_i \varphi_k(X_i)\bigr] = \prod_i \mathbb{E}[\varphi_k(X_i)]\) for every \(k\). The MCT, applied to the left side and to each factor on the right, yields \[ \mathbb{E}[X_1 \cdots X_n] = \mathbb{E}[X_1] \cdots \mathbb{E}[X_n] \quad \text{in } [0, \infty]. \] Here the product on the right is read with the convention \(0 \cdot \infty = 0\), and we check that the limit of the products \(\prod_i \mathbb{E}[\varphi_k(X_i)]\) is this product. If \(\mathbb{E}[X_i] = 0\) for some \(i\), then \(0 \leq \mathbb{E}[\varphi_k(X_i)] \leq \mathbb{E}[X_i] = 0\) for every \(k\) by monotonicity, so the products vanish for every \(k\), and so does their limit. Otherwise every limit \(\mathbb{E}[X_i]\) lies in \((0, \infty]\). If all of them are finite, the products converge by continuity of multiplication. If some limit is \(\infty\), each of the other factors is eventually at least a positive constant, because it increases to a positive limit, so the products tend to \(\infty\), which is the product of the limits.

Step 3: integrable variables. The variables \(|X_1|, \ldots, |X_n|\) are independent by the preservation of independence under Borel functions (the maps \(x \mapsto |x|\) and \(x \mapsto \max(\pm x, 0)\) are continuous, hence Borel measurable), so Step 2 gives \(\mathbb{E}[|X_1 \cdots X_n|] = \prod_i \mathbb{E}[|X_i|] \lt \infty\), and the product is integrable. Write \(X_i = X_i^+ - X_i^-\) with \(X_i^+ = \max(X_i, 0)\) and \(X_i^- = \max(-X_i, 0)\). Multiplying out the factors shows that \(X_1 \cdots X_n\) is the sum over the \(2^n\) sign patterns \(\varepsilon \in \{+, -\}^n\) of \(\pm X_1^{\varepsilon_1} \cdots X_n^{\varepsilon_n}\), where the sign is \(-1\) raised to the number of minus signs in the pattern. For each pattern, \(X_1^{\varepsilon_1}, \ldots, X_n^{\varepsilon_n}\) are independent by the same proposition and nonnegative with \(\mathbb{E}[X_i^{\varepsilon_i}] \leq \mathbb{E}[|X_i|] \lt \infty\), so by Step 2 we have \(\mathbb{E}\bigl[\prod_i X_i^{\varepsilon_i}\bigr] = \prod_i \mathbb{E}[X_i^{\varepsilon_i}]\), which is finite. Linearity over the \(2^n\) integrable terms then gives \[ \begin{align*} \mathbb{E}[X_1 \cdots X_n] &= \prod_{i=1}^n \bigl(\mathbb{E}[X_i^+] - \mathbb{E}[X_i^-]\bigr) \\\\ &= \prod_{i=1}^n \mathbb{E}[X_i]. \end{align*} \] The first equality is the same expansion applied to the real numbers \(\mathbb{E}[X_i^+]\) and \(\mathbb{E}[X_i^-]\), and the second is linearity, since \(X_i^+\) and \(X_i^-\) are integrable.

An elementary version of this identity, product expectation under independence, is what makes the variance additive over independent summands with finite second moments, \(\operatorname{Var}(X + Y) = \operatorname{Var}(X) + \operatorname{Var}(Y)\). The elementary version is also used in the proof of the Weak Law of Large Numbers on the page Modes of Convergence.

The worked example later in this section derives the case \(n = 2\), under the second-moment hypotheses of the variance formula, by a route different from the proof above, through the product measure and Fubini's theorem.

Product Measures

When we say "\(X_1, \ldots, X_n\) are independent," we are asserting that the joint distribution of \((X_1, \ldots, X_n)\) on \(\mathbb{R}^n\) is the product of the marginal distributions. To make this precise, we need the construction of product measures.

Definition: Product \(\sigma\)-Algebra and Product Measure

Let \((\Omega_1, \mathcal{F}_1, \mu_1)\) and \((\Omega_2, \mathcal{F}_2, \mu_2)\) be \(\sigma\)-finite measure spaces.

The product \(\sigma\)-algebra \(\mathcal{F}_1 \otimes \mathcal{F}_2\) is the \(\sigma\)-algebra on \(\Omega_1 \times \Omega_2\) generated by all measurable rectangles \(A_1 \times A_2\) with \(A_1 \in \mathcal{F}_1\), \(A_2 \in \mathcal{F}_2\).

There exists a unique measure \(\mu_1 \otimes \mu_2\) on \((\Omega_1 \times \Omega_2, \, \mathcal{F}_1 \otimes \mathcal{F}_2)\) satisfying \[ (\mu_1 \otimes \mu_2)(A_1 \times A_2) = \mu_1(A_1) \cdot \mu_2(A_2) \] for all measurable rectangles, with the convention \(0 \cdot \infty = 0\). This is the product measure.

For probability measures, the case we need, the existence and uniqueness of the product measure follow from Carathéodory's extension theorem. The formula \(\mu_1(A_1)\,\mu_2(A_2)\) extends additively to the algebra of finite disjoint unions of rectangles, and its \(\sigma\)-additivity on this algebra is verified by applying the MCT to indicator functions of countable disjoint rectangle decompositions. The extension theorem then promotes this premeasure to a unique probability measure on the full product \(\sigma\)-algebra. The general \(\sigma\)-finite case uses the same construction together with the version of the extension theorem for \(\sigma\)-finite premeasures, which lies beyond the scope of this page. In that version, \(\sigma\)-finiteness is what ensures uniqueness.

For probability spaces, \(\sigma\)-finiteness is automatic (\(\mathbb{P}(\Omega) = 1 \lt \infty\)), so the product always exists. The construction extends to finite products \(\mu_1 \otimes \cdots \otimes \mu_n\) on the \(\sigma\)-algebra \(\mathcal{F}_1 \otimes \cdots \otimes \mathcal{F}_n\) generated by the measurable rectangles \(A_1 \times \cdots \times A_n\) with \(A_i \in \mathcal{F}_i\), by an induction on \(n\) whose steps we take for granted here. For countably infinite products of probability measures, the product construction can be extended by verifying \(\sigma\)-additivity on the algebra of cylinder sets (sets determined by finitely many coordinates through a set in \(\mathcal{F}_1 \otimes \cdots \otimes \mathcal{F}_n\)) and applying Carathéodory's extension theorem. For real-valued coordinates, as in the sequences of random variables considered here, the result is a special case of Kolmogorov's extension theorem, which we do not prove here.

Fubini's Theorem and Tonelli's Theorem

The central computational tool for product measures is the ability to evaluate a double integral as an iterated integral, that is, to "integrate out" one variable at a time. This is the content of Fubini's and Tonelli's theorems.

Theorem: Tonelli's Theorem

Let \((\Omega_1, \mathcal{F}_1, \mu_1)\) and \((\Omega_2, \mathcal{F}_2, \mu_2)\) be \(\sigma\)-finite measure spaces, and let \(f : \Omega_1 \times \Omega_2 \to [0, \infty]\) be measurable with respect to \(\mathcal{F}_1 \otimes \mathcal{F}_2\). Then the functions \(\omega_1 \mapsto \int_{\Omega_2} f(\omega_1, \omega_2) \, d\mu_2(\omega_2)\) and \(\omega_2 \mapsto \int_{\Omega_1} f(\omega_1, \omega_2) \, d\mu_1(\omega_1)\) are measurable, and \[ \begin{align*} \int_{\Omega_1 \times \Omega_2} f \, d(\mu_1 \otimes \mu_2) &= \int_{\Omega_1} \!\left(\int_{\Omega_2} f(\omega_1, \omega_2) \, d\mu_2(\omega_2)\right) d\mu_1(\omega_1) \\\\ &= \int_{\Omega_2} \!\left(\int_{\Omega_1} f(\omega_1, \omega_2) \, d\mu_1(\omega_1)\right) d\mu_2(\omega_2). \end{align*} \] In particular, the order of integration may be exchanged freely.

Tonelli's theorem applies to nonnegative measurable functions without any integrability condition, and the integrals may be infinite. When the function is not necessarily nonnegative, we need an additional assumption:

Theorem: Fubini's Theorem

Under the same setup as Tonelli's theorem, suppose \(f : \Omega_1 \times \Omega_2 \to \mathbb{R}\) is \((\mathcal{F}_1 \otimes \mathcal{F}_2)\)-measurable and integrable with respect to the product measure: \[ \int_{\Omega_1 \times \Omega_2} |f| \, d(\mu_1 \otimes \mu_2) \lt \infty. \] Then for \(\mu_1\)-a.e. \(\omega_1\), the function \(\omega_2 \mapsto f(\omega_1, \omega_2)\) is \(\mu_2\)-integrable. The function \(\omega_1 \mapsto \int_{\Omega_2} f(\omega_1, \omega_2) \, d\mu_2(\omega_2)\) (defined \(\mu_1\)-a.e.) is \(\mu_1\)-integrable, and \[ \begin{align*} \int_{\Omega_1 \times \Omega_2} f \, d(\mu_1 \otimes \mu_2) &= \int_{\Omega_1} \!\left(\int_{\Omega_2} f(\omega_1, \omega_2) \, d\mu_2(\omega_2)\right) d\mu_1(\omega_1) \\\\ &= \int_{\Omega_2} \!\left(\int_{\Omega_1} f(\omega_1, \omega_2) \, d\mu_1(\omega_1)\right) d\mu_2(\omega_2). \end{align*} \] The symmetric statement with the roles of \(\omega_1, \omega_2\) exchanged holds as well.

The relationship between the two theorems mirrors the MCT-DCT relationship. Tonelli handles nonnegative functions unconditionally, whereas Fubini handles general (sign-changing) functions at the cost of an integrability condition.

A standard workflow is to apply Tonelli to \(|f|\) first to verify the integrability condition and then to invoke Fubini on \(f\) itself. This order is logically sound because Tonelli's theorem requires no integrability prerequisite and remains valid even when the iterated integrals evaluate to \(+\infty\). If Tonelli applied to \(|f|\) yields a finite value, the integrability hypothesis for Fubini is rigorously confirmed.

We do not prove Tonelli's and Fubini's theorems here. The proofs proceed by the standard three-step measure-theoretic induction (indicators, then simple functions, then general measurable functions via MCT), combined with the monotone class theorem to promote rectangle-level identities to the full product \(\sigma\)-algebra.

The Mathematical Justification of i.i.d. Sampling

We can now answer a question that has been implicit: what does it mean, precisely, for \(X_1, X_2, \ldots, X_n\) to be "i.i.d. with distribution \(P\)"?

Definition: i.i.d. Random Variables

Random variables \(X_1, \ldots, X_n\) on a probability space \((\Omega, \mathcal{F}, \mathbb{P})\) are independent and identically distributed (i.i.d.) with common distribution \(P\) if:

  1. \(X_1, \ldots, X_n\) are independent (in the sense of \(\sigma\)-algebra independence), and
  2. \(P_{X_i} = P\) for each \(i = 1, \ldots, n\) (each has the same pushforward measure).

Condition 2 alone says the variables have the same distribution. Condition 1 says that their joint distribution factors into the marginals, and Condition 2 identifies every factor with \(P\): \[ P_{(X_1, \ldots, X_n)} = P_{X_1} \otimes \cdots \otimes P_{X_n} = P^{\otimes n}. \] The product measure \(P^{\otimes n}\) on \((\mathbb{R}^n, \mathcal{B}(\mathbb{R})^{\otimes n})\) is the mathematical model for "drawing \(n\) independent samples from \(P\)." Here \(\mathcal{B}(\mathbb{R})^{\otimes n} = \mathcal{B}(\mathbb{R}^n)\) by the proof of component-wise measurability. The coordinate projections \(\pi_i : \mathbb{R}^n \to \mathbb{R}\), \(\pi_i(x_1, \ldots, x_n) = x_i\), play the role of the random variables \(X_i\) in this model.

For an infinite sequence \((X_i)_{i=1}^\infty\), the i.i.d. property is imposed on every finite sub-collection. Equivalently, the joint distribution on \(\bigl(\mathbb{R}^{\mathbb{N}}, \, \bigotimes_{i=1}^\infty \mathcal{B}(\mathbb{R})\bigr)\) is the infinite product measure \(P^{\otimes \infty}\) constructed via Kolmogorov's extension theorem, and the coordinate projections serve as the random variables. Here \(\bigotimes_{i=1}^\infty \mathcal{B}(\mathbb{R})\) is the \(\sigma\)-algebra generated by the cylinder sets, and the map \(\omega \mapsto (X_i(\omega))_{i \geq 1}\) is measurable for it, since, for each \(n\) and each \(C \in \mathcal{B}(\mathbb{R})^{\otimes n}\), the preimage of the cylinder set of sequences whose first \(n\) coordinates lie in \(C\) is \(\{(X_1, \ldots, X_n) \in C\}\), an event by component-wise measurability. The joint distribution and \(P^{\otimes \infty}\) agree on the cylinder sets, which form a \(\pi\)-system, so they coincide by uniqueness of measures.

With this formalization, the laws of large numbers gain their full meaning. The Strong Law says that if \(\int_{\mathbb{R}} |x| \, dP(x) \lt \infty\), then \[ \frac{1}{n} \sum_{i=1}^n \pi_i \xrightarrow{a.s.} \int_{\mathbb{R}} x \, dP(x) \quad \text{under } P^{\otimes \infty}. \]

The infinite product measure is a foundational construction for the study of infinite i.i.d. sequences of random variables. It guarantees that an infinite i.i.d. sequence \((X_1, X_2, \ldots)\) with any prescribed distribution \(P\) lives on a single probability space. Without such a space, asymptotic statements like the Strong Law ("as \(n \to \infty\), the sample mean converges a.s.") would lack a well-defined probability space on which to measure convergence.

Example: Fubini justifies the variance formula for sums.

Let \(X, Y\) be independent with \(\mathbb{E}[X^2], \mathbb{E}[Y^2] \lt \infty\). The claim \(\operatorname{Var}(X + Y) = \operatorname{Var}(X) + \operatorname{Var}(Y)\) requires \(\mathbb{E}[XY] = \mathbb{E}[X]\,\mathbb{E}[Y]\). Under independence, the joint distribution of \((X, Y)\) is \(P_X \otimes P_Y\). The change-of-variable formula, whose proof carries over verbatim to the random vector \((X, Y)\) and a Borel function \(g : \mathbb{R}^2 \to \mathbb{R}\), turns \(\mathbb{E}[g(X, Y)]\) into an integral against \(P_X \otimes P_Y\). By Fubini: \[ \begin{align*} \mathbb{E}[XY] &= \int_{\mathbb{R}^2} x \, y \, d(P_X \otimes P_Y)(x, y) \\\\ &= \int_{\mathbb{R}} x \, dP_X(x) \cdot \int_{\mathbb{R}} y \, dP_Y(y) \\\\ &= \mathbb{E}[X] \cdot \mathbb{E}[Y]. \end{align*} \]

Tonelli's theorem ensures that the application is valid. The same two steps applied to \(|xy|\), with Tonelli in place of Fubini, give \(\mathbb{E}[|XY|] = \mathbb{E}[|X|] \cdot \mathbb{E}[|Y|]\). Since \(\mathbb{E}[X^2] \lt \infty\) implies \(\mathbb{E}[|X|] \lt \infty\) by the remark on moments as \(L^p\) membership and the inclusion \(L^2 \subseteq L^1\) on a probability space (and likewise for \(Y\)), the integrability condition for Fubini is confirmed.

Connection to Machine Learning: Why i.i.d. Matters

Many of the standard convergence guarantees in machine learning assume that the training data \((x_1, y_1), \ldots, (x_n, y_n)\) are i.i.d. draws from some distribution \(P\). Examples include consistency of MLE, convergence of empirical risk to population risk, and validity of cross-validation.

The product measures \(P^{\otimes n}\) and, for statements as \(n \to \infty\), \(P^{\otimes \infty}\) are the joint distributions that the i.i.d. assumption behind these guarantees prescribes. Each defines a canonical probability space on which such a sample can be realized, and Fubini's theorem is one tool that lets us decompose expectations of products of functions of different observations into products of expectations over individual observations. The construction of \(P^{\otimes n}\) and \(P^{\otimes \infty}\) also shows that a probability space carrying such a sample exists.

The i.i.d. assumption fails for time-series data, reinforcement learning trajectories, and data collected with adaptive sampling. In those settings the product measure model breaks down, and the theorems of this section no longer apply directly. Understanding what the assumption buys us is essential to recognizing when we can and cannot rely on it.