Law of Total Probability
If events split the sample space into disjoint cases, the probability of is the weighted sum of its conditional probabilities. It is used to compute overall rates from group rates and supplies the denominator in Bayes' theorem.
LaTeX
P(B)=\sum_{i}P(B\mid A_i)\,P(A_i)Variables
- a partition of the sample space
- conditional probability of B in case i
- probability of case i
Example
Machine 1 makes 60% of parts with 2% defects; machine 2 makes 40% with 5% defects. Find the overall defect rate.
- .
- .
Answer: .