n(X) = n(X∩E1) + n(X∩E2) + n(X∩E3) + n(X∩E4)
P(X) = P(X∩E1) + P(X∩E2) + P(X∩E3) + P(X∩E4)
Bayes’ Theorem works like this: Starting from P(X/E1), P(X/E2) etc. Bayes’ theorem helps us to calculate P(E1/X).
Here is how:
Using the product rule of probability, we may write:
P(E1 X) = P(E1/X) . P(X) = P(X/E1)
x P(E1)
Thus, P(E1/X) . P(X) = P(X/E1) x P(E1)
Hence
P(E1/X) = P(X/E1) x P(E1) /
P(X)
= P(X/E1) x P(E1) / ∑ P(XE1) ...... Bayes' Theorem