Let
The probability of person has disease is
The probability of person does not have the disease is
The probability of test result is positive is
The probability that a person has the disease give that his test result is positive
The probability of a person that the person has disease is,
The probability that the test is positive, given that the person has the disease,
The probability of a person that the person does not has disease is,
The probability that the test result is positive, given that the person does not have the disease,
Put these values in equation (1),
Thus, the required probability is