Answer:
The probability that it came from A, given that is defective is 0.362.
Step-by-step explanation:
Define the events:
A: The element comes from A.
B: The element comes from B.
C: The element comes from C.
D: The elemens is defective.
We are given that P(A) = 0.25, P(B) = 0.35, P(C) = 0.4. Recall that since the element comes from only one of the machines, if an element is defective, it comes either from A, B or C. Using the probability axioms, we can calculate that
[tex]P(D) = P(A\cap D) + P(B\cap D) + P(C\cap D)[/tex]
Recall that given events E,F the conditional probability of E given F is defined as
[tex]P(E|F) = \frac{P(E\cap F)}{P(F)}[/tex], from where we deduce that
[tex]P(E\cap F) = P(E|F)P(F)[/tex].
We are given that given that the element is from A, the probability of being defective is 5%. That is P(D|A) =0.05. Using the previous analysis we get that
[tex] P(D) = P(A)P(D|A)+P(B) P(D|B) + P(C)P(D|C) = 0.05\cdot 0.25+0.04\cdot 0.35+0.02\cdot 0.4 = 0.0345[/tex]
We are told to calculate P(A|D), then using the formulas we have
[tex] P(A|D) = \frac{P(A\cap D)}{P(D)}= \frac{P(D|A)P(A)}{P(D)}= \frac{0.05\cdot 0.25}{0.0345}= 0.36231884[/tex]