History of Bayes’ Theorem
Bayes’ Theorem: Reasoning, History, and Applications
What Bayes’ theorem does
Bayes’ theorem describes how to update the probability of a hypothesis when new evidence becomes available. It combines:
A prior probability: how plausible the hypothesis was before considering the new evidence.
A likelihood: how expected the evidence would be if the hypothesis were true.
The probability of the evidence under competing explanations.
The result is a posterior probability: how plausible the hypothesis is after taking the evidence into account.
Bayesian reasoning is a disciplined way to revise beliefs: new evidence should shift the probability assigned to a hypothesis according to how well that evidence fits the hypothesis and its alternatives.
The theorem is sometimes called inverse probability because it can be used to reason backward from observed effects to possible causes. For example, given a set of symptoms, it can help estimate the probability of a disease that could have caused them.
Bayesian reasoning can be applied informally in everyday life or formally by assigning probabilities and calculating an updated result. Even without calculations, the central idea is that evidence that favors one explanation over another should change the relative plausibility of those explanations.
Bayesian and frequentist interpretations of probability
The terms Bayesian and frequentist describe different ways of interpreting probability.
Frequentist probability
A frequentist interpretation treats probability as the long-run frequency of an outcome over many repeated trials. For example, if a fair coin is flipped many times, the proportion of heads is expected to approach 50%.
Many standard statistical methods, including common hypothesis tests and confidence intervals, are based on frequentist principles.
Bayesian probability
A Bayesian interpretation treats probability as a measure of degree of belief in a hypothesis, given available information. The probability need not come from repeated trials. It can also reflect background knowledge, expert judgment, or other evidence.
Bayesian methods are useful when long-run frequencies are unavailable or when the question concerns a particular event or claim rather than a repeatable experiment.
The two approaches differ in how they interpret probability, but both can be used in statistical reasoning. A Bayesian analysis requires probabilities that represent the prior, the evidence under competing hypotheses, and the evidence overall.
The premises required for a Bayesian update
A basic Bayesian analysis needs three probabilities:
Prior probability of the hypothesis: P(H). This is the probability assigned to the hypothesis before the new evidence is considered.
Likelihood of the evidence if the hypothesis is true: P(E∣H). This measures how expected the evidence would be if the hypothesis were correct.
Likelihood of the evidence if the hypothesis is false: P(E∣¬H). This measures how expected the same evidence would be under the alternative that the hypothesis is false.
Here, H denotes the hypothesis, E denotes the evidence, and ¬H denotes the hypothesis’s complement.
The two likelihoods do not have to add up to 100%. They describe the probability of the same evidence under two different conditions: assuming H and assuming ¬H. They are not complements of each other.
Choosing a prior can be difficult, especially when the hypothesis concerns a unique historical event or an unfamiliar situation. The likelihoods also require careful thought: evidence is useful when it is more expected under one explanation than under its competitors.
Example: chickenpox rash
Suppose the following illustrative values are used:
The prior probability of having chickenpox is 3%, so P(H)=0.03.
A person with chickenpox has a rash with probability 99%, so P(E∣H)=0.99.
A person without chickenpox has a similar rash with probability 0.01%, so P(E∣¬H)=0.0001.
These numbers yield a posterior probability of approximately 99.7% that someone with the rash has chickenpox. The result is high because the rash is very likely under the chickenpox hypothesis and very rare without it.
Logical validity and the limits of conclusions
Bayes’ theorem is mathematically valid: if the probabilities supplied to it are coherent and appropriate, the calculated conclusion follows from them. However, a correct calculation cannot make inaccurate or poorly chosen inputs reliable. The quality of the result depends on the quality of the prior and likelihood estimates.
This distinction resembles the difference between validity and soundness in logic. In a valid argument, the conclusion follows from the premises. But if a premise is false, the argument may fail to establish a true conclusion.
For example:
All men are mortal.
Socrates is a man.
Therefore, Socrates is mortal.
The conclusion follows from the premises. By contrast:
All dogs love food.
Socrates loves food.
Therefore, Socrates is a dog.
This argument is invalid because the premises do not say that only dogs love food. Socrates could be another kind of creature that loves food.
Bayesian reasoning avoids that particular form of invalid inference when its probabilities properly represent the hypothesis, evidence, and alternatives. It does not eliminate uncertainty or guarantee that the chosen probabilities are correct.
Historical development
Thomas Bayes
Thomas Bayes lived from 1702 to 1761. He was a Presbyterian minister with a strong interest in mathematics. His sole mathematical publication during his lifetime defended Newton’s calculus against criticism by George Berkeley. Bayes was later elected to the Royal Society of London, where he shared mathematical ideas.
Bayes discussed his work on probability but did not publish the theorem now associated with his name. After Bayes’s death, his friend Richard Price examined his papers, developed the work further, and published it under Bayes’s name.
One idea associated with Bayes was the use of equal priors when there is no other basis for choosing a prior. In that situation, one might begin with an even chance: 50% for the hypothesis and 50% against it. Critics regarded this as subjective and questioned whether such a choice belonged in mathematics.
Bayes’s reasoning was that repeated updates could allow later evidence to reduce the influence of an initial guess. This can happen when the accumulated evidence is sufficiently informative. Equal priors are not a requirement of all modern Bayesian analyses; they are one possible choice when other information is unavailable.
Richard Price
Price published Bayes’s work after Bayes’s death and sought to apply probability reasoning to the question of God’s existence. This theological use became one of several controversial applications of Bayesian reasoning. Bayes himself had not presented the theorem as a proof of God’s existence.
Pierre-Simon Laplace
Pierre-Simon Laplace was a prominent mathematician, physicist, and astronomer who made substantial contributions to probability and developed work closely related to Bayes’s theorem. He initially pursued similar ideas without knowing of Bayes’s work. After Price sent him Bayes’s paper, Laplace considered it and incorporated aspects of it into his thinking.
Laplace applied probability to practical problems, including court cases. He argued that the possibility of wrongful convictions—especially in cases involving capital punishment—should be taken seriously. His analysis supported opposition to the death penalty because an innocent person could be wrongly convicted and executed.
The attribution of the theorem to Bayes reflects Bayes’s original work, although Laplace played an important role in developing and applying Bayesian methods. Some have therefore argued that Laplace’s contributions deserve greater recognition.
Opposition and changing acceptance
Bayesian methods were not immediately welcomed by many mathematicians or statisticians. Objections often focused on the subjectivity of priors. Even Laplace later moved toward methods based on long-run frequencies.
During the development of modern statistics, frequentist approaches became dominant. Ronald Fisher, a major figure in that tradition, opposed Bayesian methods. As a result, Bayesian reasoning was for a long time less prominent in university statistics than frequentist methods.
The historical pattern illustrates a continuing debate: how much statistical reasoning should depend on prior beliefs, and how those beliefs should be chosen and justified. Bayesian reasoning has since become influential in many fields, particularly where evidence arrives incrementally or long-run frequencies are unavailable.
Applications in history
Authorship of the Federalist Papers
The Federalist Papers were essays written in the late eighteenth century to promote the United States Constitution. Most were attributed to their authors, but twelve papers remained disputed between Alexander Hamilton and James Madison. Both men were reported to have claimed authorship, and their writing styles were similar.
Statistician Frederick Mosteller used word-choice patterns to investigate the disputed papers. He analyzed large collections of text known to have been written by each author: approximately 94,000 words by Hamilton and 114,000 by Madison.
Rather than focusing mainly on subject-specific words such as “war” or “legislator,” Mosteller examined relatively ordinary words that could reveal stylistic habits. For example, the analysis considered the difference between Madison’s use of “whilst” and Hamilton’s use of “while.”
The process can be understood as a sequence of Bayesian updates:
Begin with an initial prior for each author, such as an even chance.
Examine a short portion of the disputed paper.
Update the relative probabilities based on which author’s known word-use patterns better fit that portion.
Continue through the text, updating as further evidence is considered.
The analysis concluded that Madison wrote all twelve disputed papers. Even the least decisive result favored Madison by odds of 240 to 1. This case demonstrates how evidence that is individually small—such as repeated patterns in ordinary word choice—can accumulate into a strong conclusion.
Breaking the Enigma code
During the Second World War, Germany used Enigma machines to encode military messages. The machines substituted letters according to settings that changed regularly. The number of possible settings was enormous—approximately 158,962,555,217,826,360,000—making a simple attempt to test every possibility impractical.
At Bletchley Park in Great Britain, thousands of people worked to break the code. Mathematician Alan Turing helped develop methods and machines that reduced the search needed to identify the daily settings.
Several kinds of evidence and constraints made the search more manageable:
Known message patterns: German weather reports followed a relatively standard form. Previously decoded messages helped reveal likely words and phrases in later reports. Such expected text gave codebreakers a basis for favoring some possible settings over others.
Enigma’s letter constraint: A letter could not be encoded as itself. If a coded message contained a particular letter, that same letter could be ruled out at the corresponding position in the original message.
Mechanical search: Turing’s Bombe machines tested candidate settings against the known patterns and constraints, reducing the need to examine the entire theoretical keyspace.
This process involved reasoning from prior expectations and new evidence, as well as systematic elimination of impossible options. It is often described in Bayesian terms because evidence updated which candidate settings were plausible. The codebreakers’ work was not simply a matter of writing Bayes’s theorem into an equation: it combined linguistic clues, mathematical constraints, and mechanical search.
Once the code was being broken, the Allies also had to conceal that success. If Germany discovered that the messages could be read, it might change its encryption practices. The need to preserve the secret sometimes meant that the Allies could not act openly on every decoded message.
Bayesian reasoning about historical claims
Historian Richard Carrier argues that Bayesian reasoning can clarify historical questions. Historical evidence is often incomplete, biased, or distant from the events it describes. A Bayesian approach asks how strongly a claim was supported before a particular piece of evidence, and how expected that evidence would be if the claim were true compared with alternative explanations.
For instance, whether a legendary conflict such as the Trojan War took place is not necessarily a question that can be answered with absolute certainty. Bayesian analysis offers a way to express degrees of support rather than treating the possibilities as only “it happened” or “it did not happen.”
This approach is controversial because assigning numbers to historical claims can seem subjective. Carrier’s response is that people already make probability judgments when they call a claim plausible, implausible, or well supported. Expressing those judgments numerically does not automatically make them more subjective; it can make assumptions more explicit and open to criticism.
Carrier’s approach can also be applied to everyday claims. If someone says they were struck by lightning five times, a listener may assign the claim a low prior probability. If the person provides medical records supporting the claim, the evidence may raise its probability. The evidence should change the judgment to the extent that it is more expected if the claim is true than if it is false.
Using conservative bounds and ranges
A probability does not always need to be estimated as a single precise number. If someone only knows that a probability is below a certain bound, that bound can still constrain the result of an analysis. This is a form of arguing a fortiori—reasoning from a stronger or more generous assumption to a conclusion that remains valid under a more conservative one.
Similarly, if a prior probability is believed to lie within a range, Bayes’s theorem can be applied at both ends of the range. The resulting posterior estimates provide a corresponding range, rather than pretending that the initial uncertainty has disappeared.
Calibrating degrees of belief
A verbal judgment can be translated into an approximate numerical probability. For example, describing an event as virtually impossible might correspond to a probability near one chance in a million, or 0.0001%. Calling an event very probable might correspond to a probability near 95%.
Such conversions are starting points, not universal definitions. The meaning of a phrase like “extremely unlikely” depends on the context. A low probability for a minor everyday event may be understood differently from the same phrase applied to a rare but consequential event.
In applications to history, experts can debate the priors and likelihoods, explain the evidence behind their choices, and compare alternative analyses. Agreement is not guaranteed, but making assumptions explicit can make disagreements more informative.
Deriving Bayes’ theorem
The theorem follows from the multiplication rule for dependent events. For a hypothesis H and evidence E, the joint probability that both occur can be written in two equivalent ways:
and
Equating the expressions and dividing by P(E) gives:
This form requires the probability of the evidence, P(E). That probability can be expanded by considering the two possibilities: either H is true or H is false. These possibilities partition the outcomes, so the law of total probability gives:
Substituting this expression for P(E) yields the expanded form of Bayes’ theorem:
The terms have distinct roles:
P(H∣E) is the posterior probability: the probability of the hypothesis after observing the evidence.
P(H) is the prior probability of the hypothesis.
P(E∣H) is the likelihood of the evidence if the hypothesis is true.
P(¬H) is the prior probability that the hypothesis is false.
P(E∣¬H) is the likelihood of the evidence if the hypothesis is false.
The denominator combines the probability of obtaining the evidence under both the hypothesis and its alternative. It is the total probability of observing that evidence.
Medical testing and base rates
A medical test can be highly accurate in one sense but still produce many false alarms when the condition being tested for is rare. The key is to distinguish the probability of a positive result given disease from the probability of disease given a positive result. These are not the same quantity.
Suppose:
0.5% of men have prostate cancer, so P(H)=0.005.
The test correctly gives a positive result for 90% of people with prostate cancer, so P(E∣H)=0.90.
The test has a 4% false-positive rate, so P(E∣¬H)=0.04.
Here, H is the hypothesis that a man has prostate cancer, and E is the evidence of a positive test. The posterior is:
Thus, under these illustrative assumptions, the probability of prostate cancer after a positive test is about 10%, not 90%.
The result may seem surprising, but the base rate explains it. Only 0.5% of the population has the disease, while the large group without the disease can still produce false positives. Even a modest false-positive rate applied to that much larger group can yield many positive results that do not indicate disease.
This is why a positive screening result may require follow-up testing or a second opinion. A new test can provide additional evidence and prompt another Bayesian update. If the tests are conditionally independent given whether the patient has the disease, the likelihoods can be combined and repeated positive results can substantially increase the posterior probability. That independence assumption matters: repeated results from the same test may be correlated, so they cannot always be treated as fully separate evidence.
The same base-rate issue is important when interpreting tests for rare diseases, particularly when a diagnosis has major personal or social consequences. A test’s accuracy alone does not determine what a positive result means; the prevalence of the condition and the test’s false-positive rate also matter.

Ask anything
We've read this whole study set, so questions about it get the best answers.