Conditional Probability: Definition, Method and Examples

MathPublished

Conditional Probability: Meaning, Formula, and Examples

Conditional probability is the likelihood of an outcome occurring given that another event has already happened. By establishing that a specific condition is true, conditional probability updates the original chances by restricting the sample space to only the relevant outcomes.

What does given mean in probability?

In probability, "given" means a specific condition is known to have occurred or is assumed to be true. This known information changes how you calculate the chances of subsequent events.


For example, the unconditional probability of drawing a red card from a standard deck is exactly half. However, if you are "given" the information that the drawn card is a heart, the probability of it being red becomes certain, because all hearts are red. The given condition provides new information that alters the expected probability under a condition.

Restrict the sample space

When a condition is given, the original sample space shrinks. The new total number of possible outcomes is restricted entirely to the event that has already occurred.


The given condition becomes the new restricted sample space.


Because the denominator is now smaller, you must also restrict the numerator. The successful outcomes are only the instances where both the new event and the given condition happen together.

A Venn diagram showing set B highlighted as the new restricted sample space, with the intersection of A and B emphasized inside it.

Use conditional-probability notation

Conditional probability uses a vertical bar to indicate the condition. The notation P(A∣B)P(A|B) is read as "the probability of event AA given event BB".


The conditional probability formula divides the probability of both events occurring by the probability of the given condition:

P(A∣B)=P(A∩B)P(B)P(A|B) = \dfrac{P(A \cap B)}{P(B)}


This formula is valid provided that P(B)P(B) is not equal to zero. When working with whole counts instead of fractional probabilities, you can find the conditional chance by dividing the number of intersecting outcomes by the total number of outcomes in the given event:

P(A∣B)=n(A∩B)n(B)P(A|B) = \dfrac{n(A \cap B)}{n(B)}

Calculate from a Venn diagram

A Venn diagram probability model provides a visual way to find conditional probabilities. To find the probability of a new event given an existing condition, ignore all numbers outside the circle of the given condition.


The sum of the values inside the given circle forms the denominator. The overlapping region representing both events forms the numerator.


venn-art-music

Calculate from a two-way table

Data organized in two-way tables makes conditional probability calculations straightforward. The given condition restricts your focus to a single specific row or a single specific column.


The total at the end of that specific row or column becomes your denominator. The cell where the new event intersects with the given condition provides the numerator.

A two-way table showing Morning and Evening fitness classes, with the Morning row highlighted to show a restricted total of 30 students.

Connect conditional and dependent events

Conditional probability reveals whether two events influence each other. If knowing that one event occurred changes the probability of a second event occurring, they are dependent events.


When an experiment involves multiple dependent stages, probability tree diagrams are powerful visual tools. The first set of branches shows unconditional probabilities, while the second set of branches displays the conditional probability for each dependent outcome.


A probability tree diagram showing a first branch for event B leading to a second branch for event A, labelled as the conditional probability of A given B.

Worked examples

These conditional probability examples demonstrate how to restrict sample spaces and calculate accurate chances under a condition.


Example 1: Calculating from a Venn diagram


Question: A class has 3030 students. 1818 play tennis, 1212 play soccer, and 66 play both. If a randomly chosen student plays tennis, what is the probability they also play soccer?


Method:

  1. Identify the given condition: The student plays tennis.
  2. Restrict the sample space: There are 1818 total students who play tennis. This restricted group becomes the denominator.
  3. Identify the intersection: There are 66 students who play both sports. This is the numerator.
  4. Calculate the probability.

Answer: P(Soccer∣Tennis)=618=13P(\text{Soccer}|\text{Tennis}) = \dfrac{6}{18} = \dfrac{1}{3}.


Check: Using the formula P(A∣B)=P(A∩B)P(B)P(A|B) = \dfrac{P(A \cap B)}{P(B)} gives 6/3018/30\dfrac{6/30}{18/30}, which simplifies to 13\dfrac{1}{3}.


Example 2: Calculating from a two-way table


Question: A cafeteria surveys 100100 customers. 4040 ordered coffee, and 6060 ordered tea. Of the coffee drinkers, 2525 ordered a pastry. Of the tea drinkers, 2020 ordered a pastry. What is the probability that a customer ordered coffee, given that they ordered a pastry?


Method:

  1. Identify the given condition: The customer ordered a pastry.
  2. Find the restricted total: Calculate the total number of pastry orders. 25 (coffee)+20 (tea)=4525 \text{ (coffee)} + 20 \text{ (tea)} = 45 total pastries. This is the highlighted denominator.
  3. Identify the intersection: The number of customers who ordered both coffee and a pastry is 2525. This is the numerator.

