The sample space is defined by two mutually-exclusive events – it rains or it does not rain.
Additionally, a third event occurs when the weatherman predicts rain.
Notation for these events are
Event A1: It rains on Marie’s wedding.
Event A2: It does not rain on Marie’s wedding.
Event B: The weatherman predicts rain.
In terms of probabilites, we know the following:
\(P\left( {{A_1}} \right) = \frac{5}{{365}} = 0.014\) [It rains 5 days out of the year]
\(P\left( {{A_2}} \right) = \frac{{360}}{{365}} = 0.986\) It does not rain 360 days ]
\(P\left( {B/{A_1}} \right) = 0.9\) [When it rains, the weatherman predicts rain 90% of the time]
\(P\left( {B/{A_2}} \right) = 0.1\) [When it does not rain, the weatherman predicts rain 10% of the time]
We want to know P(A1/B), the probability it will rain on the day of Marie’s wedding. Given a forecast for rain by the weatherman.
Using Bayes’ theorem :
\(P\left( {{A_1}|B} \right) = \frac{{P\left( {{A_1}} \right)P\left( {B/{A_1}} \right)}}{{P\left( {{A_1}} \right)P\left( {B/{A_1}} \right) + P\left( {{A_2}} \right)P\left( {B/{A_2}} \right)}}\)
\(P\left( {{A_1}|B} \right) = \frac{{0.014 \times 0.9}}{{0.014 \times 0.9 + 0.986 \times 0.1}}\)
P(A1|B) = 0.113