document.write( "Question 1195936: Suppose that 4% of all the patients are infected with the virus (event V),
\n" ); document.write( "P(V) = 0.04.There exists a test for this viral infection. It is 95% reliable for infected patients and
\n" ); document.write( "99% reliable for healthy ones. That is, if a patient has the virus, the test shows that (event S) with
\n" ); document.write( "probability P(S | V) = 0.95, and if the patient does not have the virus, the test shows that with
\n" ); document.write( "probability P(S^c|V^c) = 0.99. If a person is tested positive, what is the probability that he/she is infected?
\n" ); document.write( "

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

\n" ); document.write( "It might be easy to get lost with terms like \"false positive\" or \"true negative\".\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Here's a chart to keep them organized.
\n" ); document.write( "\n" ); document.write( "\n" ); document.write( "
Positive TestNegative Test
VirusTrue PositiveFalse Negative
No VirusFalse PositiveTrue Negative
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "In medical testing, \"positive\" is when the test answers \"yes\" to the question \"does the person have the infection/virus/disease/etc?\".
\n" ); document.write( "Unfortunately it might be confusing since many people would consider positive to be a good thing in any other context.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "--------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Consider a city with 100,000 people.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "4% of this population has the virus.
\n" ); document.write( "4% of 100,000 = 0.04*100,000 = 4000 people have the virus.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The true positive rate is 95%
\n" ); document.write( "This means that if a person has the virus, then the test will result \"positive\" 95% of the time.
\n" ); document.write( "This is what the P(S | V) = 0.95 refers to.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "95% of 4000 = 0.95*4000 = 3800 people with the virus will get a true positive test result.
\n" ); document.write( "The remaining 4000-3800 = 200 people get false negatives.
\n" ); document.write( "Put another way, 5% of 4000 = 0.05*4000 = 200 people get false negatives.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The 100,000 - 4,000 = 96,000 people who don't have the virus will have 0.99*96,000 = 95,040 people get true negatives.
\n" ); document.write( "The other 96,000 - 95,040 = 960 people will get false positives (i.e. 1% of 96000 = 960)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Side note:
\n" ); document.write( "The term \"test sensitivity\" refers to the true positive rate.
\n" ); document.write( "The term \"test specificity \" refers to the true negative rate.
\n" ); document.write( "https://en.wikipedia.org/wiki/Sensitivity_and_specificity\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "This current test has a sensitivity of 95% and specificity of 99%
\n" ); document.write( "We can rephrase the test specificity of 99% to be a false positive rate of 1%\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "--------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Since we made a chart earlier, let's fill in that table with the numbers previously calculated
\n" ); document.write( "\n" ); document.write( "\n" ); document.write( "
Positive TestNegative TestTotal
Virus38002004000
No Virus96095,04096,000
Total476095,240100,000

\n" ); document.write( "Take note how the row and column totals are calculated (simply by adding).\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Now we're told that a person tested positive. This is the \"given\".
\n" ); document.write( "We'll focus entirely on the \"positive\" column. Ignore everything else.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We have 3800 people who test positive and have the virus.
\n" ); document.write( "This is out of 4760 people who test positive overall.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Therefore, the final answer is approximately
\n" ); document.write( "3800/4760 = 0.798319
\n" ); document.write( "Or you could stick to the fraction form. Be sure to reduce it as much as possible if your teacher requires that.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "As an alternative approach, you can use Bayes Theorem to solve this question.
\n" ); document.write( "P(A | B) = P(B|A)*P(A)/P(B)
\n" ); document.write( "where,
\n" ); document.write( "A = person has the virus
\n" ); document.write( "B = person tests positive
\n" ); document.write( "The vertical line represents the key word \"given\".
\n" ); document.write( "You'll need the law of total probability to compute P(B)
\n" ); document.write( "Let me know if you have any questions about this pathway.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Similar questions:
\n" ); document.write( "https://www.algebra.com/algebra/homework/Probability-and-statistics/Probability-and-statistics.faq.question.1193250.html
\n" ); document.write( "https://www.algebra.com/algebra/homework/Probability-and-statistics/Probability-and-statistics.faq.question.1192026.html
\n" ); document.write( "
\n" ); document.write( "
\n" );