Free Mathematics Class 12 ICSE notes · practise this chapter with an AI quiz

← All study notes

Why a Positive Medical Test Does Not Always Mean You Are Ill

Apply the theorem of total probability across a partition of the sample space, use Bayes' theorem to find reverse or posterior probabilities, and solve diagnostic-test and defective-item word problems step by step.

How can you work backwards from an effect to its likely cause?

A factory has three machines, and a defective bolt turns up in a quality check. Which machine most likely made it? Questions like this run in reverse — from an observed result back to its cause — and the theorem of total probability together with Bayes' theorem answers them precisely.

This lesson covers total probability over a partition, Bayes' theorem, and applied problems such as diagnostic tests and defective items.

How does the theorem of total probability find the chance of an event across several cases?

**If events form a partition of the sample space — they are mutually exclusive and together cover every outcome — then for any event A, .

Why it works.** A splits into the pieces , and so on, which do not overlap, and each piece has probability by the multiplication theorem.

Worked example. Machines , and make 50%, 30% and 20% of a factory's bolts, with defect rates of 2%, 3% and 4%. The probability that a randomly chosen bolt is defective is



Worked example 2. Bag I has 3 red and 2 black balls; bag II has 2 red and 6 black balls. A fair coin decides which bag is used. Then



An everyday example. The chance that a parcel arrives late, when it may travel with one of three courier companies that have different delay rates, is found by total probability.

The substance. The cases must form a genuine partition — if two cases overlap, the same outcomes are counted twice and the total can exceed 1.

What does Bayes' theorem say and how do you find a reverse probability?

**Bayes' theorem gives the probability of a cause once the result A is known: — the share of the total probability of A that comes through .

Terms.** is the prior probability, known before the result; is the posterior probability, updated after it.

Worked example. A bolt from the factory above is found to be defective. The chance that it came from each machine is

-
-
-

The three posteriors add up to 1, as they must.

Worked example 2. In the two-bag problem, a red ball is drawn. The probability that it came from bag I is .

An everyday example. A teacher who sees an unusually perfect homework sheet and weighs whether it was copied is reasoning backwards from evidence, just as Bayes' theorem does.

The substance. **Machine has the lowest defect rate yet is the likeliest source** — because it makes the most bolts, the prior matters as much as the defect rate.

How do you solve diagnostic-test and defective-item problems with Bayes' theorem?

Set up the partition, such as ill or healthy, list each prior and each conditional probability of the observed result, find the total probability of that result, and divide the branch you want by that total.

Worked example (diagnostic test). A disease affects 1% of a population. A test detects it in 95% of people who have it, but also gives a positive result for 5% of healthy people.

-
-

So only about 16 in every 100 people who test positive actually have the disease.

Worked example (defective items). A shop buys 60% of its bulbs from supplier A and 40% from supplier B, with defect rates of 3% and 5%. A bulb is found faulty.

-
- and

An everyday example. A health screening camp in a village uses exactly this reasoning to explain why a positive screening result is followed by a confirmatory test.

The substance. When a condition is rare, most positive results are false positives — the few healthy people who wrongly test positive outnumber the ill, because the healthy group is so much larger.
Exam tip

What earns full marks on Bayes' theorem questions?

Draw a tree diagram first, label each branch with its prior and its conditional probability, and show the total probability as a separate line.

- Partition: mutually exclusive cases covering every outcome
- Total probability:
- Bayes:
- Check: the posteriors add up to 1

The trap. Confusing with . Write in words which is the cause and which is the observed result before substituting.
Did you know

How do email spam filters use Bayes' theorem?

A spam filter keeps count of how often each word appears in spam and in genuine messages.

When a new email arrives, the filter starts with a prior chance that any message is spam and updates that chance word by word using Bayes' theorem. Words that turn up far more often in spam push the probability up; ordinary words barely move it.

As people mark messages as spam or not spam, the counts change and the filter keeps learning — the same prior-to-posterior update of this chapter, repeated for every word.
Exam relevance

How is Bayes' theorem tested in JEE Main and JEE Advanced?

Probability is a recurring JEE Main chapter, and Bayes' theorem questions appear in both JEE Main and JEE Advanced.

What gets asked. Bag-and-ball problems where a ball's colour hints at the bag, defective-item problems across machines or suppliers, and truth-telling problems where a report may be false.

Question types. Multiple-choice and numerical-value questions; JEE Advanced often joins Bayes' theorem to counting with combinations.

Why it matters later. Total probability is reused whenever a random experiment has stages, including in probability distributions.

The trap that costs marks. Leaving out one branch of the partition in the denominator, which makes every posterior too large.
Key takeaways

What must you be able to do from this lesson?

- Total probability: over a partition of the sample space
- Bayes' theorem: , turning a prior into a posterior
- Applications: diagnostic tests, where rare conditions produce many false positives, and defective items from several sources

A test detects a condition 90% of the time, gives a false positive 10% of the time, and the condition affects 2% of people. Can you find the chance that someone who tests positive has it?

Ready to put this into practice?

Create a personalized quiz on this exact topic — free to start.

Create your own quiz on Total Probability and Bayes' TheoremCreate a free account
← Back to all articles