I am struggling with an interview quiz question which starts with a standard conditional probability part:
To detect genetic defects, you are in charge of performing a test. You know that:
1% of people have a genetic defect
99.9% of tests for the gene detect the defect (true positives)
5% of the tests give a positive result even though there is no defect (false positives)
Given that the condition of a patient is known, the results of multiple tests are independent
a) If a person gets a positive test result, what is the probability that he/she actually has the genetic defect?
For a), I would argue that this is standard conditional probability and can be solved with Bayes Rule. Let's call the event "$+$" when a person tests positive, "$d$" when a person has the disease and "$\bar{d}$" when a person does not have the disease.
Now we are looking for $P(d\mid+)$, so the conditional probability that someone actually has the disease when he tests positive. Given Bayes, that is
\begin{align} P(d\mid+) & = \frac{P(+\mid d)}{P(+)}\cdot P(d) = \frac{0.999}{P(+\mid d)\cdot P(d) + P(+\mid\bar{d})\cdot P(\bar{d})}\cdot 0.01 \\[10pt] & = \frac{0.999}{0.999\cdot 0.01 + 0.05\cdot 0.99}\cdot 0.01 \approx 0.168. \end{align}
So the probability is roughly 17%.
What is more complicated for me is b):
b) If a person gets a positive result in his/her first test, what is the probability of having a positive result in his/her second test?
I would argue that we are looking for $P(++|+)$, i.e. the probability that someone tests positive the second time under the condition that he tested positive the first time.
So we can apply Bayes again and get $\frac{P(+|++)}{P(+)}\cdot P(++)$. I'd argue that $P(+|++)$ is always 1 and that $P(++) = P(+)\cdot P(+)$. We can cancel out one $P(+)$ and this leaves us with $P(++|+) = P(+)$.
On the one hand this looks reasonable given the independence proclaimed, on the other hand it feels counter-intuitive that the probability would only be 6% (on the third hand, we are talking about statistics here and that never went well together with common sense for me :-)).
Thoughts?