Elementary Probability
Senior 6 · Basic Mathematics
Elementary Probability
Lesson 4 of 5
25 min
A bag holds 5 red and 3 blue counters. In the last lesson the first counter was put back, so the second draw was independent of the first. Now suppose the first counter is not replaced. If it was red, the bag now holds 4 red and 3 blue, so the chance that the second is red falls from to . The second draw depends on the first. Probability "given that something has happened" is called conditional probability.
Definition
Knowing that has happened shrinks the sample space from to . Among the outcomes of , the ones where also happens are those in . For equally likely outcomes,
(The middle step divides the top and the bottom by .) On a tree diagram, the second-stage branches are always conditional probabilities: they are the probabilities given the branch you are on.
A school records the results of 200 S6 students in a mock examination (illustrative figures):
| Passed | Did not pass | Total | |
|---|---|---|---|
| Boarders | 90 | 30 | 120 |
| Day students | 50 | 30 | 80 |
| Total | 140 | 60 | 200 |
To find a conditional probability from a table, restrict yourself to the row or column of the condition.
Worked example
Worked example 1: without replacement. Two counters are drawn one after the other, without replacement, from a bag of 5 red and 3 blue. Find (a) ; (b) ; (c) .
(a)
(b) , so
(c) After a blue is removed, 5 red and 2 blue remain: .
Compare (b) with the answer with replacement in the last lesson: not replacing makes "same colour" less likely.
Worked example
Worked example 2: from the table. One of the 200 students is chosen at random. Let = "passed" and = "boarder". Find , and . Are "passed" and "boarder" independent?
.
Given a boarder, use the boarders' row only: .
Given a pass, use the "Passed" column only: .
Since , the events are dependent. Notice also that : the order of the condition matters.
Machine X makes 60% of a factory's items and 3% of its items are defective; machine Y makes 40% and 5% of its items are defective (illustrative figures). The second-stage branches are conditional probabilities: 0.03 is and 0.05 is .
Worked example
Worked example 3: turning a tree round. For the factory above, an item is chosen at random. Use the tree diagram.
(a) Find the probability that it is defective. The two paths ending in D are mutually exclusive, so add them:
(b) The item is defective. Find the probability that it was made by machine X.
Although X makes more items, fewer than half of the defective ones come from X, because X is more reliable.
Warning
is not . The probability that a student who passed is a boarder (0.643) is not the probability that a boarder passed (0.75). Always ask: "Which group am I restricted to?" That group goes in the denominator.
Tip
Without replacement, reduce both the number of that kind and the total for the second draw: then , never .
Khan Academy: "Conditional probability tree diagram example". Watch how the second-stage branches are conditional probabilities, as in Worked example 3.
Practice
Important
and . Events are independent exactly when .
Sources and credits
Text, table, tree diagram, worked examples and exercises: Written by Ganzaa. The examination and factory figures are illustrative.
Video: Conditional probability tree diagram example, Khan Academy, embedded from YouTube.