Diagnostic Test Base Rate
A disease has prevalence in a population. A diagnostic test for the disease has a false negative rate of (it misses of true cases) and a false positive rate of (it wrongly flags of healthy people). Given that a randomly chosen person tests positive, find the probability that they actually have the disease.
Work it out, then compare with the answer.
SolutionShow the worked solution
Let be the event that the person has the disease and the event that the test is positive. We are given
By the law of total probability, the probability of a positive test is
Bayes’ rule then gives
In natural frequencies, take people. Of these, are ill and of them test positive. The other are healthy and of them test positive. So of the positives are genuine.
Key idea. The test is specific, but the healthy group is times larger than the ill group, so false positives make up more than a third of all positives.
Variations
The same idea with a twist. Each solution gives only the changed step.
Among a large pool of job candidates, never used a certain prep platform, used it lightly, and used it heavily. Light users are twice as likely to receive a job offer as non-users, and heavy users are twice as likely to receive an offer as light users. Given that a candidate received an offer, find the probability that they were a heavy user of the platform.
Work it out, then compare with the answer.
Solution
Let be the offer probability for a non-user. Then a light user gets an offer with probability and a heavy user with probability . By Bayes’ rule,
The unknown cancels, so only the ratios matter.
A letter is delivered to one of three mailboxes, numbered , , , each chosen with equal probability. If the letter lands in mailbox , it gets read with probability . You check mailbox and find no letter has been read there. Find the probability that the letter was in fact delivered to mailbox .
Work it out, then compare with the answer.
Solution
Let be the event that the letter was delivered to box , and the event that no letter is read in box .
If the letter is in box , it goes unread with probability . If it is in box or , nothing can be read in box , so is certain. Hence