document.write( "Question 1150194: A certain virus infects one in every 500 people. A test used to detect the virus in a person is positive 90% of the time if the person has the virus and 10% of the time if the person does not have the virus. Let A be the event \"the person is infected\" and B be the event \"the person tests positive.\"\r
\n" ); document.write( "\n" ); document.write( "(a) Find the probability that a person has the virus given that they have tested positive.
\n" ); document.write( " \r
\n" ); document.write( "\n" ); document.write( "(b) Find the probability that a person does not have the virus given that they have tested negative.
\n" ); document.write( "

Algebra.Com's Answer #771569 by ikleyn(52777)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "A certain virus infects one in every 500 people.
\n" ); document.write( "A test used to detect the virus in a person is positive 90% of the time if the person has the virus
\n" ); document.write( "and 10% of the time if the person does not have the virus.
\n" ); document.write( "Let A be the event \"the person is infected\" and B be the event \"the person tests positive.\"\r
\n" ); document.write( "\n" ); document.write( "    (a)   Find the probability that a person has the virus given that he or she is tested positive.\r
\n" ); document.write( "\n" ); document.write( "    (b)   Find the probability that a person does not have the virus given that he or she is tested negative.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Solution\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "(a)  To make the solution easier, let assume that we have a population of 100,000 persons in the city.\r\n" );
document.write( "\r\n" );
document.write( "      According to the input data,  \"1%2F500\" of them, i.e.   \"100000%2F500\" = 200 are infected.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "      Of this 200 people, 90%, i.e.  0.9*200 = 180  are test positive.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "      The problem asks in (a), what is the ratio of the number of those who are test positives AND have the virus \r\n" );
document.write( "      to the number of infected.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "      It is obvious that this ratio is  P = \"18%2F20\" = 0.9 = 90%.    ANSWER\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "      In the compact form, a formula for the probability (a) is  P = \"%280.002%2A0.9%29%2F0.002\" = 0.9.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "(b)  The probability under question (b) is the ratio of the number of those who do not have a virus AND are tested negative\r\n" );
document.write( "     to the number of those who do not have the virus.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "     The number of those who do not have the virus is  100000 - 0.002*100000 = 100000 - 200 = 99800.\r\n" );
document.write( "     \r\n" );
document.write( "     Of them, the number of those who are tested negative is  (1-0.1)*99800 = 0.9*99800 = 89820.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "     With these numbers, the probability (b) is\r\n" );
document.write( "\r\n" );
document.write( "              P = \"89820%2F99800\" = 0.9.     ANSWER\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "     In the compact form, a formula for probability (b) is  P = \"%28%281-0.002%29%2A%281-0.1%29%29%2F%281-0.002%29\" = 0.9.\r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "Solved.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );