In this case it helps to go back to the basics of probability. Let X be the medical disease variable of interest and A, B the outcome of the two medical tests.
P(X|A,B) = P(A,B|X)P(X) = P(B|A,X) P(A|X)P(X)
Where = means proportional to (ignoring the normalization constant P(A,B))
This tells you you need 3 pieces for your analysis:
- Prior probability of medical disease
X,P(X) - Conditional probability of
Atest results given all possibleX,P(A|X) - Conditional probability of
Btest results given all possible combinations ofAandX,P(B|A,X)
Only then can you compute an answer for a given set of observations.
The analysis would be simpler if you could assume that P(B|A,X) = P(B|X) but that’s not generally the case in medical testing.
If you only have A, you compute P(X|A) = P(A|X)P(X), again ignoring the normalization constant P(A)