Independent solution

How to solve this Bayes' Theorem question

Answer in brief

Bayes' theorem combines the 20% prior class share with the two class-specific Poisson likelihoods for a count of two. The posterior probability is 0.170298, which matches choice B.

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
NAPoisson(1),NAcPoisson(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=2A)=e12,Pr(N=2Ac)=32e32\Pr(N=2\mid A)=\frac{e^{-1}}{2},\qquad \Pr(N=2\mid A^c)=\frac{3^2e^{-3}}{2}
Pr(AN=2)=0.20(e1/2)0.20(e1/2)+0.80(9e3/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(AN=2)=0.1702976917\Pr(A\mid N=2)=0.1702976917\ldots

Answer

Answer

The requested posterior class probability rounds to 0.170.

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