Analyzing the Setup
Welcome, future engineers! Today we are not just solving a probability problem; we are becoming detectives. Imagine you are standing in a lab with two bags.
Bag I contains 3 Red, 4 Black, and 3 White balls, totaling 10. Bag II contains 2 Red, 5 Black, and 2 White balls, totaling 9.
We perform a two-step experiment: first, we transfer one ball from Bag I to Bag II, and then we draw a ball from Bag II. We observe that the final ball drawn is black, and we must work backward to find the probability that the transferred ball was red.
Mapping the Branches
Before we touch any math, we must visualize the flow. We define three possible scenarios for the transferred ball: TR (Red), TB (Black), and TW (White).
Since Bag I has 10 balls, the prior probabilities are:
P(TR)=103,P(TB)=104,P(TW)=103
The Conditional Reality
The transfer changes the composition of Bag II. If we transferred a Red ball (
TR), Bag II now contains 3 Red, 5 Black, and 2 White balls (total 10). The probability of drawing a black ball (
A) given this transfer is:
P(A∣TR)=105
If we transferred a Black ball (
TB), Bag II now contains 2 Red, 6 Black, and 2 White balls. The probability of drawing a black ball is:
P(A∣TB)=106
If we transferred a White ball (
TW), Bag II contains 2 Red, 5 Black, and 3 White balls. The probability of drawing a black ball is:
P(A∣TW)=105
The Bayesian Engine
We want to find P(TR∣A), the probability that the transferred ball was red given that the drawn ball was black. Bayes' Theorem provides the engine for this calculation:
P(TR∣A)=P(TR)P(A∣TR)+P(TB)P(A∣TB)+P(TW)P(A∣TW)P(TR)P(A∣TR)
This formula takes the specific path we care about (Red transfer leading to Black draw) and divides it by the sum of all possible paths that could lead to a Black draw.
Final Calculation
Plugging in our values, we get:
P(TR∣A)=(103)(105)+(104)(106)+(103)(105)(103)(105)
Since every term has a denominator of 100, we can cancel them out:
P(TR∣A)=(3×5)+(4×6)+(3×5)3×5
Simplifying the arithmetic:
P(TR∣A)=15+24+1515=5415
Dividing both the numerator and denominator by 3, we arrive at the final result: