Say we have TWO tests for cancer. Each test has the same probabilities of being right/wrong for cancer/no cancer. What is the probability of getting two positive test results?
In what follows, I'll use C for "has cancer", "+" for a positive test result, "++" for two positives (I don't distinguish between the tests because they have the same probabilities).
A. Use the formula for total probability:
P(++) = P(++|C) $\times$ P(C) $+$ P(++|$\neg$C) $\times$ P($\neg$C)
Since each test is independent of the other, apply the formula for joint probability:
= P(+|C)$^2$ $\times$ P(C) $+$ P(+|$\neg$C)$^2$ $\times$ P($\neg$C)
B. Since each test is independent of the other one, the joint probability is the product of the probability of each (which is the same):
P(++) = P(+)$^2$
Then, apply the formula for total probability to each:
= [P(+|C) $\times$ P(C) $+$ P(+|$\neg$C) $\times$ P($\neg$C)]$^2$
Obviously, the two are not equal. Why not? And which one is correct?