document.write( "Question 875108: 10% of the units in a batch have a common defect. Experience show that 87% of the defective units posses a certain characteristic, while only 3% of the units which do not have this defect posses that characteristic. A unit is examined and found to have the characteristic. What's the conditional probability that the unit has the defect? Thanks. \n" ); document.write( "
Algebra.Com's Answer #527970 by jim_thompson5910(35256)\"\" \"About 
You can put this solution on YOUR website!
Events:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "C: item possesses a certain characteristic
\n" ); document.write( "C': item does not posses a certain characteristic
\n" ); document.write( "D: item has a defect
\n" ); document.write( "D': item does not have a defect\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Probabilities:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "P(C): probability that you choose an item that possesses a certain characteristic
\n" ); document.write( "P(C'): probability that you choose an item that does not possess a certain characteristic
\n" ); document.write( "P(D): probability that you choose an item that is defective
\n" ); document.write( "P(D'): probability that you choose an item that is not defective\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "P(C|D): probability that you choose an item that possesses a certain characteristic given the item has a defect
\n" ); document.write( "P(C'|D): probability that you choose an item that does not possess a certain characteristic given the item has a defect
\n" ); document.write( "P(C|D'): probability that you choose an item that possesses a certain characteristic given the item does not have a defect
\n" ); document.write( "P(C'|D'): probability that you choose an item that does not possess a certain characteristic given the item does not have a defect\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "P(D|C): probability that you choose an item that is defective given the item has that certain characteristic
\n" ); document.write( "P(D'|C): probability that you choose an item that is not defective given the item has that certain characteristic
\n" ); document.write( "P(D|C'): probability that you choose an item that is defective given the item does not have a certain characteristic
\n" ); document.write( "P(D'|C'): probability that you choose an item that is not defective given the item does not have a certain characteristic\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "-----------------------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Given Probabilities\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"10% of the units in a batch have a common defect\"
\n" ); document.write( "P(D) = 0.10
\n" ); document.write( "P(D') = 0.90 (1 - 0.10 = 0.90)\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"Experience show that 87% of the defective units posses a certain characteristic\"
\n" ); document.write( "P(C|D) = 0.87 (given a defective unit, 87% of them will have this characteristic)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"only 3% of the units which do not have this defect posses that characteristic\"
\n" ); document.write( "P(C|D') = 0.03 (given a non-defective unit, 3% of them will have this characteristic)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "-------------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"A unit is examined and found to have the characteristic. What's the conditional probability that the unit has the defect?\" so we want to find P(D|C). This is the probability of event D happening given event C has happened.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We want to find P(D|C)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Use Baye's Theorem to get\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "P(D|C) = (P(C|D)*P(D))/(P(C))\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Then use the Law of Total Probability to break up P(C) into P(C|D)*P(D)+P(C|D')*P(D')\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We will now have this equation\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "P(D|C) = (P(C|D)*P(D))/(P(C|D)*P(D)+P(C|D')*P(D'))\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Plug in the values: P(D) = 0.10, P(D') = 0.90, P(C|D) = 0.87, P(C|D') = 0.03 and evaluate\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "P(D|C) = (P(C|D)*P(D))/(P(C|D)*P(D)+P(C|D')*P(D'))
\n" ); document.write( "P(D|C) = (0.87*0.10)/(0.87*0.10+0.03*0.90)
\n" ); document.write( "P(D|C) = 0.76315789473684
\n" ); document.write( "
\n" ); document.write( "
\n" );