The denominator is the probability of getting a positive test result overall, whether or not the person has the disease. This is what evidence means in the formula.
Calculating the Probability of a Positive Test
The only value we don't yet know is P(Positive test).
A positive result can come from someone with the disease or someone without it. These cases are mutually exclusive and cover all positive results, so we can use the Addition Rule of Probability:
P(Positive test)=P(Positive test and Disease)+P(Positive test and No disease)
Then we apply the general multiplication rule to each term:
Under these assumptions, a positive result raises the probability of having the disease from 1% to about 5.7%.
The result is still relatively low because the disease is rare and false positives are common. In an imaginary population of 10,000 people with exactly these proportions, 90 people with the disease and 1,485 people without it would test positive. Only 90 of the 1,575 positive results would be from people with the disease.
General Form
For general events A and B, Bayes' theorem is:
P(A∣B)=P(B)P(B∣A)×P(A)
This requires P(B)>0. If P(B) is not already known, we can expand it using the law of total probability:
P(A∣B)=P(B∣A)×P(A)+P(B∣Ac)×P(Ac)P(B∣A)×P(A)
Here, Ac is the Complement Rule of A, meaning that A does not occur, and P(Ac)=1−P(A). The expanded form assumes both cases have nonzero probability so their conditional probabilities are defined.
Use the shorter formula when the denominator is already known. Otherwise, calculate it separately or use the expanded form. Both approaches give the same result.