document.write( "Question 1192026: 9% of the country's population has symptoms of the disease. After a test in a symptomatic person, it is determined with a probability of 0.78% and for an asymptomatic person, the test gives a positive response with a probability of 0.06%.
\n" ); document.write( "a) what is the probability that the test will be positive for a random person?
\n" ); document.write( "b) what is the probability that a person who tested positive actually has a symptoms of the disease?
\n" ); document.write( "

Algebra.Com's Answer #823920 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "It seems like there are typos when you wrote the 0.78% and 0.06%, as those values seem really really low.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "I'm going to assume you meant to say 0.78 and 0.06 instead, without the percent signs.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "---------------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Consider a country with 1,000,000 people.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "9% of them show symptoms, so 0.09*(1,000,000) = 90,000 people show symptoms.
\n" ); document.write( "Of the people who show symptoms, the probability of getting a positive test is 0.78
\n" ); document.write( "This means 0.78*(90,000) = 70,200 symptomatic people get a positive test. This is considered a true positive.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The remaining 90,000 - 70,200 = 19,800 people get negative tests when it should have been positive.
\n" ); document.write( "This is the false negative scenario.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Since 90,000 showed symptoms, this means 1,000,000 - 90,000 = 910,000 people are asymptomatic (i.e. they don't show symptoms).
\n" ); document.write( "Whether or not they *actually* have the disease isn't clear because the disease may be present in asymptomatic people.
\n" ); document.write( "Though for the sake of simplicity, I'll assume asymptomatic people are in the clear and don't have the disease.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Anyway, we have 910,000 asymptomatic people. Of these, the probability of getting a positive test is 0.06
\n" ); document.write( "We expect about 0.06*(910,000) = 54,600 asymptomatic people to get a positive test. This is the false positive scenario, which is basically a false alarm.
\n" ); document.write( "The other 910,000 - 54,600 = 855,400 asymptomatic people get a negative test. This is the true negative scenario.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Let's summarize:
  • Total population = 1,000,000 people
  • 90,000 show symptoms and 910,000 do not
  • 70,200 symptomatic people get positive tests (true positives) while 19,800 symptomatic people get negative tests (false negatives)
  • 54,600 asymptomatic people get positive tests (false positives) and 855,400 asymptomatic people get negative test results (true negatives)
Admittedly, there are a lot of numbers to keep track of even in a summarized list form like that.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "So perhaps a better way is to list it in a two-way table
\n" ); document.write( "\n" ); document.write( "\n" ); document.write( "
SymptomsNo symptoms
Test positiveTrue positiveFalse positive
Test negativeFalse negativeTrue negative

\n" ); document.write( "which updates to
\n" ); document.write( "\n" ); document.write( "\n" ); document.write( "
SymptomsNo symptomsTotal
Test positive70,20054,600124,800
Test negative19,800855,400875,200
Total90,000910,0001,000,000
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "After the table is set up, we can then address the questions.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "---------------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Part (a)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We have 124,800 people who test positive out of 1,000,000 total.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Therefore,
\n" ); document.write( "(124,800)/(1,000,000) = 0.1248
\n" ); document.write( "is the probability of testing positive.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Answer: 0.1248\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "---------------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Part (b)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Focus on the \"test positive\" row. This is because the prior condition is that we know the person tested positive.
\n" ); document.write( "We're seeking to determine the probability of getting symptoms based on this prior knowledge.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We have 124,800 people who tested positive.
\n" ); document.write( "Of these people, we have 70,200 present symptoms\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "(70,200)/(124,800) = 0.5625
\n" ); document.write( "There's a 56.25% chance of someone presenting symptoms if the test returns positive.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Answer: 0.5625
\n" ); document.write( "
\n" ); document.write( "
\n" );