Answer:
Explanation:
We have these following probabilities:
A 0.5% probability that a person has the disease.
A 99.5% probability that a person does not have the disease.
If a person has the disease, a 90% probability that the test indicates the disease.
If a person does not have the disease, a 2% probability that the test indicates the disease.
Calculate the conditional probability that a person selected at random has the disease if the test indicates the presence of the disease.
This can be formulated as the following problem:
What is the probability of B happening, knowing that A has happened.
It can be calculated by the following formula

Where P(B) is the probability of B happening, P(A/B) is the probability of A happening knowing that B happened and P(A) is the probability of A happening.
So:
What is the probability of the person having the disease, given that the test indicated the presence of the disease?
P(B) is the probability of the person having the disease. So
.
P(A/B) is the probability of the person being diagnosticated, given that she has the disease. So
.
P(A) is the probability of the person being diagnosticated. That is 90% of 0.5% and 2% of 99.5%. So

Finally


.
If the test indicates the presence of the disease, there is a 18.44% probability that the person has the disease.