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?