I'm trying to "teach myself" stats from a book (Dekking et al.A modern introduction to probability and Statistics)...and I'm trying to do the

exercises that have answers provided @ the end of the book. Although the answer is provided to the following question, I can't get there on my own.

Here it is:

You are diagnosed with an uncommon disease. You know that there only is a 1% chance of getting it. Use the letter D for the event "you have the disease" and T for "the test says so." It is known that the test is imperfect: P(T|D) = 0.98 and P(Tc|Dc) = 0.95.

a. Given that you test positive, what is the probability that you reallyhavethe disease.

b. you obtain a 2nd opinion. an independent repetition of the test. You test positive again. Given this, what is the probability that you

really have the disease? The "unconscious" way to do this is to replace P(D) by the answer you found in part a and then perform the

calculation from a again. If you do it the conscientious way, you try to compute P(D|S T), where S is the event

"the second test says you have the disease". You will find that you need the independence assumption P(S T|D) = P(S|D)P(T|D) and a similar one for Dc.

Note that I can't figure out how to type the superscript "C" for complement...so I'm using c.

I was able to determine part a correctly.

my difficulty is with part b.

Specifically, I know that I'm not setting the problem up correctly, but I'm not sure where I'm going wrong.

e.g.

I want to find P(D|S T), right?

(equation 1): P(D|S T) = P(D (S T)) / (P(S T)) <== I'm pretty sure this is right

We know the following (some of this was determined in part a).

P(D) = 0.01

P(T) ~ 0.0593 <== determined in part a

P(T|D) = 0.98

P(Tc|Dc) = 0.95

P(D|T) ~ 0.165 <== determined in part a

I *think* the denominator in equation 1 (P(S T)) should be 0.0593*0.0593 because the events are independent and equal, but I'm not sure about this.

Is this a correct assumption?

P(S T|D) = P(S|D)P(T|D) = P(D (S T)) / P(D) <== this is given as a hint in the question.

we know (I think) that P(S|D) = P(T|D) = 0.98 (see above).

we also know that P(D) = 0.01 (above).

therefore P(D (S T)) = 0.98 * 0.98 * 0.01 <= this is presumably the numerator of equation 1

Therefore P(D|S T) = (0.98 * 0.98 * 0.01) / (0.0593 * 0.0593)

unfortunately, this turns out to be a # that is > 1, which raises a big red flag in my book.

The book says the answer is 0.795

Where am I going wrong (and thank you for any insight)?