document.write( "Question 498471: Factories A and B produce computers. Factory A produces 2 times as many computers as factory B. The probability that an item produced by factory A is defective is 0.021 and the probability that an item produced by factory B is defective is 0.024.
\n" ); document.write( "A computer is selected at random and it is found to be defective. What is the probability it came from factory A?
\n" ); document.write( "

Algebra.Com's Answer #337050 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
let x be the total number of computers that are built.
\n" ); document.write( "since 2 out of 3 come from factory A, then factory A builds (2/3)*x and factory B builds (1/3)*x.
\n" ); document.write( "the number of defective computers that come from factory A are .021 * (2/3) * x.
\n" ); document.write( "the number of defective computers that come from factory B are .024 * (1/3) * x.
\n" ); document.write( "simplifying these expressions gets:
\n" ); document.write( "the number of defective computers that come from factory A are .014 * x.
\n" ); document.write( "the number of defective computers that come from factory B are .008 * x.
\n" ); document.write( "therefore:
\n" ); document.write( "the probability that a defective computer comes from factory A is .014.
\n" ); document.write( "the probability that a defective computer comes from factory B is .008
\n" ); document.write( "the probability of getting a defective computer is .014 + .008 = .022.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "as an example:
\n" ); document.write( "assume that 3000 computers were built.
\n" ); document.write( "2000 came from factory A.
\n" ); document.write( "1000 came from factory B.
\n" ); document.write( ".021 * 2000 = 42 were defective from factory A.
\n" ); document.write( ".024 * 1000 = 24 were defective from factory B.
\n" ); document.write( "total defective were 66.
\n" ); document.write( "probability of getting a defective computer from factory A is 42/3000 = .014
\n" ); document.write( "probability of getting a defective computer from factory B is 24/3000 = .008
\n" ); document.write( "probability of getting a defective computer is 66/3000 = .022\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the question to be answered is:
\n" ); document.write( "A computer is selected at random and it is found to be defective. What is the probability it came from factory A?
\n" ); document.write( "This can be translated to:
\n" ); document.write( "given that a computer is defective, what is the probability that it came from factory A?
\n" ); document.write( "the formula for p(X given Y) is equal to p(X intersect Y) / p(Y)
\n" ); document.write( "in this problem we have:
\n" ); document.write( "p(X) = probability that a defective computer came from factory A.
\n" ); document.write( "p(Y) = probability that a defective computer came from factory A or factory B.
\n" ); document.write( "p(X intersect Y) = probability that a defective computer came from factory A and also came from factory A or factory B. That's the same as the probability that it came from factory A.
\n" ); document.write( "the formula of p(X intersect Y) / p(Y) beecomes .014/.022 = .6363636363 = .64\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "in our example we had:
\n" ); document.write( "3000 computers were built.
\n" ); document.write( "2000 came from factory A
\n" ); document.write( "1000 came from factory B
\n" ); document.write( "42 were defective from factory A
\n" ); document.write( "24 were defective from factory B
\n" ); document.write( "66 were defective from factory A or B\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "given that the computer was defective, then it had to be one of the 66 defective computers in the lot.
\n" ); document.write( "since there are 42 out of 66 defective that are from factory A, then the probability that a defective computer came from factory A would be 42/66 = .636363636 = .64 rounded to the nearest hundredth.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "i believe this is the answer you are looking for.
\n" ); document.write( "let me know if otherwise.\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );