As a short seatwork in probability, we were given this problem but I am not exactly sure if we're supposed to use Bayes' Theorem for this one:
If you get to have a nap for at least 3 hours, then you can stay awake at midnight 80% of the time. If you get 1-3 hours of nap, then you can stay awake at midnight 60% of the time. Lastly, if you get 1 hour or less, then you can only stay awake at midnight 20% of the time.
Let there be 10% chance that you get to nap for at least 3 hours, 70% chance to nap 1-3 hours, and 20% chance to nap for at most 1 hour.
If you fell asleep through the whole night, what is the probability that you got to nap for at least 3 hours?
How do we solve this kind of problem?
Some hints:
First formalize by defining events:
Now, the data given is:
The question asks for
\begin{eqnarray*}P(E_3|A') & = & \frac{P(E_3\cap A')}{P(A')}\\ & = & \frac{P(E_3) - P(E_3\cap A)}{1-P(A)} \\ & \stackrel{P(E_i \cap A)=P(A|E_i)P(E_i)}{=} & \frac{P(E_3) - P(A|E_3)P(E_3)}{1-\sum_{i=1}^3 P(A|E_i)P(E_i)} \end{eqnarray*}
Can you take it from here?