One of the most significant developments in the probability field has been the development of Bayesian decision theory which has proved to be of immense help in making decisions under uncertain conditions. The Bayes Theorem was developed by a British Mathematician Rev. Thomas Bayes. The probability given under Bayes theorem is also known by the name of inverse probability, posterior probability or revised probability. This theorem finds the probability of an event by considering the given sample information; hence the name posterior probability. The bayes theorem is based on the formula of conditional probability.

conditional probability of event A1A1 given event BB is

P(A1/B)=P(A1 and B)P(B)P(A1/B)=P(A1 and B)P(B)

Similarly probability of event A1A1 given event BB is

P(A2/B)=P(A2 and B)P(B)P(A2/B)=P(A2 and B)P(B)

Where

P(B)=P(A1 and B)+P(A2 and B)P(B)=P(A1)×P(B/A1)+P(A2)×P(BA2)P(B)=P(A1 and B)+P(A2 and B)P(B)=P(A1)×P(B/A1)+P(A2)×P(BA2)

P(A1/B)P(A1/B) can be rewritten as

P(A1/B)=P(A1)×P(B/A1)P(A1)×P(B/A1)+P(A2)×P(BA2)P(A1/B)=P(A1)×P(B/A1)P(A1)×P(B/A1)+P(A2)×P(BA2)

Hence the general form of Bayes Theorem is

P(Ai/B)=P(Ai)×P(B/Ai)∑ki=1P(Ai)×P(B/Ai)P(Ai/B)=P(Ai)×P(B/Ai)∑i=1kP(Ai)×P(B/Ai)

Where A1A1, A2A2…AiAi…AnAn are set of n mutually exclusive and exhaustive events.