Sublevo
ISC 2027
All chaptersMaths · Unit 7

Probability

6 articles23 formulas31 ways the board asks it
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 E1,E2,…,EnE_1,E_2,\dots,E_n and observed event AA, it updates the prior P(Ei)P(E_i) to the posterior P(Ei∣A)P(E_i\mid A).

It is a guaranteed board question through machine/defective, disease-test, and bag-of-balls scenarios.

Bayes' theorem
P(Ei∣A)=P(Ei) P(A∣Ei)∑j=1nP(Ej) P(A∣Ej)P(E_i \mid A) = \dfrac{P(E_i)\,P(A \mid E_i)}{\displaystyle\sum_{j=1}^{n} P(E_j)\,P(A \mid E_j)}
E1,…,EnE_1,\dots,E_n are mutually exclusive and exhaustive causes (a partition); P(Ei)P(E_i) = prior, P(A∣Ei)P(A\mid E_i) = likelihood, P(Ei∣A)P(E_i\mid A) = posterior; the denominator is P(A)P(A).
Denominator = total probability of A
P(A)=∑j=1nP(Ej) P(A∣Ej)P(A) = \sum_{j=1}^{n} P(E_j)\,P(A \mid E_j)
The total probability of the observed event AA; it is the sum of all numerator-type terms over every cause.
Two-cause form
P(E1∣A)=P(E1) P(A∣E1)P(E1) P(A∣E1)+P(E2) P(A∣E2)P(E_1 \mid A) = \dfrac{P(E_1)\,P(A \mid E_1)}{P(E_1)\,P(A \mid E_1) + P(E_2)\,P(A \mid E_2)}
Common for two-bag or test (disease/no-disease) problems; E2=E1′E_2 = E_1' when there are only two causes.
  • Step 1: name the causes EiE_i (which machine / which bag / disease vs no disease) and write their priors P(Ei)P(E_i), which must sum to 11.
  • Step 2: write the likelihood P(A∣Ei)P(A\mid E_i) = probability of the observed event under each cause (e.g. defective rate, test sensitivity).
  • Step 3: compute P(A)=∑P(Ei) P(A∣Ei)P(A) = \sum P(E_i)\,P(A\mid E_i) (total probability), then divide the chosen term by it.
  • Posterior probabilities over all causes also sum to 11: ∑iP(Ei∣A)=1\sum_i P(E_i\mid A) = 1 — a useful check.
  • Convert percentages to fractions or decimals (e.g. 50%=0.550\% = 0.5) before substituting.
  • In disease testing, sensitivity =P(positive∣disease)= P(\text{positive}\mid \text{disease}) and specificity =P(negative∣no disease)= P(\text{negative}\mid \text{no disease}), so P(positive∣no disease)=1−specificityP(\text{positive}\mid \text{no disease}) = 1 - \text{specificity}.
  • 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
  1. 1Name the causes E1,E2,…E_1, E_2, \dots (the thing that happened *first* and is unobserved) and the evidence AA (the thing you *observed*). Getting these the wrong way round is the whole difficulty of the topic.
  2. 2Write the priors P(Ei)P(E_i) — usually the percentages or the counts given in the stem.
  3. 3Write the likelihoods P(A∣Ei)P(A\mid E_i) — the success/defect/accuracy rates.
  4. 4Apply P(Ek∣A)=P(Ek)P(A∣Ek)∑iP(Ei)P(A∣Ei)P(E_k\mid A) = \dfrac{P(E_k)P(A\mid E_k)}{\sum_i P(E_i)P(A\mid E_i)}, where the denominator is just the total-probability sum.
Worked example · 4 marks
In a company 15%15\% of employees are graduates and 85%85\% are not. 80%80\% of the graduates and 10%10\% of the non-graduates hold administrative positions. An administrative employee is chosen at random. Find the probability that the employee is a graduate.
  1. Causes: E1E_1 = graduate, E2E_2 = non-graduate. Evidence: AA = holds an administrative position.
  2. Priors: P(E1)=0.15P(E_1) = 0.15, P(E2)=0.85P(E_2) = 0.85.
  3. Likelihoods: P(A∣E1)=0.80P(A\mid E_1) = 0.80, P(A∣E2)=0.10P(A\mid E_2) = 0.10.
  4. Total probability: P(A)=0.15×0.80+0.85×0.10=0.12+0.085=0.205P(A) = 0.15\times0.80 + 0.85\times0.10 = 0.12 + 0.085 = 0.205.
  5. Bayes: P(E1∣A)=0.120.205P(E_1\mid A) = \dfrac{0.12}{0.205}.
Where the marks go
  • Confusing the likelihood P(A∣Ei)P(A\mid E_i) with the posterior P(Ei∣A)P(E_i\mid A) — Bayes' theorem exists precisely to convert one into the other.
  • Using only one cause's term as the denominator instead of the full sum P(A)=∑P(Ej) P(A∣Ej)P(A) = \sum P(E_j)\,P(A\mid E_j).
  • In test problems, plugging in specificity directly as P(positive∣no disease)P(\text{positive}\mid\text{no disease}) instead of 1−specificity1 - \text{specificity}.
  • Forgetting that the priors must form a partition (mutually exclusive and exhaustive, summing to 11) before applying the formula.
How the board asks it
  • Applicationthe machine/defective scenario6 mkAsked 2025
    In a factory, machines AA, BB and CC manufacture 25%25\%, 35%35\% and 40%40\% of the total bolts. Of their outputs, 5%5\%, 4%4\% and 2%2\% respectively are defective. A bolt drawn at random is found to be defective. Find the probability that it was manufactured by machine BB.
  • Applicationthe bag-of-balls scenario4 mkAsked 2024
    Bag II contains 44 red and 55 black balls, while bag IIII contains 33 red and 66 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 IIII.
  • Applicationsensitivity and specificity as likelihoods
    A test for a certain disease is 99%99\% accurate for those who have the disease and 99%99\% accurate for those who do not. If 0.5%0.5\% 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 diagram
    A man is known to speak the truth 44 out of 55 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 2023
    An insurance company insures 20002000 scooter drivers and 40004000 car drivers. The probability of an accident is 0.010.01 for a scooter driver and 0.030.03 for a car driver. One insured person meets with an accident. Find the probability that the person is a scooter driver.

Practise this topic

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.