Answer:
Probability that person does not have disease when test is positive=0.9527
Explanation:
Given,
Probability of a person having disease,
![P(A)\ =\ (1)/(1000)](https://img.qammunity.org/2020/formulas/mathematics/college/bolhula110cezfyrfb75hsbribq921ekdh.png)
= 0.001
Then,probability of a person not having disease,
![P'(A)\ =\ 1\ -\ (1)/(1000)](https://img.qammunity.org/2020/formulas/mathematics/college/kzntycy1xaa4e0d127zj9ydwex9dq62hxf.png)
= 1 - 0.001
= 0.999
Probability that the test shows positive when disease is present,
![P(B/A)\ =\ (99)/(100)](https://img.qammunity.org/2020/formulas/mathematics/college/p6qc2hqkbm0azrxsglpx7uzjq376me7uu1.png)
Then, probability that the test shows negative when disease is present,
![P(B'/A)\ =\ 1\ -\ (99)/(100)](https://img.qammunity.org/2020/formulas/mathematics/college/bmhwo2ys7rp4if93trzx84n0ok74kpdls5.png)
= 1 - 0.99
= 0.01
Probability that test will positive when disease will not present,
![P(B/A')\ =\ (2)/(100)](https://img.qammunity.org/2020/formulas/mathematics/college/p2uh6qvdrp437v8q0k2oal50nl13a4p1lg.png)
= 0.02
Then, probability that the test will be negative when disease will not present,
![P(B'/A')\ =\ 1\ -\ (2)/(100)](https://img.qammunity.org/2020/formulas/mathematics/college/iryzyk0fpauuugptkdx3cst35e5h5r097p.png)
= 0.98
Then, the probability that the test will be positive either the disease will present or not,
P(B) = P(B/A).P(A) + P(B/A').P(A')
= 0.99 x 0.001 + 0.02 x 0.999
= 0.02097
Then, the probability that person does not have disease when test is positive,
![P(A'/B)\ =\ (P(B/A')* P(A'))/(P(B))](https://img.qammunity.org/2020/formulas/mathematics/college/fiyj59330o0qdd7bz16h8r0tyqg587j7um.png)
![=\ (0.02* 0.999)/(0.02097)](https://img.qammunity.org/2020/formulas/mathematics/college/e049n142eoojflx0aga6huiln28ni4e3th.png)
= 0.9527
Hence,the probability that person does not have disease when test is positive = 0.9527