Tiber Tutor

notes

IB Maths AA 4.7 Notes

This page contains our IB Maths AA notes for 4.7. By reading each one of these notes, you will fully cover the content for IB Maths AA 'Bayes theorem'.

Chapters

Loading progress...

Bayes' theorem

Bayes' theorem is used to reverse conditional probabilities. It helps us find the probability of a cause given an observed result. In this course, it is used for a maximum of three events and links closely to conditional probability and independence.

Suppose events AA and BB satisfy P(B)>0P(B)\gt 0. Then Bayes' theorem states:

P(AB)=P(BA)P(A)P(B)P(A\mid B)=\frac{P(B\mid A)P(A)}{P(B)}

This formula is especially useful when P(BA)P(B\mid A) is known, but P(AB)P(A\mid B) is required.

Bayes' theorem lets us update probabilities using new information.

  • P(A)P(A) is the prior probability of AA.
  • P(BA)P(B\mid A) is the probability of observing BB if AA has occurred.
  • P(AB)P(A\mid B) is the updated probability of AA after learning that BB has occurred.

From conditional probability, P(AB)=P(AB)P(B)P(A\mid B)=\frac{P(A\cap B)}{P(B)} and P(AB)=P(BA)P(A)P(A\cap B)=P(B\mid A)P(A). Substituting gives Bayes' theorem, so it is a direct consequence of the conditional probability formula.

A bag contains 66 red counters and 44 blue counters. One counter is chosen at random. Let AA be the event that the counter is red, and let BB be the event that the counter is not blue. Find the probability that a red counter is chosen, given that a blue counter is not chosen.

Since 'not blue' means red in this case, P(AB)=1P(A\mid B)=1. This simple example shows that once event BB is known, the probability of AA may change completely.

When there are two possible causes, the theorem changes slightly. Let's explore this through an example problem.

A school has 60%60\% day students and 40%40\% boarding students. Of the day students, 70%70\% play sport. Of the boarding students, 50%50\% play sport. A randomly chosen student is found to play sport. Find the probability that the student is a day student.

Let DD be the event that the student is a day student and SS be the event that the student plays sport.

We know:

  • P(D)=0.6P(D)=0.6
  • P(SD)=0.7P(S\mid D)=0.7
  • P(SD)=0.5P(S\mid D')=0.5

First find P(S)P(S) using total probability:

P(S)=P(SD)P(D)+P(SD)P(D)=0.7(0.6)+0.5(0.4)=0.42+0.20=0.62P(S)=P(S\mid D)P(D)+P(S\mid D')P(D')=0.7(0.6)+0.5(0.4)=0.42+0.20=0.62

Now apply Bayes' theorem:

P(DS)=P(SD)P(D)P(S)=0.7×0.60.62=0.420.620.677P(D\mid S)=\frac{P(S\mid D)P(D)}{P(S)}=\frac{0.7\times0.6}{0.62}=\frac{0.42}{0.62}\approx0.677

So the probability that the student is a day student, given that they play sport, is about 0.6770.677.

tibertutor.com

Next Up

You have completed the sub-topic 4.7 notes, covering "Bayes theorem" for IB Maths AA - continue with related resources below or explore the full IB Maths AA course from the IBO.

Other Sub-topic 4.7 resources