Independence

Two events A and B with P[A] > 0 and P[B] > 0 are independent if and only if

P[AB] = P[A] × P[B]

In general,

P[AB] = P[A] × P[B|A]

P[AB] = P[B] × P[A|B]

So A and B are independent if

P[A] = P[A|B]     (the outcome of B has no effect on A)

P[B] = P[B|A]     (the outcome of A has no effect on B)

Three events A, B and C are independent if

P[ABC] = P[A] × P[B] × P[C]

P[AB] = P[A] × P[B]

P[AC] = P[A] × P[C]

P[BC] = P[B] × P[C]

The first line of the four is necessary but not sufficient; we also require pairwise independence.

For an arbitrary number of events Ai, i = 1, n we require for all combinations of 1 i < j < k < ... n

P[Ai Aj] = P[Ai] × P[Aj]

P[Ai Aj Ak] = P[Ai] × P[Aj] × P[Ak]
.
.
.

P[Ai ... An] = P[A1] × P[A2] ... P[An]



Consider as an example an urn containing 30 balls, which are either black or white, either light or heavy, and numbered with a number which is either odd or even. There are 10 black balls and 20 white balls. Of the black balls, 5 are light and 5 are heavy. Of the white balls, 10 are light and 10 are heavy. Of the 5 black light balls, 2 are even and 3 are odd. Of the 5 black heavy balls, none are even and 5 are odd. Of the 10 white light balls, 6 are even and 4 are odd. Of the 10 white heavy balls, 4 are even and 6 are odd. We define P[A] as the probability that a ball is black, P[B] as the probability that a ball is light, and P[C] as the probability that a ball is numbered with an even number. Show that A and B are independent, but that C is dependent on both A and B.

P[ABC] = P[BC|A] × P[A] = 2/10 × 10/30 = 1/15

P[A] × P[B] × P[C] = 10/30 × 15/30 × 12/30 = 1/15

We proceed to check the pairwise independence.

P[AB] = P[A] × P[B|A] = 10/30 × 5/10 = 1/6

P[A] × P[B] = 10/30 × 15/30 = 1/6




P[AC] = P[A] × P[C|A] = 10/30 × 2/10 = 1/15

P[A] × P[C] = 10/30 × 12/30 = 2/15

TROUBLE!        TROUBLE!


P[BC] = P[B] × P[C|B] = 15/30 × 8/15 = 4/15

P[B] × P[C] = 15/30 × 12/30 = 1/5

TROUBLE!        TROUBLE!

We conclude that A and B are independent of each other, but that C is dependent on both A and B.