Q:

Calculating conditional probabilities - random permutations. About The letters (a, b, c, d, e, f, g) are put in a random order. Each permutation is equally likely. Define the following events: A: The letter b falls in the middle (with three before it and three after it) B: The letter c appears to the right of b, although c is not necessarily immediately to the right of b. For example, "agbdcef" would be an outcome in this event. C: The letters "def occur together in that order (e.g. "gdefbca") Calculate the probability of each individual event. That is, calculate p(A), P(B), and p(c). What is p(AIC)? (c) What is p(BIC)? What is p(AIB)? (e) Which pairs of events among A, B, and C are independent? Feedback?

Accepted Solution

A:
A="b is in the middle" B="c is to the right of b"C="The letter def occur together in that order"a) b can be in 7 places, but only one is the middle. So, P(A)=1/7b) X=i, "b is in the i-th position" Y=j, "c is in the j-th position"[tex]P(B)=\displaystyle\sum_{i=1}^{6}(P(X=i)\displaystyle\sum_{j=i+1}^{7}P(Y=j))=\displaystyle\sum_{i=1}^{6}\frac{1}{7}(\displaystyle\sum_{j=i+1}^{7}\frac{1}{6})=\frac{1}{42}\displaystyle\sum_{i=1}^{6}(\displaystyle\sum_{j=i+1}^{7}1)=\frac{6+5+4+3+2+1}{42}=\frac{1}{2}[/tex]P(B)=1/2c) X=i, "d is in the i-th position" Y=j, "e is in the j-th position"Z=k, "f is in the i-th position" [tex]P(C)=\displaystyle\sum_{i=1}^{5}( P(X=i)P(Y=i+1)P(Z=i+2))=\displaystyle\sum_{i=1}^{5}(\frac{1}{7}\times\frac{1}{6}\times\frac{1}{5})=\frac{1}{210}\displaystyle\sum_{i=1}^{5}(1)=\frac{1}{42}[/tex]P(C)=1/42P(A∩C)=2*(1/7*1/6*1/5*1/4)=1/420[tex]P(B\cap C)=\displaystyle\sum_{i=1}^{3} P(X=i)P(Y=i+1)P(Z=i+2)\displaystyle\sum_{j=i+3}^{6}P(V=j)P(W=j+1)=\displaystyle\sum_{i=1}^{3}\frac{1}{6}\frac{1}{7}\frac{1}{5}(\displaystyle\sum_{j=1+3}^{6}\frac{1}{4}\frac{1}{3})=1/420[/tex]P(B∩A)=3*(1/7*1/6)=1/14 P(A|C)=P(A∩C)/P(C)=(1/420)/(1/42)=1/10P(B|C)=P(B∩C)/P(C)=(1/420)/(1/42)=1/10P(A|B)=P(B∩A)/P(B)=(1/14)/(1/2)=1/7P(A∩B)=1/14P(A)P(B)=(1/7)*(1/2)=1/14A and B are independent P(A∩C)=1/420P(A)P(C)=(1/7)*(1/42)=1/294A and C aren't independent P(B∩C)=1/420P(B)P(C)=(1/2)*(1/42)=1/84 B and C aren't independent