Skip to content
  1. Home
  2. IB Question Bank
  3. Math AA
  4. Statistics & Probability
  5. Bayes theorem
Topic 4.13 · HL only · 4 min read

IB Math AA Bayes theorem practice questions and question bank

Notes on what Bayes theorem covers and how it is examined, then 4 IB-style practice questions with hints.

Jump to 4 questions
  • Aligned to the current IB syllabus
  • Marked mark by mark, IB-style
  • Free to start, no card needed
Sample question · from the bank
Paper 1Statistics & ProbabilityMedium
Question 3
  • (a) An IT company is testing a new filter designed to detect spam emails.

    The company knows that:

    • 20%20\% of the emails received are spam

    • if an email is spam, the probability that the filter flags it is 90%90\%

    • if an email is not spam, the probability that the filter flags it is 10%10\%.

    Find the probability that a randomly selected email is flagged by the filter.

    [3 marks]
  • (b) Find the probability that a randomly selected email is spam, given that it was flagged by the filter.

    [3 marks]
AI Examiner ready

Summary

  • Bayes' theorem reverses a conditional probability: it finds P(A∣B)P(A|B) when you know P(B∣A)P(B|A).
  • For two events: P(A∣B)=P(A)P(B∣A)P(A)P(B∣A)+P(A′)P(B∣A′)P(A|B) = \frac{P(A)P(B|A)}{P(A)P(B|A) + P(A')P(B|A')}.
  • For three mutually exclusive events A1,A2,A3A_1, A_2, A_3 that cover every outcome: P(Ai∣B)=P(Ai)P(B∣Ai)P(A1)P(B∣A1)+P(A2)P(B∣A2)+P(A3)P(B∣A3)P(A_i|B) = \frac{P(A_i)P(B|A_i)}{P(A_1)P(B|A_1) + P(A_2)P(B|A_2) + P(A_3)P(B|A_3)}.
  • The denominator is the total probability of BB: the sum over every branch of the tree diagram that ends in BB.
  • A tree diagram is usually the fastest route. Multiply along each branch, then divide the branch you want by the total for BB.
  • The IB asks for at most three events, and both versions of the theorem are in the formula booklet.

How it is examined

Three events is the ceiling, so a question with a four-branch partition is out of syllabus. The medical-testing context (false positives) is the archetype. A tree diagram is usually the faster route and is fully acceptable, since the guidance never demands the formula. 5 to 7 marks.

Given in the booklet

Bayes' theorem is given for two and for three events.

Key ideas

Use of Bayes' theorem for a maximum of three events.

Practice questions

4 questions · 2 medium · 2 hard
Showing 4 of 4

Question 1

MediumPaper 1 · no calculator7 marks
(a)

A factory produces microchips on two production lines, Line 1 and Line 2. Line 1 produces 60%60\% of the microchips and Line 2 produces the remaining 40%40\%. The probability that a microchip from Line 1 is defective is 0.050.05, and the probability that a microchip from Line 2 is defective is 0.080.08.

A microchip is selected at random from the factory's total output.

(a) Find the probability that it is defective.

[3]
(b)

(b) Given that a randomly selected microchip is defective, find the probability that it was produced by Line 1.

[2]
(c)

(c) find the probability that it was produced by Line 2.

[2]

Question 2

HardPaper 2 · calculator5 marks
(a)

A factory produces two types of light bulbs: standard and long-life. The lifespan of the bulbs, in hours, can be modelled as normal distributions with the following parameters.

Bulb typeMean μ\muStandard deviation σ\sigma
Standard800 h50 h
Long-life1000 h100 h

(a) Find the percentage of standard bulbs that have a lifespan of less than 700 hours.

[1]
(b)

(b) The factory produces a large number of bulbs, of which 60% are standard bulbs. Both types of bulbs are produced and randomly mixed together for packaging. A quality control process identifies and removes all bulbs with a lifespan of less than 700 hours. An inspector randomly selects a bulb from this removed group. Find the probability that it is a standard bulb.

[4]

Question 3

MediumPaper 1 · no calculator6 marks
(a)

(a) An IT company is testing a new filter designed to detect spam emails.

The company knows that:

• 20%20\% of the emails received are spam

• if an email is spam, the probability that the filter flags it is 90%90\%

• if an email is not spam, the probability that the filter flags it is 10%10\%.

Find the probability that a randomly selected email is flagged by the filter.

