document.write( "Question 1088334: If a test is carried out and it identifies a disease in 95% of people who have it. It correctly identifies no disease in 94% of people who do not have it. In the population, 3% of the people have the disease. What is the probability that you have the disease if you tested positive? \n" ); document.write( "
Algebra.Com's Answer #702613 by jim_thompson5910(35256)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "D = person has disease
\n" ); document.write( "D' = person does not have disease
\n" ); document.write( "T = person tests positive
\n" ); document.write( "T' = person does not test positive (person tests negative)
\n" ); document.write( "----------------------------------------------------------
\n" ); document.write( "Let's read through the given text to see what we can pull out
\n" ); document.write( "Given: \"If a test is carried out and it identifies a disease in 95% of people who have it\"
\n" ); document.write( "Translation: P(T|D) = 0.95 .... call this Equation (1)
\n" ); document.write( "----------------
\n" ); document.write( "Given: \"It correctly identifies no disease in 94% of people who do not have it\"
\n" ); document.write( "Translation: P(T'|D') = 0.94 .... call this Equation (2)
\n" ); document.write( "----------------
\n" ); document.write( "Given: \"In the population, 3% of the people have the disease\"
\n" ); document.write( "Translation: P(D) = 0.03 .... call this Equation (3)
\n" ); document.write( "----------------
\n" ); document.write( "P(D)+P(D') = 1
\n" ); document.write( "P(D') = 1-P(D)
\n" ); document.write( "P(D') = 1-0.03 ... plug in Equation (3)
\n" ); document.write( "P(D') = 0.97 .... call this Equation (4)
\n" ); document.write( "----------------------------------------------------------
\n" ); document.write( "Question: \"What is the probability that you have the disease if you tested positive?\"
\n" ); document.write( "What we want to find: P(D|T)
\n" ); document.write( "----------------------------------------------------------
\n" ); document.write( "Use the conditional definition to say
\n" ); document.write( "P(T|D) = P(T and D)/P(D)
\n" ); document.write( "P(D)*P(T|D) = P(T and D)
\n" ); document.write( "P(T and D) = P(D)*P(T|D)
\n" ); document.write( "P(T and D) = 0.03*0.95 ... plug in Equation (3) and Equation (1)
\n" ); document.write( "P(T and D) = 0.0285 .... call this Equation (5)\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Now use the fact that P(T|D') and P(T'|D') are complementary to say
\n" ); document.write( "P(T|D') + P(T'|D') = 1
\n" ); document.write( "P(T|D') = 1 - P(T'|D')
\n" ); document.write( "P(T|D') = 1 - 0.94 ... plug in Equation (2)
\n" ); document.write( "P(T|D') = 0.06 .... call this Equation (6)\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We can also break down P(T|D') using the conditional definition
\n" ); document.write( "P(T|D') = P(T and D')/P(D')
\n" ); document.write( "P(D')*P(T|D') = P(T and D')
\n" ); document.write( "P(T and D') = P(D')*P(T|D')
\n" ); document.write( "P(T and D') = 0.97*0.06 ... plug in Equation (4) and Equation (6)
\n" ); document.write( "P(T and D') = 0.0582 ... call this Equation (7)\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Law of Total Probability
\n" ); document.write( "P(T) = P(T and D) + P(T and D')
\n" ); document.write( "P(T) = 0.0285 + 0.0582 ... plug in Equation (5) and Equation (7)
\n" ); document.write( "P(T) = 0.0867 .... call this Equation (8)\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Now onto the probability we want to find.
\n" ); document.write( "Use the conditional formula to get
\n" ); document.write( "P(D|T) = P(D and T)/P(T)
\n" ); document.write( "P(D|T) = P(T and D)/P(T)
\n" ); document.write( "P(D|T) = 0.0285/0.0867 ... plug in Equation (5) and Equation (8)
\n" ); document.write( "P(D|T) = 0.3287197231834
\n" ); document.write( "P(D|T) = 0.3287\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Rounded to four decimal places, the probability in decimal form is 0.3287 which converts to 32.87% (both of these values are approximate)\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );