Diagnosed with a rare disease, you know that there is only a 1% chance of getting it.
Abbreviate D as the event "you have the disease" and T as "you test positive for the disease."
The test is imperfect: $\Pr(T | D) = 0.98$ and $\Pr(T^C | D^C) = 0.95.$
$\large{A.}$ Given that you test positive, what is the probability that you really have the disease?
$\large{B.}$ You obtain a second opinion: an independent repetition of the test. You test positive again. given two positive tests, what is the probability that you really have the disease?
- So, first question I have is this: Does $\Pr(T | D^C) = 1 - 0.95 = 0.05$?
This would mean that $P(T) = P(T | D) + P (T | D^C) = 0.98 + 0.05 = 1.03$ ...? This can't be right...P(T) can't be 1.03! Is there an error in this question?
- Then, here's my strategy for solving part A: Calculate $\Pr(D | T) = \dfrac{P(T \cap D) }{ P(T) } = \dfrac{ P(T | D) \times P(D) }{ P(T) } $
UPDATE: Here is a hint from the professor:
During office hours today, the following hint came up that I thought would be good to share with the entire class for part B above.
Let's define two events T (first test positive) and S (second test positive). When you use Bayes' rule, you are going to need to figure out how to compute the total probability $\Pr(T \cap S)$. To do this, you should assume that these two tests are independent, and therefore you will get:
$\Pr(T \cap S | D) = P(T | D) * P(S | D) \quad$ and $\quad \Pr(T \cap S | D^c) = P(T | D^c) * P(S | D^c)$.
A point to remember here is that the rules of probability stay the same for conditional probability if the event on the right of the "|" stays constant. For instance, the complement rule looks like this: $P(A^c | B) = 1 - P(A | B)$. The other rules we have learned work out similarly.
We want $\Pr(D|T)$. By the universal formula to solve such problems, we have $$\Pr(D|T)\Pr(T)=\Pr(D\cap T).$$
It remains to calculate $\Pr(T)$ and $\Pr(D\cap T)$.
Let's go first for the harder one, $\Pr(T)$. The event $T$ can happen in two disjoint ways: (i) You have the disease and the test says so or (ii) You don't have the disease, but the test says you do.
For (i), the probability you have the disease is $0.01$. Given that you have the disease, the probability the test says so is $0.98$. So the probability of (i) is $(0.01)(0.98)$.
We can calculate the probability of (i) in a more fancy way. We want $\Pr(D\cap T)$. This is $\Pr(T|D)\Pr(D)$, which is $(0.98)(0.01)$.
For (ii), the probability you don't have the disease is $0.99$. Given you don't have the disease, the probability the test wrongly says you do is $0.05$. So the probability of (ii) is $(0.99)(0.05)$.
Add the probabilities of (i) and (ii) to get $\Pr(T)$.
For $\Pr(D\cap T)$, note it is just the already computed probability of (i).
Remark: At one time, tuberculosis was not uncommon. A simple antibody test, the tuberculin test, was routinely given to people. The tuberculin test gave a significant proportion of false positives, and a smaller proportion of false negatives, these mostly due to handling mixups. People who tested positive had X-ray chest examinations for confirmation. After a while, tuberculosis became quite rare, at least in relatively prosperous communities. Just as in the above problem, it turned out that a large proportion of the people who tested positive and got X-rayed were healthy. The X-rays became more of a public health hazard than the disease, and the routine tuberculin test disappeared.