Analyzing the Setup
We are tasked with identifying the source of a ball drawn from one of three identical bags, BI, BII, and BIII. Since the bags are chosen at random, the prior probability for selecting any bag is equal:
P(BI)=P(BII)=P(BIII)=31
Calculating the Probability of a Red Ball
We define p=P(BI∣R) as the probability that the ball came from Bag I, given that it is red. According to Bayes' Theorem:
p=P(BI)P(R∣BI)+P(BII)P(R∣BII)+P(BIII)P(R∣BIII)P(BI)⋅P(R∣BI)
The conditional probabilities for drawing a red ball from each bag are P(R∣BI)=103, P(R∣BII)=104, and P(R∣BIII)=105.
Substituting these values, the common factors of 31 and 101 cancel out across the numerator and denominator:
Calculating the Probability of a Green Ball
Next, we define q=P(BIII∣G) as the probability that the ball came from Bag III, given that it is green. The conditional probabilities for drawing a green ball are P(G∣BI)=105, P(G∣BII)=103, and P(G∣BIII)=104.
Applying Bayes' Theorem again:
q=P(BI)P(G∣BI)+P(BII)P(G∣BII)+P(BIII)P(G∣BIII)P(BIII)⋅P(G∣BIII)
Following the same simplification process where the common factors cancel, we obtain:
Final Calculation
With our values determined as p=41 and q=31, we perform the final arithmetic operation requested:
The final result is 7.