Skip to content
M
hscscience Maths Adv · Y12
0/100daily goal
0
0
0 due
0
L1 · 0 XP
KJ
Your weak spots
Insights load after your first practice round.
Module 5 · L3 of 15 ~35 min ⚡ +95 XP available

Conditional Probability

A medical test comes back positive. What is the actual probability you have the disease? With a 99% accurate test for a rare condition, a positive result is only 50% reliable. The key is $P(A \mid B)$ — the probability of an event given another has occurred. By the end of this lesson you will solve these counterintuitive problems with the formula, tree diagrams, and two-way tables.

Today's hook — A 99% accurate test says you have a rare disease. Should you panic? The actual chance you have the disease could be just 50%. Conditional probability explains this shocking result — and why it has sent innocent people to prison.
0/5QUESTS
Worksheets

Practise this lesson

Three printable worksheets that build from foundations to mastery — or build your own from any module’s questions.

01
Recall — your gut answer first
+5 XP warm-up

If $P(A \mid B) = P(A)$, what does this tell us about the relationship between events $A$ and $B$? Make a prediction before reading on — no formula needed yet.

auto-saved
02
The two moves
+5 XP to read

Every conditional probability question this year lives inside one formula. Lock it in now — the rest of this lesson is learning to recognise when and how to use it.

Conditional probability restricts the sample space. Dividing by $P(B)$ re-normalises so probabilities still sum to 1 within the smaller world where $B$ has occurred. The multiplication rule rearranges the same equation.

$$P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}, \quad P(B) > 0$$
Conditional formula
$P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}$ — denominator is the condition, numerator is the overlap.
Multiplication rule
$P(A \cap B) = P(B) \times P(A \mid B)$ — multiply along branches of a tree diagram.
Total probability
$P(A) = P(B)P(A \mid B) + P(B')P(A \mid B')$ — sum paths through all routes.
03
What you'll master
Know

Key facts

  • $P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}$
  • $P(A \cap B) = P(B) \times P(A \mid B)$
  • Independence means $P(A \mid B) = P(A)$
Understand

Concepts

  • Conditional probability restricts the sample space to event $B$
  • Tree diagrams encode conditional probabilities on branches
  • Two-way tables organise joint and marginal probabilities
Can do

Skills

  • Calculate conditional probabilities from two-way tables
  • Build and use tree diagrams for multi-stage experiments
  • Apply the total probability formula
04
Key terms
Conditional probability$P(A \mid B)$ — the probability of $A$ given $B$ has already occurred.
Multiplication rule$P(A \cap B) = P(B) \times P(A \mid B)$ — multiply probabilities along tree branches.
Law of total probability$P(A) = \sum P(B_i) \cdot P(A \mid B_i)$ — sum over all mutually exclusive routes.
Two-way tableA contingency table organising joint frequencies so conditional probabilities can be read by restricting to a row or column.
Independence$A$ and $B$ are independent $\iff P(A \mid B) = P(A)$.
Prosecutor's fallacyConfusing $P(A \mid B)$ with $P(B \mid A)$ — these are generally very different.
05
What is conditional probability?
core concept

The conditional probability of $A$ given $B$, written $P(A \mid B)$, is the probability that $A$ occurs assuming $B$ has already occurred.

$$P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}, \quad P(B) > 0$$

Why divide by $P(B)$? Because we restrict our attention to only those outcomes where $B$ happened. Within this smaller universe, the fraction that also satisfies $A$ is $P(A \cap B) / P(B)$.

Example. In a class, 30% of students play basketball and 20% play both basketball and tennis. If you select a basketball player at random, what is $P(\text{tennis} \mid \text{basketball})$?

$$P(\text{tennis} \mid \text{basketball}) = \frac{P(\text{both})}{P(\text{basketball})} = \frac{0.20}{0.30} = \frac{2}{3}$$

Two-thirds of basketball players also play tennis. Notice how the conditional probability ($\frac{2}{3}$) is very different from the unconditional probability of playing tennis (which would be lower).

Tree Diagram — Two-Stage Probability Start A 0.4 A' 0.6 B|A 0.7 B'|A 0.3 B|A' 0.5 B'|A' 0.5 A ∩ B = 0.28 A ∩ B' = 0.12 A' ∩ B = 0.30 A' ∩ B' = 0.30 P(A ∩ B) = P(A) × P(B|A) = 0.4 × 0.7 = 0.28

