Course contentsShow
← Data Science
Lesson 93 of 2,1453. Probability FoundationsFree lesson

Calculating Conditional Probabilities

Practice computing conditional probabilities from joint probability tables and Venn diagrams.

Calculating Conditional Probabilities

You'll learn: How to compute the probability of one event given that another event has already occurred, using joint probability tables and Venn diagrams.

The Core Idea

Conditional probability asks: "Now that we know something happened, what's the chance of this other thing?" You calculate it using the formula from the previous lesson:

P(A|B) = P(A ∩ B) / P(B)

This means: divide the probability of both events happening by the probability of the given event.

Working with Joint Probability Tables

Imagine a table showing customer data:

Purchased (B)Didn't PurchaseTotal
Clicked Ad (A)0.150.250.40
No Click0.050.550.60
Total0.200.801.00

Question: What's P(Purchased | Clicked Ad)?

  • P(A ∩ B) = 0.15 (the cell where both happened)
  • P(B) = 0.40 (total for "Clicked Ad" row)
  • P(Purchased | Clicked) = 0.15 / 0.40 = 0.375 or 37.5%

Working with Venn Diagrams

If a Venn diagram shows the overlap between two events, find the conditional probability by:

  1. Identify the overlap area (A ∩ B)
  2. Identify the total area of the given event (B)
  3. Divide: overlap area / total given area

Think of it as zooming into the "given" event's circle and asking what fraction of that space also contains the other event.

Practice Tip

Always ask: "What's my universe now?" Conditional probability restricts your sample space to only cases where the condition is true.

Key Takeaway: To calculate conditional probabilities, find the joint probability of both events and divide by the probability of the given condition—using tables, read the intersection cell and divide by the row/column total; using Venn diagrams, compare overlap to the conditioned region.