Independent solution

How to solve this Bayes' Theorem question

Answer in brief

The zero-count relationship determines the first class's Poisson mean as 3-ln(3)=1.901388. Combining the two exact-count likelihoods with prior weights 0.40 and 0.60 gives posterior probability 0.445490, so choice D is correct.

Setup

Setup

Let S denote the first class and N the second. Their prior probabilities are 0.40 and 0.60, and the second class has Poisson mean three.

Pr(S)=0.40,Pr(N)=0.60\Pr(S)=0.40,\qquad \Pr(N)=0.60
λN=3\lambda_N=3

Model

Model

Translate the zero-count comparison into an equation for the unknown mean of the first class.

eλS=3e3e^{-\lambda_S}=3e^{-3}
λS=3ln3=1.9013877113\lambda_S=3-\ln 3=1.9013877113\ldots

Compute

Compute

Evaluate the two likelihoods at count two and apply Bayes' theorem.

Pr(X=2S)=eλSλS22!=0.2699909325\Pr(X=2\mid S)=e^{-\lambda_S}\frac{\lambda_S^2}{2!}=0.2699909325\ldots
Pr(X=2N)=e3322!=0.2240418077\Pr(X=2\mid N)=e^{-3}\frac{3^2}{2!}=0.2240418077\ldots
Pr(SX=2)=0.40(0.2699909325)0.40(0.2699909325)+0.60(0.2240418077)\Pr(S\mid X=2)=\frac{0.40(0.2699909325)}{0.40(0.2699909325)+0.60(0.2240418077)}
Pr(SX=2)=0.4454901561\Pr(S\mid X=2)=0.4454901561\ldots

Answer

Answer

The posterior probability rounds to 0.45.

0.45(D)\boxed{0.45\quad\text{(D)}}