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). "Urn II or urn III" is the union of two cases that cannot happen together, so their posterior probabilities are added.
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: urn I is chosen
- E2: urn II is chosen
- E3: urn III is chosen
- A: the ball drawn is red
Step 2 — Write the probability of each hypothesis.
An urn is chosen at random, so each of the three urns has the same chance.
P(E1)=31
P(E2)=31
P(E3)=31
Step 3 — Write the probability of A under each hypothesis.
Urn I has 6 red out of 10 balls, urn II has 2 red out of 8, and urn III has 1 red out of 9.
P(A/E1)=106=53
P(A/E2)=82=41
P(A/E3)=91
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)+P(E3)P(A/E3)=31×53+31×41+31×91=51+121+271=540108+54045+54020=540173
Step 5 — Apply Bayes' theorem for urn 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)=540173121=121×173540=17345
Step 6 — Apply Bayes' theorem for urn III.
Bayes' theorem divides the E3 term of the sum above by the total probability P(A).
P(E3/A)=P(A)P(E3)P(A/E3)=540173271=271×173540=17320
Step 7 — Add the two cases.
A ball cannot come from urn II and urn III at once, so the probability of "urn II or urn III" is the sum of the two posterior probabilities.
P(E2/A)+P(E3/A)=17345+17320=17365
Check: Urn I has P(E1/A)=173108, and 173108+17365=1.
Therefore, the probability that the red ball came from urn II or urn III is 17365.