Lesson Explainer: Conditional Probability | Nagwa Lesson Explainer: Conditional Probability | Nagwa

Lesson Explainer: Conditional Probability Mathematics

In this explainer, we will learn how to calculate conditional probability using formulas and Venn diagrams.

In probability, there are situations where new information changes the probability of events. For instance, say that we are trying to guess a card that our friend has selected out of a deck of 52 cards. Based on pure speculation, we can guess that our friend has selected the ace of spades. Since there is no information about which one is the correct card, the probability that our guess is correct is 152. What if our friend reveals that the correct card is a spade? Given this new information, the probability that our guess is correct will increase to 113.

We can note that the value of the probability that our guess is correct changed when new information was revealed. This demonstrates the concept of conditional probability, which is the probability of an event given a specific outcome of another event. In this context, the probability 113 represents the conditional probability that the correct card is the ace of spades given that the correct card is a spade.

Definition: Conditional Probability

Let 𝐴 and 𝐵 be events in the same sample space. The conditional probability of 𝐵 given 𝐴, denoted 𝑃(𝐵𝐴), is the probability of event 𝐵 if we already know that event 𝐴 is true.

To compute the conditional probability, we can either use a formula or a Venn diagram. Let us begin with the approach using a Venn diagram, which can be used to derive our formula. Consider the Venn diagram below representing events 𝐴 and 𝐵 in the sample space 𝑆.

The number inside each region of the Venn diagram represents the number of possible outcomes of the corresponding event. Let us further assume that each outcome is equally likely.

Using this Venn diagram, we will find the conditional probability 𝑃(𝐵𝐴). If we already know that event 𝐴 is true, event 𝐵 will be true only for the outcomes in the intersecting region, which is the pink region in the Venn diagram. This means that, with this given information, there are 2 different outcomes for which event 𝐵 is true. Also, since we know that event 𝐴 is true, there is a total of 3+2=5 different possible outcomes. This leads to the conditional probability 𝑃(𝐵𝐴)=25.

In our first example, we will demonstrate this process for a real-world problem.

Example 1: Conditional Probability

On the street, 10 houses have a cat (C), 8 houses have a dog (D), 3 houses have both, and 7 houses have neither.

  1. Find the total number of houses on the street. Hence, find the probability that a house chosen at random has both a cat and a dog. Give your answer to three decimal places.
  2. Find the probability that a house on the street has either a cat or a dog or both. Give your answer to three decimal places.
  3. If a house on the street has a cat, find the probability that there is also a dog living there.

Answer

Before considering the questions, let us organize the given information into a Venn diagram. Since we are told that 3 houses have both cats and dogs, we can fill in the intersecting area of our Venn diagram first.

Now, if 10 houses have cats, and we know that 3 of them also have dogs, this leaves 103=7 houses that have only cats.

Likewise, if 8 houses have dogs, but 3 of those houses also have cats, then 83=5 houses just have dogs.

Finally, we are told that 7 houses have neither cats nor dogs, so we can fill in the area outside the ovals.

We can find the total number of houses by adding the numbers from each section of the diagram. So the total is 7+3+5+7=22. Now let us consider each question.

Part 1

This question asks for the probability that a randomly selected house has both a cat and a dog. From the Venn diagram above, we can see that there are 3 houses with both a cat and a dog and 22 houses in total. Since a house is chosen at random, we can assume that each outcome is equally likely. Hence, the probability that a randomly selected house has both a cat and a dog is numberofhouseswithdogsandcatstotalnumberofhouses=322=0.1363.

Therefore, the probability is 0.136 to three decimal places.

Part 2

This question asks for the probability that a randomly selected house has either a cat or a dog or both. From the Venn diagram, we can see that there are 7+3+5=15 houses that meet this criterion. Since there are 22 total houses, this probability is numberofhouseswithdogsorcatstotalnumberofhouses=1522=0.6818.

Hence, the probability that a house has either a cat or a dog or both is 0.682 to three decimal places.

Part 3

This question asks for the probability that a dog lives in a house if the house has a cat. The phrase “if the house has a cat” restricts the number of possible houses to only the 10 houses that own a cat.

