Let
A: Person has the disease
B: Person does not have the disease
C: Test result is positive
P(A|C)=P(A).P(C|A)P(B).P(C|B)+P(A).P(C|A)
P(A)= Probability that person has disease =0.1%=0.1100=0.001
P(C|A)= Probability that test result is positive, if the person has the disease =99%=99100=0.99
P(B)= Probability that person does not have the disease =99.9%=99.9100=0.999
P(C|B)= Probability that test result is positive, if the person does not have the disease =0.005
P(A|C)=0.001×0.990.999×0.005+0.001×0.99
=99×10−510−5(499.5+99)
=99598.5
=9905985
=22133
Therefore, required probability is 22133.