The Bayes' Theorem is this:
P(A | B) = P(B | A)· P(A)
P(B)
Let's represent all the given with this:
P(TB) = 0.001
P( + | TB) = 0.999
P( - | nTB) = 0.998
What we are solving for are these:
(i) P ( + ) => Probability that the person is positive for TB.
(ii) P (TB | +) => Probability that he has TB given that he is tested positive.
(iii) P (nTB | - ) => Probability that he has no TB given that he is tested negative.
This is the diagram:
___0.999__ ( + )
|
___0.001____ TB___ |
| |
| |___0.001__ ( - )
|
| ___0.002__ ( + )
| |
|___0.999_____ nTB _|
|
|___0.998__ ( - )
Therefore:
(i) P ( + ) = P ( TB ⋂ +) + P (nTB ⋂ -)
= (0.001)(0.999) + (0.999)(0.002) = 0.002997
(ii) Now using the Bayes’ Theorem:
P (TB | +) = P (+ | TB)· P(TB)
P( + )
Substitute the values:
P (TB | +) = (0.999) (0.001) = 0.33... or 1/3
(0.002997)
(iii) Using again the Bayes’ Theorem:
P (nTB | -) = P (- | nTB)· P(nTB)
P( - )
If P(TB) = 0.001, then P(nTB) =1-0.001 = 0.999.
Furthermore, using the table:
P( - ) = (0.001)(0.001) + (0.999)(0.998) =0.997003
Substitution, we’ll have:
P (nTB | -) = (0.998) (0.999) = 0.999998996994
0.997003

Joel L.
07/11/20
Ysabelle C.
SIR JOEL, THANK YOU!07/11/20