Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 11 (2026) Maths Advanced (2026) Probability and Data

Conditional Probability

20 practice questions 1 video lesson Theory + worked examples
Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 1 video(s)
  • Conditional Probability - Video - Conditional Probability formula Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

Conditional probability \(P(A|B)\) is the probability that \(A\) occurs, given that \(B\) has occurred. This Year 11 Mathematics Advanced page shows how to restrict the sample space to the given event, use the formula \(P(A|B)=\dfrac{P(A\cap B)}{P(B)}\), read conditional probabilities from two-way tables, Venn diagrams and tree diagrams, and reverse a conditional probability, such as finding the probability it rained given that someone was late.

\(P(A|B)\) is read "the probability of \(A\) given \(B\)". It is the conditional probability that \(A\) occurs, given that \(B\) has occurred. The event after the bar is the one you already know about.

Knowing that \(B\) has occurred restricts the sample space to \(B\): outcomes outside \(B\) can no longer happen. When the outcomes are equally likely, count only inside \(B\):

\[P(A|B)=\dfrac{|A\cap B|}{|B|}\]

Here \(|B|\) is the number of outcomes in \(B\). For example, a fair die shows an odd number, so \(B=\{1,3,5\}\). Given this, the probability that it shows a \(5\) is \(\dfrac{1}{3}\), not \(\dfrac{1}{6}\).

Dividing the top and bottom by \(|S|\) turns each count into a probability, which gives the general conditional probability formula \(P(A|B)=\dfrac{P(A\cap B)}{P(B)}\), for \(P(B)\neq 0\). Rearranged, it is the multiplication rule \(P(A\cap B)=P(A|B)\times P(B)\).

