A rain system lights up when it detects water. It performs differently under heavy and light rain. The detector fails to detect the rain 15% of the time under light rain and it fails 10% of the time under heavy rain. The light rain has a 65% chance of occurring when it rains.
My first question is what is the probability that the detector works as a whole? And the second question I have is if the detector does work, what's the probability of the rain only being light rain?
I would like to show work but this question really is not intuitive to me. I keep thinking of adding the probabilities while taking into account the fact that 65% value but I know that is not right. I'm stuck here and would really like some help. I don't even know where to start with the second question.
Thanks for any help, sorry if my question is not clear or if I should have shown some kind of work.
Let $D$ be the event that you detect rain. Let $L$ and $H$ be the events that you have light and heavy rain respectively.
From the problem statement we know that
$P(D^c \mid L) = .15$ which implies $P(D \mid L) = .85$
$P(D^c \mid H) = .1$ which implies $P(D \mid H) = .9$
$P(L) = .65$ which implies $P(H) = .35$
Using Bayes we have
$$P(D) = P(D \mid L)P(L) + P(D \mid H)P(H)$$
$$= .85(.65) + .9(.35)$$
The second question is asking
$$P(L \mid D) = \frac{P(LD)}{P(D)} = \frac{P(D \mid L)P(L)}{P(D)} = \frac{.85(.65)}{.85(.65) + .9(.35)}$$
Let me know if you disagree! I'm learning this stuff too. =)