mastree

Conditional probability: 7 exam questions solved step by step

What this lesson covers

  • A conditional probability restricts attention to one group, so its denominator is that group's total.
  • The notation P(A | B) is read 'A given B', and the order matters.
Key idea

"Given B": B is the whole group

  1. Given B: only count what is in B.
  2. Divide by the total of B.
  3. P(A | B) = P(A and B) ÷ P(B).
  4. Write the notation, round to 4 d.p., give context.
Your turn

Question 1 · Achieved

  • 320 visitors to a museum.
  • Find P(ate at the café | adult).
CaféNo caféTotal
Adult72108180
Child28112140
Total100220320
Worked example

Q1: P(C | A)

  • Given adult: adults only.
  • Divide by the row total.
  1. A: adult, C: ate at the café
  2. P(C | A)given adult
  3. adults: 180the reduced total
  4. P(C | A) = 72 ÷ 180
  5. = 0.4
  6. 72 ÷ 320 = 0.225that is P(A and C)
  7. 40% of adults ate at the café
Key idea

Try it: given changes the total

Your turn

Question 2 · Achieved

  • Same museum table.
  • Find P(adult | ate at the café).
  • Careful: the order has changed.
CaféNo caféTotal
Adult72108180
Child28112140
Total100220320
Worked example

Q2: P(A | C)

  • Given café: café column.
  • Order matters.
  1. P(A | C)given café
  2. café visitors: 100the reduced total
  3. P(A | C) = 72 ÷ 100 = 0.72
  4. P(C | A) = 0.4question 1
  5. P(A | C) ≠ P(C | A)order matters
  6. P(A and C) = 72 ÷ 320 = 0.225
  7. 72% of café visitors: adults
Your turn

Question 3 · Merit

  • Customers of an online store:
  • Bought a book (B), a game (G).
  • Find P(B | G) and P(G | not B).
Question 3 · Merit
Worked example

Q3: the given region

  • Given G: the G circle.
  • Not B: outside B.
  1. P(G) = 0.09 + 0.21 = 0.3the games circle
  2. P(B | G) = 0.09 ÷ 0.3both ÷ P(G)
  3. = 0.3
  4. P(not B) = 0.21 + 0.37outside books
  5. = 0.58
  6. P(G | not B) = 0.21 ÷ 0.58only G ÷ P(not B)
  7. = 0.36214 d.p.
Your turn

Question 4 · Merit

  • On school days in a town:
  • P(rain) = 0.35, P(bus late) = 0.5,
  • P(rain or bus late) = 0.65.
  • Find P(bus late | rain).
Worked example

Q4: P(L | R) from "or"

  • Find "and" first.
  • Then divide by P(R).
  1. P(R or L) = P(R) + P(L)addition rule
  2. − P(R and L)
  3. 0.65 = 0.35 + 0.5 − P(R and L)
  4. P(R and L) = 0.85 − 0.65 = 0.2
  5. P(L | R) = P(R and L) ÷ P(R)
  6. = 0.2 ÷ 0.35
  7. = 0.57144 d.p.
  8. P(R | L) = 0.2 ÷ 0.5 = 0.4wrong way round
Your turn

Question 5 · Merit, in context

  • At an airport, 4% of bags hold food.
  • A dog flags 90% of bags with food
  • And 6% of bags without.
  • Find P(a bag is flagged).
Worked example

Q5: build the tree

  • First: food 0.04, none 0.96.
  • Second branches are conditional.
  • Each pair adds to 1.
Q5: build the tree
Worked example

Q5: P(flag)

  • Two paths end in a flag.
  • Multiply, then add.
  1. food, flag: 0.04 × 0.9 = 0.036
  2. no food, flag: 0.96 × 0.06
  3. = 0.0576
  4. P(flag) = 0.036 + 0.0576both flag paths
  5. = 0.0936
  6. about 94 in every 1000 bags
Your turn

Question 6 · Excellence

  • Same dog. A bag has been flagged.
  • Find P(it holds food | flagged).
  • Claim: "A flagged bag almost always
  • Holds food." Judge the claim.
