Salta al contenuto
Note per Studenti Applications of Independence Report

Applications of Independence

I - Computational simplifications

Example. P(A)=0.3P(A) = 0.3, P(B)=0.5P(B) = 0.5. Compute P(A∪B)P(A \cup B).

Solution. The problem cannot be solved in general, but under the assumption that AA and BB are independent, P(A∪B)=P(A)+P(B)−P(A∩B)=P(A)+P(B)−P(A)P(B)=0.3+0.5−0.15=0.65.P(A \cup B) = P(A) + P(B) - P(A \cap B) = P(A) + P(B) - P(A)P(B) = 0.3 + 0.5 - 0.15 = 0.65. (The numerical value follows from the formula with the given data.)

Example. Let A,B,CA, B, C be events in F\mathcal{F} with P(A)=12P(A) = \frac12, P(B)=13P(B) = \frac13, P(C)=14P(C) = \frac14. Compute the probability that only one of the three events occurs.

Again this computation cannot be completed with the available data, but if {A,B,C}\{A, B, C\} is an independent triple the computation becomes very simple. Let EE = "only one event occurs": E=(A∩Bc∩Cc)∪(Ac∩B∩Cc)∪(Ac∩Bc∩C)(disjoint union).E = (A \cap B^c \cap C^c) \cup (A^c \cap B \cap C^c) \cup (A^c \cap B^c \cap C) \qquad \text{(disjoint union)}. Then P(E)=P(A)(1−P(B))(1−P(C))+(1−P(A))P(B)(1−P(C))+(1−P(A))(1−P(B))P(C),P(E) = P(A)(1-P(B))(1-P(C)) + (1 - P(A))P(B)(1-P(C)) + (1-P(A))(1-P(B))P(C), (the page writes the first two terms and then "etc."; the third is the analogous one). With the given numbers (computed here, not on the page): 12⋅23⋅34+12⋅13⋅34+12⋅23⋅14=14+18+112=1124\frac12\cdot\frac23\cdot\frac34 + \frac12\cdot\frac13\cdot\frac34 + \frac12\cdot\frac23\cdot\frac14 = \frac14 + \frac18 + \frac1{12} = \frac{11}{24}.

II - Construction of probability measures

We discuss ways to construct probability measures on the sample space Ω={0,1}n={(b1,b2,…,bn):bi∈{0,1}}.\Omega = \{0,1\}^n = \{(b_1, b_2, \dots, b_n) : b_i \in \{0,1\}\}. This is the sample space of the possible outcomes of nn tosses of a coin, or equivalently of all possible bit-streams of length nn.

(a) The equiprobable measure

The equiprobable measure PP on Ω\Omega assigns probability P({ω})=1∣Ω∣=12nto every ω=(b1,…,bn)∈Ω.P(\{\omega\}) = \frac{1}{|\Omega|} = \frac{1}{2^n} \quad \text{to every } \omega = (b_1,\dots,b_n) \in \Omega. It has an interesting interpretation. Let [ek=1]={ω∈Ω:bk=1},[e_k = 1] = \{\omega \in \Omega : b_k = 1\}, the event of Ω\Omega made of all the nn-bit sequences whose kk-th bit is 11. (For k=1k = 1 this is the sequences whose first bit is 1.)

  • ∣[ek=1]∣=2n−1|[e_k = 1]| = 2^{n-1} for every kk, since one bit is fixed and n−1n-1 are free. Therefore P([ek=1])=∣[ek=1]∣∣Ω∣=2n−12n=12k=1,2,…,n.P([e_k = 1]) = \frac{|[e_k=1]|}{|\Omega|} = \frac{2^{n-1}}{2^n} = \frac12 \qquad k = 1, 2, \dots, n.
  • For k≠hk \neq h, ∣[ek=1]∩[eh=1]∣=2n−2|[e_k = 1] \cap [e_h = 1]| = 2^{n-2}, since two bits are fixed (positions hh and kk) and all the others are free. Therefore P([ek=1]∩[eh=1])=2n−22n=14.P([e_k = 1] \cap [e_h = 1]) = \frac{2^{n-2}}{2^n} = \frac14.
  • In general, for any distinct k1,k2,…,krk_1, k_2, \dots, k_r with r=2,…,nr = 2, \dots, n, P([ek1=1]∩[ek2=1]∩⋯∩[ekr=1])=12r.P([e_{k_1} = 1] \cap [e_{k_2}=1] \cap \dots \cap [e_{k_r} = 1]) = \frac{1}{2^r}.