Multiply along branches to find joint probabilities. $P(B \mid A)$ is the probability of $B$ given $A$ has occurred.

The prosecutor's fallacy. $P(A \mid B)$ and $P(B \mid A)$ are generally very different. $P(\text{disease} \mid \text{positive}) = 0.5$ but $P(\text{positive} \mid \text{disease}) = 0.99$. Confusing them has caused wrongful convictions. Always write the condition on the right side of $\mid$ clearly.

Conditional probability: $P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}$ — dividing by $P(B)$ restricts the sample space to $B$; Multiplication rule: $P(A \cap B) = P(B) \times P(A \mid B)$ — multiply along tree branches

Pause — copy the conditional probability formula $P(A \mid B) = \frac{P(A \cap B)}{P(B)}$ (dividing by $P(B)$ restricts the sample space) and the tree-branch rule: multiply probabilities along branches into your book.

Did you get this? True or false: $P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}$, where $P(B) > 0$.

PROBLEM 1 · CONDITIONAL FORMULA

If $P(A \cap B) = 0.2$ and $P(B) = 0.5$, find $P(A \mid B)$.

1
$P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}$
Write the conditional probability formula.
PROBLEM 2 · TOTAL PROBABILITY

A company sources components from two suppliers: 60% from Supplier X (4% defective) and 40% from Supplier Y (2% defective). (a) Find $P(\text{defective})$. (b) Find $P(\text{from X} \mid \text{defective})$.

1
$P(\text{def}) = P(X)P(\text{def} \mid X) + P(Y)P(\text{def} \mid Y)$
Apply the law of total probability — sum over both routes to "defective".
PROBLEM 3 · TWO-WAY TABLE

200 students were surveyed on part-time work and sport. From the table: 45 work and play sport, 80 work total, 115 play sport total. Find $P(\text{work} \mid \text{sport})$ and $P(\text{sport} \mid \text{work})$.

1
$P(\text{work} \mid \text{sport}) = \dfrac{45}{115} = \dfrac{9}{23} \approx 0.391$
Restrict to the "sport" column (115 students). Of these, 45 work. Denominator is the column total, not grand total.

Quick check: A school has 40% instrument players. Of these, 25% sing in choir. Of non-players, 10% sing. What is $P(\text{choir})$?

Trap 01
Swapping $P(A \mid B)$ with $P(B \mid A)$
$P(\text{disease} \mid \text{positive}) = 0.5$ but $P(\text{positive} \mid \text{disease}) = 0.99$. These are completely different values. Always write the condition clearly on the right side of $\mid$.
Trap 02
Using the grand total as denominator
In a two-way table, $P(\text{work} \mid \text{sport})$ uses the "sport" total (115), not the grand total (200). Conditioning means you have restricted your world to just those outcomes.
Trap 03
Adding instead of applying total probability
$P(\text{choir}) \neq P(\text{choir} \mid \text{player}) + P(\text{choir} \mid \text{non-player})$. You must weight by $P(\text{player})$ and $P(\text{non-player})$ first, then add.

