A new test has been developed to detect a particular type of cancer. The test must be evaluated before it is put into use. A medical researcher selects a random sample of 2,000 adults and finds (by other means) that 1% have this type of cancer. Each of the 2,000 adults is given the test, and it is found that the test indicates cancer in 99% of those who have it and in 2% of those who do not. a) What is the probability of a randomly chosen person having cancer given that the test indicates cancer? b)What is the probability of a person having cancer given that the test does not indicate cancer
|dw:1407818368798:dw| Does the probability tree make sense to you?
yeah that makes sense!
oh wait so is a) just 99%?
or 0.99
The probability that a randomly chosen person has cancer and tests positive is:\[\large P(cancer+test\ positive)=0.01\times0.99=0.0099\] The probability that a randomly chosen person does not have cancer and tests positive is: \[\large P(no\ cancer+test\ positive)=0.99\times0.02=0.0198\] Given that a randomly chosen person tests positive, the probability that they have cancer is: \[\large \frac{P(cancer+test\ positive)}{P(cancer+test\ positive)+P(no\ cancer+test\ positive)}\]
i got 1/3 for that
you can also use conditional probability here: \[P(A|B) = \frac{P(A and B)}{P(B)}\] P(A|B) means prob of A given B
Correct! b) The probability that a person has cancer, although the test is negative is: \[\large \frac{0.01\times0.01}{(0.01\times0.01)+(0.99\times0.98)}\]
hmm is that one supposed to be 1.030609?
How did you get that value, bearing in mind that the numerator comes to 0.0001 and the denominator is close to 1?
i just plugged it into my calculator and thats what came up!
I'm getting 1E-4 for (0.01*0.01)
Correct! Now divide by 0.9703.
same answer!
is it supposed to be 0.99*0.02?
Correct again. The more exact answer is 0.000103061. "is it supposed to be 0.99*0.02" No it is 0.99 * 0.98, which is the probability of no cancer and testing negative.
how did you come up with 0.000103061? everytime i try it i get 1.030609
ohhh wait because its -4 do the zeros go infront?
The 3 zeros surely go after the decimal point.
okay thats where i was confused! thank you :) @kropot72
You're welcome :)
Join our real-time social learning platform and learn together with your friends!