We are given that the number of emergency patients arriving at a hospital each nigh...
Check the final answer first, then review the worked steps.
Check the final answer first, then review the worked steps.
Let $L(\lambda) = P(X=9|\lambda)P(\lambda)$.
$L(5) = \frac{e^{-5}5^9}{9!} \cdot 0.75 \approx 0.0363 \cdot 0.75 = 0.0272$
$L(7) = \frac{e^{-7}7^9}{9!} \cdot 0.25 \approx 0.1014 \cdot 0.25 = 0.02535$
Since $L(5) > L(7)$, the posterior mode is 5. Wait, re-evaluating: $L(5) = 0.0272$, $L(7) = 0.02535$. Actually, $L(5) > L(7)$, so mode is 5.
Calculate the posterior probabilities $P(\lambda|X=9) \propto P(X=9|\lambda)P(\lambda)$ for $\lambda=5$ and $\lambda=7$. Since $P(X=9|\lambda) = \frac{e^{-\lambda}\lambda^9}{9!}$, compare $P(X=9|5)P(5) = \frac{e^{-5}5^9}{9!} \cdot 0.75$ and $P(X=9|7)P(7) = \frac{e^{-7}7^9}{9!} \cdot 0.25$.