Solution:
Key idea: Bayes' theorem. If the events E1,E2,…,En are mutually exclusive, together cover every possibility, and an event D is known to have happened, then P(Ei/D)=P(D)P(Ei)P(D/Ei), where the theorem of total probability gives P(D)=∑P(Ej)P(D/Ej).
Step 1 — Name the events.
We name the possible causes (the hypotheses) and the observed result, so that each probability has a clear meaning.
- E1: the bolt is made by machine A
- E2: the bolt is made by machine B
- E3: the bolt is made by machine C
- D: the bolt is defective
Step 2 — Write the probability of each hypothesis.
The share of each machine in the output is the chance that a bolt drawn at random comes from it.
P(E1)=25%=10025=41
P(E2)=35%=10035=207
P(E3)=40%=10040=52
Step 3 — Write the probability of D under each hypothesis.
Five, 4 and 2 per cent of the outputs of A, B and C are defective.
P(D/E1)=5%=1005=201
P(D/E2)=4%=1004=251
P(D/E3)=2%=1002=501
Step 4 — Find the total probability of D.
By the theorem of total probability, we multiply the probability of each hypothesis by the chance of D under it and add the results.
P(D)=P(E1)P(D/E1)+P(E2)P(D/E2)+P(E3)P(D/E3)=41×201+207×251+52×501=801+5007+1251=200025+200028+200016=200069
Step 5 — Part (i): apply Bayes' theorem for machine A.
Bayes' theorem divides the E1 term of the sum above by the total probability P(D).
P(E1/D)=P(D)P(E1)P(D/E1)=200069801=801×692000=6925
Step 6 — Part (i): apply Bayes' theorem for machine B.
Bayes' theorem divides the E2 term of the sum above by the total probability P(D).
P(E2/D)=P(D)P(E2)P(D/E2)=2000695007=5007×692000=6928
Step 7 — Part (i): apply Bayes' theorem for machine C.
Bayes' theorem divides the E3 term of the sum above by the total probability P(D).
P(E3/D)=P(D)P(E3)P(D/E3)=2000691251=1251×692000=6916
Step 8 — Part (ii): add the cases for machines A and C.
A bolt cannot be made by two machines, so the probability of "A or C" is the sum of their posterior probabilities.
P(E1/D)+P(E3/D)=6925+6916=6941
Check: The three answers of part (i) add to 6925+28+16=1.
Therefore, (i) the probabilities are 6925 for A, 6928 for B and 6916 for C; (ii) the probability that it was made by A or C is 6941.