Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Find a Conditional Probability

Knowing that BB happened shrinks the sample space to BB. The conditional probability P(A∣B)P(A \mid B) is the share of BB that also lies in AA.

Recognize the task

The words given, given that, if it is known that, among those who: "the probability of a six given that the roll is even", "of those who passed, what fraction studied". Test: is part of the information a fact that has already happened?

Two ways to do it

Formulausual choice
P(A∣B)=P(A∩B)P(B),P(B)>0P(A \mid B) = \frac{P(A \cap B)}{P(B)}, \quad P(B) > 0
Divide the probability of both by the probability of the condition (formula).
Restricted sample spaceequally likely outcomes
P(A∣B)=∣A∩B∣∣B∣P(A \mid B) = \frac{|A \cap B|}{|B|}
Keep only the outcomes in BB and count how many of them are in AA.

Steps

StepOn one die: a six, given the roll is even
1Name the condition. The event after "given" is BB; the event asked about is AA.B={2,4,6}B = \{2, 4, 6\}, A={6}A = \{6\}
2Find the probability of the condition. It must be positive.P(B)=36=12P(B) = \frac{3}{6} = \frac{1}{2}
3Find the probability of both. The outcomes in AA and in BB.A∩B={6}A \cap B = \{6\}, P(A∩B)=16P(A \cap B) = \frac{1}{6}
4Divide. Overlap over condition.P(A∣B)=1/61/2=13P(A \mid B) = \frac{1/6}{1/2} = \frac{1}{3}

Worked examples

Example 1 · two coins

restricted space
given at least one head: B={HH,HT,TH}B = \{HH, HT, TH\}
drop TTTT
P(HH∣B)=13P(HH \mid B) = \frac{1}{3}
one of three outcomes

Example 2 · a king, given a face card

cards
1212 face cards, 44 of them kings
jack, queen, king per suit
P(king∣face)=412=13P(\text{king} \mid \text{face}) = \frac{4}{12} = \frac{1}{3}

Example 3 · from the union

addition rule first
P(A)=0.5P(A) = 0.5, P(B)=0.4P(B) = 0.4, P(A∪B)=0.7P(A \cup B) = 0.7
P(A∩B)=0.5+0.4−0.7=0.2P(A \cap B) = 0.5 + 0.4 - 0.7 = 0.2
addition rule, solved for overlap
P(A∣B)=0.20.4=0.5P(A \mid B) = \frac{0.2}{0.4} = 0.5
Check your own numbers in the conditional probability calculator.

See it happen

Draw BB as a region and shade the part of it that is inside AA. Conditioning throws away everything outside BB and rescales BB to probability 11; the shaded share is the answer. The conditional probability visualizer shows the same rescaling as a Venn diagram, a tree, a table and a waffle chart.

Common mistakes

Reversing the condition

✗ P(A∣B)=P(B∣A)P(A \mid B) = P(B \mid A)
✓ they share a numerator but divide by P(B)P(B) and P(A)P(A)

Dividing by the wrong event

✗ P(6∣even)=1/61/6P(6 \mid \text{even}) = \frac{1/6}{1/6}
✓ divide by the condition: 1/61/2=13\frac{1/6}{1/2} = \frac{1}{3}

Ignoring the condition

✗ P(6∣even)=16P(6 \mid \text{even}) = \frac{1}{6}
✓ the sample space is now {2,4,6}\{2, 4, 6\}: 13\frac{1}{3}