Question 6 · Excellence
Worked example

Q6: reverse the tree

  • Given flag: flag paths.
  • Path ÷ all flags.
  1. P(F | flag)
  2. = P(F and flag) ÷ P(flag)
  3. = 0.036 ÷ 0.0936food path ÷ all flags
  4. = 0.38464 d.p.
  5. P(flag | F) = 0.9wrong way round
  6. per 1000: 36 food, about 58 not
  7. claim not supported
Key idea

Try it: reverse the tree

Your turn

Question 7 · Excellence

  • In a city, 30% of homes have solar
  • Panels; 40% of those have a heat pump.
  • Overall, 50% have a heat pump. Claim:
  • "Solar homes are more likely to have one."
Worked example

Q7: the missing branch

  • Solar against no solar.
  • Find the missing branch.
  1. P(S and H) = P(S) × P(H | S)
  2. = 0.3 × 0.4 = 0.12
  3. P(not S and H) = 0.5 − 0.12the rest of P(H)
  4. = 0.38
  5. P(not S) = 1 − 0.3 = 0.7
  6. P(H | not S) = 0.38 ÷ 0.7
  7. = 0.54294 d.p.
  8. 0.4 < 0.5429solar: less likely
  9. claim not supported
Key idea

Try it: given picks the whole

Common mistakes

  • P(A | B) and P(B | A) are the same.
    The condition sets the denominator, so read which group you are inside.
  • A dog that flags 90% of food bags is right 90% of the time when it flags.
    Rare events flood the flags with false alarms. Find P(food | flag) with a tree or table.
  • Taking the row total for the denominator every time.
    Use the total of the group named after the bar.
Summary

The method that solved all seven

  • Given picks the group, and the group picks the denominator.
StepHow
P(A | B)A given B: B is the group
Tabledivide by that row or column
Venndivide by the given region
Treemultiply along each path
Reversepath ÷ all matching paths
Answernotation, 4 d.p., context

Challenge

1

At an invented Hamilton school, 60% of students catch the bus. 25% of bus students were late at least once last week. Of all the students who were late at least once last week, 75% catch the bus. Find P(late | does not catch the bus), and say which group is more likely to be late.

Hint

Find P(bus and late) first. Then use the 75% the other way round: P(bus | late) = P(bus and late) ÷ P(late) lets you find P(late).

Answer

P(late | not bus) = 0.125. Bus students (0.25) are twice as likely to be late as other students (0.125).

Step by step
  1. "25% of bus students" is P(late | bus), so P(bus and late) = 0.6 × 0.25 = 0.15.
  2. "75% of late students catch the bus" is P(bus | late), so 0.15 ÷ P(late) = 0.75.
  3. That gives P(late) = 0.2.
  4. The rest of the late students do not catch the bus: 0.2 − 0.15 = 0.05.
  5. Divide by P(not bus) = 0.4 to get P(late | not bus) = 0.125.
Full working
  1. P(B and L) = P(B) × P(L given B) = 0.6 × 0.25 = 0.15given bus
  2. P(B given L) = P(B and L) ÷ P(L) = 0.75given late
  3. P(L) = 0.15 ÷ 0.75 = 0.2rearrange
  4. P(not B and L) = 0.2 − 0.15 = 0.05the rest of the late students
  5. P(not B) = 1 − 0.6 = 0.4not bus
  6. P(L given not B) = 0.05 ÷ 0.4 = 0.125given not bus
  7. P(late given not bus) = 0.125; bus students are more likely to be late (0.25)
2

An invented factory scanner checks parts. 4% of parts are faulty. The scanner rejects 90% of faulty parts, and overall it rejects 8.4% of all parts. (a) Find the probability that a good part is rejected, and P(faulty | rejected). (b) The manager wants at least 60% of rejected parts to be faulty, with the same 90% detection. What is the highest false-reject rate (good parts rejected) that achieves this?

Hint

