Presentation is loading. Please wait.

Presentation is loading. Please wait.

Conditional probability

Similar presentations


Presentation on theme: "Conditional probability"— Presentation transcript:

1 Conditional probability

2 Ordinary Probability You are dealt two cards from a deck. What is the probability the second card dealt is a Jack? We reason that if the two cards have been delt, the probabiity that the first is a jacek and the probabiity that the second is a jack are identical. Since there are 4 jacks in the deck, we compute P(second is jack) = 4/52 = 1/13.

3 Conditional Probability
You are dealt two cards from a deck. What is the probability of the second card was a jack given the first card was not a jack is called card dealt is a Jack?

4 Conditional Probability
You are dealt two cards from a deck. What is the probability that the second card was a jack given the first card was not a jack.

5 Conditional Probability
You are dealt two cards from a deck. What is the probability of the second card was a jack given the first card was not a jack is called card dealt is a Jack?

6 Reasoning Once the first card has been delt, there are 51 cards remaining, and, since the first was NOT a jack, there are 4 jacks in the set of 51 cards.

7 Conditional Probability
The probability of drawing jack given the first card was not a jack is called conditional probability. A key words to look for is “given that.” We will use the notation: P(second a jack | first not a jack) = 4/51

8 General Conditional Probability
The probability that the event A occurs, given that B occurs is denoted: This is read the probability of A given B.

9 Conditional Probability
How would we draw the event A given B? A B A and B

10 Conditional Probability
How would we draw the event A given B? Since we know B has occurred, we ignore everything else. A B A and B

11 Conditional Probability
How would we draw the event A given B? Since we know B has occurred, we ignore everything else. A B A and B

12 Conditional Probability
How would we draw the event A given B? Since we know B has occurred, we ignore everything else. With some thought this tells us: B A and B

13 Additional notes In the case of a equi-probability space, we can reason that, since we know the outcome is in B, we can use the set B as our reduced sample space. The probability P(A|B) can then be computed as the number of points in A∩B as a fraction of the number of points in B.

14 Dividing top and bottom by the numbers of
Continuing… This gives 𝑃 𝐴 𝐵 = 𝑛(𝐴∩𝐵) 𝑛(𝐵) Dividing top and bottom by the numbers of points in the original sample space S: 𝑃 𝐴|𝐵 = 𝑛(𝐴∩𝐵)/𝑛(𝑆) 𝑛(𝐵)/𝑛(𝑆) = 𝑃(𝐴∩𝐵) 𝑃(𝐵)

15 Example from well contamination

16 Of private wells, 21% are contaminated. Therefore
P(C|Private)=0.21 Of public wells, 40% are contaminated. Therefore P(C|Public)=0.40

17 Law of conditional probability
𝑃 𝐴 𝐵 = 𝑃(𝐴∩𝐵) 𝑃(𝐵)

18 Multiplication Rule 𝑃 𝐴 =𝑃 𝐵 𝑃(𝐴|𝐵)

19 Example A local union has 8 members, 2 of whom are women. Two are chosen by a lottery to represent the union.

20 Example A local union has 8 members, 2 of whom are women. Two are chosen by a lottery to represent the union. a) What is the probability they are both male?

21 Example A local union has 8 members, 2 of whom are women. Two are chosen by a lottery to represent the union. a) What is the probability they are both male?

22 Example A local union has 8 members, 2 of whom are women. Two are chosen by a lottery to represent the union. a) What is the probability they are both male?

23 Example A local union has 8 members, 2 of whom are women. Two are chosen by a lottery to represent the union. b) What is the probability they are both female?

24 Example A local union has 8 members, 2 of whom are women. Two are chosen by a lottery to represent the union. b) What is the probability they are both female?

25 Example Find the probability of selecting an all male jury from a group of 30 jurors, 21 of whom are men.

26 Example Find the probability of selecting an all male jury from a group of 30 jurors, 21 of whom are men. Solution: P(12 M) =P(M)*P(M|M)*P(M|MM) * …. = 21/30 * 20/29 * 19/28 * 18/27 * … 10/19 =

27 Independent Events Two events A and B are independent if the occurrence of one does not affect the probability of the other.

28 Independent Events Two events A and B are independent if the occurrence of one does not affect the probability of the other. Two events A and B are independent then P(A|B) = P(A).

29 Independent Events Two events A and B are independent if the occurrence of one does not affect the probability of the other. Two events A and B are independent then P(A|B) = P(A). Two events which are not independent are dependent.

30 Multiplication Rule Multiplication Rule: For any pair of events:
P(A and B) = P(A) * P(B|A)

31 Multiplication Rule Multiplication Rule: For any pair of events:
P(A and B) = P(A) * P(B|A) For any pair of independent events: P(A and B) = P(A) * P(B)

32 Multiplication Rule For any pair of events: P(A and B) = P(A) * P(B|A)
For any pair of independent events: P(A and B) = P(A) * P(B) If P(A and B) = P(A) * P(B), then A and B are independent.

33 Multiplication Rule Multiplication Rule:
P(A and B) = P(A) * P(B) if A and B are independent. P(A and B) = P(B) * P(A|B) if A and B are dependent. Note: The multiplication rule extends to several events: P(A and B and C) =P(C)*P(B|C)*P(A|BC)

34 Example A study of 24 mice has classified the mice by two categories
Fur Colour Black White Grey Eye Colour Red Eyes 3 5 2 Black Eyes 1 7 6

35 A study of 24 mice has classified the mice by two categories
a) What is the probability that a randomly selected mouse has white fur? b) What is the probability it has black eyes given that it has black fur? c) Find pairs of mutually exclusive and independent events. Fur Colour Black White Grey Eye Colour Red Eyes 3 5 2 Black Eyes 1 7 6

36 A study of 24 mice has classified the mice by two categories
a) What is the probability that a randomly selected mouse has white fur? 12/24=0.5 b) What is the probability it has black eyes given that it has black fur? c) Find pairs of mutually exclusive and independent events. Fur Colour Black White Grey Eye Colour Red Eyes 3 5 2 Black Eyes 1 7 6

37 A study of 24 mice has classified the mice by two categories
a) What is the probability that a randomly selected mouse has white fur? 12/24=0.5 b) What is the probability it has black eyes given that it has black fur? 1/4=0.25 c) Find pairs of independent events. Fur Colour Black White Grey Eye Colour Red Eyes 3 5 2 Black Eyes 1 7 6

38 c) Find pairs of mutually exclusive and independent events.
b) What is the probability it has black eyes given that it has black fur? 1/4=0.25 c) Find pairs of mutually exclusive and independent events. IND: White Fur and Red Eyes; Black Fur and Red Eyes Fur Colour Black White Grey Eye Colour Red Eyes 3 5 2 Black Eyes 1 7 6

39 Descriptive Phrases Descriptive Phrases require special care! At most
At least No more than No less than

40 Review Conditional Probabilities Independent events
Multiplication Rule Tree Diagrams


Download ppt "Conditional probability"

Similar presentations


Ads by Google