Independence of Random Variables
Suppose you flip a fair coin and roll a fair die at the same time. Does knowing the coin landed heads tell you anything about the die? Common sense says no — the two physical processes do not interact. Probability theory makes this intuition precise through the notion of independence. Independence is arguably the single most important simplifying assumption in probability. It is what lets us multiply probabilities, add variances, and prove laws of large numbers and central limit theorems. Without it, joint distributions can encode arbitrarily tangled dependencies. Such dependencies resist any general analysis. The idea matters because most of probability's computational machinery relies on it. This includes the binomial distribution, Monte Carlo simulation, and the statistical theory of random sampling. All are built on sequences of independent random variables. Independence is not merely "uncorrelated" or "the events don't seem related." It is a strong, exactly quantifiable condition on the joint distribution. Confusing independence with the weaker condition of zero correlation is a common error. This mistake is frequent in applied probability and statistics. The big picture is that independence admits several logically equivalent formulations. These include factorization of the joint CDF, and factorization of the joint density or mass function. They also include factorization of expectations of products of functions. For events, there is the multiplication rule. Each formulation is useful in different settings. Factorized densities are convenient for computing integrals. The expectation-factorization criterion is the cleanest way to prove independence is preserved under transformations. This article gives the rigorous definition of independence for two and for many random variables. It proves the equivalence of its main characterizations. It works through fully asymmetric numerical examples. It shows precisely what fails when independence is weakened. This weakening can be to pairwise independence or to zero correlation. It sets up the machinery needed for Sums of Random Variables and Convolution, Covariance and Correlation, and The Weak Law of Large Numbers.
- Independence of and means their joint CDF factors: for all .
- Equivalently, joint density/mass factors as wherever it is defined.
- Equivalently again, for all bounded measurable .
- Independence implies zero covariance, but the converse is false in general.
- Pairwise independence of a collection does not imply mutual (joint) independence.
- Key idea: independence is a factorization statement about the entire joint law, not just about a summary statistic like correlation.
Where this lives today
Independence assumptions drive statistical inference: simple random sampling assumes independent, identically distributed (i.i.d.) observations, which justifies standard error formulas and hypothesis tests. In machine learning, the "naive Bayes" classifier explicitly assumes conditional independence of features given the class label, trading some accuracy for tractable computation. Cryptography relies on independence of key bits and of successive outputs of pseudo-random generators; a detectable dependence between output bits is treated as a cryptographic weakness. In statistical physics, independence (or its controlled failure, as in Markov chains and correlated spin systems) underlies mean-field approximations. In queueing theory and network engineering, independent interarrival and service times make Poisson process models and queueing formulas tractable. Independence is also the structural hypothesis behind Sums of Random Variables and Convolution (where independence lets you compute the distribution of by convolving densities), behind Covariance and Correlation (which measures how far a joint distribution departs from independence, at least linearly), and behind The Weak Law of Large Numbers (which requires independence, or a suitable weakening, to guarantee sample averages concentrate around the mean).
:::quiz[Which technique is used in the theorem's proof to extend the CDF factorization from rays to all Borel sets?]
- Integration by parts
- The Cauchy–Schwarz inequality
- Dynkin's - theorem applied to a generating -system ✓
- Direct computation for every possible Borel set one at a time
:::faq[If and are independent, is always equal to , even if are not integrable?] The factorization requires integrability care: if or fails to have finite expectation, both sides may be undefined or the identity may fail to make sense (e.g. situations). The theorem's expectation-factorization characterization is stated cleanly for bounded measurable , and extended to nonnegative via monotone convergence, and to general integrable provided the relevant expectations exist; independence guarantees that if are independent and both integrable, then is integrable and holds without further conditions.
Ask the tutor: Why does independence of jointly Gaussian, uncorrelated random variables hold even though it fails in general?
Let and be random variables defined on a common probability space , with joint cumulative distribution function
Let and denote the marginal CDFs. We say and are independent if
More generally, random variables are mutually independent (or simply independent) if their joint CDF factors:
An infinite collection is independent if every finite subcollection is independent in the above sense. Two events are independent if ; this is recovered as the special case , .
Intuition
Think of the joint CDF as encoding all information about how and relate — not just their individual behavior, but how knowledge of one constrains the other. Independence says this joint object contains no more information than the two marginals separately: you can reconstruct the whole joint law by multiplying the two one-dimensional pieces. Geometrically, when have a joint density, independence forces the density's level sets and support to behave like a product — probability mass spreads over a rectangle-like grid whose "row totals" and "column totals" alone determine every cell. A helpful mental picture: partition the plane into a grid of thin vertical strips and horizontal strips . Under independence, the probability assigned to the small rectangle is exactly the product of the strip probabilities — no cell is "boosted" or "suppressed" relative to what the marginals alone predict. This is why independence is so much stronger than "no linear trend" (zero correlation): correlation only checks a linear summary, while independence checks every cell of the grid simultaneously, including nonlinear dependencies like hiding inside a symmetric marginal.
The main theorem
Let and be random variables on a probability space . The following statements are equivalent.
(a) (CDF factorization) for all .
(b) (Event factorization) For all Borel sets ,
(c) (Expectation factorization) For all bounded Borel-measurable ,
and both sides are well defined whenever are integrable (in particular this includes the case merely nonnegative and Borel measurable, by monotone convergence).
(d) (Density/mass factorization, when applicable) If are both discrete, (a) holds if and only if
If has a joint density , then (a) holds if and only if and each have densities with
We prove (a) (b) (c) for general random variables, using the technique of extending an identity from a generating class of sets to all Borel sets via Dynkin's - theorem, and then via a standard monotone-class / simple-function approximation argument for the expectation statement. We then prove (d) as a corollary using differentiation and integration.
(b) (a). Take and . Then , , , so (a) is the special case of (b) with these sets. This direction is immediate.
(a) (b). This is the substantial direction; we use the - theorem (Dynkin's theorem). Step 1 (fix , vary over a -system). Fix and let . Define the collection
Let , a -system (closed under finite intersection, since ) that generates . By hypothesis (a), . Step 2 ( is a -system). We check the three defining properties.
- since .
- If , then for the complement ,
using in the middle step. So .
- If are pairwise disjoint with union , then are pairwise disjoint with union , so by countable additivity
where the last equality uses countable additivity of again. So . Hence is a -system containing the -system . By Dynkin's - theorem, . Since trivially , we get . So for every Borel and every ,
Step 3 (fix , vary over the same argument). Now fix a Borel set satisfying for all , and define
By , contains the -system . The identical argument as in Step 2 (complements via subtraction, countable unions via disjoint additivity) shows is a -system, hence by Dynkin's theorem again. Since was an arbitrary Borel set satisfying — and every Borel set does, by Step 2 — this proves (b) in full generality. (a)(b)
(b) (c). First suppose , are indicators of Borel sets. Then
using (b) in the third equality. By linearity of expectation, the identity extends to simple functions , (finite linear combinations of indicators of Borel sets):
For general bounded measurable , choose increasing sequences of nonnegative simple functions and pointwise (standard simple-function approximation of measurable functions). Then pointwise, and by the Monotone Convergence Theorem,
where the last equality uses monotone convergence separately on each factor. For general bounded measurable , decompose , into nonnegative parts and expand ; apply the nonnegative case to each of the four terms and use linearity of expectation (all terms are integrable since are bounded). This proves (c) for bounded ; the extension to nonnegative unbounded follows the same monotone-convergence argument, and to integrable by the same decomposition provided integrability of the products holds (this is exactly the content of the parenthetical in (c)).
(c) (b). Take , (bounded, measurable); (c) directly gives , which is (b). (b)(c)
Proof of (d), discrete case. Suppose discrete with countable ranges . If (a)/(b) holds, apply (b) with (singletons are Borel):
Conversely, if for all , then for any Borel ,
which is (b), equivalent to (a).
Proof of (d), continuous case. Suppose has joint density , i.e. . Suppose have marginal densities and a.e. Then
by Fubini's theorem (the integrand is nonnegative, so Tonelli applies without further integrability hypotheses), giving (a). Conversely, suppose (a) holds and has a joint density . Then has marginal density and likewise . From (a), for all ,
where the right side used Fubini/Tonelli to write the product of two integrals as one double integral. Since this holds for every , differentiating both sides with respect to then (valid at every Lebesgue point of the respective integrands, i.e. Lebesgue-almost everywhere, by the Lebesgue differentiation theorem) gives
This completes the proof of (d), and hence of the theorem.
∎If and are independent, and are Borel measurable, then and are independent.
For Borel sets ,
using characterization (b) of the theorem with , (both Borel since are measurable). The right side equals , which is (b) for .
∎Worked examples
Example 1: A discrete asymmetric joint distribution. Let and have the joint probability mass function
| row total | |||
|---|---|---|---|
| col total |
Check independence via (d): we need for all nine (three times... here six) cells. ; .
- ✓ (matches table)
- ✓
- ✓
- ✓
- ✓
- ✓
All six cells match, so and are independent despite the deliberately asymmetric (non-uniform, non-symmetric) marginals — independence is about factorization, not about the marginals looking "nice." As a further check via expectation factorization (c), take , :
Compute , and , so . Direct computation:
Matches, consistent with independence (as it must, by the theorem).
Example 2: A continuous example with genuinely non-symmetric densities on non-rectangular-looking but factorizable support. Let have density on (zero elsewhere), and have density on (zero elsewhere) — both are valid densities since , . Define the joint density
This is a product , so by part (d) of the theorem and are independent, and moreover we've constructed an independent pair by simply multiplying two arbitrary one-dimensional densities together — this is the standard method of building independent variables. Verify via a genuinely nontrivial event-factorization check (characterization (b)): let , .
Direct joint computation:
Compute , and . Product: . Matches exactly, confirming independence numerically on an asymmetric pair of sets.
The theorem's characterization (c) shows independence forces for the specific choice — i.e., independence implies zero covariance. One might be tempted to think the converse holds: that uncorrelated implies independent. This is false, and dropping the full-generality requirement in (c) — using it only for the single pair instead of all bounded measurable — is exactly the gap that breaks the implication. Let be uniform on , each with probability , and let . Clearly is a deterministic (and highly dependent) function of : knowing tells you exactly. So are about as dependent as two variables can be, and in particular not independent — e.g. . Yet compute the covariance. First,
Next,
So . Thus and are uncorrelated but not independent. The failure is precisely because characterization (c) requires the factorization for all bounded measurable , not merely the identity functions. Here, taking and exposes the dependence:
while . This single failed instance of the "for all " clause certifies dependence, illustrating why the theorem demands the quantifier "for all bounded measurable " rather than just linear ones — weakening it to only linear gives a strictly weaker notion (uncorrelatedness), not independence.
Scope, edge cases & common traps
| Situation | What holds | What fails / must be checked |
|---|---|---|
| independent | , , | — |
| Linear dependence removed | Does not imply independence (see counterexample) | |
| Pairwise independent () | Each pair factors | Mutual independence can fail (classic example below) |
| jointly Gaussian, uncorrelated | Independence does hold (special extra structure of the multivariate normal) | Only true because of the specific joint-Gaussian form; not a general fact |
| Independent , then | Independent for any Borel | Requires measurable; always true otherwise |
A standard example showing pairwise independence does not imply mutual independence: let be independent fair coin flips valued in , and set (XOR, i.e. iff ). One can check every pair among is independent (each pair reproduces the uniform product distribution on ), yet the triple is not mutually independent because is a deterministic function of : .
The mathematician behind it
Origins · 1 minAndrei Nikolaevich Kolmogorov and how this was discovered
Kolmogorov placed probability theory on rigorous measure-theoretic foundations in his 1933 monograph Grundbegriffe der Wahrscheinlichkeitsrechnung, defining a probability space as a measure space with total mass one. Within this framework he gave the modern definition of independence as factorization of joint probabilities over -algebras, replacing older, informally stated notions. His axiomatic approach unified previously disparate results — laws of large numbers, zero-one laws, strong limit theorems — under a single rigorous language, and independence became the structural hypothesis on which nearly all of that machinery rests.
Is independence the same as "uncorrelated"?
No. Independence is a statement about the entire joint distribution: every event about must be probabilistically unrelated to every event about . Uncorrelatedness only says the linear association measured by is zero. Independence implies uncorrelatedness (take to be the identity in the expectation-factorization criterion), but the converse fails whenever there is nonlinear dependence, as in the counterexample with symmetric around zero. The only broad exception is jointly Gaussian random variables, where uncorrelated and independent do coincide, because of the special algebraic form of the multivariate normal density.
Why do we need the joint CDF rather than just the two marginal CDFs to define independence?
Two marginal distributions never determine the joint distribution by themselves; infinitely many joint distributions share the same pair of marginals (this is the content of copula theory). Independence is precisely the strongest possible statement pinning the joint distribution down uniquely as the product measure. Stating independence via the joint CDF (or joint density/mass function) directly encodes this pinning-down; marginals alone carry no information about dependence structure.
Does independence of and imply independence of and ?
Yes. This is exactly the corollary proven above: if and are Borel measurable functions, then and are independent. Applying this with and gives . More generally, independence is preserved under applying separate measurable transformations to each variable, since preimages of Borel sets under measurable functions are still Borel, which is all the proof needs.
Can three variables be independent in pairs but not all together?
Yes, and this is a common trap. The canonical example uses two independent fair coins and their XOR . Every pair among is independent, since each pair reproduces the uniform distribution on . But the triple is not mutually independent: is completely determined by , so while the product of the three individual probabilities is .
How is independence used to compute the distribution of a sum ?
When are independent with densities , the density of is the convolution . This formula relies critically on independence: it comes from writing , using , which is exactly independence. Without independence, no such simple formula exists in general, and this convolution identity is developed fully in Sums of Random Variables and Convolution.
Why does the definition use the CDF instead of the density or mass function directly?
Not every random variable has a probability density (continuous random variables) or is discrete; some distributions are neither (e.g. mixtures, or singular continuous distributions like the Cantor distribution). The CDF is always well-defined for any random variable, so defining independence via CDF factorization gives a definition with no restriction on the type of distribution. The density/mass factorization criteria are then derived as convenient equivalent tests that apply specifically when those objects exist, as shown in part (d) of the theorem.