This question is from the textbook "Introduction to Probability - Blitzstein & Hwang."
I was studying for a class when I came across an example problem that I solved, but got a slightly different result than the textbook. Here's the problem in question, paraphrased:
"Fred tests for a disease which afflicts 1% of the population. The test's accuracy is deemed 95%. He tests positive for the first test, but decides to get tested for a second time. Unfortunately, Fred also tests positive for the second test as well. Find the probability that Fred has the disease, given the evidence."
$\ $
My approach is as follows:
Let $D$ be the event that Fred has the disease, $T_1$ be the event that the first test result is positive, and $T_2$ be the event that the second test is also positive. We want to find $P(D\ |\ T_1,\ T_2)$.
We are also able to condition on $T_1$ (i.e. the event that the first test result is positive). This would give us:
$$P(D\ |\ T_1,\ T_2) = \frac{P(T_2\ |\ D,\ T_1)P(D\ |\ T_1)}{P(T_2\ |\ T_1)}$$
From my calculations:
$$P(T_2\ |\ D,\ T_1)\ =\ P(T_2\ |\ D)\ =\ 0.95$$ $$P(D\ |\ T_1)\ \approx\ 0.16$$ $$P(T_2\ |\ T_1)\ =\ \frac{P(T_1 ,\ T_2)}{P(T_1)}\ =\ \frac{P(T_1,\ T_2,\ D)\ +\ P(T_1,\ T_2,\ D^c)}{P(T_1,\ D)\ +\ P(T_1,\ D^c)}\ =\ \frac{0.0115}{0.059}\ \approx\ 0.19$$ $\ $ $$P(D\ |\ T_1,\ T_2)\ =\ \frac{0.95\ \times\ 0.16}{0.19}\ =\ 0.8$$
Therefore, I concluded that there is an 80% chance that Fred has the disease, given that both the first and second test results are positive.
$\ $
The problem is that the textbook has taken a different approach of using the odds form of Bayes' rule, which resulted in a conclusion slightly different from mine (0.78), and I'm having trouble understanding how that conclusion came to be.
$\ $
Textbook approach is as follows:
$$\frac{P(D\ |\ T_1,\ T_2)}{P(D^c\ |\ T_1,\ T_2)}\ =\ \frac{P(D)}{P(D^c)}\ \times\ \frac{P(T_1,\ T_2\ |\ D)}{P(T_1,\ T_2\ |\ D^c)}$$
$$=\ \frac{1}{99}\ \times\ \frac{0.95^2}{0.05^2}\ =\ \frac{361}{99}\ \approx\ 3.646$$
which "corresponds to a probability of 0.78."
$\ $
Here are the specific questions I have:
Is my approach wrong? A 0.02 difference is a pretty big difference.
How did the author derive the equation:
$$P(D\ |\ T_1,\ T_2)\ =\ P(D)P(T_1,\ T_2\ |\ D)$$
- What does the author mean when he/she says "3.646 corresponds to a probability of 0.78?"
$\ $
Any feedback is appreciated. Thank you!