Independent solution

How to solve this Bayes' Theorem question

Setup

Setup

Let A denote membership in the lower-rate class and let N be the observed annual count. Record the class proportions and Poisson means.

Pr⁡(A)=0.20,Pr⁡(Ac)=0.80\Pr(A)=0.20,\qquad \Pr(A^c)=0.80
N∣A∼Poisson⁡(1),N∣Ac∼Poisson⁡(3)N\mid A\sim\operatorname{Poisson}(1),\qquad N\mid A^c\sim\operatorname{Poisson}(3)

Model

Model

Evaluate the likelihood of exactly two events in each class and place those likelihoods into Bayes' formula.

Pr⁡(N=2∣A)=e−12,Pr⁡(N=2∣Ac)=32e−32\Pr(N=2\mid A)=\frac{e^{-1}}{2},\qquad \Pr(N=2\mid A^c)=\frac{3^2e^{-3}}{2}
Pr⁡(A∣N=2)=0.20(e−1/2)0.20(e−1/2)+0.80(9e−3/2)\Pr(A\mid N=2)=\frac{0.20(e^{-1}/2)}{0.20(e^{-1}/2)+0.80(9e^{-3}/2)}

Compute

Compute

Calculate the weighted likelihood in the numerator and the total mixture likelihood in the denominator.

Pr⁡(A,N=2)=0.0367879441…\Pr(A,N=2)=0.0367879441\ldots
Pr⁡(N=2)=0.0367879441…+0.1792334461…=0.2160213902…\Pr(N=2)=0.0367879441\ldots+0.1792334461\ldots=0.2160213902\ldots
Pr⁡(A∣N=2)=0.1702976917…\Pr(A\mid N=2)=0.1702976917\ldots

Answer

Answer

The requested posterior class probability rounds to 0.170.

Pr⁡(A∣N=2)≈0.170(B)\boxed{\Pr(A\mid N=2)\approx 0.170\quad\text{(B)}}