Bayes’ Theorem
In its general form, Bayes' theorem deals with specific events, such as A_{1}, A_{2},...., A_{k}, that have prior probabilities. These events are mutually exclusive events that cover the entire sample space. Each prior probability is already known to the decision maker, and these probabilities have the following form: P(A_{1}), P(A_{2}),...., P(A_{k}). The events with prior probabilities produce, cause, or precede another event, say B.
A conditional probability relation exists between events A_{1}, A_{2}, ....., A_{k} and event B. The conditional probabilities are P(BA_{1}), P(BA_{2}), ..., P(BA_{k}).
Bayes' formula allows us to calculate the probability of an event, say, A1 occurring given that event B has already occurred with a known probability, P(B). The probability of A_{1} occurring given that B has already occurred is the posterior (or revised) probability. It is denoted by P(A_{1}B). Thus, we are given P(A_{1}) and the P(BA_{1}) which we use to calculate P(A_{1}B).
For any event A_{i}, Bayes' theorem has the form
The probability that A_{1} and B occur simultaneously is equal to the probability that A_{1} occurs multiplied by the probability that B occurs given A_{1}. Thus, we have
P(A1 and B) = P(A1) P(BA1)
Since A_{1}, A_{2}, . . . . , Ak form a partition of the entire sample space when event B occurs, only one of the events in the partition occurs. Thus, we have
P(B) = P(A_{1} and B) + P(A_{2 } and B) + .... + P(A_{k} and B)
We already know that for any event Ai,
P(Ai and B) = P(Ai) P(BAi)
When we substitute the formula for P(Ai and B) into the equation for P(B) we obtain
P(B) = P(A_{1}) P(BA_{1}) + P(A_{2}) P(BA_{2}) +...+ P(A_{k}) P(BA_{k})
If we then substitute P(B) and P(Ai and B) into the conditional probability, i.e. P(AB) = we obtain the generalized version of Bayes' formula, which is shown in the box.
Bayes' Theorem
P(A_{i}  B) 
= 


Example
Suppose that a personnel administrator wishes to hire one person from among a number of job applicants for a clerical position. The job to be filled is fairly simple. On the basis of past experience, the personnel director feels that there is a 0.80 probability of an applicant being able to fill the position. This probability is the prior probability.
A personnel administrator usually interviews or tests each applicant, rather than select one at random. This procedure supplies additional direct information about the applicant. In light of this additional information, the personnel director may revise the prior probability about an applicant's chances for success or failure at the job. The revised probability is the posterior probability.
The terms prior and posterior refer to the time when information is collected. Before information is obtained, we have prior probabilities. Bayes' theorem provides a means of calculating posterior probabilities from prior probabilities. The next example illustrates the use of Bayes' theorem.