Presentation is loading. Please wait.

Presentation is loading. Please wait.

Dependent Events Conditional Probability General rule for “AND” events.

Similar presentations


Presentation on theme: "Dependent Events Conditional Probability General rule for “AND” events."— Presentation transcript:

1 Dependent Events Conditional Probability General rule for “AND” events

2 Conditional Probability Roll a die What is the probability of a 6? What is the probability of a 6 if I know, before looking at the result, that an even number showed up?

3 Dependence A says something about B P(B|A) = conditional probability of B given A P(2 nd card is K | 1 st card is K ) = 3/51 = 1/17 P(2 nd card is K | 1 st card is Q ) = 4/51 If A and B are independent, P(B|A) = P(B)

4 Conditions Change the Sample Space Probability of Event B given Event A TexPoint Display

5 B given A B A ∩ B A

6 A given B A A ∩ B B

7 Choose a number between 1 and 10 A={your number is even} B={your number is ≤ 5} P(A) = P(B) = P(A and B) = P(A|B) = 5/10 = 1/2 2/10 = 0.2 P( A and B) P(A) = (0.2)/(0.5) = 0.4 = 2/5

8 Cast a die S = {1,2,3,4,5,6} A={6}, B={2,4,6}, C={1,3,5}, D={1,3} P(A|B)=1/3 P(A|C)= 0 P(D|C) = 2/3

9 General events

10 See next slide

11 S A A C and B P(A c and B) = P(B) – P(A and B) P(B) = P(A c and B) + P( A and B) Since they are mutually exclusive Then A B

12 Two children S = { (B,B); (B,G); (G,B); (G,G)} Assuming babies’ sexes are equally probable and independent. P( 2 nd is Girl) = ½ P( 2 nd is Girl | 1 st is a Girl) = ½ P(2 nd is Girl | one is a Girl)=?? P(one is a Girl)= P(2 nd is Girl and one is a Girl)= 3/4 1/2 2/3

13 200 people are interviewed on their breakfast preference CerealBreakfast Bar Oat Meal Male4742493 Female43604107 901028200 P(Male) = 93/200 = 0.465 = 46.5% P(Male AND Cereal) = 47/200 = 0.235 = 23.5% Joint distribution

14 Joint and Marginal distributions CerealBBOM Male23.5%21%2%46.5% Female21.5%30%2%53.5% 45%51%4% P(Cereal) = 45% P(Female, Cereal) = 21.5% Shorter notation for AND

15 Conditional Probabilities CerealBB OM Male23.5%21%2%46.5% Female21.5%30%2%53.5% 45%51%4% 40.2%56.1%3.7% 50.5%41.2%4.3% P(BB|Female) = P(Female, BB) / P(Female)

16 Conditioning on the choice CerealBBOM Male23.5%21%2%46.5% Female21.5%30%2%53.5% 45%51%4% 52.2% 47.8% 41.2% 58.8% 50%

17 General AND Rule

18 New Multiplication Rule Also P(Drawing 2 K’s) = (4/52)(3/51) = 0.0045

19 Drawing cards Draw two cards (in sequence) from a deck of 52. 1. Determine the probability that the first card is hearts (A1) and the second is a flower (A2) We look for P(A 1 and A 2 ) P(A 1 ) = 13/52, P(A 2 |A 1 ) = 13/51, P(A 1 and A 2 ) = P(A 2 |A 1 ) P(A 1 ) = 13 2 /(52∙51)

20 See next slide

21 A1A1 A2A2

22 Sampling without Replacement Jar has 6 black olives and 6 green olives. You pull out 3 P(1 st is black) = 6/12 = 0.5 P(2 nd is black | 1 st is black) = 5/11 = 0.45 P(3 rd is black | 1 st two were black) = 4/10=0.4 P(1 st two are black) = 0.5(.45) =.227

23 Independence A and B are independent P(A | B) = P(A) P(A | B c ) = P(A) P(B | A) = P(B) P(B | A c ) = P(B) P(A and B) = P(A) P(B |A) = P(A) P(B)

24 P(A |B) ≠ P(B|A) Think: P(A |B) = probability of A (with information about B) P(2 nd is Girl | one is a Girl)= 2/3 P(one is a Girl | 2 nd is a Girl) = 1

25 Example A student has to sit an exam. The night before the exam: if he studies passes with probability 99% if he goes to a dance party his chance of promotion is reduced to 50%. He decides to go to the party if heads tossing a fair coin. The day after he passes the exam. What is the probability that he went to dance ?

26

27 Note that P(E) = P(E and A) + P(E and A C ) = P(E|A)∙P(A) + P(E| A C )∙P(A C ) From which

28 Drug Test 1% of students use cocaine. Drug test is 99% accurate. Pat tests positive for cocaine. –What is the probability that Pat uses cocaine? P( Test + | Pat uses) =.99 P( Pat uses | Test + ) = ??? ≠

29 Available information P(Pat uses) = 0.01 P( Pat doesn’t use ) = 0.99 P(Test + | Pat doesn’t use ) = 0.01 P(Test + | Pat does use) = 0.99 Looking for P( Pat does use | Test +) P(Test + AND Pat doesn’t use) = P(Test +) An event and its complement

30 P(Test + AND Pat doesn’t use) = P( Pat doesn’t use ) P(Test + | Pat doesn’t use) = 0.99(0.01) = 0.0099 P(Test + AND Pat does use) = = P( Pat does use ) P(Test + | Pat does use) =(0.01)(0.99) = 0.0099 Finally P( Pat does use | Test +) = 0.0099/0.0198 = 0.5 P(Test + )= P(Test + AND Pat does use) + P(Test + AND Pat doesn’t use) = 0.0099 + 0.0099 = 0.0198

31 Pat doesn’t use S Test + Pat uses


Download ppt "Dependent Events Conditional Probability General rule for “AND” events."

Similar presentations


Ads by Google