Here you will learn to calculate a probability that depends on another, different, probability in order to occur.
Suppose you wanted to calculate the probability of pulling the King of Hearts, then the Jack of Diamonds, and then any of the four Aces, from a standard deck of 52 cards, in that order, and without replacing any cards between pulls. Would the probability be significantly different than if you put the cards back after drawing each time?
In this lesson we will discuss conditional probabilities that are different for each trial. We’ll return to this question after the lesson.
http://youtu.be/H02B3aMNKzE statisticsfun – How to Calculate Conditional Probability
In a previous lesson, we discussed compound probabilities and reviewed some situations involving the probability of multiple occurrences of the same event in a row. A standard example would be the probability of throwing a fair coin three times and getting three heads. In this lesson, we will be introducing a slightly more complex situation, where the coin may or may not be fair.
A new concept we will be introducing in this lesson is the “given that” concept. The idea is that we sometimes need to calculate a probability with a specific condition, for example:
The probability of rolling a “2” on a standard die is . What is the probability of rolling a “2”, given that I know already that I have rolled an even number? As described in the video above, this is a conditional probability , and we notate it this way: , which is read as “The probability of rolling a “2” given that we roll an even number”.
The difference in calculations is:
To calculate a “given that” type of problem, we use the conditional probability formula :
This is read as: “The probability that will occur, given that will occur (or has occurred), is equal to the intersection of probabilities and divided by the probability of alone.
We have practiced the use of the addition rule and the multiplication rule for calculating probabilities, here we will also be using those again, but this time we will need to combine them for some of the problems.
What is the probability that you have pulled the Jack of Hearts from a standard deck, given that you know you have pulled a face card?
Solution: Let’s solve this using the conditional probability formula first (A), then check by looking at the question another way (B):
A. The problem asks us to calculate the probability of a card being the Jack of Hearts, given that the card is a face card: . Apply the conditional probability formula: . Putting in the information from the problem gives us:
B. The other way to view this is that we are looking for the probability of pulling the Jack of Hearts from the sample space including only face cards, which means we are looking for one specific card from a set including only 12 cards:
We calculate 8.33% both ways, looks like we got it!
What is the probability that you could roll a standard die and get a 6, then grab a deck of cards and pull the King of Clubs, keep it, and then pull the Jack of Hearts?
Solution: This one looks rather complex, but it can be seen as just three individual probabilities:
The overall probability can, and should, be calculated with the multiplication rule, since the 2 nd and 3 rd are dependent:
You reach into a bag containing 6 coins, 4 are ‘fair’ coins (they have an equal chance of heads or tails), and 2 are ‘unfair’ coins (they have only a 35% chance of tails). If you randomly grab a coin from the bag and flip it 3 times, what is the probability of getting 3 heads?
Solution: We actually have two different situations here:
- We flip a ‘fair’ coin 3 times and get 3 heads
- We flip an ‘unfair’ coin and get 3 heads
Since there are 4 fair coins, and 2 unfair coins, we can say the probability of: and .
Note that would be the same thing as , (see the apostrophe?) which is the complement of . In other words: the probability of choosing an unfair coin is 100% minus the probability of choosing a fair coin.
Let’s calculate the probabilities of flipping each 3 times using the multiplication rule:
- The fair coin has a .5 chance of heads each flip:
- The unfair coin has a .65 chance:
So now we can put them together to find the overall probability (the union) by applying the addition rule:
The probability that we can randomly grab a coin from the bag and flip three heads in a row with it is 17.5%
Concept Problem Revisited
Suppose you wanted to calculate the probability of pulling the King of Hearts, then the Jack of Diamonds, and then any of the four Aces, from a standard deck of 52 cards, in that order and without putting any back. Would the probability be significantly different than if you put the cards back after drawing each time?
The probability would be different, but perhaps less different than you might think, at least as a percentage. Let’s look at the two cases, with representing the probability with each choice coming out of a full deck of 52 cards, and representing the probability when the deck gets smaller each pull:
The difference in probability is approximately or of 1%, pretty small difference!
A conditional probability is a probability that depends on the outcome of another event.
The conditional probability formula is
For questions 1 – 3: Suppose you have two coins, one is a normal, fair coin, and the other is an unfair coin that has a 75% chance of landing on heads. For each question, assume you reach into the bag, grab one of the two coins at random, and perform the experiment using that coin.
1. What would be the probability of the coin landing heads on your first flip?
2. What would be the probability of flipping tails four times in a row?
3. What would be the probability of flipping heads five times in a row?
4. Assume you are using a limited portion of a deck of cards that only includes face cards (no number cards). Assume also that each time you pull a card, you keep it until the end of the experiment. What would be the probability of pulling three kings in a row?
5. What would be the probability or rolling a 5, given that you know you rolled an odd number?
1. To calculate the probability of flipping heads, we need to calculate the union of 50% of the probability of flipping heads on each coin. (Why 50% of each probability? There are two coins, so the chance that you will pull either one is 50%)
2. To calculate the probability of flipping four tails in a row, we calculate the union of 50% of the probability of flipping four tails in a row with each coin, much like in question 1.
3. Just like question 2, only this time the probability will end up greater, since the unfair coin has a large chance of heads:
4. The key here is to note that you do not replace the card between pulls. That means that the probability changes with each trial. Let’s look at the situation for each trial individuality:
- : Since we are only dealing with face cards, our first trial will have 12 possible outcomes, four for each of three face cards. Four of the outcomes are favorable, since there are four kings.
- Our second trial will have only 11 outcomes, since we are keeping the first card. There are only three favorable outcomes this time, since we “used up” a king if was favorable.
- The third pull only has 10 outcomes, since we will already have the other two cards. Two of the outcomes are favorable, since there would be only two kings left.
5. This is a ‘given that’ problem, so we can use the conditional probability formula:
- What is the probability that you roll two standard dice, and get 4’s on both, given that you know that you have already rolled a 4 on one of them?
- Assuming you are using a standard deck, what is the probability of drawing two cards in a row, without replacement, that are the same suit?
- What is the probability that a single roll of two standard dice will result in a sum greater than 8, given that one of the dice is a 6?
- Assuming a standard deck, what is the probability of drawing 3 queens in a row, given that the first card is a queen?
- There are 130 students in your class, 50 have laptops, and 80 have tablets. 20 of those students have both a laptop and a tablet. What is the probability that a randomly chosen student has a tablet, given that she has a laptop?
- Thirty percent of your friends like both Twilight and The Hobbit, and half of your friends like The Hobbit. What percentage of your friends who like the Hobbit also like Twilight?
- Assume you pull and keep two candies from a jar containing sweet candies and sour candies. If the probability of selecting one sour candy and one sweet candy is 39%, and the probability of selecting a sweet candy first is 52%, what is the probability that you will pull a sour candy on your second pull, given that you pulled a sweet candy on your first pull?
- The probability that a student has called in sick and that it is Monday is 12%. The probability that it is Monday and not another day of the school week is 20% (there are only five days in the school week). What is the probability that a student has called in sick, given that it is Monday?
- A neighborhood wanted to improve its parks so it surveyed kids to find out whether or not they rode bikes or skateboards. Out of 2300 children in the neighborhood that ride something, 1800 rode bikes, and 500 rode skateboards, while 200 of those ride both a bike and skateboard. What is the probability that a student rides a skateboard, given that he or she rides a bike?
- A movie theatre is curious about how many of its patrons buy food, how many buy a drink, and how many buy both. They track 300 people through the concessions stand one evening, out of the 300, 78 buy food only, 113 buy a drink only and the remainder buy both. What is the probability that a patron buys a drink if they have already bought food?
- A sporting goods store want to know if it would be wise to place sports socks right next to the athletic shoes. First they keep the socks and shoes in separate areas of the store. They track purchases for one day, Saturday, their busiest day. There were a total of 147 people who bought socks, shoes, or both in one given day. Of those 45 bought only socks, 72 bought only shoes and the remainder bought both. What is the probability that a person bought shoes, if they purchased socks?
- The following week they put socks right next to the shoes to see how it would affect Saturday sales. The results were as follows; a total of 163 people bought socks, shoes, or both. Of those 52 bought only socks, 76 bought only shoes and the remainder bought both. What is the probability that a person bought socks, if they purchased shoes?
- A florist wanted to know how many roses and daisies to order for the upcoming valentines rush. She used last year’s statistics to determine how many to buy. Last year she sold 52 arrangements with roses only, 15 arrangements with daises only, and 36 arrangements with a mixture of roses and daises. What is the probability that an arrangement has at least one daisy, given that it has at least one rose?