MATTotal Probability & Bayes’ Theorem
Bayes’ Theorem
Bayes' theorem reverses conditioning: given that an effect has been observed, it finds the probability of each possible cause. With mutually exclusive, exhaustive causes and observed event , it updates the prior to the posterior .
It is a guaranteed board question through machine/defective, disease-test, and bag-of-balls scenarios.
Bayes' theorem
are mutually exclusive and exhaustive causes (a partition); = prior, = likelihood, = posterior; the denominator is .
Denominator = total probability of A
The total probability of the observed event ; it is the sum of all numerator-type terms over every cause.
Two-cause form
Common for two-bag or test (disease/no-disease) problems; when there are only two causes.
- Step 1: name the causes (which machine / which bag / disease vs no disease) and write their priors , which must sum to .
- Step 2: write the likelihood = probability of the observed event under each cause (e.g. defective rate, test sensitivity).
- Step 3: compute (total probability), then divide the chosen term by it.
- Posterior probabilities over all causes also sum to : — a useful check.
- Convert percentages to fractions or decimals (e.g. ) before substituting.
- In disease testing, sensitivity and specificity , so .
- A tree diagram (causes on the first branches, observed event on the second) makes the numerator one path and the denominator the sum of all relevant paths.
The four lines that earn full marks on any Bayes question
- 1Name the causes (the thing that happened *first* and is unobserved) and the evidence (the thing you *observed*). Getting these the wrong way round is the whole difficulty of the topic.
- 2Write the priors — usually the percentages or the counts given in the stem.
- 3Write the likelihoods — the success/defect/accuracy rates.
- 4Apply , where the denominator is just the total-probability sum.
Worked example · 4 marks
In a company of employees are graduates and are not. of the graduates and of the non-graduates hold administrative positions. An administrative employee is chosen at random. Find the probability that the employee is a graduate.
- Causes: = graduate, = non-graduate. Evidence: = holds an administrative position.
- Priors: , .
- Likelihoods: , .
- Total probability: .
- Bayes: .
Answer. Note it is far below — the small pool of graduates drags the posterior down, which is the point of the theorem.
- Confusing the likelihood with the posterior — Bayes' theorem exists precisely to convert one into the other.
- Using only one cause's term as the denominator instead of the full sum .
- In test problems, plugging in specificity directly as instead of .
- Forgetting that the priors must form a partition (mutually exclusive and exhaustive, summing to ) before applying the formula.
- Applicationthe machine/defective scenario6 mkAsked 2025In a factory, machines , and manufacture , and of the total bolts. Of their outputs, , and respectively are defective. A bolt drawn at random is found to be defective. Find the probability that it was manufactured by machine .
- Applicationthe bag-of-balls scenario4 mkAsked 2024Bag contains red and black balls, while bag contains red and black balls. One bag is chosen at random and a ball is drawn from it which is found to be red. Find the probability that the ball was drawn from bag .
- Applicationsensitivity and specificity as likelihoodsA test for a certain disease is accurate for those who have the disease and accurate for those who do not. If of the population actually has the disease and a randomly selected person tests positive, find the probability that the person actually has the disease.
- Diagram / graphthe cause-then-event tree diagramA man is known to speak the truth out of times. He throws a die and reports that it is a six. Draw a tree diagram showing the causes and the observed event, and hence find the probability that it is actually a six.
- Applicationthe two-cause weighted-population form4 mkAsked 2023An insurance company insures scooter drivers and car drivers. The probability of an accident is for a scooter driver and for a car driver. One insured person meets with an accident. Find the probability that the person is a scooter driver.
Written for Sublevo. Question text quoted anywhere in these notes is the Council’s and carries its year and paper; the board’s own diagrams are not reproduced.