Out of the 10 houses we are now considering, only 3 have dogs, so if a house on the street has a cat, then the probability it also has a dog is 310=0.3.

In the previous example, we computed various probabilities using a Venn diagram. The probability we computed for the final part of the example is actually the conditional probability. If 𝐵 is the event that a house has a dog, and 𝐴 is the event that a house has a cat, then the probability that a house has a dog given that it has a cat is the conditional probability 𝑃(𝐵𝐴).

By using a Venn diagram to compute the conditional probability, we can see that the given condition restricts the sample space to a subset. “Given that the house has a cat” implies that we only need to consider a subset of 10 houses that have cats. Since we are restricted to houses with cats, a house with a dog in this case would also mean that it has both a cat and a dog and hence belongs to the intersection 𝐵𝐴.

Since each outcome is equally likely, we can represent this conditional probability as 𝑃(𝐵𝐴)=𝐵𝐴𝐴.numberofoutcomesinnumberofoutcomesin

While this produces a formula for conditional probability, this version of the formula is not very useful since we need to count the number of outcomes. If we divide the top and the bottom of this fraction by the total number of houses in the street, we can obtain the probabilities of these events instead. In other words, 𝑃(𝐵𝐴)==𝑃(𝐵𝐴)𝑃(𝐴).numberofoutcomesintotalnumberofhousesnumberofoutcomesintotalnumberofhouses

Although this formula was obtained using a specific example, it is in fact a general formula that can be used to compute any conditional probability.

Formula: Conditional Probability

Let 𝐴 and 𝐵 be events in the same sample space, where 𝑃(𝐴)0. The conditional probability of 𝐵 given 𝐴 is given by 𝑃(𝐵𝐴)=𝑃(𝐵𝐴)𝑃(𝐴).

Let us consider an example where we will compute a conditional probability using this formula.

Example 2: Determining Conditional Probability

Suppose 𝐴 and 𝐵 are two events. Given that 𝑃(𝐴𝐵)=23 and 𝑃(𝐴)=913, find 𝑃(𝐵𝐴).

Answer

Recall that 𝑃(𝐵𝐴) is the conditional probability of 𝐵 given 𝐴, which can be computed using the formula 𝑃(𝐵𝐴)=𝑃(𝐴𝐵)𝑃(𝐴).

Since we are given that 𝑃(𝐴𝐵)=23 and 𝑃(𝐴)=913, we can substitute these values into the conditional probability to obtain 𝑃(𝐵𝐴)==23×139=2627.

Hence, the probability 𝑃(𝐵𝐴) is 2627.

In the next example, we will apply this definition to compute the conditional probability from a Venn diagram containing probabilities of events.

Example 3: Using Probabilities in a Venn Diagram to Calculate Conditional Probabilities

Consider the following Venn diagram.

Calculate the value of 𝑃(𝐵𝐴).

Answer

Recall that 𝑃(𝐵𝐴) is the conditional probability of 𝐵 given 𝐴, which can be computed using the formula 𝑃(𝐵𝐴)=𝑃(𝐴𝐵)𝑃(𝐴).

We need to identify the probabilities 𝑃(𝐴𝐵) and 𝑃(𝐴) from the Venn diagram. Since the given Venn diagram contains the probabilities of events corresponding to the regions, we need to simply identify these regions. The probability of the intersection 𝐴𝐵 is given in the region that is the overlap of the two circles. This gives 𝑃(𝐴𝐵)=210.

On the other hand, 𝐴 is the region given by the first circle, which is split into two pieces. We can compute the probability of 𝐴 by adding these two probabilities: 𝑃(𝐴)=310+210=510.

Substituting these values into the conditional probability, we have 𝑃(𝐵𝐴)==25.

In a conditional probability 𝑃(𝐵𝐴), interchanging the locations of events 𝐵 and 𝐴 to write 𝑃(𝐴𝐵) produces a different conditional probability. In most cases, these two values are not the same, as they represent different probabilities. As we can compute 𝑃(𝐵𝐴)=𝑃(𝐴𝐵)𝑃(𝐴), we can also compute 𝑃(𝐴𝐵)=𝑃(𝐴𝐵)𝑃(𝐵).

We need to remember that the denominator of the conditional probability is always the probability of the condition.

