# Six Detailed Examples Using The Multiplication Rule

Recall that the multiplication rule is used to calculate the probability that multiple events occur.

If the events are independent, the formula is:

P(A and B) = P(A) * P(B)

If the events are dependent, the formula is:
P(A and B) = P(A) * P(B|A) A detailed explanation of the addition rule is part of the DISCOVERY course content:

## Example 1: Farmers Market (Simple)

Reed loves going to the farmers market. Each week, he has an 18% chance of buying flowers, a 23% chance of buying apples, a 42% chance of buying a loaf of bread, and a 17% chance of buying tomatoes. Each decision is independent of his other decisions.

What is the probability that Reed buys flowers and a loaf of bread?

### Solution

The question asks us to find the probability of both events occurring, so we know we need to use the multiplication rule. Additionally, since we have been told these events are independent, we can use the formula: P(A and B) = P(A) * P(B) where:

• P(A) is the probability that Reed buys flowers, which is given to us as 18% or 0.18.
• P(B) is the probability that Reed buys a loaf of bread, which is given to us as 42% or 0.42.

Therefore:

• P(flowers and bread) = P(A) * P(B) = 0.18 * 0.42 = 0.0756
• The probability that Reed buys flowers and a loaf of bread is 7.56% (0.0756).

## Example 2: Trains

Thomas takes the train to work every day. He has to take the red line to the blue line, but the blue line has a 68% chance of being late if the red line is late. The red line has a 22% chance of being late if Thomas leaves for work before 8:00 AM, but it has a 45% chance of being late if Thomas leaves later.

What is the probability that both the red and blue lines are late if Thomas leaves for work at 8:15 AM?

### Solution

The question asks us to find the probability of both events occurring, so we know we need to use the multiplication rule. However, since the blue line being late is depending on if the red line is late, we know the events are not independent. Therefore, we need to use the formula: P(A and B) = P(A) * P(B|A) where:

• P(A) is the probability that the red train is late when Thomas leaves for work at 8:15 AM. This is given in the problem as 45% or 0.45.
• P(B) is the probability that the blue train is late.
• P(B | A) is the probability that the blue train is late given A (which was the probability that the red train is late). This was given in the problem as 68% or 0.68.

Therefore:

• P(A and B) = P(A) * P(B|A) = 0.45 * 0.68 = 0.306
• The probability that both the red and the blue trains are late when Thomas leaves at 8:15 AM is 30.6% (0.306).

# Example 4: Concert

Mary and Rose are seeing their favorite band in concert tonight, and they really want to meet them. After each show, the band has a 15% chance of coming out to meet fans. If they come out, there is a 60% chance they will give out signed posters and a 45% chance they will take a picture with fans. If they do not come out, there is a 35% chance security will give out signed posters and a 22% chance that they will hand out official set lists. What is the probability that the band comes out and Mary and Rose get a signed poster?

### Solution

The question asks us to find the probability of both events occuring, so we know we need to use the multiplication rule. However, since receiving a signed poster is dependent on if the band comes out, we know the events are dependent. Therefore, we need to use the formula P(A and B) = P(A) * P(B|A) where:

• P(A) is the probability that the band comes out to meet fans. This is given in the problem as 15% or 0.15
• P(B) is the probability that Mary and Rose receive a signed poster.
• P(B|A) is the probability that Mary and Rose receive a signed poster given A (which was the probability that the band comes out to meet fans). This is given to us in the problem as 60% or 0.6.

Therefore:

• P(A and B) = P(A) * P(B|A) = 0.15 * 0.60 = 0.09
• The probability that the band comes out to meet fans and Mary and Rose get a signed poster is 9% (0.09).

# Example 5: Travel (with Python)

Caroline and Victor are feeling adventurous, and want to travel twice this year. However, they are feeling indecisive, and put all of the places they are considering on slips of paper in a hat.
Below is a DataFrame representing all of the places they are considering:

Caroline randomly selects 2 slips of paper with destinations from the hat without replacement. What is the probability that both destinations are in Europe?

### Solution:

#### Hand Calculations

The question asks us to find the probability of both events occuring, so we know we need to use the multiplication rule. However, since Caroline is selecting from the hat without replacement, we know the events are dependent. Therefore, we need to use the formula P(A and B) = P(A) * P(B|A) where:

• P(A) is the probability Caroline chooses a destination in Europe on her first selection. This is the total amount of destinations in Europe (7) divided by the total amount of destinations (21), 7⁄21 or approximately 33.33% or approximately 0.3333.
• P(B) is the probability Caroline chooses a destination in Europe on her second selection.
• P(B|A) is the probability Caroline chooses a destination in Europe on her second selection given she chose Europe on her first selection. This is the total amount of destinations in Europe divided by the total amount of destinations after choosing 1 Europe slip, 6⁄20 or 30% or 0.3.

Therefore:

• P(A and B) = P(A) * P(B|A) = 7⁄21 * 6⁄20 = 0.1 or 10%
• The probability that Caroline chooses 2 slips of paper with destinations in Europe from a hat withoout replacement is 10% (0.1).

# Example 6: Group Project

For the next week, Antonia's english class will be working on a group project. Antonia will be put in a randomly chosen group with 4 other students in the class.
Below is a DataFrame representing all of the students in Antonia's class:

Since Antonia is a sophomore, she hopes that she will be put in a group with other sophomores to meet more people in her year. What is the probability that at least 1 student in her group is a sophomore?

### Solution:

#### Hand Calculations

The question asks us to find the probability of at least one event occuring out of three selections, so we know we need to use the multiplication rule. However, since we want to find the probability of at least one sophomore, we know that we should use the complement to make the problem easier for us. The complement of choosing at least one sophomore is choosing no sophomores. When we do 1 - probability of no sophomores, we get the total probability of all other events that include either 1, 2, or 3 sophomores, also known as at least one sophomore. Since group members are chosen without replacement, we know that these events are dependent. Therefore, we need to use the formula P(A and B and C) = P(A) * P(B|A) * P(C|A and B) where:

• P(A) is the probability that the first person chosen is not a sophomore. This is the total amount of non-sophomores, 14, and divided by the total number of students, 20. Therefore, it is 14⁄20 or 70% or 0.7.
• P(B) is the probability that the second person chosen is not a sophomore.
• P(B|A) is the probability that the second person chosen is not a sophomore given the first person chosen is not a sophomore. This is the total amount of non-sophomores left to choose from after one non-sophomore is chosen, 14 - 1 = 13, divided by the total number of students left to choose from, 20 - 1 = 19. Therefore, it is 13⁄19 or approximately 68.42% or 0.6842.
• P(C) is the probability that the third person chosen is not a sophomore.
• P(C|A and B) is the probability that the third person chosen is not a sophomore given the first and second people chosen are not sophomores. This is the total amount of non-sophomores left to choose from after 2 non-sophomores are chosen, 14 - 2 = 12, divided by the total number of students left to choose from after 2 people are chosen, 20 - 2 = 18. Therefore, it is 12⁄18 or 66.67% or 0.6667.
• P((A and B and C)') denotes the probability of the complement of A and B and C where P(A and B and C) is the probability of no sophomores being chosen for Antonia's group. Therefore, P((A and B and C)') is the probability that at least one sophomore is chosen for Antonia's group.

Therefore:

• P(A and B and C) = P(A) * P(B|A) * P(C|A and B) = 14⁄20 * 13⁄19 * 12⁄18 0.3193
• P((A and B and C)') = 1 - P(A and B and C) = 1 - 0.3193 = 0.6807
• The probability that at least one sophomore is chosen for Antonia's group is 68.07% (0.6807).