Skip to main content

Multiple events

When we have more than two events, there can be many different degrees of independence. Let A1,,AnA_1,\ldots, A_n be events. We say that they are pairwise independent if every pair AiA_i and AjA_j are independent for all iji \neq j. Pairwise independence is a relatively weak form of independence. These events A1,,AnA_1,\ldots, A_n are said to be (fully) independent if, for every subset I[n]I \subseteq [n], we have

P[iIAi]=iIP[Ai]{\mathbb P}[\bigcap_{i \in I} A_i] = \prod_{i \in I} {\mathbb P}[A_i]

Example 38

Toss two unbiased coins. Let AA be the event that the first coin is head; BB the event that the second coin is head; and CC that the number of heads is exactly one. Therefore we have that P[A]=P[B]=P[C]=1/2{\mathbb P}[A]= {\mathbb P}[B] = {\mathbb P}[C] = 1/2. These events are not fully independent, i.e., P[CAB]=0<P[C]{\mathbb P}[C \mid A \cap B] = 0 < {\mathbb P}[C], so they are not fully independent. However, they are pairwise independent. It is easy to see that AA and BB are independent. As for AA and CC, notice that AC={10}A \cap C = \{10\}, so P[AC]=1/4=P[A]P[C]{\mathbb P}[A \cap C] = 1/4 = {\mathbb P}[A] \cdot {\mathbb P}[C].

Exercise 98

Prove: If A1,,AnA_1,\ldots, A_n are independent, then A1,A2,,An\overline{A}_1, A_2,\ldots, A_n are independent.

Exercise 99

Define A1=AA^1 = A and A1=AA^{-1} = \overline{A}. Prove: If A1,,AnA_1,\ldots, A_n are independent, then so are A1ϵ1,A2ϵ2,,AnϵnA_1^{\epsilon_1}, A_2^{\epsilon_2},\ldots, A_n^{\epsilon_n} for all choices of ϵ1,,ϵn{1,1}\epsilon_1,\ldots, \epsilon_n \in \{-1,1\}.

Exercise 100

Consider the probability space of (unbiased) coin tossing. Let AiA_i be the event that the ii-th coin toss is head. Prove that the events {Ai}\{A_i\} are fully independent.

Exercise 101 (Independence is expensive)

Assume that in our sample space, there are nn (different) nontrivial and independent events. Show that Ω2n|\Omega| \geq 2^n.

In computer science, when we design randomized algorithms, we are often interested in saving space consumption. Roughly, if the sample space is Ω\Omega, then the space needed is at least lg2Ω\lg_2 |\Omega|. The above exercise implies that if our algorithm relies on a lot of independent events, the algorithm necessarily consumes a lot of space!

Example 39

Construct a sample space where there are nn pairwise balanced (probability is 1/21/2) events and Ω2n|\Omega| \leq 2n.

Proof:

Let kNk \in {\mathbb N} so that 2k1n2k12^{k-1} \leq n \leq 2^k-1 (do you see why such kk always exists?). Consider the uniform probability space on Ω={0,1}k\Omega = \{0,1\}^k (so these are kk tossings of a fair coin). We claim that there are 2k12^k-1 pairwise independent events in this space. For each non-empty subset S[k]S \subseteq [k], we define an event ES={xΩ:iSxi=1}E_S = \{x \in \Omega: \bigoplus_{i \in S} x_i = 1\} (the notation is for XOR). We claim that these events are pairwise independent (see Exercise below).

We will argue that P[ES]=1/2{\mathbb P}[E_S] = 1/2 (balanced). This can be proved by the following induction hypothesis:

I(q):P[ES]=1/2 (S:S=q>0)I(q): {\mathbb P}[E_S] = 1/2\ (\forall S: |S|=q>0)

When q=1q=1, it is clear that P[ES]=1/2{\mathbb P}[E_S]=1/2. Otherwise, assume that I(q)I(q) is true and consider the set SS of size q+1q+1. Let iSi \in S and T=S{i}T = S \setminus \{i\}. We write jSxj=xi(jTxj)\bigoplus_{j \in S} x_j = x_i \oplus (\bigoplus_{j \in T} x_j). Therefore,

P[ES]=P[xi=0]P[ETxi=0]+P[xi=1]P[ETxi=1]{\mathbb P}[E_S] = {\mathbb P}[x_i =0] \cdot {\mathbb P}[E_T \mid x_i=0] + {\mathbb P}[x_i=1]\cdot {\mathbb P}[\overline{E_T} \mid x_i = 1]

Since the event ETE_T is independent of event (xi=1)(x_i =1), we have that P[ETxi=0]=P[ET]=1/2{\mathbb P}[E_T \mid x_i=0]= {\mathbb P}[E_T] =1/2 and P[ETxi=1]=P[ET]=1/2{\mathbb P}[\overline{E_T} \mid x_i =1] = {\mathbb P}[\overline{E_T}] = 1/2 (by induction hypothesis). Substituting this back into the equation gives P[ES]=1/2{\mathbb P}[E_S]= 1/2. Notice that we have 2k1n2^k-1 \geq n events, and the size of sample space is 2k2^k (which is at most 2n2n). This completes the proof.

Exercise 102

Prove that the events {ES}S[k]:S\{E_S\}_{S \subseteq [k]: S \neq \emptyset} are pairwise independent. In particular, show that for STS \neq T, we have P[ESET]=P[ES]P[ET]{\mathbb P}[E_S \cap E_T] = {\mathbb P}[E_S] \cdot {\mathbb P}[E_T].

Between full independence and pairwise independence lies the whole hierarchy of increasingly high degree of independence, that we call kk-wise independence. In particular, events A1,,AnA_1,\ldots, A_n are kk-wise independent if, for every kk-subset I[n]I \subseteq [n], the events (Ai)iI(A_i)_{i \in I} are independent.