Solution:
Key idea: Bayes' theorem. If the events E1,E2,…,En are mutually exclusive, together cover every possibility, and an event A is known to have happened, then P(Ei/A)=P(A)P(Ei)P(A/Ei), where the theorem of total probability gives P(A)=∑P(Ej)P(A/Ej). Both parts ask for the plant, given that the car is known to be of standard quality.
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 car is from plant I
- E2: the car is from plant II
- A: the car is of standard quality (or better)
Step 2 — Write the probability of each hypothesis.
Plant I makes 80 per cent of the cars and plant II makes 20 per cent.
P(E1)=80%=10080=54
P(E2)=20%=10020=51
Step 3 — Write the probability of A under each hypothesis.
At plant I, 85 cars in 100 are of standard quality; at plant II, 65 in 100 are.
P(A/E1)=10085=2017
P(A/E2)=10065=2013
Step 4 — Find the total probability of A.
By the theorem of total probability, we multiply the probability of each hypothesis by the chance of A under it and add the results.
P(A)=P(E1)P(A/E1)+P(E2)P(A/E2)=54×2017+51×2013=2517+10013=10068+10013=10081
Step 5 — Part (i): apply Bayes' theorem for plant I.
Bayes' theorem divides the E1 term of the sum above by the total probability P(A).
P(E1/A)=P(A)P(E1)P(A/E1)=100812517=2517×81100=8168
Step 6 — Part (ii): apply Bayes' theorem for plant II.
Bayes' theorem divides the E2 term of the sum above by the total probability P(A).
P(E2/A)=P(A)P(E2)P(A/E2)=1008110013=10013×81100=8113
Check: 8168+8113=1, as the car must come from one of the two plants.
Therefore, (i) the probability that the standard-quality car came from plant I is 8168; (ii) the probability that it came from plant II is 8113.