(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
[[Category:ECE302Fall2008_ProfSanghavi]]
 +
[[Category:probabilities]]
 +
[[Category:ECE302]]
 +
[[Category:problem solving]]
 +
 
'''The Problem:'''
 
'''The Problem:'''
  
Line 8: Line 13:
  
  
We are also given that only <math>0.5%\!</math> of the population has the HIV virus. The rest do not.
+
We are also given that only <math>0.5%\!</math> of the population has the HIV virus. The rest do not. Are the results usually correct, and what can you tell from the results?
 
+
 
+
Are the results usually correct, and what can you tell from the results?
+
  
 
   
 
   
Line 25: Line 27:
  
  
<math>P (+ \cap HIV) = P (+ | HIV) P (HIV)\!</math> and P(+ \cap no HIV) = P (+ | no HIV) P (not HIV)\!</math>
+
<math>P (+ \cap HIV) = P (+ | HIV) P (HIV)\!</math> and <math>P(+ \cap no HIV) = P (+ | no HIV) P (not HIV)\!</math>
 +
 
 +
 
 +
Thus, we can conclude that:
 +
 
 +
 
 +
<math>P(+) = P (+ | HIV) P (HIV) + P (+ | no HIV) P (not HIV)\!</math>
 +
 
 +
 
 +
This can easily be solved with the given information.
 +
 
 +
 
 +
<math>P (+ | HIV) P (HIV) = 0.9 (0.005)\!</math> and <math>P (+ | no HIV) P (not HIV) = 0.1 (0.995)\!</math>
 +
 
 +
 
 +
We can add both of those products together to obtain the probability that our random person tests positive, which turns out to be a <math>0.104\!</math> probability. From this, we can already tell that our test is not that great because <math>0.5%\!</math> of the people have HIV, but a much larger number of people will test positive.
 +
 
 +
 
 +
But just because the test results are not always good, doesn't mean we can't tell anything from the results. Let us calculate the probability that, given a selected individual has the HIV virus, they will test positive. Similarly, we will find the probability that, given the person does not have the virus, that they will test negative.
 +
 
 +
 
 +
<math>P (HIV | +) = (P (HIV \cap +)) / (P (+)) = (P (+ | HIV) P (HIV)) / (P (+)) = (0.9 (0.005)) / 0.104 = 0.0005\!</math>
 +
 
 +
 
 +
<math>P (no HIV | -) = (P (no HIV \cap -)) / (P (-)) = (P (- | no HIV) P (no HIV)) / (P (-)) = (0.9 (0.995)) / 0.896 = 0.9994\!</math>
 +
 
 +
 
 +
From the math above, we can conclude that if a person tests positive, the chance of him actually having the virus is very small. On the other hand, if a person tests negative, we are almost certain that the person does not have the virus. Although the statistics of the test seem very good, the test is actually not that great because such a large fraction of the population does not have the virus.
 +
 
 +
 
 +
Here is something to consider: <math>0.1 (99.5%)\!</math> is greater than <math>0.9 (0.5%)\!</math>, thus throwing our positive test off. On the other hand, <math>0.1 (0.5%)\!</math> is much smaller than <math>0.9 (99.5%)\!</math>. Therefore, our negative test is usually correct.
 +
----
 +
[[Main_Page_ECE302Fall2008sanghavi|Back to ECE302 Fall 2008 Prof. Sanghavi]]

Latest revision as of 13:09, 22 November 2011


The Problem:

There is a new test that will test for the HIV virus, but we are not sure of whether this test's results are usually correct or not. We are given the following information:


$ P (+ | HIV) = 0.9, P (- | HIV) = 0.1\! $ $ P (+ | no HIV) = 0.1, P (- | no HIV) = 0.9\! $


We are also given that only $ 0.5%\! $ of the population has the HIV virus. The rest do not. Are the results usually correct, and what can you tell from the results?


The Solution:

First, we determine the probability that a random person within the population tests positive. Remember, this person will be selected at random, so we have no clue whether or not he/she actually has the virus or not.


$ P(+) = P (+ \cap HIV) + P(+ \cap no HIV)\! $


From previous notes in this class, we know that the following is true:


$ P (+ \cap HIV) = P (+ | HIV) P (HIV)\! $ and $ P(+ \cap no HIV) = P (+ | no HIV) P (not HIV)\! $


Thus, we can conclude that:


$ P(+) = P (+ | HIV) P (HIV) + P (+ | no HIV) P (not HIV)\! $


This can easily be solved with the given information.


$ P (+ | HIV) P (HIV) = 0.9 (0.005)\! $ and $ P (+ | no HIV) P (not HIV) = 0.1 (0.995)\! $


We can add both of those products together to obtain the probability that our random person tests positive, which turns out to be a $ 0.104\! $ probability. From this, we can already tell that our test is not that great because $ 0.5%\! $ of the people have HIV, but a much larger number of people will test positive.


But just because the test results are not always good, doesn't mean we can't tell anything from the results. Let us calculate the probability that, given a selected individual has the HIV virus, they will test positive. Similarly, we will find the probability that, given the person does not have the virus, that they will test negative.


$ P (HIV | +) = (P (HIV \cap +)) / (P (+)) = (P (+ | HIV) P (HIV)) / (P (+)) = (0.9 (0.005)) / 0.104 = 0.0005\! $


$ P (no HIV | -) = (P (no HIV \cap -)) / (P (-)) = (P (- | no HIV) P (no HIV)) / (P (-)) = (0.9 (0.995)) / 0.896 = 0.9994\! $


From the math above, we can conclude that if a person tests positive, the chance of him actually having the virus is very small. On the other hand, if a person tests negative, we are almost certain that the person does not have the virus. Although the statistics of the test seem very good, the test is actually not that great because such a large fraction of the population does not have the virus.


Here is something to consider: $ 0.1 (99.5%)\! $ is greater than $ 0.9 (0.5%)\! $, thus throwing our positive test off. On the other hand, $ 0.1 (0.5%)\! $ is much smaller than $ 0.9 (99.5%)\! $. Therefore, our negative test is usually correct.


Back to ECE302 Fall 2008 Prof. Sanghavi

Alumni Liaison

ECE462 Survivor

Seraj Dosenbach