Lesson 12.3 · Probability
Conditional probability
New information changes probabilities. The chance that a random roll of two number cubes has a sum of is . But if a friend peeks and tells you "at least one cube shows a ," the chance jumps. Conditional probability is the tool for updating a probability once you know something has happened.
Shrinking the sample space
Definition
Conditional probability
The conditional probability of given , written , is the probability that happens when you already know that has happened. Read the bar as "given."
Knowing that happened throws away every outcome outside . The event becomes your new, smaller sample space, and you ask what fraction of it also lies in .
Worked example: Given a sum of 8
You roll two number cubes. Given that the sum is , what is the probability that one of the cubes shows a ?
The condition "sum is " leaves only these outcomes:
That's the new sample space: equally likely outcomes. Two of them contain a : and . So
Compare this with with no information. Knowing the sum changed the probability.
The formula
Counting inside the smaller sample space works when outcomes are equally likely. In general, you divide the probability of the overlap by the probability of the condition.
Conditional probability formula
If , then
With equally likely outcomes this is the same as .
For the sum-of- example: and , so , the same answer.
Common mistake
and are usually different. The probability that a person is a professional basketball player, given that they are over feet tall, is fairly high. The probability that a person is over feet tall, given that they are a professional basketball player, is much lower. The event after the bar is the one you know; it goes in the denominator.
The general multiplication rule
Multiply both sides of the formula by and you get a rule for "and" that works even when events are dependent.
General multiplication rule
If and are independent, then and this becomes the rule from the last lesson, .
This is exactly what you need for drawing without replacement: the second probability is conditional on what happened in the first draw.
Worked example: Drawing without replacement
A bag has red and blue marbles. You draw two marbles without putting the first one back. What is the probability that both are red?
Given that the first was red, red marbles remain among :
With replacement, the answer would have been , a bit larger.
Independence, again
The definition of independence ("knowing doesn't change the chance of ") now has a symbolic form.
Independence using conditional probability
and are independent exactly when (equivalently, ).
For example, if and , then learning that happened raised the chance of , so the events are dependent.
Tree diagrams
When an experiment happens in stages, draw a tree. Write the probability on each branch; branches after the first split are conditional probabilities. Multiply along a path to get the probability of that path, and add paths that lead to the same result.
Worked example: Two machines
A factory has two machines. Machine A makes of the parts, and of its parts are defective. Machine B makes the other , and of its parts are defective. A part is chosen at random.
- What is the probability that it is defective?
- If the part is defective, what is the probability that Machine A made it?
The tree has these four paths:
- A, defective:
- A, not defective:
- B, defective:
- B, not defective:
The four path probabilities add to , a good check.
- Two paths end in "defective": .
- Use the formula with "defective" as the condition:
Even though Machine A makes most of the parts, a defective part is slightly more likely to have come from Machine B.
Tip
Before computing , say the condition out loud: "Out of all the times happens, how often does happen?" Whatever follows "out of" goes in the denominator.
Practice
and . Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
You roll one number cube. Given that the result is odd, what is the probability that it is greater than ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
and . Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A bag has green and yellow marbles. You draw two without replacement. Given that the first marble is yellow, what is the probability that the second is green?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Two cards are drawn from a standard -card deck without replacement. What is the probability that both are aces?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
You roll two number cubes. Given that at least one cube shows a , what is the probability that the sum is at least ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
On any given morning there is a chance of rain. When it rains, Jada's bus is late of the time. When it doesn't rain, the bus is late of the time. What is the probability that the bus is late on a random morning?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Use the bus situation from the previous problem. Given that the bus is late, what is the probability that it rained that morning?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.