I am trying to solve the following problem of probability:
"In a certain factory, there is an alarm system composed of 5 sensors that work independently to detect fire. The probability that a sensor works well, that is, warns people when there's fire is $0.8$. If two of the sensors don't work well, which is the probabilty of not detecting the fire?".
I have thought of Bayes $p(A|B)$ where A="Not detecting fire" and B="2 sensors don't work well". In this way, I have computed the probability as:
$$\frac{1*0.2^5}{\binom{5}{2}0.2^2*0.8^3}$$. However, the result of this isn't the one that appears in the solutions of the textbook because the solution should be $0.008$. Any help to approach the problem? Thanks.
We will assume that "sensor works" is synonymous to "detects fire". The question then becomes "given that at least two sensors don't work, what is the probability that none of the sensors work?".
The probability that two of the sensors don't work can be found via complementary counting by subtracting from unity the probability that all the sensors work and the probability that only one of the sensors doesn't work: $1 - (0.8)^5 - 5 (0.2) (0.8)^4$. The probability that none of the sensors work (leaving the fire undetected) is $(0.2)^5$. The desired conditional probability is
$$\frac{(0.2)^5}{1 - (0.8)^5 - 5 (0.2) (0.8)^4} \approx \boxed{0.001218}$$
EDIT: Clarification on why $0.008$ is a bad answer.
As @John Douma mentioned in the comments, the textbook answer was probably found by taking $(0.2)^3$. However, as @Stinking Bishop has pointed out, this assumes that we know that two specific alarms don't work. That is not the same question as what was posed, which is that given that some pair of alarms don't work, what is the probability that the fire is not detected.