In the next example, we will compute both 𝑃(𝐴𝐵) and 𝑃(𝐵𝐴) using this formula.

Example 4: Calculating Conditional Probabilities

It has been found for two events 𝐴 and 𝐵 that 𝑃(𝐴)=0.7, 𝑃(𝐵)=0.5, and 𝑃(𝐴𝐵)=0.9.

  1. Work out 𝑃(𝐴𝐵).
  2. Work out 𝑃(𝐴𝐵).
  3. Work out 𝑃(𝐵𝐴).

Answer

Part 1

Let us find the probability of the intersection 𝐴𝐵. We are given 𝑃(𝐴)=0.7 and 𝑃(𝐵)=0.5. Recall that 𝐵 represents the complement of 𝐵, and the complement rule states that 𝑃(𝐵)=1𝑃(𝐵).

Substituting the given probability 𝑃(𝐵), we obtain 0.5=1𝑃(𝐵),𝑃(𝐵)=0.5.whichleadsto

Now, we are also given 𝑃(𝐴𝐵)=0.9. Recall the general addition rule, which states that 𝑃(𝐴𝐵)=𝑃(𝐴)+𝑃(𝐵)𝑃(𝐴𝐵).

Substituting all the known probabilities, 0.9=0.7+0.5𝑃(𝐴𝐵).

Rearranging this equation so that 𝑃(𝐴𝐵) is the subject, we obtain 𝑃(𝐴𝐵)=0.7+0.50.9=0.3=310.

Part 2

Recall that 𝑃(𝐴𝐵) is the conditional probability of 𝐴 given 𝐵, which can be computed using the formula 𝑃(𝐴𝐵)=𝑃(𝐴𝐵)𝑃(𝐵).

Since we know 𝑃(𝐴𝐵)=0.3 and 𝑃(𝐵)=0.5, we obtain 𝑃(𝐴𝐵)=0.30.5=35.

Part 3

Similarly, the conditional probability 𝑃(𝐵𝐴) can be computed using the formula 𝑃(𝐵𝐴)=𝑃(𝐴𝐵)𝑃(𝐴).

Since we know 𝑃(𝐴𝐵)=0.3 and 𝑃(𝐴)=0.7, we obtain 𝑃(𝐴𝐵)=0.30.7=37.

In the previous example, we computed the conditional probabilities 𝑃(𝐴𝐵) and 𝑃(𝐵𝐴). We can observe that these probabilities have different values in this example as expected.

We now turn our attention to yet another use of conditional probability. Using the formula 𝑃(𝐵𝐴)=𝑃(𝐴𝐵)𝑃(𝐴), we can obtain another useful formula when we multiply by 𝑃(𝐴) on both sides of this equation.

Rule: General Multiplication Rule

Let 𝐴 and 𝐵 be events in the same sample space. Then, 𝑃(𝐴𝐵)=𝑃(𝐵𝐴)𝑃(𝐴).

This formula tells us that the probability of the intersection of two events is equal to the product of the conditional probability and the probability of the conditioned event.

Let us consider an example where we apply this rule to find the probability of an intersection.

Example 5: Determining the Intersection of Two Events Using the Multiplication Rule

Suppose that 𝐴 and 𝐵 are two events. Given that 𝑃(𝐴)=0.52 and 𝑃(𝐵𝐴)=0.75, find 𝑃(𝐴𝐵).

Answer

We recall the general multiplication rule, which states that for any two events 𝐴 and 𝐵, 𝑃(𝐴𝐵)=𝑃(𝐵𝐴)𝑃(𝐴).

Since we are given that 𝑃(𝐴)=0.52 and 𝑃(𝐵𝐴)=0.75, we can substitute these values into the general multiplication rule to obtain 𝑃(𝐴𝐵)=0.52×0.75=0.39.

In the final example, we will apply the general multiplication rule to a real-world problem to compute a probability.

Example 6: Calculating Conditional Probabilities

Mona either takes the bus to school or, if she misses it, she walks. The probability that she catches the bus on any given day is 0.4. If she catches the bus, the probability that she will get to school on time is 0.8, but if she misses the bus and has to walk, the probability of her being on time drops to 0.6.

  1. Work out the probability that she catches the bus and is on time for school on a given day.
  2. Work out the probability that she is on time for school on a given day, whether or not she catches the bus.
  3. Hence, find the probability that she will be late for school on a given day.

