Facebook Pixel
Mathos AI logo

Conditional Probability

Conditional Probability

Conditional probability is the probability of an event occurring given that another event has already occurred. We write the probability of event BB occurring given that event AA has occurred as P(BโˆฃA)P(B|A). The vertical line โˆฃ| is read as "given".

The Conditional Probability Formula

To calculate conditional probability, we use the following formula:

P(BโˆฃA)=P(AโˆฉB)P(A)P(B|A) = \frac{P(A \cap B)}{P(A)}

Where:

  • P(BโˆฃA)P(B|A) is the probability of BB given AA.
  • P(AโˆฉB)P(A \cap B) is the probability of both AA and BB occurring (the intersection).
  • P(A)P(A) is the probability of event AA occurring (where P(A)>0P(A) > 0).

You can also rearrange this formula to find the probability of both events happening:

P(AโˆฉB)=P(A)โ‹…P(BโˆฃA)P(A \cap B) = P(A) \cdot P(B|A)

Example: If P(A)=0.6P(A) = 0.6 and P(BโˆฃA)=0.3P(B|A) = 0.3, what is P(AโˆฉB)P(A \cap B)?

Using the rearranged formula: P(AโˆฉB)=0.6โ‹…0.3=0.18P(A \cap B) = 0.6 \cdot 0.3 = 0.18

Using Two-Way Frequency Tables

Two-way tables make finding conditional probability easy because they organize data into categories. When you see a "given" condition, you simply restrict your total sample space to just that specific row or column.

Example: Imagine a survey of 200 students about whether they studied and whether they passed a test. You are told:

  • 100 students studied and passed.
  • 20 students studied and failed.
  • The total number of students who studied is 120.

Find P(passโˆฃstudied)P(\text{pass} | \text{studied}).

Because we are given that the student studied, we only look at the 120 students who studied. We completely ignore the rest of the 200 students. Out of those 120 students, 100 passed.

P(passโˆฃstudied)=100120=56โ‰ˆ0.833P(\text{pass} | \text{studied}) = \frac{100}{120} = \frac{5}{6} \approx 0.833