4.13 Bayes’ theorem questions for IB Maths AA

18 questions on Bayes’ theorem, written by Augment in the style of IB exam papers. Six of them are below in full, to answer on paper.

  • IB Mathematics: Analysis and Approaches
  • Part of 4 Statistics and probability
  • HL only

Questions by paper and level

PaperQuestions
Paper 19
Paper 27
Paper 32
Every paper18

Counted on

Questions to try

Written by Augment in the style of IB exams, not past papers. Answer them on paper, then check each one against its markscheme with a free account.

Question 1 · AA-00444Paper 1 · 6 marks

In a population, 150 of people have a particular condition, D. A screening test for D gives a positive result for 910 of the people who have the condition and for 110 of the people who do not have the condition.

A person is chosen at random from the population and tested.

  1. (a)

    Given that the test result is positive, find the probability that the person has the condition.

    4 marks

  2. (b)

    Given that the test result is negative, find the probability that the person does not have the condition.

    2 marks

Question 2 · AA-00443Paper 2 · 6 marks

A café buys all of its coffee beans from three roasters, A, B and C. Of the bags of beans it buys, 45% come from roaster A, 35% from roaster B and 20% from roaster C.

The probability that a bag is stale when it is opened is 0.03 for roaster A, 0.05 for roaster B and 0.08 for roaster C.

A bag of beans is selected at random and opened.

  1. (a)

    Find the probability that the bag is stale.

    2 marks

  2. (b)

    Given that the bag is stale, find the probability that it came from roaster C.

    2 marks

  3. (c)

    Given that the bag is not stale, find the probability that it came from roaster A.

    2 marks

Question 3 · AA-00459Paper 3 · 25 marks

This question asks you to investigate whether a contestant in a game should change their choice after receiving information from a host.

In a game, a prize is placed behind one of three closed doors, numbered 1, 2 and 3. The prize is equally likely to be behind each door. A contestant chooses door 1. The host, who knows where the prize is, then opens one of the other two doors, always choosing a door that does not hide the prize. The contestant may then either stay with door 1 or switch to the other closed door.

If the prize is behind door 1, the host opens door 3 with probability q and door 2 with probability 1−q, where 0≤q≤1.

Let Di be the event that the prize is behind door i, for i=1,2,3, and let H3 be the event that the host opens door 3.

  1. (a)

    Write down P(H3∣D1), P(H3∣D2) and P(H3∣D3).

    2 marks

  2. (b)

    Show that P(H3)=1+q3.

    2 marks

  3. (c)(i)

    Show that P(D1∣H3)=q1+q.

    2 marks

  4. (c)(ii)

    Find P(D2∣H3) in terms of q.

    2 marks

  5. (d)

    Consider the case q=12. The host opens door 3. Find the probability that the contestant wins the prize if they switch to door 2.

    2 marks

  6. (e)

    Show that, when the host opens door 3, switching to door 2 is never less likely to win the prize than staying with door 1. State the value of q for which the two choices are equally likely to win.

    3 marks

  7. (f)

    The contestant decides, before the game starts, always to switch. By finding P(D3∣H2), where H2 is the event that the host opens door 2, show that the probability that the contestant wins the prize is 23 for every value of q.

    4 marks

  8. (g)

    Find the probability that the game is abandoned.

    2 marks

  9. (h)

    This host opens door 3 and it does not hide the prize. Show that the probability that the prize is behind door 1 is now 12.

    4 marks

  10. (i)

    By comparing your answers to parts (d) and (h), explain briefly why the host's knowledge matters to the contestant.

    2 marks

Question 4 · AA-00445Paper 1 · 5 marks

Box X contains 3 red counters and 1 blue counter. Box Y contains 2 red counters and 3 blue counters. Box Z contains 1 red counter and 4 blue counters.

Pedro rolls a fair six-sided die. If he rolls a 1 he chooses box X, if he rolls a 2 or a 3 he chooses box Y, and otherwise he chooses box Z. He then takes one counter at random from the chosen box.

  1. (a)

    Find the probability that the counter is red.

    3 marks

  2. (b)

    Given that the counter is red, find the probability that it was taken from box Y.

    2 marks

Question 5 · AA-00448Paper 2 · 8 marks

A bag contains three dice that look identical. When die A is rolled, the probability of a six is 16. When die B is rolled, the probability of a six is 13. When die C is rolled, the probability of a six is 12.

Mei takes one of the dice from the bag at random and rolls it 10 times. Let X be the number of sixes she obtains. The results of the rolls are independent.

  1. (a)

    Find P(X=3).

    3 marks

  2. (b)

    Given that Mei obtains exactly three sixes, find the probability that she chose die B.

    2 marks

  3. (c)

    Given that Mei obtains at least three sixes, find the probability that she chose die A.

    3 marks

Question 6 · AA-00460Paper 3 · 28 marks

This question asks you to investigate how the probability that a component is faulty changes as the results of repeated tests are obtained.

A factory makes electronic components. Each component is either faulty (F) or good (F′). A test on a component gives one of two results, "fail" or "pass". The test has accuracy a, where 12<a<1: a faulty component fails the test with probability a, and a good component passes the test with probability a.

When a component is tested more than once, the results are independent of each other, given whether or not the component is faulty.

For any event E with 0<P(E)<1, the odds of E are defined as O(E)=P(E)P(E′). Similarly, O(E∣R)=P(E∣R)P(E′∣R) for an event R.

  1. (a)

    Consider the case P(F)=0.1 and a=0.8. A component is tested once and fails. Find the probability that it is faulty.

    3 marks

  2. (b)

    Show that O(F∣fail)=a1−a×O(F).

    3 marks

  3. (c)

    Find a similar expression for O(F∣pass) in terms of a and O(F).

    2 marks

  4. (d)(i)

    Write down P(Rk∣F) and P(Rk∣F′).

    2 marks

  5. (d)(ii)

    Hence show that O(F∣Rk)=(a1−a)k×O(F).

    3 marks

  6. (e)

    A component is tested m+n times. It fails m of the tests and passes the other n, in some order. Let S be the event that these results are obtained, in that order. Show that O(F∣S)=(a1−a)m−n×O(F).

    3 marks

  7. (f)

    Explain briefly the significance of the result in part (e) for a component that fails exactly as many tests as it passes.

    2 marks

  8. (g)

    A component is tested 10 times. It fails 6 tests and passes 4. Find the probability that it is faulty.

    3 marks

  9. (h)

    A component is tested repeatedly and fails every test. Find the least number of tests after which the probability that it is faulty is greater than 0.999.

    3 marks

  10. (i)

    A faulty component is tested 10 times. Find the probability that, from its results, the probability that it is faulty is calculated to be greater than 0.5.

    4 marks

Practice all 18 in Augment

Free with an account. Every question has its markscheme, and Augment keeps the ones you got wrong so you can come back to them.

The notes on 4.13 Bayes’ theorem

More questions in Statistics and probability

  1. 4.1Populations, samples and sampling
  2. 4.2Presenting data
  3. 4.3Measures of central tendency and dispersion
  4. 4.4Linear correlation and regression
  5. 4.5Concepts of probability
  6. 4.6Venn diagrams, tree diagrams and combined events
  7. 4.7Discrete random variables
  8. 4.8The binomial distribution
  9. 4.9The normal distribution
  10. 4.10Regression of x on y
  11. 4.11Conditional probability and independence
  12. 4.12Standardising normal variables
  13. 4.13Bayes’ theoremThis page
  14. 4.14Continuous random variables

Check your answers in Augment

A free account opens all 18 questions on Bayes’ theorem with their markschemes, and keeps a record of what you have marked.