Bayes' Theorem (DP IB Analysis & Approaches (AA)): Revision Note

Dan Finlay

Written by: Dan Finlay

Reviewed by: Roger B

Updated on

Bayes' theorem

What is Bayes’ theorem?

  • Bayes’ theorem allows you switch the order of conditional probabilities

    • If you know straight P left parenthesis B right parenthesisstraight P left parenthesis B apostrophe right parenthesis and straight P left parenthesis A vertical line B right parenthesis then Bayes’ theorem allows you to find straight P left parenthesis B vertical line A right parenthesis

  • Essentially if you have a tree diagram you will already know the conditional probabilities of the second branches

    • Bayes’ theorem allows you to find the conditional probabilities if you switch the order of the events

  • For any two events A and B Bayes’ theorem states:

     
    straight P open parentheses B vertical line A close parentheses equals fraction numerator straight P open parentheses B close parentheses straight P open parentheses A vertical line B close parentheses over denominator straight P open parentheses B close parentheses straight P open parentheses A vertical line B close parentheses plus straight P open parentheses B italic apostrophe close parentheses straight P open parentheses A vertical line B italic apostrophe close parentheses end fraction
     

    • This is given in the exam formula booklet

    • This formula is derived using the formulae:

      •  

      •  straight P invisible function application open parentheses A close parentheses equals straight P invisible function application open parentheses B intersection A close parentheses plus straight P invisible function application open parentheses B apostrophe intersection A close parentheses

      • and 

  • Bayes’ theorem can be extended to mutually exclusive events B1, B2, ..., Bn and any other event A

    • In your exam you will have a maximum of three mutually exclusive events


      straight P open parentheses B subscript i vertical line A close parentheses equals fraction numerator straight P open parentheses B subscript i close parentheses straight P open parentheses A vertical line B subscript i close parentheses over denominator straight P open parentheses B subscript 1 close parentheses straight P open parentheses A vertical line B subscript 1 close parentheses plus straight P open parentheses B subscript 2 close parentheses straight P open parentheses A vertical line B subscript 2 close parentheses plus straight P open parentheses B subscript 3 close parentheses straight P open parentheses A vertical line B subscript 3 close parentheses end fraction

      • This is given in the exam formula booklet

How do I calculate conditional probabilities using Bayes’ theorem?

  • Start by drawing a tree diagram

    • Label B1 & B2 (& B3 if necessary) on the first set of branches

    • Label A & A’ on the second set of branches

  • The questions will give you enough information to label the probabilities on this tree

  • Identify the probabilities needed to use Bayes’ theorem

    • The probabilities will come in pairs: straight P open parentheses B subscript i close parentheses and straight P open parentheses A vertical line B subscript i close parentheses

Probability tree diagram with first set of branches splitting to B1, B2, B3. From each of B1, B2 and B3 a second set of branches splits to A and A'. Probabilities are shown along the first set of branches, and conditional probabilities along the second set of branches. The Bayes' Theorem equation for P(Bi|A) is shown, with text explaining that the denominator stays constant as i changes.

Examiner Tips and Tricks

In an exam you are less likely to make a mistake when using the formula if you draw a tree diagram first.

Worked Example

Lucy is doing a quiz. For each question there’s a 45% chance that it is about music, 30% chance that it is about TV and 25% chance that it is about literature. The probability that Lucy answers a question correctly is 0.6 for music, 0.95 for TV and 0.4 for literature.

a) Draw a tree diagram to represent this information.

4-3-3-ib-aa-hl-bayes-theorem-a-we-solution

b) Given that Lucy answered a question correctly, find the probability that it was about TV.

4-3-3-ib-aa-hl-bayes-theorem-b-we-solution

You've read 0 of your 5 free revision notes this week

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Dan Finlay

Author: Dan Finlay

Expertise: Maths Subject Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.

Roger B

Reviewer: Roger B

Expertise: Maths Content Creator

Roger's teaching experience stretches all the way back to 1992, and in that time he has taught students at all levels between Year 7 and university undergraduate. Having conducted and published postgraduate research into the mathematical theory behind quantum computing, he is more than confident in dealing with mathematics at any level the exam boards might throw at you.