| |||||||||
In probability theory, a pairwise independent collection of random variables is a set of random variables any two of which are independent. Any collection of mutually independent random variables is pairwise independent, but some pairwise independent collections are not independent.
Here is perhaps the simplest example. Suppose X, Y, and Z have the following joint probability distribution:
(0,0,0) & \mbox{with}\ \mbox{probability}\ 1/4, \\ (0,1,1) & \mbox{with}\ \mbox{probability}\ 1/4, \\ (1,0,1) & \mbox{with}\ \mbox{probability}\ 1/4, \\ (1,1,0) & \mbox{with}\ \mbox{probability}\ 1/4. \end{matrix}\right\}<math>
Then
Any one of these three random variables is just the mod 2 sum of the other two, and so is completely determined by the other two. That is as far from independence as one can get.