Use Bayes' rule
Suppose B1,B2,...,Bn are mutually exclusive and exhaustive cases (hypotheses) and A is some event (evidence) that has been observed. Then
P(Bi∣A)=j=1∑nP(Bj)P(A∣Bj)P(Bi)P(A∣Bi),1≤i≤n
P(B1∣A)=P(B1)P(A∣B1)+P(B2)P(A∣B2)+P(B3)P(A∣B3)P(B1)P(A∣B1)
P(B2∣A)=P(B1)P(A∣B1)+P(B2)P(A∣B2)+P(B3)P(A∣B3)P(B2)P(A∣B2)
P(B3∣A)=P(B1)P(A∣B1)+P(B2)P(A∣B2)+P(B3)P(A∣B3)P(B3)P(A∣B3)
Given that
P(B1)=P(B2)=P(B3)P(A∣B1)=0.75,P(A∣B2)=0.84,P(A∣B3)=0.93
We assume that P(B1)=P(B2)=P(B3)=0. We don't need to compute P(B1),P(B2),P(B3)
P(B1∣A)=0.75⋅P(B1)+0.84⋅P(B2)+0.93⋅P(B3)0.75⋅P(B1)=
=0.75⋅P(B1)+0.84⋅P(B1)+0.93⋅P(B1)0.75⋅P(B1)=
=0.75+0.84+0.930.75=8425
P(B2∣A)=0.75⋅P(B1)+0.84⋅P(B2)+0.93⋅P(B3)0.84⋅P(B2)=
=0.75⋅P(B2)+0.84⋅P(B2)+0.93⋅P(B2)0.84⋅P(B2)=
=0.75+0.84+0.930.84=8428
P(B3∣A)=0.75⋅P(B1)+0.84⋅P(B2)+0.93⋅P(B3)0.93⋅P(B3)=
=0.75⋅P(B3)+0.84⋅P(B3)+0.93⋅P(B3)0.93⋅P(B3)=
=0.75+0.84+0.930.93=8431
Comments