Answer:
(a) P(D|TD) = 0.0162 and (b) P(ND|TD) = 0.9838
Explanation:
Let's define the following events:
D: the person has the disease
ND: the person does not have the disease
TD: the test indicates the person has the disease. Then
P(D) = 0.0005 because the disease occurs in about 0.05% of the population.
P(ND) = 0.9995
P(TD|D) = 0.99 because the test detect a person with the disease 99% of the time.
P(TD|ND) = 0.03 because the test say that a person without the disease has the disease about 3% of the time.
We are looking for (a) P(D|TD) and (b) P(ND|TD)
By Bayes' formula
(a)
=
0.0162
and
(b)
= 0.9838