Probability 1
Probability 1
0. e conditional probability of E given F, denoted by p(E | F), is defined as p(E | F) = p(E > F)/p(F)Conditional Probability What is the probability of a random bit string of length four contains at least two consecutive Os, given that its first bit is a 0 ? E: “bit string contains at least two consecutive Os” F: “first bit of the string is a 0” We know the formula E 4 F = {0000, 0001, 0010, 0011, 0100} p(E 4 F) = 5/16 p(F) = 8/16 = 1/2 p(E | F) = (5/16)/(1/2) = 10/16 = 5/8 = 0.625 1234567800 20Independence Let us ein 16 the example of —e a coin three times. Does the probability of event E (odd number of tails) on the occurrence of event F (first toss is a tail) ? In other words, is it the case that p(E | F) # p(E) ? Ve actually find that p(E | F) = 0.5 and p(E) = 0.5, 0 we say that E and F are 21Independence Because we have p(E | F) = p(E 7 F)/p(F), p(E | F) = p(E) if and only if p(E 7 F) = p(E)p(F). The events E and F are said to be independent if and only if p(E 7 F) = p(E)p(F). ‘Obviously, this definition is for E and F. If we have p(E 4 F) = p(E)p(F), then it is also true that p(F | E) = p(F). 22Independence Suppose E is the event that a randomly generated bit string of length four begins with a 1, and F is the event that a randomly generated bit string contains an even number of Os. Are E and F independent? Obviously, p(E) = p(F) = 0.5. EF = {1111, 1001, 1010, 1100} p(E 4 F) = 0.25 p(E 4 F) = p(E)p(F) Conclusion: E And F are 1234567800 23f'254567800 ord momen os