How a Positive Medical Test Can Still Mean You Are Probably Healthy
Identify a partition of the sample space and state the theorem of total probability, use it across mutually exclusive and exhaustive causes, apply Bayes' theorem to update prior probabilities, and interpret posterior probabilities in real-life problems.
How do you work backwards from an effect to its likely cause?
A factory's defective bolt could have come from any of three machines; a positive test could be a true or a false alarm. The theorem of total probability finds the chance of the effect, and Bayes' theorem turns the question around to ask which cause is most likely.
This part covers partitions and total probability, applying total probability, Bayes' theorem, and interpreting results in real problems.
This part covers partitions and total probability, applying total probability, Bayes' theorem, and interpreting results in real problems.
What is a partition of a sample space, and what does the theorem of total probability state?
**Events partition a sample space if they are pairwise disjoint, together cover the whole space, and each has non-zero probability; then for any event , the theorem of total probability gives .
Conditions for a partition:
- Pairwise disjoint** — for
- Exhaustive —
- Non-zero — for every
The theorem:
Why it holds. splits into the disjoint pieces , and each piece has probability by the multiplication theorem.
Worked example — spotting a partition. For a die, , and form a partition; and cannot be part of one, because they overlap.
An everyday example. Grouping a school's students by house, with every student in exactly one house, is a partition — the chance that a random student plays chess can be worked out house by house and added.
The substance. **An event and its complement, and , always form a partition** — the most common two-case use of the theorem.
Conditions for a partition:
- Pairwise disjoint** — for
- Exhaustive —
- Non-zero — for every
The theorem:
Why it holds. splits into the disjoint pieces , and each piece has probability by the multiplication theorem.
Worked example — spotting a partition. For a die, , and form a partition; and cannot be part of one, because they overlap.
An everyday example. Grouping a school's students by house, with every student in exactly one house, is a partition — the chance that a random student plays chess can be worked out house by house and added.
The substance. **An event and its complement, and , always form a partition** — the most common two-case use of the theorem.
How do you use the theorem of total probability across mutually exclusive and exhaustive causes?
Identify the possible causes that form a partition, write each cause's probability and the probability of the event under that cause, multiply in pairs, and add.
Worked example 1 — two bags. Bag I has red and black balls; Bag II has red and black. A bag is chosen at random and one ball is drawn. The probability that it is red:
Worked example 2 — three machines. Machines A, B and C make , and per cent of a factory's bolts, and , and per cent of their bolts respectively are defective. The probability that a random bolt is defective:
Setting it out. A tree diagram, with one branch per cause and a second branch for the event, keeps the products organised.
An everyday example. The chance of reaching school late combines the chances of taking the bus, an auto or a bicycle with the chance of being late on each.
The substance. **The cause probabilities must add up to ** — if they do not, the causes do not form a partition.
Worked example 1 — two bags. Bag I has red and black balls; Bag II has red and black. A bag is chosen at random and one ball is drawn. The probability that it is red:
Worked example 2 — three machines. Machines A, B and C make , and per cent of a factory's bolts, and , and per cent of their bolts respectively are defective. The probability that a random bolt is defective:
Setting it out. A tree diagram, with one branch per cause and a second branch for the event, keeps the products organised.
An everyday example. The chance of reaching school late combines the chances of taking the bus, an auto or a bicycle with the chance of being late on each.
The substance. **The cause probabilities must add up to ** — if they do not, the causes do not form a partition.
What does Bayes' theorem state, and how do you compute posterior probabilities from prior probabilities?
**Bayes' theorem gives the probability of a particular cause after event has been observed, , turning prior probabilities into posterior probabilities.
Derivation.** By the multiplication theorem , and by total probability the denominator is , so
Terms:
- Prior — , the probability of a cause before the evidence
- Likelihood — , how probable the evidence is under that cause
- Posterior — , the updated probability after the evidence
Worked example — two bags. A red ball has been drawn. The probability it came from Bag I:
Worked example — three machines. A bolt is found to be defective. The probability that machine B made it:
An everyday example. A mechanic hearing a strange engine noise weighs how common each fault is against how likely each fault is to cause that noise — Bayes' theorem in practice.
The substance. **The posterior probabilities of all the causes add up to **, which is a useful check on the arithmetic.
Derivation.** By the multiplication theorem , and by total probability the denominator is , so
Terms:
- Prior — , the probability of a cause before the evidence
- Likelihood — , how probable the evidence is under that cause
- Posterior — , the updated probability after the evidence
Worked example — two bags. A red ball has been drawn. The probability it came from Bag I:
Worked example — three machines. A bolt is found to be defective. The probability that machine B made it:
An everyday example. A mechanic hearing a strange engine noise weighs how common each fault is against how likely each fault is to cause that noise — Bayes' theorem in practice.
The substance. **The posterior probabilities of all the causes add up to **, which is a useful check on the arithmetic.
How do you solve real-life problems with Bayes' theorem and interpret prior and posterior probabilities?
Translate the situation into causes with prior probabilities and an observed result with conditional probabilities, apply Bayes' theorem, and read the posterior as the updated belief — which can differ sharply from intuition when a cause is rare.
Worked example — a screening test. Suppose a disease affects per cent of a population. A test detects it in per cent of people who have it, but also wrongly shows positive for per cent of healthy people. A person tests positive. What is the probability that they have the disease?
Interpreting it. Even after a positive result, the probability of disease is only about **, because the disease is rare and false positives among the many healthy people outnumber true positives.
What changes the answer. A higher prior — for example, for someone who already has symptoms — or a second independent positive test raises the posterior sharply.
An everyday example. A smoke alarm beeping while toast browns in the kitchen is far more likely a false alarm than a fire — a rare cause stays unlikely even when the alarm sounds.
The substance. A test's accuracy alone does not give the chance you have the condition** — the prior probability matters just as much.
Worked example — a screening test. Suppose a disease affects per cent of a population. A test detects it in per cent of people who have it, but also wrongly shows positive for per cent of healthy people. A person tests positive. What is the probability that they have the disease?
Interpreting it. Even after a positive result, the probability of disease is only about **, because the disease is rare and false positives among the many healthy people outnumber true positives.
What changes the answer. A higher prior — for example, for someone who already has symptoms — or a second independent positive test raises the posterior sharply.
An everyday example. A smoke alarm beeping while toast browns in the kitchen is far more likely a false alarm than a fire — a rare cause stays unlikely even when the alarm sounds.
The substance. A test's accuracy alone does not give the chance you have the condition** — the prior probability matters just as much.
Exam tip
What earns full marks on total probability and Bayes' theorem?
Name every event with a letter, list the priors and conditional probabilities in two columns, and only then substitute into the formula.
- Partition: disjoint, exhaustive, non-zero probabilities
- Total probability:
- Bayes' theorem:
- Prior and posterior: before and after the evidence
- Check: the posteriors of all causes add up to
The trap. Using where is asked. Read which event is given — the one after the bar has already happened.
- Partition: disjoint, exhaustive, non-zero probabilities
- Total probability:
- Bayes' theorem:
- Prior and posterior: before and after the evidence
- Check: the posteriors of all causes add up to
The trap. Using where is asked. Read which event is given — the one after the bar has already happened.
Did you know
How do email spam filters use Bayes' theorem?
A spam filter starts with a prior probability that any incoming email is spam. It then looks at the words inside, such as free, winner or urgent, and how often each appears in spam compared with genuine mail.
Bayes' theorem combines these clues into a posterior probability that the email is spam, and if it is high enough, the message goes to the spam folder.
Each time you mark an email as spam or not spam, the filter updates its word probabilities — Bayesian updating happening quietly in your inbox.
Bayes' theorem combines these clues into a posterior probability that the email is spam, and if it is high enough, the message goes to the spam folder.
Each time you mark an email as spam or not spam, the filter updates its word probabilities — Bayesian updating happening quietly in your inbox.
Exam relevance
How are total probability and Bayes' theorem tested in JEE Main?
Bayes' theorem and total probability are among the most recognisable question types in the Statistics and Probability unit of JEE Main.
What gets asked. Bag-and-ball and factory-machine problems, questions about a person telling the truth, test-reliability problems, and finding which cause most likely produced an observed result. JEE Advanced often combines Bayes' theorem with conditional probability over several stages.
Question types. Multiple-choice and numerical-value questions, usually needing an exact fraction.
The trap that costs marks. Leaving a cause out of the denominator of Bayes' formula.
What gets asked. Bag-and-ball and factory-machine problems, questions about a person telling the truth, test-reliability problems, and finding which cause most likely produced an observed result. JEE Advanced often combines Bayes' theorem with conditional probability over several stages.
Question types. Multiple-choice and numerical-value questions, usually needing an exact fraction.
The trap that costs marks. Leaving a cause out of the denominator of Bayes' formula.
Key takeaways
What must you be able to do from this part?
- Partition: disjoint, exhaustive events with non-zero probabilities; and always form one
- Total probability: ; two bags give , three machines give
- Bayes' theorem: , from prior to posterior, such as
- Interpretation: rare causes stay unlikely even after strong evidence; the positive screening test gave only about
Rework the screening test for a person with symptoms whose prior probability of disease is per cent, and see how far the posterior rises.
- Total probability: ; two bags give , three machines give
- Bayes' theorem: , from prior to posterior, such as
- Interpretation: rare causes stay unlikely even after strong evidence; the positive screening test gave only about
Rework the screening test for a person with symptoms whose prior probability of disease is per cent, and see how far the posterior rises.