In a two-way table the given event is one row or one column: use that row or column total, not the grand total. In a Venn diagram the given event is a set of regions; for \(A'\) it is every region outside \(A\), including the region outside both circles. In a tree diagram the second-stage branches are already conditional probabilities, such as \(P(L|R)\).

Order matters. \(P(A|B)\) divides by \(P(B)\), while \(P(B|A)\) divides by \(P(A)\), and the two are usually different.

Venn diagram restricted to BVenn diagram of events A and B in sample space S. A only has 5 outcomes, A and B has 3, B only has 9 and neither has 7. Circle B is shaded as the new sample space and the overlap is shaded darker. S A B 5 3 9 7
Given \(B\), only the \(3+9=12\) outcomes inside \(B\) can occur. \(3\) of them are in \(A\), so \(P(A|B)=\dfrac{3}{12}=\dfrac{1}{4}\). Compare \(P(A)=\dfrac{8}{24}=\dfrac{1}{3}\).
Tree diagram for B then ATwo-stage tree. First stage B with probability 0.4 and B prime with 0.6. From B, A has 0.5 and A prime 0.5. From B prime, A has 0.25 and A prime 0.75. The four path products are 0.2, 0.2, 0.15 and 0.45. 0.4 B 0.5 A B∩A: 0.2 0.5 A′ B∩A′: 0.2 0.6 B′ 0.25 A B′∩A: 0.15 0.75 A′ B′∩A′: 0.45
Second-stage branches are conditional: \(P(A|B)=0.5\). Multiply along a path for an intersection, add the paths ending in \(A\) for \(P(A)=0.2+0.15=0.35\), then \(P(B|A)=\dfrac{0.2}{0.35}=\dfrac{4}{7}\).

Equally likely outcomes (restrict the sample space to \(B\)):

\[P(A|B)=\dfrac{|A\cap B|}{|B|}\]
P of A given B equals the number of outcomes in A and B divided by the number of outcomes in B

The conditional probability formula, for \(P(B)\neq 0\) and \(P(A)\neq 0\):

\[P(A|B)=\dfrac{P(A\cap B)}{P(B)}\qquad P(B|A)=\dfrac{P(A\cap B)}{P(A)}\]
P of A given B equals P of A intersect B over P of B; P of B given A equals P of A intersect B over P of A

The multiplication rule (multiply along a tree path):

\[P(A\cap B)=P(A|B)\times P(B)\]
P of A intersect B equals P of A given B times P of B

Tools you will often need first:

\[P(B)=1-P(B')\qquad P(A\cup B)=P(A)+P(B)-P(A\cap B)\]
P of B equals 1 minus P of B complement; P of A union B equals P of A plus P of B minus P of A intersect B

The pieces of a two-way table:

\(A\)\(A'\)Total
\(B\)\(|A\cap B|\)\(|A'\cap B|\)\(|B|\)
\(B'\)\(|A\cap B'|\)\(|A'\cap B'|\)\(|B'|\)
Total\(|A|\)\(|A'|\)\(|S|\)
Reversing a conditional. A tree gives \(P(L|R)\) on its branches. To find \(P(R|L)\), add every path that ends in \(L\) to get \(P(L)=P(R\cap L)+P(R'\cap L)\), then divide: \(P(R|L)=\dfrac{P(R\cap L)}{P(L)}\). The same works when the second draw of a two-draw experiment is the given event.
Working back to a count. If a group has \(|M|\) members and \(P(S|M)\) is known, then \(|M\cap S|=P(S|M)\times|M|\). For example, \(P(S|M)=0.25\) with \(|M|=40\) gives \(|M\cap S|=10\).

How to find \(P(A|B)\)

  1. Identify the given event: the one after the bar. It becomes the new sample space.
  2. Find its size or probability: \(|B|\) from a row or column total or from the Venn regions, or \(P(B)\). Use \(1-P(B')\), the addition rule or the sum of tree paths if \(P(B)\) is not given directly.
  3. Find the overlap \(|A\cap B|\) or \(P(A\cap B)\).
  4. Divide the overlap by the given event, then simplify the fraction or write the decimal as asked.

Using a tree diagram

  1. Multiply along each branch to get the probability of each path, such as \(P(R\cap L)\).
  2. Add the paths that end in the given event to get its probability.
  3. Divide the path you want by that total.

Completing a two-way table

  1. Fill the gaps using row totals, column totals and the grand total.
  2. Restrict to the row or column of the given event and divide by its total.
Example 1 — Restricting the sample space
(i) A whole number from \(1\) to \(20\) is chosen at random. Given that it is a multiple of \(4\), find the probability that it is greater than \(10\).
(ii) Two fair dice are rolled. Given that the sum is \(10\), find the probability that both dice show the same number.
Solution

(i) Let \(B\) = multiple of \(4\) and \(A\) = greater than \(10\). Restrict the sample space to \(B\):

\(B=\{4,8,12,16,20\}\), so \(|B|=5\). \(A\cap B=\{12,16,20\}\), so \(|A\cap B|=3\).

\(P(A|B)\)\(=\)\(\dfrac{|A\cap B|}{|B|}\)
\(\)\(=\)\(\mathbf{\dfrac{3}{5}}\)
P of A given B equals 3 over 5

(ii) Restrict to the outcomes with sum \(10\):

\(B=\{(4,6),(5,5),(6,4)\}\), so \(|B|=3\). Only \((5,5)\) is a double, so \(|A\cap B|=1\).

\(P(A|B)\)\(=\)\(\mathbf{\dfrac{1}{3}}\)
P of a double given sum 10 equals 1 over 3

Without the condition, \(P(\text{double})=\dfrac{6}{36}=\dfrac{1}{6}\). Knowing the sum changes the probability.

Example 2 — Using the formula
For two events \(A\) and \(B\), \(P(A')=0.4\), \(P(B)=0.5\) and \(P(A\cup B)=0.8\). Find, as decimals:
(i) \(P(A\cap B)\)
(ii) \(P(B|A)\)
(iii) \(P(A|B)\)
Solution

Find \(P(A)\) using the complement: \(P(A)=1-0.4=0.6\).

(i) Use the addition rule:

\(P(A\cup B)\)\(=\)\(P(A)+P(B)-P(A\cap B)\)
\(0.8\)\(=\)\(0.6+0.5-P(A\cap B)\)
\(P(A\cap B)\)\(=\)\(\mathbf{0.3}\)
0.8 equals 0.6 plus 0.5 minus P of A intersect B, so P of A intersect B equals 0.3

(ii) Given \(A\), divide by \(P(A)\):

\(P(B|A)\)\(=\)\(\dfrac{P(A\cap B)}{P(A)}\)
\(\)\(=\)\(\dfrac{0.3}{0.6}\)
\(\)\(=\)\(\mathbf{0.5}\)
P of B given A equals 0.3 over 0.6 equals 0.5

(iii) Given \(B\), divide by \(P(B)\):

\(P(A|B)\)\(=\)\(\dfrac{P(A\cap B)}{P(B)}\)
\(\)\(=\)\(\dfrac{0.3}{0.5}\)
\(\)\(=\)\(\mathbf{0.6}\)
P of A given B equals 0.3 over 0.5 equals 0.6

The same overlap gives different answers: \(P(B|A)\neq P(A|B)\).

Example 3 — Two-way table from a conditional
In a group of \(60\) people, \(24\) own a dog \((D)\) and \(16\) own a cat \((C)\). For these people, \(P(C|D)=0.25\).
(i) Complete a two-way table.
(ii) Find \(P(D|C)\).
(iii) Find \(P(D'|C')\).
Give fraction answers in simplest form.
Solution

(i) \(P(C|D)=\dfrac{|D\cap C|}{|D|}\), so

\(|D\cap C|\)\(=\)\(0.25\times 24\)
\(\)\(=\)\(6\)
number who own a dog and a cat equals 0.25 times 24 equals 6

Fill the rest from the totals: \(24-6=18\), \(16-6=10\), \(60-24=36\), \(36-10=26\), \(60-16=44\).

\(C\)\(C'\)Total
\(D\)\(6\)\(18\)\(24\)
\(D'\)\(10\)\(26\)\(36\)
Total\(16\)\(44\)\(60\)

(ii) Restrict to column \(C\) (\(16\) people):

\(P(D|C)\)\(=\)\(\dfrac{6}{16}\)
\(\)\(=\)\(\mathbf{\dfrac{3}{8}}\)
P of D given C equals 6 over 16 equals 3 over 8

(iii) Restrict to column \(C'\) (\(44\) people), of whom \(26\) are in \(D'\):

\(P(D'|C')\)\(=\)\(\dfrac{26}{44}\)
\(\)\(=\)\(\mathbf{\dfrac{13}{22}}\)
P of D complement given C complement equals 26 over 44 equals 13 over 22
Example 4 — Reversing with a tree diagram
At a school, \(70\%\) of students catch the bus and the rest walk. Of the bus students, \(10\%\) arrive late; of the walkers, \(4\%\) arrive late.
(i) Find the probability that a randomly chosen student is late, as a decimal.
(ii) Given that a student is late, find the probability that they caught the bus, as a fraction in simplest form and correct to \(3\) decimal places.
Solution

Let \(B\) = catches the bus and \(L\) = late. The branches after \(B\) are \(P(L|B)=0.1\) and \(P(L|B')=0.04\).

Tree diagram for bus and lateFirst stage: catches the bus B with probability 0.7, walks B prime with 0.3. Second stage: late L with probability 0.1 after the bus and 0.04 after walking. Paths ending in L have products 0.07 and 0.012. 0.7 B 0.1 L B∩L: 0.07 0.9 L′ B∩L′: 0.63 0.3 B′ 0.04 L B′∩L: 0.012 0.96 L′ B′∩L′: 0.288

(i) Multiply along the two paths ending in \(L\), then add:

\(P(B\cap L)\)\(=\)\(0.7\times 0.1=0.07\)
\(P(B'\cap L)\)\(=\)\(0.3\times 0.04=0.012\)
\(P(L)\)\(=\)\(0.07+0.012\)
\(\)\(=\)\(\mathbf{0.082}\)
P of L equals 0.7 times 0.1 plus 0.3 times 0.04 equals 0.082

(ii) Divide the bus path by \(P(L)\):

\(P(B|L)\)\(=\)\(\dfrac{P(B\cap L)}{P(L)}\)
\(\)\(=\)\(\dfrac{0.07}{0.082}\)
\(\)\(=\)\(\mathbf{\dfrac{35}{41}}\)
\(\)\(\approx\)\(\mathbf{0.854}\)
P of B given L equals 0.07 over 0.082 equals 35 over 41, approximately 0.854

The tree gave \(P(L|B)=0.1\); the question asked for the reverse, \(P(B|L)\), which is much larger.

Common pitfalls

Divide by the given event. In \(P(A|B)\) the event after the bar, \(B\), goes in the denominator: \(\dfrac{P(A\cap B)}{P(B)}\). Dividing by \(P(A)\) gives \(P(B|A)\) instead.
Use the row or column total, not the grand total. In a two-way table, \(P(A|B)\) divides by the total of row \(B\). Dividing by the whole table gives \(P(A\cap B)\), which answers a different question.
Check what you have been given. If the question gives \(P(B')\), find \(P(B)=1-P(B')\) first. If it gives \(P(A\cup B)\), use the addition rule to find \(P(A\cap B)\).
Watch for the reversed question. A tree shows \(P(L|R)\) on its branches. "Given that Sam is late" asks for \(P(R|L)\): add every path ending in \(L\), then divide. Do not just read off a branch.
Count every region of a complement. In a Venn diagram, \(A'\) is everything outside circle \(A\), including the region outside both circles.

Frequently asked questions

What does P(A|B) mean?

It is the probability that \(A\) occurs, given that \(B\) has occurred. It is read "the probability of \(A\) given \(B\)".

How do you calculate conditional probability?

Use \(P(A|B)=\dfrac{P(A\cap B)}{P(B)}\). With equally likely outcomes, count instead: \(P(A|B)=\dfrac{|A\cap B|}{|B|}\), the number of outcomes in both divided by the number in \(B\).

Is P(A|B) the same as P(B|A)?

Usually not. Both have \(P(A\cap B)\) on top, but \(P(A|B)\) divides by \(P(B)\) and \(P(B|A)\) divides by \(P(A)\). They are equal only when \(P(A)=P(B)\) or when \(P(A\cap B)=0\).

How do you find conditional probability from a two-way table?

Find the row or column of the given event. Divide the cell you want by that row or column total, not by the grand total.

How do you work backwards on a tree diagram?

Multiply along each path, add the paths that end in the given event, then divide the path you want by that total. For example \(P(R|L)=\dfrac{P(R\cap L)}{P(R\cap L)+P(R'\cap L)}\).

What is the difference between P(A|B) and P(A and B)?

\(P(A\cap B)\) is the probability that both happen, out of the whole sample space. \(P(A|B)\) is out of \(B\) only, so it is \(P(A\cap B)\) divided by \(P(B)\) and is never smaller than \(P(A\cap B)\).