Fill in the blank: In the law of total probability, $P(A) = P(B) \times P(A \mid B) + P(B') \times P(A \mid \underline{\hspace{60px}})$.

Match each expression to its meaning:

$P(A \mid B)$
$P(A \cap B)$
$P(A \cup B)$
1

$P(A \cap B) = 0.12$, $P(B) = 0.4$. Find $P(A \mid B)$.

2

A bag has 5 red and 5 blue marbles. Two drawn without replacement. Given first is red, find $P(\text{second red})$.

3

100 people: 30 have a passport, 20 have both passport and licence, 60 have a licence. Find $P(\text{passport} \mid \text{licence})$.

4

Factory: three machines produce 50%, 30%, 20% of output with defect rates 2%, 3%, 5%. Find $P(\text{defective})$.

5

Drug test: 95% accurate, 5% of athletes use drug. Find $P(\text{user} \mid \text{positive})$.

11
Revisit your thinking

Earlier you were asked: if $P(A \mid B) = P(A)$, what does this tell us? It means knowing $B$ occurred does not change the probability of $A$. This is the definition of independence: $A$ and $B$ are independent if and only if $P(A \mid B) = P(A)$ — equivalently, $P(A \cap B) = P(A) \times P(B)$. $B$ gives us no information about $A$.

auto-saved
01
Multiple choice
+5 XP per correct · +25 XP all-correct

Pick your answer, then rate your confidence — that tells the system what to drill next. Each retry pulls a fresh mix from the bank.

02
Short answer
ApplyBand 43 marks

Q1. In a school, 40% of students play a musical instrument. Of those who play an instrument, 25% also sing in the choir. Of those who do not play an instrument, 10% sing in the choir. (a) Draw a tree diagram. (b) Find the probability that a randomly selected student sings in the choir. (c) Given that a student sings in the choir, find the probability they play an instrument. (3 marks)

auto-saved
ApplyBand 43 marks

Q2. A survey of 500 people on diet and exercise:

Regular ExerciseIrregular ExerciseTotal
Healthy Diet12080200
Unhealthy Diet90210300
Total210290500

(a) Find $P(\text{healthy diet} \mid \text{regular exercise})$. (b) Find $P(\text{regular exercise} \mid \text{healthy diet})$. (c) Determine whether diet and exercise are independent, justifying with calculations. (3 marks)

auto-saved
AnalyseBand 53 marks

Q3. A disease affects 2% of a population. A test has a 98% true positive rate and a 3% false positive rate. (a) In a population of 10 000, construct a two-way table showing expected numbers of true positives, false positives, true negatives, and false negatives. (b) Calculate $P(\text{disease} \mid \text{positive})$. (c) A politician claims: "This test is 98% accurate, so if you test positive, you almost certainly have the disease." Analyse this claim mathematically and explain why it is misleading. (3 marks)

auto-saved
Comprehensive answers (click to reveal)

Drill 1: $0.3$ · 2: $\frac{4}{9}$ · 3: $\frac{1}{3}$ · 4: $0.029$ · 5: $0.5$

Q1 (3 marks): (a) Tree: Instrument (0.4) → Choir (0.25), No choir (0.75); No instrument (0.6) → Choir (0.10), No choir (0.90) [0.5]. (b) $P(\text{choir}) = 0.4 \times 0.25 + 0.6 \times 0.10 = 0.10 + 0.06 = 0.16$ [1]. (c) $P(\text{instrument} \mid \text{choir}) = \frac{0.10}{0.16} = \frac{5}{8} = 0.625$ [1.5].

Q2 (3 marks): (a) $P(\text{healthy} \mid \text{regular}) = \frac{120}{210} = \frac{4}{7} \approx 0.571$ [0.5]. (b) $P(\text{regular} \mid \text{healthy}) = \frac{120}{200} = 0.6$ [0.5]. (c) $P(\text{healthy}) \times P(\text{regular}) = 0.4 \times 0.42 = 0.168$. But $P(\text{healthy} \cap \text{regular}) = \frac{120}{500} = 0.24$. Since $0.24 \neq 0.168$, not independent [2].

Q3 (3 marks): (a) Disease+: 200 people; TP = 196, FN = 4. Disease−: 9 800; FP = 294, TN = 9 506 [0.5]. (b) $P(\text{disease} \mid \text{positive}) = \frac{196}{490} = 0.4 = 40\%$ [1]. (c) The claim confuses $P(\text{positive} \mid \text{disease}) = 0.98$ with $P(\text{disease} \mid \text{positive}) = 0.40$. Prevalence matters: in a low-prevalence population, false positives from the healthy majority outnumber true positives from the sick minority. The public needs to know the base rate (prevalence) to correctly interpret any test result [1.5].

01
Boss battle · The Prosecutor
earn bronze · silver · gold

Five timed questions. Beat the boss to bank a tier — gold (90% + speed), silver (75%), or bronze (50%). Replays welcome.

⚔ Enter the arena
02
Science Jump · platform challenge

Climb platforms by answering conditional probability questions. Lighter alternative to the boss.

Mark lesson as complete

Tick when you've finished the practice and review.

🎓
Want help with Conditional Probability?

Work through this topic 1-on-1 with an experienced HSC tutor.

Book a free session →