bayes theorem Algorithm

In probability theory and statistics, Bayes' theorem (alternatively Bayes's theorem, Bayes's law or Bayes's rule) describes the probability of an event, based on prior knowledge of conditions that might be associated to the event. With Bayesian probability interpretation, the theorem expresses how a degree of impression, expressed as a probability, should rationally change to account for the availability of related evidence. Bayes ’ theorem was named after Thomas Bayes (1701–1761), who study how to calculate a distribution for the probability parameter of a binomial distribution (in modern terminology).By modern standards, we should refer to the Bayes – price rule. The French mathematician Pierre-Simon Laplace reproduced and extended Bayes's outcomes in 1774, apparently unaware of Bayes's work.

bayes theorem source code, pseudocode and analysis