Answer

Before we begin answering the questions, let us first interpret the given information and put it into probability notation. In this example, Mona either takes the bus to school or misses it. Let 𝐵 denote the event that she takes the bus, which means that the event that she misses the bus is denoted by the complement 𝐵. Also, we can let 𝐴 denote the event that she gets to school on time, which means that the event that she is late to school is given by the complement 𝐴.

We are given that the probability that she catches the bus on any given day is 0.4, which means 𝑃(𝐵)=0.4.

If she catches the bus, the probability that she will get to school on time is 0.8. Since this statement begins with the phrase “if she catches the bus,” this is a conditional probability of her getting to school on time given that she catches the bus. Hence, 𝑃(𝐴𝐵)=0.8.

If she misses the bus and has to walk, the probability of her being on time drops to 0.6. This is also a conditional probability of event 𝐴 given the complement 𝐵. Thus, 𝑃(𝐴𝐵)=0.6.

Now that we have interpreted all the given information and put it in probability notation, let us begin examining each question.

Part 1

We need to find the probability that she catches the bus and is on time for school on a given day. Using the probability notation, this is the probability 𝑃(𝐴𝐵). We recall the general multiplication rule which states that 𝑃(𝐴𝐵)=𝑃(𝐴𝐵)𝑃(𝐵).

Since we know that 𝑃(𝐴𝐵)=0.8 and 𝑃(𝐵)=0.4, we have 𝑃(𝐴𝐵)=0.8×0.4=0.32.

Hence, the probability that she catches the bus and is on time for school on a given day is 0.32.

Part 2

We need to find the probability that she is on time for school whether or not she catches the bus. To compute this probability, let us consider the Venn diagram with circles representing events 𝐴 and 𝐵.

We have filled in the probability from the previous part, 𝑃(𝐴𝐵)=0.32, in the Venn diagram. Also, Since 𝑃(𝐵)=0.4, we know that the probabilities in the region representing event 𝐵 must sum to 0.4. This leads to the probability 0.08 in the diagram above.

Now, we want to compute 𝑃(𝐴). For this, we need to first compute the probability for the empty region in the circle representing event 𝐴. This region represents the event 𝐴𝐵. Applying the general multiplication rule, we can write 𝑃(𝐴𝐵)=𝑃(𝐴𝐵)𝑃(𝐵).

We are given that 𝑃(𝐴𝐵)=0.6. Also, we can apply the complement rule, 𝑃(𝐵)=1𝑃(𝐵), to compute 𝑃(𝐵)=10.4=0.6.

Substituting these values into the general multiplication rule, we obtain 𝑃(𝐴𝐵)=0.6×0.6=0.36.

We can now put this in the Venn diagram.

Summing the probabilities in the region representing event 𝐴, we obtain 𝑃(𝐴)=0.36+0.32=0.68.

Hence, the probability that she is on time for school whether or not she catches the bus is 0.68.

Part 3

We need to find the probability that she will be late for school on a given day, which is 𝑃(𝐴). We can apply the complement rule 𝑃(𝐴)=1𝑃(𝐴) together with 𝑃(𝐴) from part 2 to obtain 𝑃(𝐴)=10.68=0.32.

Hence, the probability that she will be late for school on a given day is 0.32.

Let us finish by recapping a few important concepts from this explainer.

Key Points

  • Let 𝐴 and 𝐵 be events in the same sample space. The conditional probability of 𝐵 given 𝐴, denoted 𝑃(𝐵𝐴), is the probability of event 𝐵 if we already know that event 𝐴 is true.
  • Let 𝐴 and 𝐵 be events in the same sample space, where 𝑃(𝐴)0. The conditional probability of 𝐵 given 𝐴, is given by 𝑃(𝐵𝐴)=𝑃(𝐵𝐴)𝑃(𝐴).
  • Let 𝐴 and 𝐵 be events in the same sample space. Then, 𝑃(𝐴𝐵)=𝑃(𝐵𝐴)𝑃(𝐴).

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy