The Factory Floor
A Journey into Bayes' Theorem
Welcome to the factory floor, where the hum of machinery meets the precision of mathematics. Imagine you are standing in a massive bolt manufacturing facility with three machines—A, B, and C—working tirelessly.
Each machine has a different production capacity and a different rate of error. Today, we are going to solve a mystery: a defective bolt has been found, and we need to determine which machine is responsible.
Mapping the Factory
To solve this, we first visualize the production process as a tree diagram. Every bolt starts its journey at one of the three machines.
We know the production shares: Machine A produces 20%, Machine B produces 30%, and Machine C produces 50%. Mathematically, we define these as:
P(A)=0.2, P(B)=0.3, and P(C)=0.5.
Notice that these sum to 1, representing the entire production of the factory. Each machine also has a specific defect rate:
- Machine A: P(D∣A)=0.03
- Machine B: P(D∣B)=0.04
- Machine C: P(D∣C)=0.02
The Logic of Reverse Probability
We are holding a defective bolt. We know the effect (the defect), but we want to know the cause (the machine). This is the essence of Bayes' Theorem.
We are looking for the posterior probability P(C∣D), which is the probability that the bolt came from Machine C, given that it is defective. Bayes' Theorem provides the bridge:
The denominator, P(D), represents the total probability of drawing a defective bolt from the entire factory.
The Calculation
Let us calculate the total probability of a defect, P(D), by summing the probabilities of all paths that lead to a defect:
1. Path A: P(A)⋅P(D∣A)=0.2⋅0.03=0.006
2. Path B: P(B)⋅P(D∣B)=0.3⋅0.04=0.012
3. Path C: P(C)⋅P(D∣C)=0.5⋅0.02=0.010
Adding these together, we find the total probability:
P(D)=0.006+0.012+0.010=0.028
Now, we focus on the numerator, which is the probability that the bolt is from Machine C AND is defective:
P(C∩D)=P(C)⋅P(D∣C)=0.5⋅0.02=0.010
Finally, we calculate the ratio:
By multiplying both the numerator and denominator by 1000, we get 2810, which simplifies to the final result of 145.
Conclusion
We have successfully traced the defective bolt back to its source. The probability that it was manufactured by Machine C is 145.
Bayes' Theorem is a powerful tool that allows us to update our beliefs based on new evidence. It reminds us that in a world of uncertainty, we can use logic to find the truth hidden behind the data.