aimnova.
DashboardMy LearningPaper MasteryStudy Plan

Stay in the loop

Study tips, product updates, and early access to new features.

aimnova.

AI-powered IB study platform with personalised plans, instant feedback, and examiner-style marking.

IB Subjects

  • IB Diploma
  • All IB Subjects
  • IB ESS
  • IB Economics
  • IB Business Management
  • IB Math AI SL
  • IB Math AA SL
  • Grade Calculator
  • Exam Timetable 2026
  • ESS Predictions 2026
  • Economics Predictions 2026
  • Business Management Predictions 2026
  • Math AI SL Predictions 2026
  • Math AA SL Predictions 2026

Study Resources

  • Free Study Notes
  • Revision Guide
  • Flashcards
  • ESS Question Bank
  • BM Question Bank
  • Mock Exams
  • Past Paper Feedback
  • Exam Skills
  • Command Terms

Company

  • Features
  • Pricing
  • About Us
  • Blog
  • Contact
  • Terms
  • Privacy
  • Cookies

© 2026 Aimnova. All rights reserved.

Made with 💜 for IB students worldwide

v0.1.868
NotesMath AA HLTopic 4.13Bayes' theorem
Back to Math AA HL Topics
4.13.12 min read

Bayes' theorem

IB Mathematics: Analysis and Approaches • Unit 4

Smart study tools

Turn reading into results

Move beyond passive notes. Answer real exam questions, get AI feedback, and build the skills that earn top marks.

Get Started Free

Contents

  • Reverse a conditional with a tree
  • The Bayes formula (and total probability)
Picture: a test that is good but not perfect: Imagine 1000 people. A rare disease affects only 1% of them — that's just 10 people. A test is 90% accurate: it flags 9 of those 10 sick people, but it also wrongly flags 5% of the 990 healthy people — that's about 50 false alarms!

So of everyone who tests positive (9 + 50 = 59), only 9 are actually sick. A positive result means only about a 15% chance of disease — far less than the test's 90% accuracy suggests.

That surprising flip is exactly what Bayes' theorem computes: it turns P(positive | sick), which the test gives you, into P(sick | positive), which you actually want.
The idea in one sentence: Conditional probability P(A | B) = (probability of A and B) ÷ (probability of B).

To find P(disease | positive), take the one tree branch where you are both diseased and positive, then divide by the total probability of being positive (every path that ends in 'positive').

IB-style question — disease test (read off the tree)

A disease affects 2% of a population. A screening test correctly returns positive for 95% of people who have the disease, and wrongly returns positive for 8% of people who do not have it.

A randomly chosen person tests positive. Find the probability that they actually have the disease.

Step by step

  1. Set up the tree. First branch: disease D (0.02) or no disease D′ (0.98). Second branch: test result + or −. Multiply along each path to get the joint probabilities.
  2. Path 'disease AND positive': multiply along that branch.
  3. Path 'no disease AND positive' (a false positive).
  4. Total probability of testing positive = sum of every path that ends in '+'.
  5. Bayes: divide the branch you want by the total. This reverses the conditional.
  6. Evaluate.

Final answer

P(disease | positive) ≈ 0.195 (about 19.5%) — much lower than the 95% accuracy, because the disease is rare and false positives outnumber true positives.

Same tree, written as a formula: The tree method is Bayes' theorem. Writing it as a formula just names the pieces. To find P(A | B), you need:

• the prior P(A) — how likely A is before any evidence; • the likelihood P(B | A) — how likely the evidence is when A is true; • and the total probability of the evidence P(B), gathered from every branch (the law of total probability).
Law of total probability: the evidence B can arrive via A or via A′ (not-A). Sum both paths.
Bayes' theorem (in the formula booklet): top = the one branch you want; bottom = the total probability of the evidence.

IB-style question — use the formula directly

A factory makes light bulbs on two machines. Machine A makes 60% of the bulbs and 3% of its bulbs are faulty. Machine B makes the other 40% and 7% of its bulbs are faulty.

A bulb is chosen at random and found to be faulty (F). Find the probability that it was made by machine B.

Step by step

  1. Name the pieces. Prior P(B) = 0.40, and likelihood P(F | B) = 0.07. For machine A: P(A) = 0.60, P(F | A) = 0.03.
  2. Law of total probability — chance any bulb is faulty (both machines).
  3. Bayes: wanted branch ÷ total. Here the wanted branch is 'machine B and faulty'.
  4. Evaluate.

Final answer

P(machine B | faulty) ≈ 0.609. Although B makes only 40% of the bulbs, its higher fault rate means it accounts for most of the faulty ones.

Don't confuse the two directions: P(F | B) = 0.07 is given. P(B | F) ≈ 0.609 is the answer. They are different numbers — swapping them is the single most common Bayes mistake. The whole point of Bayes is that P(A | B) ≠ P(B | A).

IB Exam Questions on Bayes' theorem

Practice with IB-style questions filtered to Topic 4.13.1. Get instant AI feedback on every answer.

Practice Topic 4.13.1 QuestionsBrowse All Math AA HL Topics

How Bayes' theorem Appears in IB Exams

Examiners use specific command terms when asking about this topic. Here's what to expect:

Define

Give the precise meaning of key terms related to Bayes' theorem.

AO1
Describe

Give a detailed account of processes or features in Bayes' theorem.

AO2
Explain

Give reasons WHY — cause and effect within Bayes' theorem.

AO3
Evaluate

Weigh strengths AND limitations of approaches in Bayes' theorem.

AO3
Discuss

Present arguments FOR and AGAINST with a balanced conclusion.

AO3

See the full IB Command Terms guide →

Related Math AA HL Topics

Continue learning with these related topics from the same unit:

4.1.1Populations & samples
4.1.2Sampling techniques
4.10.1Prediction
4.11.1Conditional probability
View all Math AA HL topics

Improve your exam technique

Command terms, paper structure, and mark-scheme tips for Math AA HL

Previous
4.12.2Inverse normal
Next
Discrete random variables: E(X) & Var(X)4.14.1

11 practice questions on Bayes' theorem

Students who practiced this topic on Aimnova scored 82% on average. Try free practice questions and get instant AI feedback.

Try 3 Free QuestionsView All Math AA HL Topics