This is equivalent to two facts:

  • the family of events {[e1=1],…,[en=1]}\{[e_1 = 1], \dots, [e_n = 1]\} is independent for PP;
  • the events [ek=1][e_k = 1] are equiprobable, with P([ek=1])=12P([e_k = 1]) = \frac12 for k=1,…,nk = 1, \dots, n.

By the properties of independent families (replacing an event of an independent family by its complement keeps the family independent), any nn-tuple of events [e1=b1],[e2=b2],…,[en=bn],b1,…,bn∈{0,1},[e_1 = b_1], [e_2 = b_2], \dots, [e_n = b_n], \qquad b_1,\dots,b_n \in \{0,1\}, is an independent family, since [ek=bk][e_k = b_k] either coincides with [ek=1][e_k = 1] or is [ek=0]=[ek=1]c[e_k = 0] = [e_k = 1]^c. The conclusion is that for ω=(b1,…,bn)\omega = (b_1, \dots, b_n) P({ω})=P(⋂t=1n[et=bt])=∏t=1nP([et=bt])=12n.P(\{\omega\}) = P\Big(\bigcap_{t=1}^n [e_t = b_t]\Big) = \prod_{t=1}^n P([e_t = b_t]) = \frac{1}{2^n}.

Lemma. Let QQ be a measure on Ω={0,1}n\Omega = \{0,1\}^n satisfying

  1. Q([et=1])=12Q([e_t = 1]) = \frac12 for all t=1,2,…,nt = 1, 2, \dots, n;
  2. the family of events {[et=1], t=1,…,n}\{[e_t = 1],\ t = 1,\dots,n\} is independent under QQ.

Then for any ω∈Ω\omega \in \Omega, Q({ω})=12nQ(\{\omega\}) = \frac{1}{2^n}, i.e. QQ coincides with the equiprobable measure.

Proof. Q({ω})=Q(⋂t=1n[et=bt])=∏t=1nQ([et=bt])=12nQ(\{\omega\}) = Q\big(\bigcap_{t=1}^n [e_t = b_t]\big) = \prod_{t=1}^n Q([e_t = b_t]) = \frac{1}{2^n}. □\square

(b) The binomial measures PpP_p

We now define a family of probability measures on Ω={0,1}n\Omega = \{0,1\}^n.

Definition. The measure PpP_p on Ω={0,1}n\Omega = \{0,1\}^n is completely specified by the following two constraints:

  1. Pp([et=1])=pP_p([e_t = 1]) = p with p∈[0,1]p \in [0,1] assigned, for all t=1,2,…,nt = 1, 2, \dots, n;
  2. the family of events {[et=1], t=1,…,n}\{[e_t = 1],\ t = 1,\dots,n\} is independent under PpP_p.

Remark. To each p∈[0,1]p \in [0,1] corresponds one distinct measure PpP_p. The equiprobable measure corresponds to p=12p = \frac12.

To specify PpP_p completely it is enough to compute Pp({ω})P_p(\{\omega\}) for all ω=(b1,…,bn)∈Ω\omega = (b_1,\dots,b_n) \in \Omega. By constraints 1 and 2, and recalling that Pp([et=0])=1−Pp([et=1])=1−pP_p([e_t = 0]) = 1 - P_p([e_t=1]) = 1-p, Pp({ω})=Pp(⋂t=1n[et=bt])=Pp([e1=b1])×⋯×Pp([en=bn])=pn1(1−p)n−n1,P_p(\{\omega\}) = P_p\Big(\bigcap_{t=1}^n [e_t = b_t]\Big) = P_p([e_1 = b_1]) \times \dots \times P_p([e_n = b_n]) = p^{n_1}(1-p)^{n - n_1}, where n1=∑t=1nbtn_1 = \sum_{t=1}^n b_t is the number of bits equal to 11 in (b1,…,bn)(b_1, \dots, b_n).

Notice that PpP_p is not an equiprobable measure if p≠12p \neq \frac12, since the ω\omega's with a different number of bits 1 get assigned different probabilities.

Let now Ek={ω∈Ω:n1=k}E_k = \{\omega \in \Omega : n_1 = k\} be the event containing all the sequences with exactly kk bits equal to 1. All the sequences in EkE_k are equiprobable, with probability pk(1−p)n−kp^k(1-p)^{n-k}, hence Pp(Ek)=∣Ek∣ pk(1−p)n−kP_p(E_k) = |E_k|\,p^k(1-p)^{n-k}, i.e. Pp(Ek)=(nk)pk(1−p)n−k,k=0,1,…,n.P_p(E_k) = \binom{n}{k} p^k (1-p)^{n-k}, \qquad k = 0, 1, \dots, n. Since (Ek)k=0n(E_k)_{k=0}^n is a partition of Ω={0,1}n\Omega = \{0,1\}^n one must have ∑k=0nPp(Ek)=1\sum_{k=0}^n P_p(E_k) = 1, and indeed ∑k=0nPp(Ek)=∑k=0n(nk)pk(1−p)n−k=(p+(1−p))n=1.\sum_{k=0}^n P_p(E_k) = \sum_{k=0}^n \binom nk p^k(1-p)^{n-k} = (p + (1-p))^n = 1.

