What is the probability of a product being defective, given subsequent observations?

978 Views Asked by At

Let's say I have a factory producing 28% defective bottles. A defective bottle has a 66.5% chance of breaking when dropped on the ground and a non-defective bottle only has a 9.5% chance to break.

Given that I dropped a randomly picked bottle on the ground 4 times and it didn't break (its chance to break doesn't increase with every drop), what is the chance for that bottle to be defective?

This is a homework question and I attempted to use Bayes' rule such as

$ P(Defective | IntactX4) = {P(IntactX4|Defective)P(Defective)\over P(IntactX4)} $

$ P(Defective | IntactX4) = {(1-0.665)^4 * 0.28\over (0.28*(1-0.665)+(1-0.28)*(1-0.095))^4} $

Therefore

$ P(Defective | IntactX4) \approx0.011422987612 $

However, this does not appear to be the correct answer. I wonder if there is something wrong with the way I use Bayes' rule. Can anyone shed some light?

3

There are 3 best solutions below

1
On BEST ANSWER

Denominator should be

$$P(\text{Intact X 4})=P(\text{Intact X 4}|\text{Defective})P(\text{Defective}) + P(\text{Intact X 4}|\text{Good})P(\text{Good})$$

where the first term is just your numerator.

0
On

I did not check the final calculations, but the math is correct. Why do you assume it to be wrong?

0
On

It should be $\dfrac{(1−0.665)^4\times 0.28}{0.28\times(1−0.665)^4+(1−0.28)\times(1−0.095)^4}$.