Answer: P(Coffee∣Pastry)=2545=59P(\text{Coffee}|\text{Pastry}) = \dfrac{25}{45} = \dfrac{5}{9}.


Check: The total number of customers (100100) is not used because the "pastry" condition restricted the denominator.


Example 3: Comparing reverse conditions


Question: A fair six-sided die is rolled. Event AA is rolling an even number (2,4,62, 4, 6). Event BB is rolling a number greater than 44 (5,65, 6). Show that P(A∣B)P(A|B) and P(B∣A)P(B|A) are not equal.


Method:

  1. Find the intersection of the two events: A∩B={6}A \cap B = \{6\}, which is 11 outcome.
  2. Calculate P(A∣B)P(A|B): The given condition BB has 22 outcomes. The intersection has 11 outcome. P(A∣B)=12P(A|B) = \dfrac{1}{2}.
  3. Calculate P(B∣A)P(B|A): The given condition AA has 33 outcomes. The intersection has 11 outcome. P(B∣A)=13P(B|A) = \dfrac{1}{3}.

Answer: P(A∣B)=12P(A|B) = \dfrac{1}{2} and P(B∣A)=13P(B|A) = \dfrac{1}{3}. Therefore, the probabilities differ.


Check: P(A∣B)×P(B)=12×26=16P(A|B) \times P(B) = \dfrac{1}{2} \times \dfrac{2}{6} = \dfrac{1}{6}. P(B∣A)×P(A)=13×36=16P(B|A) \times P(A) = \dfrac{1}{3} \times \dfrac{3}{6} = \dfrac{1}{6}. Both match the intersection probability.

Common mistakes

A frequent error is assuming that probability of AA given BB is identical to the probability of BB given AA. As shown in the previous example, reversing the given condition changes which set acts as the denominator, producing completely different probabilities.

Two side-by-side Venn diagrams demonstrating that given B restricts the denominator to circle B, while given A restricts the denominator to circle A.


Another common mistake is forgetting to adjust the total sample space. Students sometimes use the addition rule of probability for union concepts but fail to restrict the total when a specific condition is given. The denominator must only include the outcomes within the given condition.

Frequently asked questions

What is the difference between joint and conditional probability?

Joint probability measures the chance of two events occurring together out of the entire original sample space. Conditional probability measures the chance of an event occurring out of a restricted sample space where another event is already known to have occurred.


Can a conditional probability equal 11?

Yes. If the occurrence of the given event guarantees the occurrence of the other event, the conditional probability is 11. For instance, the probability of drawing a red card given that the card is a heart is 11.

Practice questions

Question

q1-venn-math-science


Based on the Venn diagram, what is the probability that a randomly chosen student takes Science given that they take Math?

  • 15100\dfrac{15}{100}

  • 1540\dfrac{15}{40}

  • 1555\dfrac{15}{55}

  • 2555\dfrac{25}{55}

Answer:

1555\dfrac{15}{55}

Question

If P(A)=0.60P(A) = 0.60, P(B)=0.50P(B) = 0.50, and the probability of both events occurring is 0.300.30, what is P(A∣B)P(A|B)?

  • 0.500.50

  • 0.300.30

  • 0.600.60

  • 1.101.10

Answer:

0.600.60

Question

A two-way table showing male and female cats and dogs. Female cats are 6, male cats are 4. Female dogs are 7, male dogs are 5.

Based on the table, what is the probability of selecting a cat, given that the selected animal is female?

  • 610\dfrac{6}{10}

  • 622\dfrac{6}{22}

  • 613\dfrac{6}{13}

  • 1322\dfrac{13}{22}

Answer:

613\dfrac{6}{13}

Question

Which statement correctly describes how to calculate conditional probability?

  • The value of P(A∣B)P(A|B) is always equal to the value of P(B∣A)P(B|A).

  • The denominator is always the probability of the entire sample space.

  • The given condition restricts the possible outcomes to a smaller sample space.

  • The numerator represents outcomes that only satisfy the given condition.

Answer:

The given condition restricts the possible outcomes to a smaller sample space.

Question

A probability tree diagram showing the first draw of Red or Blue, followed by a second draw without replacement. The branch from first Blue to second Red is labeled x.


The tree diagram shows the probabilities of drawing two consecutive counters without replacement from a bag of 55 red and 33 blue counters. What is the value of xx, which represents P(Red on 2nd∣Blue on 1st)P(\text{Red on 2nd} | \text{Blue on 1st})?

  • 58\dfrac{5}{8}

  • 57\dfrac{5}{7}

  • 37\dfrac{3}{7}

  • 38\dfrac{3}{8}

Answer:

57\dfrac{5}{7}