The binomial model

The measure PpP_p is a reasonable model when:

  • the experiment to model probabilistically can be repeated nn times in identical conditions;
  • each trial has two possible outcomes, coded {0,1}\{0,1\};
  • the trials do not influence each other;
  • the probability P([et=1])=pP([e_t = 1]) = p does not depend on t=1,2,…,nt = 1, 2, \dots, n.

Under these conditions it is reasonable to model the experiment by choosing the measure PpP_p on Ω={0,1}n\Omega = \{0,1\}^n, where p=P([et=1])p = P([e_t = 1]), t=1,…,nt = 1,\dots,n.

Example (ISP). An ISP has 20 data lines and 24 users. Let [ui=1][u_i = 1] = "user ii is connected to the ISP", i=1,2,…,24i = 1, 2, \dots, 24, and let P([ui=1])=0.8P([u_i = 1]) = 0.8.

The experiment satisfies the conditions of the binomial model: there are n=24n = 24 trials, each has two outcomes (connected / not connected), the probability of "connected" is constant over the nn trials, and the connections do not influence each other. The probability of saturation of the ISP (more customers connected than lines) is P(saturation)=P(E21∪E22∪E23∪E24)=∑k=2124(24k)0.8k 0.224−k.P(\text{saturation}) = P(E_{21} \cup E_{22} \cup E_{23} \cup E_{24}) = \sum_{k=21}^{24} \binom{24}{k} 0.8^k\, 0.2^{24-k}.

Optimization of the sales. The same model allows one to maximise the number of customers MM while guaranteeing a preassigned low probability of saturation. Find max⁡{M:∑k=21M(Mk)0.8k 0.2M−k≤0.05}.\max\Big\{ M : \sum_{k=21}^{M} \binom{M}{k} 0.8^k\, 0.2^{M-k} \le 0.05 \Big\}. Airlines face the same problem in the management of overbooking.

Versione ripasso

Simplifications. Under independence of A,BA,B: P(A∪B)=P(A)+P(B)−P(A)P(B)P(A\cup B)=P(A)+P(B)-P(A)P(B). For an independent triple, "only one occurs" is a disjoint union of three events, e.g. P(A)(1−P(B))(1−P(C))+…P(A)(1-P(B))(1-P(C))+\dots (with 12,13,14\frac12,\frac13,\frac14 it gives 1124\frac{11}{24}).

Equiprobable measure on {0,1}n\{0,1\}^n. P({ω})=2−nP(\{\omega\})=2^{-n}. Then P([ek=1])=12P([e_k=1])=\frac12 and P([ek1=1]∩⋯∩[ekr=1])=2−rP([e_{k_1}=1]\cap\dots\cap[e_{k_r}=1])=2^{-r}: the events [ek=1][e_k=1] are independent and equiprobable. Lemma: conversely any QQ with Q([et=1])=12Q([e_t=1])=\frac12 and independent [et=1][e_t=1] is the equiprobable measure ([et=bt][e_t=b_t] is [et=1][e_t=1] or its complement).

Binomial measure PpP_p. Defined by Pp([et=1])=pP_p([e_t=1])=p and independence. Then Pp({ω})=pn1(1−p)n−n1,n1=# of 1s;Pp(Ek)=(nk)pk(1−p)n−k.P_p(\{\omega\})=p^{n_1}(1-p)^{n-n_1},\quad n_1=\#\text{ of 1s};\qquad P_p(E_k)=\binom nk p^k(1-p)^{n-k}. p=12p=\frac12 gives the equiprobable measure; for p≠12p\ne\frac12 it is not equiprobable. The EkE_k partition Ω\Omega, and ∑kPp(Ek)=(p+1−p)n=1\sum_k P_p(E_k)=(p+1-p)^n=1.

Binomial model: nn identical repeatable trials, two outcomes, no mutual influence, constant pp.

ISP example: n=24n=24, p=0.8p=0.8, 20 lines: P(saturation)=∑k=2124(24k)0.8k0.224−kP(\text{saturation})=\sum_{k=21}^{24}\binom{24}{k}0.8^k0.2^{24-k}; overbooking: largest MM keeping this sum at most 0.050.05.

Typical mistake: using PpP_p when the trials influence each other or pp changes with tt.

Teoria collegata