Answer:
(a) P(D|TD) = 0.0162 and (b) P(ND|TD) = 0.9838
Step-by-step 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) [tex]P(D|TD) = \frac{P(TD|D)P(D)}{P(TD|D)P(D)+P(TD|ND)P(ND)} = \frac{(0.99)(0.0005)}{(0.99)(0.0005)+(0.03)(0.9995)}[/tex] =
0.0162
and
(b) [tex]P(ND|TD) = 1-P(D|TD)=1-0.0162[/tex] = 0.9838