Build the tree with an unknown f for P(rejected | good). P(rejected) is the sum of two paths. For (b), write P(faulty | rejected) as a fraction with f in it and set it equal to 0.6.

Answer

(a) P(rejected | good) = 0.05 and P(faulty | rejected) = 0.4286. (b) The false-reject rate must be at most 0.025, that is 2.5% of good parts.

Step by step
  1. Faulty and rejected: 0.04 × 0.9 = 0.036.
  2. Good and rejected: 0.96 × f. Together these make the 8.4%, so 0.036 + 0.96f = 0.084 and f = 0.05.
  3. P(faulty | rejected) = 0.036 ÷ 0.084 = 0.4286, so most rejected parts are actually good.
  4. For 60%, we need 0.036 ÷ (0.036 + 0.96f) = 0.6, so 0.036 + 0.96f = 0.06.
  5. Then 0.96f = 0.024 and f = 0.025. A smaller f gives a higher proportion, so f must be at most 0.025.
Full working
  1. P(faulty and reject) = 0.04 × 0.9 = 0.036path 1
  2. P(good and reject) = 0.96fpath 2, f = P(reject given good)
  3. 0.036 + 0.96f = 0.084all rejects
  4. f = 0.048 ÷ 0.96 = 0.05(a)
  5. P(faulty given reject) = 0.036 ÷ 0.084 = 0.42864 d.p.
  6. 0.036 ÷ (0.036 + 0.96f) = 0.6target for (b)
  7. 0.036 + 0.96f = 0.036 ÷ 0.6 = 0.06rearrange
  8. 0.96f = 0.024, f = 0.025solve
  9. (a) 0.05 and 0.4286; (b) false-reject rate at most 0.025 (2.5%)
3

An invented screening test is used where 2% of people have a condition. The test is positive for 95% of people with the condition and for 10% of people without it. Anyone who tests positive is tested a second time, and assume the second result depends only on whether the person has the condition, with the same rates. Find P(has the condition | positive once), and P(has the condition | positive twice). Comment on the claim: "Two positives means you almost certainly have the condition."

Hint

For two positives, the tree has three stages: condition or not, first test, second test. Multiply along each path that gives two positives, then divide the condition path by the total of both.

Answer

After one positive, P(condition) = 0.1624. After two positives, P(condition) = 0.6481. Two positives make the condition much more likely, but about 35% of people with two positives still do not have it, so the claim is not supported.

Step by step
  1. One test: condition and positive is 0.02 × 0.95 = 0.019; no condition and positive is 0.98 × 0.1 = 0.098.
  2. So P(condition | one positive) = 0.019 ÷ 0.117 = 0.1624: most positives are false alarms because the condition is rare.
  3. Two positives with the condition: 0.02 × 0.95 × 0.95 = 0.01805.
  4. Two positives without it: 0.98 × 0.1 × 0.1 = 0.0098.
  5. P(condition | two positives) = 0.01805 ÷ 0.02785 = 0.6481.
  6. That is far from almost certain: about 1 in 3 people with two positives are healthy.
Full working
  1. C and +: 0.02 × 0.95 = 0.019one test
  2. not C and +: 0.98 × 0.1 = 0.098false positive
  3. P(C given +) = 0.019 ÷ (0.019 + 0.098) = 0.019 ÷ 0.117 = 0.16244 d.p.
  4. C, +, +: 0.02 × 0.95² = 0.01805multiply along
  5. not C, +, +: 0.98 × 0.1² = 0.0098multiply along
  6. P(+ +) = 0.01805 + 0.0098 = 0.02785both paths
  7. P(C given + +) = 0.01805 ÷ 0.02785 = 0.64814 d.p.
  8. 1 − 0.6481 = 0.3519still healthy
  9. 0.1624 after one positive, 0.6481 after two; claim not supported

More challenge problems

Practice

Practise this

Worksheet with answersWithout answersDownload PDF
2026 practice paper with worked answersOpen the paper
Revision video: exam questions workedWatch and practise
Report a mistake

More in AS 91585