Suppose we have such that

Then

[!Bayes’ Law]

Pr(A_{m}|B) = \frac{Pr(B|A_{m})Pr(A_{m})}{\sum_{n=1}^{N}Pr(B|A_{n})Pr(A_{n})}