Wikipedia.
History and basic theoretical consideration of Bayes Theorem.

Wikipedia.
Modern adaptation and use of Bayesian probability, terminologies, and some formulae.

Overall JE and Klett CJ (1972) Applied Multivariate Analysis. McGraw Hill Series in Psychology.
McGraw Hill Book Company New York. Library of Congress No. 73-14716407-047935-6 p.329-344. This is where I got the algorithm from.