In this chapter we’ll learn new, more powerful rules for and . But we’ll start with negation, a rule for calculating .
7.1 The Negation Rule
Figure 7.1: The Negation Rule. .
If there’s a 70% chance of rain, then there’s a 30% chance it won’t rain. In symbols, if then . So the rule for is:
The Negation Rule
.
In terms of an Euler diagram, the probability of is the size of the red region. So is .
Notice that this rule can be flipped around, to calculate the probability of a positive statement:
Sometimes what we want to know is , but it turns out to be much easier to calculate first. Then we use this flipped version of the negation rule to get what we’re after.
7.2 The General Addition Rule
The Addition Rule for calculating depends on and being mutually exclusive. What if they’re not? Then we can use:
The General Addition Rule
.
This rule always applies, whether and are mutually exclusive or not.
Figure 7.2: The General Addition Rule in an Euler diagram.
To understand the rule, consider an Euler diagram where and are not mutually exclusive. In terms of colour, the size of the -region is:
Which is the same as:
In algebraic terms this is:
To think of it another way, when we add to get the size of the region, we double-count the region. So we have to subtract out at the end.
What if there is no region? Then , so subtracting it at the end has no effect. Then we just have the old Addition Rule:
And this makes sense. If there is no region, that means and are mutually exclusive. So the old Addition Rule applies.
That’s why we call the new rule the General Addition Rule. It applies in general, even when and are not mutually exclusive. And in the special case where they are mutually exclusive, it gives the same result as the Addition Rule we already learned.
A tree diagram also works to explain the General Addition Rule. Consider Figure 7.3, where we start with branches for and , then subdivide into branches for and .
Figure 7.3: Tree diagram with the three leaves marked
There are three leaves where is true, marked with asterisks. If we add , we’re adding the two leaves where is true (* and **) to the two leaves where is true (* and ***). So we’ve double-counted the leaf (*). To get then, we have to subtract one of those leaves (*).
There is a catch to the General Addition Rule. You need to know in order to apply it. Sometimes that information is given to us. But when it’s not, we have to figure it out somehow. If and are mutually exclusive, then it’s easy: . Or, if they’re independent, then we can calculate . But in other cases we have to turn elsewhere.
7.3 The General Multiplication Rule
How can we calculate in general?
The General Multiplication Rule
The intuitive idea is, if you want to know how likely it is and will both turn out to be true, first ask yourself how likely is to be true if is true. Then weight the answer according to ’s chances of being true.
Notice, if and are independent, then this rule just collapses into the familiar Multiplication Rule we already learned. If they’re independent, then by definition. So substituting into the General Multiplication Rule gives:
Which is precisely the Multiplication Rule.
So we now have two rules for . The first one only applies when the two sides of the are independent. The second applies whether they’re independent or not. The second rule ends up being the same as the first one when they are independent.
A tree diagram helps us understand this rule too. Recall this problem from Chapter 6, with two urns of coloured marbles:
Urn X contains 3 black marbles, 1 white.
Urn Y contains 1 black marble, 3 white.
I flip a fair coin to decide which urn to draw from, heads for Urn X and tails for Urn Y. Then I draw one marble at random.
Figure 7.4: Tree diagram for an urn problem
Now suppose we want to know the probability the coin will land tails and the marble drawn will be white, . The General Multiplication Rule tells us the answer is:
In the tree diagram, this corresponds to following the bottom-most path, multiplying the probabilities as we go. And this makes sense: half the time the coin will land tails, and on of those occasions the marble drawn will be white. So, if we were to repeat the experiment again and again, we would get tails followed by a white marble in out of every trials.
Black hole warning: notice that the General Multiplication Rule depends on being well-defined. So it only applies when .
7.4 Laplace’s Urn Puzzle
The same urn scenario was used by 18th Century mathematician Laplace in one of his favourite puzzles. He asked what happens if we do two draws, with replacement. What’s the probability both draws will come up black?
It’s tempting to say . The probability of drawing a black marble on each draw is . So it seems the probability of two blacks is just .
But the correct answer is actually . Why? Let’s use a probability tree again.
Figure 7.5: Building a probability tree to solve Laplace’s urn puzzle
Depending on how the coin lands, you could end up drawing either from Urn X or from Urn Y, with equal probability.
If you end up drawing from Urn X, the probability of a black marble on any given draw is . We’re drawing with replacement, so this doesn’t change on the second draw. The probability both draws will come up black is thus .
If instead you end up drawing from Urn Y, the probability of a black marble on any given draw is . And this doesn’t change on the second draw since we’re drawing with replacement. So the chance of both being black in this case is .
So the probability of drawing two black marbles from Urn X is:
And the probability of drawing two black marbles from Urn Y is:
Now we can apply the Addition Rule to calcualte :
7.5 The Law of Total Probability
This kind of calculation comes up a lot. Since it would be tedious to figure it out from scratch every time, we make a general rule instead:
The Law of Total Probability
.
There’s an intuitive idea at work here. To figure out how likely is, consider how likely it would be if were true, and how likely it would be if were false. Then weight each of those hypothetical possibilities according to their probabilities.
Figure 7.6: The Law of Total Probability calculates the size of the region by summing its two parts.
We can also use an Euler diagram. The size of the region is the sum of the region and the region: . And each of those regions can be calculated using the General Multiplication Rule. For example, . So in algebraic terms we have:
Which is precisely the Law of Total Probability.
Figure 7.7: The Law of Total Probability in a tree diagram
We can also use a tree diagram to illustrate the same reasoning. There are two leaves where is true, marked with asterisks. To get the probability of each leaf we multiply across the branches (that’s the General Multiplication Rule). And then to get the total probability for , we add up the two leaves: . Once again the result is the Law of Total Probability:
Black hole warning: notice that the Law of Total Probability depends on and both being well-defined. So it only applies when and .
7.6 Example
Every day Professor X either drives her car to campus or takes the bus. Mostly she drives, but one time in four she takes the bus. When she drives, she’s on time of the time. When she takes the bus, she’s on-time of the time. What is the probability she’ll be on time for class tomorrow?
First let’s solve this by just applying the Law of Total Probability directly:
Now let’s solve it slightly differently, thinking the problem through from more basic principles.
There are two, mutually exclusive cases where Professor X is on time: one where she takes the bus, one where she drives.
We can use the General Multiplication Rule to calculate the probability she’ll take the bus and be on time:
And we can do the same for the probability she’ll drive and be on time:
Putting all the pieces together:
Notice that we didn’t just get the same answer, we ended up doing the same calculation too. Our second approach just reconstructed from scratch the reasoning behind the Law of Total Probability. It’s a very good idea to understand the rationale behind the Law of Total Probability. But once you get used to the formula, it’s also fine to skip straight to applying it directly.
Figure 7.8: A probability tree for Professor X
You can also use a tree diagram. Again, the calculation will be the same. But the diagram may help you get started, and it helps you check that you’ve applied the formula correctly too.
Exercises
Suppose you have an ordinary deck of playing cards, and you draw one card at random. What is the probability you will draw:
A face card (king, queen, or jack)?
A card that is not a face card?
An ace or a spade?
A queen or a heart?
A queen or a non-spade?
Suppose that , , and that and are independent. What is ?
What is in the first version of the urn problem? (The first version is the one where we start with a fair coin flip to choose between Urn X and Urn Y, then draw one marble at random.)
Recall Laplace’s version of the urn puzzle: we select either Urn X or Urn Y at random, then we do two random draws from it, with replacement. What is ?
Suppose we add a third urn to Laplace’s puzzle: Urn Z contains black marbles and white ones. We choose one of the three urns at random, and then do two random draws with replacement. What is then?
The Law of Total probability calculates by considering two cases, and . Notice that and form a partition: they are mutually exclusive and exhaustive possibilities.
Suppose we had a partition of three propositions instead: , , and . Would the following extension of the Law of Total Probability hold then?
Justify your answer.
Suppose there are two urns with the following contents:
Urn I has 8 black balls, 2 white.
Urn II has 2 black balls, 3 white.
A fair coin will be flipped. If it comes up heads, a ball will be drawn from Urn I at random. Otherwise a ball will be drawn from Urn II at random. What is the probability a black ball will be drawn?
Suppose you have an ordinary deck of 52 cards. A card is drawn and is not replaced, then another card is drawn. Assume that on each draw all the cards then in the deck have an equal chance of being drawn.
What is the probability of getting an ace on draw 1?
What is the probability of a ten on draw 2 given ace on draw 1?
What is the probability of an ace on draw 1 and a ten on draw 2?
What is the probability of a ten on draw 1 and an ace on draw 2?
What is the probability of an ace and a ten?
What is the probability of 2 aces?
The probability that George will study for the final is . The probability he will pass given that he studies is . The probability he will pass given that he does not study is . What is the probability George will pass?
Calculate each of the following probabilities:
, , . What is ?
. What is ?
. What is ?
, and and are independent.
What is ?
Are and mutually exclusive?
What is ?
Suppose , , and are all mutually exclusive, and they each have the same probability: . What is ?
Researchers are studying the safety of drug X. They enroll 60 subjects in a study and give drug X to 35 of them. By the end of the study, 5 subjects have developed stomach cancer: 3 who were taking drug X, 2 who were not.
Draw a Venn diagram and use it to answer the following questions about a randomly selected subject:
What is the probability they developed stomach cancer?
What is the probability they developed stomach cancer given that they were taking drug X?
What is the probability they developed stomach cancer given that they were not taking drug X?
Based on this study, would you conclude that drug X increases or decreases the risk of stomach cancer?
There is a room filled with two types of urns.
Type A urns contain 30 yellow marbles, 70 red.
Type B urns contain 20 green marbles, 80 yellow.
The two types of urn look identical, but 80% of them are Type A.
You pick an urn at random and draw a marble from it at random. What is the probability the marble will be yellow?
You look at the marble: it is yellow. What’s the probability the urn is a Type B urn?
Suppose , , and are independent of one another. Does it follow that ? Justify your answer.
Is the following combination of probabilities possible? , , and . Justify your answer.
Which of the following situations is impossible? Justify your answer.
, , .
, , .
If , what is ? Justify your answer.
If and are logically equivalent, what is ? Justify your answer.
Suppose , , and all have the same probability, namely . Suppose they are also independent of one another. What is ?
Hint: is logically equivalent to . Why?
If and , are and mutually exclusive? Justify your answer.
Suppose , , and and are independent. What is ?
Suppose logically entails , and and are independent. If , , and , what is ?
If and are mutually exclusive, must the following hold?
Assume the conditional probabilities are all well-defined, and justify your answer.
Hint: apply the definition of conditional probability and use the following fact: is logically equivalent to .
Prove that if and are mutually exclusive, then
If , does this follow?
Assume all conditional probabilities are well-defined, and justify your answer.
Justify the claim from Chapter 6 that independence extends to negations: if is independent of , then it’s also independent of (provided ).
Warning: this one is hard. I suggest starting with the equation:
Then use the Negation Rule which tells us:
And use the Addition Rule to get:
Three friends get together and tell each other their birthdays. If each person’s birthday is independent of the others, what is the probability that they all have different birthdays? Assume birthdays are randomly distributed, and ignore leap years; each friend has a chance of being born on a given day.
An urn has two marbles, one black and one white. We will do repeated random draws, with replacement. But every time we draw a white marble, another white marble will be added to the urn for the next draw. Suppose we do draws. What is the probability they will all be white?
Consider the inequality . Which of the following is correct?
This inequality always holds.
This inequality only holds sometimes: when and are mutually exclusive.
This inequality only holds sometimes: when and are compatible (not mutually exclusive).
This inequality only holds sometimes: when .
This inequality never holds.
Consider the following two statements.
If and , then .
If , then and .
Assuming all conditional probabilities are well-defined, which of these statements is true? Both, neither, or just one (which one)?
Consider the following two assignments of probabilities.
, , .
, , .
Which of them violate the laws of probability: both, neither, or just one (which one)?
Consider the following two assignments of probabilities.
, , .
, , .
Which of them violate the laws of probability: both, neither, or just one (which one)?
Consider the following two assignments of probabilities:
, , .
, , .
Which of them violate the laws of probability: both, neither, or just one (which one)?
In April of 2021 during the Covid-19 pandemic, concerns arose about the safety of one of the vaccines. At the time million people had already received this vaccine, a few of whom developed dangerous bloodclots. One of these people had already died as a result.
This exercise is based on a tweet of Nate Silver’s
Suppose at the time there was a chance of getting Covid-19 without the vaccine, and only a chance with the vaccine. And suppose unvaccinated people who got Covid-19 died in cases, while those who’d had the vaccine only died in cases.
What then was the probability of dying, either from a vaccine-induced blood clot or from Covid-19, if you did take the vaccine? What was the probability if you didn’t? (Assume no other vaccines were available.)
Prove that if , then .
Prove that .
Prove that as long as the two conditional probabilities are well-defined.