Lably
Skip to content

Pairwise independence

  • 4 min read
  • 3 chapters

Related on Lably

Through Random variable, Independence (probability theory) and Variance

A pair of random variables X and Y are independent if and only if the random vector (X, Y) with joint cumulative distribution function (CDF) FX,Y(x,y) satisfies

FX,Y(x,y)=FX(x)FY(y),

or equivalently, their joint density fX,Y(x,y) satisfies

fX,Y(x,y)=fX(x)fY(y).

That is, the joint distribution is equal to the product of the marginal distributions.

Unless it is not clear in context, in practice the modifier "mutual" is usually dropped so that independence means mutual independence. A statement such as " X, Y, Z are independent random variables" means that X, Y, Z are mutually independent.

Example

Pairwise independence does not imply mutual independence, as shown by the following example attributed to S. Bernstein.

Suppose X and Y are two independent tosses of a fair coin, where we designate 1 for heads and 0 for tails. Let the third random variable Z be equal to 1 if exactly one of those coin tosses resulted in "heads", and 0 otherwise (i.e., Z=X⊕Y). Then jointly the triple (X, Y, Z) has the following probability distribution:

(X,Y,Z)={(0,0,0)with probability1/4,(0,1,1)with probability1/4,(1,0,1)with probability1/4,(1,1,0)with probability1/4.

Here the marginal probability distributions are identical: fX(0)=fY(0)=fZ(0)=1/2, and fX(1)=fY(1)=fZ(1)=1/2. The bivariate distributions also agree: fX,Y=fX,Z=fY,Z, where fX,Y(0,0)=fX,Y(0,1)=fX,Y(1,0)=fX,Y(1,1)=1/4.

Since each of the pairwise joint distributions equals the product of their respective marginal distributions, the variables are pairwise independent:

  • X and Y are independent, and
  • X and Z are independent, and
  • Y and Z are independent.

However, X, Y, and Z are not mutually independent, since fX,Y,Z(x,y,z)≠fX(x)fY(y)fZ(z), the left side equalling for example 1/4 for (x, y, z) = (0, 0, 0) while the right side equals 1/8 for (x, y, z) = (0, 0, 0). In fact, any of {X,Y,Z} is completely determined by the other two (any of X, Y, Z is the sum (modulo 2) of the others). That is as far from independence as random variables can get.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Statistics and probability