Skip to content

Conditional probability, explained with a dice grid

5 min read

Short answer

The conditional probability of AA given BB is P(A∣B)=P(A∩B)P(B).P(A\mid B)=\frac{P(A\cap B)}{P(B)}. Intuitively: once you know BB happened, BB becomes your whole universe, and you ask what fraction of it also satisfies AA.

Grid of the 36 outcomes of two dice, highlighting outcomes with a six and a sum of eightfirst die →2ndhas a 6 (11)…and sum 8 (2)P(sum 8 | a 6)= 2 / 11
All 36 outcomes of two dice. Knowing at least one die shows a 6 leaves 11 outcomes (shaded); only 2 of them sum to 8 (dark).

Conditioning shrinks the sample space

Before you learn anything, the sample space is every outcome. After you learn BB, only outcomes in BB are still possible, so you divide by P(B)P(B) to make the new total equal to 1. The numerator keeps just the part of AA that lies inside BB.

The multiplication rule

Rearranging the definition gives P(A∩B)=P(B) P(A∣B)P(A\cap B)=P(B)\,P(A\mid B). It is the natural tool for sequences of dependent events, such as drawing cards without replacement: multiply the probability of the first event by the probability of the second given the first.

Worked example

Roll two fair dice. Given that at least one shows a 6, what is the probability that the sum is 8?

Let BB = "at least one 6". Of the 36 outcomes, 11 contain a 6, so P(B)=1136P(B)=\tfrac{11}{36}.

Let AA = "sum is 8". The outcomes with sum 8 are (2,6),(3,5),(4,4),(5,3),(6,2)(2,6),(3,5),(4,4),(5,3),(6,2). Only (2,6)(2,6) and (6,2)(6,2) also contain a 6, so P(A∩B)=236P(A\cap B)=\tfrac{2}{36}.

P(A∣B)=2/3611/36=211≈0.18.P(A\mid B)=\frac{2/36}{11/36}=\frac{2}{11}\approx0.18. Without the information, P(A)=536≈0.14P(A)=\tfrac5{36}\approx0.14, so learning BB raised the probability.

Try it yourself

Two cards are dealt from a standard 52-card deck without replacement. What is the probability that both are aces?

Show the answer

P(both aces)=P(first ace)⋅P(second ace∣first ace)=452⋅351=122652=1221≈0.0045P(\text{both aces})=P(\text{first ace})\cdot P(\text{second ace}\mid\text{first ace})=\tfrac4{52}\cdot\tfrac3{51}=\tfrac{12}{2652}=\tfrac1{221}\approx0.0045.

Keep going with practice

Conditional probability is a core unit of Vidi's Linear Algebra & Probability course, with auto-graded practice and an interactive event diagram.