Lesson 4.3 · Probability, Random Variables and Distributions
Conditional probability
Knowing that one event happened often changes the probability of another. A positive medical test changes the chance you have a disease, and knowing a student is a senior changes the chance they have a driver's license. Conditional probability is the tool for updating probabilities when you learn new information.
What "given" means
The conditional probability of given , written , is the probability that happens when you already know happened. Knowing happened shrinks the sample space: you only look at outcomes inside , and ask what fraction of them are also in .
Definition
Conditional probability
For events and with ,
In a two-way table, this means: restrict to the row or column of the given event, then divide by that row or column total, not by the grand total.
Worked example: Conditional probability from a two-way table
A survey of 220 students recorded grade level and phone type.
| iPhone | Android | Total | |
|---|---|---|---|
| 9th grade | 38 | 22 | 60 |
| 10th grade | 45 | 35 | 80 |
| 11th grade | 52 | 28 | 80 |
| Total | 135 | 85 | 220 |
Find (a) and (b) .
Solution.
(a) Restrict to the 80 eleventh graders. Of them, 28 use Android:
(b) Restrict to the 85 Android users. Of them, 28 are eleventh graders:
Same cell, different denominators, different answers.
Common mistake
and are usually not equal. The event after the bar is the one you know happened, and its total goes in the denominator. Reading the question carefully for words like "given", "of those who", or "among" tells you which group to restrict to.
The general multiplication rule
Rearranging the definition gives a rule for "and" probabilities:
General multiplication rule
The probability that both happen is the probability the first happens times the probability the second happens given the first.
This is exactly what you use when drawing without replacement: the second draw's probabilities depend on what the first draw removed.
Worked example: Drawing without replacement
A bag has 10 marbles: 4 red and 6 blue. You draw two marbles without replacement. Find the probability both are red.
Solution.
After one red is removed, only 3 of the remaining 9 marbles are red.
Tree diagrams
When a process happens in stages, a tree diagram organizes the multiplication rule. Each first-level branch shows a probability; each second-level branch shows a conditional probability given the branch it grows from. Multiply along a path to get the probability of that whole path, and add paths to get the probability of an event that can happen several ways.
Worked example: A screening test
A disease affects of a population. A screening test gives a positive result for of people who have the disease and for of people who don't. A randomly chosen person tests positive. What is the probability the person actually has the disease?
Solution. Set up the tree.
- Disease (), then positive (): .
- Disease (), then negative (): .
- No disease (), then positive (): .
- No disease (), then negative (): .
The four paths add to , a good check. Two paths lead to a positive test:
Now use the definition of conditional probability:
Only about of people who test positive have the disease. Because the disease is rare, most positive results come from the huge group of healthy people.
That last example shows why conditional probability matters in the real world: the answer is far from the many people would guess.
Tip
For "reverse" questions like , the recipe is always the same: the numerator is the one path you want, and the denominator is the sum of all paths that match the given information.
Practice
For events and , and . Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A random sample of 400 adults were asked whether they exercise regularly.
| Yes | No | Total | |
|---|---|---|---|
| Under 40 | 128 | 72 | 200 |
| 40 and over | 96 | 104 | 200 |
| Total | 224 | 176 | 400 |
Find the probability that a randomly chosen adult from this sample exercises regularly, given that the person is under 40.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Using the table in the previous problem, find the probability that a randomly chosen adult is 40 or over, given that the person does not exercise regularly. Give an exact fraction or a decimal rounded to 3 places.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A box contains 12 light bulbs, 3 of which are defective. Two bulbs are chosen at random without replacement. Find the probability that both are defective. Give an exact fraction or a decimal rounded to 3 places.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A store finds that of its orders are placed online and in the store. Of online orders, are returned; of in-store orders, are returned. What is the probability that a randomly chosen order is returned?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
In the previous problem, a randomly chosen order was returned. What is the probability it was placed online? Give an exact fraction or a decimal rounded to 3 places.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
At a college, of students are engineering majors, and of engineering majors took calculus in high school. Which statement is correct?