Suppose the probability of being infected with a certain virus is 0.001. A test used to detect the virus is positive 99% of the
time if the person test has the virus, and positive 5% of the time if the person does not have the virus. Use Bayes Theorem to find the probability that a person is infected with the virus, given that they test positive. Clearly show your work and how you are using the theorem.
We know that P(A) = 0.001, and then = 0.999. A test used to detect the virus is positive 99% of the time if the person test has the virus is equivalent to P(B|A) = 0.99. And positive 5% of the time if the person does not have the virus means =0.05. We want to find the probability that a person is infected with the virus, given that they test positive, i.e., P(A|B). Bayes Theorem tell us that =0.0194