Why Test Independence with Distribution Functions?
Independence of random vectors is defined through factorization of probabilities for all Borel sets. That definition is exact, but it appears to require checking an enormous collection of sets. Distribution functions provide a more structured test: they record probabilities on lower-left rectangles, a family of sets that is simple to describe and still generates the Borel sets.
The key point is not that lower-left rectangles are the only sets that matter. It is that they form a sufficiently rich family: if the joint and product laws agree on them, then the laws agree everywhere. We will make that statement precise and prove it.
Joint Distribution Functions of Real Vectors
Let \(X=(X_1,\ldots,X_m)\) be a random vector with values in \(\mathbb{R}^m\). For \(x=(x_1,\ldots,x_m)\in\mathbb{R}^m\), write \(X\le x\) to mean \(X_i\le x_i\) for every coordinate \(i\). The distribution function of \(X\) is the function \(F_X:\mathbb{R}^m\to[0,1]\) defined by the probability of the lower-left rectangle ending at \(x\).
The event in this definition is the rectangle \[ (-\infty,x_1]\times\cdots\times(-\infty,x_m] \times(-\infty,y_1]\times\cdots\times(-\infty,y_n]. \] The inequalities are coordinatewise. In particular, when \(X\) is a vector, \(F_X(x)\) is not merely a list of its one-dimensional marginal distribution functions; it records the probability that all coordinates meet their respective bounds at once.
Recall that \(X\) and \(Y\) are independent if \(\mathbb{P}(X\in A,\ Y\in B)=\mathbb{P}(X\in A)\mathbb{P}(Y\in B)\) for every Borel set \(A\subseteq\mathbb{R}^m\) and every Borel set \(B\subseteq\mathbb{R}^n\). The rectangle test reduces this condition to the lower-left rectangles.
The Rectangle Criterion
Proof. First suppose \(X\) and \(Y\) are independent. For any fixed \(x\) and \(y\), the events \(\{X\le x\}\) and \(\{Y\le y\}\) belong to the respective sigma-algebras generated by the random vectors. Independence therefore gives
For the converse, let \(\mu\) be the law of \((X,Y)\) on \(\mathbb{R}^{m+n}\), and let \(\nu\) be the product of the marginal laws of \(X\) and \(Y\). For \(x\in\mathbb{R}^m\) and \(y\in\mathbb{R}^n\), set
The assumed factorization says exactly that \(\mu(C_x\times D_y)=\nu(C_x\times D_y)\) for all \(x,y\). The family of these product rectangles, together with the whole space, is closed under finite intersections: intersecting two such rectangles replaces each coordinate bound by the smaller of the two bounds. It is therefore a \(\pi\)-system.
This \(\pi\)-system generates the Borel sets of \(\mathbb{R}^{m+n}\). Indeed, lower-left orthants generate the Borel sets in each Euclidean factor, and products of generating sets generate the product Borel sigma-algebra, which is the Borel sigma-algebra of \(\mathbb{R}^{m+n}\). The two probability measures \(\mu\) and \(\nu\) agree on a generating \(\pi\)-system and both have total mass one. The \(\pi\)-\(\lambda\) theorem, equivalently the uniqueness theorem for finite measures on a generating \(\pi\)-system, gives \(\mu=\nu\). Thus the joint law is the product of its marginals, which is equivalent to independence of \(X\) and \(Y\).
For completeness, the measure-uniqueness step uses the following observation: the class of Borel sets on which two probability measures agree is a \(\lambda\)-system. It contains the whole space, is closed under complements, and is closed under countable disjoint unions by countable additivity. If it contains a generating \(\pi\)-system, the \(\pi\)-\(\lambda\) theorem says it contains the generated sigma-algebra. This proves the required equality of laws. \(\square\)
Worked Example: Independent Uniform Random Variables
Worked Example: Independent Uniform Random Variables
Let \(X\) and \(Y\) be independent random variables, each uniformly distributed on \([0,1]\). Define \(G(t)=\mathbb{P}(X\le t)\), so
The same function is the distribution function of \(Y\). Independence gives, for all real \(x,y\),
For example, if \(0\le x<1\) and \(0\le y<1\), the event is a rectangle of area \(xy\) in the unit square, so its probability is \(xy\). If \(x<0\), both sides are zero; if \(x\ge1\), the condition \(X\le x\) imposes no restriction and both sides reduce to \(G(y)\). The same checks apply to the \(y\)-threshold. Thus the factorization holds across the boundary cases as well as in the interior, in agreement with the rectangle criterion.
Worked Example: A Factorization Failure Detects Dependence
Worked Example: A Factorization Failure Detects Dependence
Let \(U\) be uniformly distributed on \([0,1]\), and set \(X=U\) and \(Y=U\). Both marginal distribution functions are \(G\) from the previous example. Since \(X=Y\), the joint event \(\{X\le x,\ Y\le y\}\) is the event \(\{U\le \min(x,y)\}\). Hence
Take \(x=y=1/2\). Then
The values disagree, so \(X\) and \(Y\) are not independent. A single threshold pair is enough to disprove independence, even though the theorem requires factorization at every pair to establish it.
Worked Example: A Vector-Valued Distribution
Worked Example: A Vector-Valued Distribution
Let \(X\) take the values \((0,0)\) and \((1,1)\), each with probability \(1/2\). Let \(Y\) be independent of \(X\), with \(\mathbb{P}(Y=0)=2/3\) and \(\mathbb{P}(Y=1)=1/3\). For \(a,b\in\mathbb{R}\),
For \(c\in\mathbb{R}\), \(F_Y(c)=0\) if \(c<0\), \(F_Y(c)=2/3\) if \(0\le c<1\), and \(F_Y(c)=1\) if \(c\ge1\). Independence implies the complete joint distribution function is
At \((a,b,c)=(1/2,1/2,1/2)\), the event requires \(X=(0,0)\) and \(Y=0\). Its probability is \((1/2)(2/3)=1/3\), and the product of the marginal distribution functions is also \((1/2)(2/3)=1/3\). If either \(a\) or \(b\) is negative, the joint event is impossible and both sides are zero. If both are at least \(1\), the \(X\)-condition is automatic and the joint probability equals \(F_Y(c)\), matching \(F_X(a,b)F_Y(c)=1\cdot F_Y(c)\). This illustrates why the vector threshold must be checked jointly across all coordinates of \(X\).
When a Countable Test Is Enough
The theorem asks for factorization at every real threshold. In practice, an equivalent countable test is often useful: it is enough to check thresholds whose coordinates are rational. No assumption of continuous distributions is needed.
Proof. Necessity follows from the rectangle criterion. For sufficiency, fix arbitrary \(x\in\mathbb{R}^m\) and \(y\in\mathbb{R}^n\). For each coordinate, choose rational sequences \(q_{i,k}\downarrow x_i\) and \(r_{j,k}\downarrow y_j\). Such sequences exist by the density of \(\mathbb{Q}\) in \(\mathbb{R}\). Write \(q_k=(q_{1,k},\ldots,q_{m,k})\) and \(r_k=(r_{1,k},\ldots,r_{n,k})\).
The events \(\{X\le q_k,\ Y\le r_k\}\) decrease as \(k\) increases, and their intersection is exactly \(\{X\le x,\ Y\le y\}\). Since probabilities are finite, continuity from above gives
The same argument for the marginal events gives \(F_X(x)=\lim_{k\to\infty}F_X(q_k)\) and \(F_Y(y)=\lim_{k\to\infty}F_Y(r_k)\). Applying the assumed rational-threshold factorization and taking limits,
This holds for all real \(x,y\), so the rectangle criterion proves independence. \(\square\)
What the Test Does—and Does Not—Require
A common mistake is to use only one-dimensional marginal distribution functions when the random elements are vectors. The relevant quantity is \(F_X(x)\), the probability that every coordinate of \(X\) lies below its own threshold, and likewise for \(Y\). The theorem compares the joint probability of the two vector events with the product of those two probabilities.
Another point is that factorization at a few selected thresholds does not establish independence. A failure at even one pair of thresholds disproves it, but to prove it one needs factorization on a determining family. All real thresholds work; all rational coordinate thresholds also work because approximation from above and continuity from above recover every real threshold. There is no need to assume a density, or that the distribution functions are continuous.
This criterion is useful because it translates a statement about all Borel events into an explicit identity for distribution functions. It also gives a practical route for calculations: derive the joint distribution function and compare it with the product of the marginals. The generating-family argument explains why this comparison is decisive rather than merely suggestive.
Check Your Understanding
Use the definitions and results above to answer the following questions.
- For \(X\in\mathbb{R}^m\), what event does \(F_X(x)\) measure?
- Why does independence imply factorization of the joint distribution function?
- What makes the lower-left product rectangles sufficient to establish independence?
- Why does factorization at one threshold pair that fails disprove independence, while success at one pair does not prove it?
- How do rational coordinate thresholds suffice without assuming continuity of the distributions?