Sensitivity and specificity of a repeated test

Consider the following situation.

There is an epidemic and a person has probability $0.01$ of having the disease. The authorities decide to test the population, but the test is not completely reliable. The sensitivity of the test is $0.98$ and its specificity is $0.95$. Given that Patrick was tested positive for the disease, what is the probability that Patrick has the disease?

In drawing up a simple probability tree, one can arrive at the answer of $0.165$.

However, it is the next part that stumps me.

Patrick wants a second opinion, so he does an independent repetition of the test (regardless of Patrick's disease status, outcomes of the tests are independent). In the second test, he was tested positive again. What is the probability that Patrick has the disease?

I thought that since the tests are independent, it is like he never went for the first test, so the answer should still be $0.165$.

However, the correct answer is $0.795$.

I am not sure how to approach the second part of the question. If, say, I wish to use a probability tree again, how would I do it this time?


Solution 1:

It is precisely because they are independent that the probabilities can change.

Consider the most extremely dependent case for contrast: the second opinion is not really a second opinion, but just a new person telling Patrick the same results. Then Patrick doesn't really have any new information, which means the probabilities are unchanged.

Look at the following composite test: Take the original test and a second, identical but independent, test and consider the composite test as positive iff both tests come back positive. What is the specificity of this new test? It's $1-(1-0.95)(1-0.95)=0.9975$. And what's the sensitivity? It's $0.98\cdot0.98=0.9604$. This is, in effect, the test that Patrick has done, and it has come back positive. That new, higher specificity greatly increases his chances of being sick compared to what a positive result in the original test did.