Suppose that there is a chance for a newly constructed house to collapse whether the design is faulty or not. The chance that the design is faulty is 20%. The chance that the house collapses if the design is faulty is 98% and otherwise it is 25%. It is seen that the house collapsed. What is the probability, that it is due to faulty design?
Bayes' Theorem and Probability Distribution · Question 13 of 49
Suppose that there is a chance for a newly constructed house to collapse whether the design is faulty or not.
Solution:
Key idea: Bayes' theorem. If the events are mutually exclusive, together cover every possibility, and an event is known to have happened, then , where the theorem of total probability gives .
Step 1 — Name the events.
We name the possible causes (the hypotheses) and the observed result, so that each probability has a clear meaning.
- : the design is faulty
- : the design is not faulty
- : the house collapses
Step 2 — Write the probability of each hypothesis.
The design is faulty with chance 20%, so it is not faulty with chance .
Step 3 — Write the probability of under each hypothesis.
The house collapses with chance 98% if the design is faulty and 25% otherwise.
Step 4 — Find the total probability of .
By the theorem of total probability, we multiply the probability of each hypothesis by the chance of under it and add the results.
Step 5 — Apply Bayes' theorem.
Bayes' theorem divides the term of the sum above by the total probability .
Check: The other hypothesis has , and the two posterior probabilities add to 1, as they must.
Therefore, the probability that the collapse is due to a faulty design is .