[3]
(b)

(b) Find the probability that a randomly selected email is spam, given that it was flagged by the filter.

[3]

Question 4

HardPaper 2 · calculator16 marks
(a)

(a) An electronics factory produces two types of resistors: Type A and Type B.

The resistance, RAR_A (in Ohms), of Type A resistors is normally distributed with a mean of 120 Ohms and a standard deviation of 5 Ohms.

Find the probability that a randomly selected Type A resistor has a resistance less than 115 Ohms.

[2]
(b)

(b) In a random selection of 10 Type A resistors, find the probability that exactly 3 have a resistance less than 115 Ohms.

[2]
(c)(i)

(c) The resistance, RBR_B (in Ohms), of Type B resistors is normally distributed with a mean of 135 Ohms and a standard deviation of 7 Ohms.

Each day, 70% of the resistors produced are Type A, and 30% are Type B.

On a particular day, a resistor is randomly selected from all those produced at the factory.

Let AA represent 'Type A resistor' and BB represent 'Type B resistor'.

(i) Find the probability that the randomly selected resistor has a resistance less than 115 Ohms.

[4]
(c)(ii)

(ii) Given that a randomly selected resistor has a resistance less than 115 Ohms, find the probability that it is a Type A resistor.

[3]
(d)

(d) The machine that makes the Type A resistors is adjusted so that the mean resistance of the Type A resistors remains the same, but their standard deviation changes to σ\sigma Ohms. The machine that makes the Type B resistors is not adjusted. The probability that the resistance of a randomly selected resistor from these machines is now less than 115 Ohms is 0.18.

Find the value of σ\sigma.

[5]

1,129 more IB Math AA questions in the app

Every answer is marked mark by mark, IB-style, and the AI tutor helps when you are stuck.

Where marks are lost

  • Rounding an intermediate value and then using it.
  • Answering to the wrong accuracy. Two significant figures, or six, where the rule says exactly or three.
  • Writing the answer and nothing else.

Links to other topics and subjects

  • Other contexts: probability methods in medical studies to assess risk factors for certain diseases.
Free. Every IB subject.
No card, no trial that runs out. Just a free account.
  • 50 marked answers a month
    Marked mark by mark, IB-style
  • Hints and mark schemes
    On every part of every question
  • 3,000+ questions
    All 6 subjects, SL and HL, mapped to the syllabus
  • Progress that adapts
    Your Study Profile picks what to practise next

Practise this topic as a session

Pick a difficulty and paper, and FourtyFive tracks your progress on this topic as you go.

or with email
FAQ

Questions,
answered.

Can't find what you're looking for? Email our student team.

What does Bayes theorem cover in IB Maths AA?

Bayes' theorem reverses a conditional probability: it finds P(A|B) when you know P(B|A). For two events: P(A|B) = (P(A)P(B|A))/(P(A)P(B|A) + P(A')P(B|A')). For three mutually exclusive events A_1, A_2, A_3 that cover every outcome: P(A_i|B) = (P(A_i)P(B|A_i))/(P(A_1)P(B|A_1) + P(A_2)P(B|A_2) + P(A_3)P(B|A_3)).

Is Bayes theorem SL or HL?

Bayes theorem is HL only. SL students are not examined on it.

How do I revise Bayes theorem for IB Maths AA?

Start from the core idea: bayes' theorem reverses a conditional probability: it finds P(A|B) when you know P(B|A). In the exam: three events is the ceiling, so a question with a four-branch partition is out of syllabus. The medical-testing context (false positives) is the archetype. Then practise exam-style questions, easiest first, writing out every step of your working before you check it.

How does FourtyFive help me practise Bayes theorem?

FourtyFive has 4 Bayes theorem questions. Every answer you write is marked mark by mark, IB-style, and you see where each mark was won or lost. Every part has a hint, the AI tutor helps you through the step you are stuck on, and your Study Profile picks what to practise next.

Is FourtyFive free for Bayes theorem practice?

Yes. A free account gives you 50 marked answers a month, and you do not need a card to sign up.

Can I handwrite Bayes theorem answers on an iPad?

Yes. In the FourtyFive iPad app you write your working by hand with Apple Pencil, the way you would on paper, and it is marked the same way.

Start with the IB question
bank built for you.

Free to start, no card needed. Thousands of syllabus-mapped questions, AI Examiner marking, your weakest topics first.