Probability of testing positive

Suppose that the probability that a random person has a certain disease is 0.005. 0.005. A scientist develops a device which tests a person positive for the disease with 95 95 % chance when the person really has the disease. However, the same device tests a person positive for the disease with 1 1 % chance when the person in fact does not have the disease. What is the probability that a person really has the disease when tested positive by the device?

95 294 \frac{95}{294} 0.75 1 3 \frac{1}{3} 0.95

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Sahil Gohan
May 8, 2014

if we reframe the question

consider that in a population of 100000 only 500 people have the disease. Hence the probablity of a person having a disease is still 0.005

Therefore the people having the disease is 500 and people not having the disease is 99500

now since the test is, 95% of the time positive for people having the disease, it means out of 500 people 475 will be tested positive.

also since the test is positive 1% of the time for people not having the disease, it means 995 people out of 99500 people will be tested positive.

therefore total number of people tested positive 995+475 = 1470. But the number of people actually having the disease is just 475.

Therefore the probablity of having it if tested positive is 475/140 = 95/294

At last 475/1470 = 95/294 great explanation thank you.

SHIVAM GUPTA - 2 years, 6 months ago
Andres Quiroz
Jun 8, 2014

Let P(B) the probability that really has the disease. Then P(B) = 0.005.

Let P(B') the probability that really has not the disease. Then P(B') = 0.995.

Let P(A) the probability that when tested gives positive. Unknown.

Let P( A | B ) the probability that a person gives positive for the disease given that the person really has the disease. That is, P(A | B) = 0.95.

Let P( A | B' ) the probability that the person gives positive for the disease given that the person doesn't really has the disease.

Let P( B | A ) the probability that a person really has the disease given that when tested gives positive by the device. To find this probability is our goal.

Using the definition of conditional probability:

P ( B A ) = P ( B A ) P ( A ) P(B|A)=\frac{ P(B\cap A) }{ P(A) }

Let's find P(A) using

P ( A ) = P ( ( A B ) ( A B ) ) = P ( A B ) + P ( A B ) P ( ( A B ) ( A B ) ) P(A) = P((A\cap B) \cup (A \cap B')) = P(A\cap B) + P (A \cap B') - P((A\cap B) \cup (A \cap B'))

where the last term is equal to zero by using Venn diagrams.

Substituting with all the extra information we have already, we get:

P ( B A ) = P ( A B ) P ( B ) P ( B ) P ( A B ) + P ( B ) P ( A B ) P(B|A) = \frac{P(A | B) P(B)}{P(B) P(A|B) + P(B')P(A|B')}

which gives 95/294.

can u explain how the last term of P(A) equal to zero? i tried using Venn diagram but still cannot get the answer

chen adam - 3 years ago
Mayank Holmes
May 3, 2014

using probability distribution..................... p(E) = ( 0.005 * (95/100) ) / ( 0.005 * (95/100) + 0.995 * (1/100) ) = (95/294)

by using bayes theorem it can be done.....

Saurav Sharma - 7 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...