History of Bayes’ Theorem


History of Bayes’ Theorem

Corey
Welcome in. Today we’re exploring Bayes’ theorem: what it says, where it came from, and how people have used it to answer real questions. It’s become much more prominent in recent decades. One author, Sharon Bertsch McGrayne, described a Google search for “Bayesian” growing from fewer than 100,000 results around 2005 or 2006 to more than 11 million in 2010 or 2011; a later search in the talk reached 42 million.

Hope
That rise is striking, especially since Bayesian thinking was often resisted in statistics for a long time. The presenter drew on three books: McGrayne’s The Theory That Would Not Die for the history, Richard Carrier’s Proving History for historical claims, and James V. Stone’s Bayes’ Rule for the mathematics. So we can move from the idea, to its history, to some applications, and finally work through the equation.

Corey
At its simplest, Bayes’ theorem tells us how to update a belief when new information arrives. Alan Krueger described it as a way to decide how tightly to hold a view and how much to revise it in light of evidence. You can use that as a general way of reasoning, even when you aren’t calculating numbers; if you can assign probabilities, the theorem gives you a way to quantify the update.

Hope
So the key isn’t just collecting evidence. It’s letting the evidence change how plausible our explanations seem. McGrayne put it as a commitment to modify our initial ideas whenever new information appears. Keynes captured a similar attitude with the line, “When the facts change, I change my opinion.”

Corey
The theorem is sometimes called “inverse probability” or the “probability of causes,” because we often start with an observed result and ask what might have caused it. Suppose someone has a set of symptoms: the symptoms are evidence, and we want to estimate the probability of a disease that could have produced them. Bayes’ theorem connects that new evidence with what we believed beforehand.

Hope
That’s where the distinction between Bayesian and frequentist probability helps. Frequentist probability treats probability as a long-run frequency: with a fair coin flipped many times, we expect heads about half the time and tails about half the time. Confidence intervals and hypothesis tests are commonly built on frequentist principles.

Corey
Bayesian probability can be used when we don’t have a useful long-run frequency. It treats probability as a degree of belief, informed by background knowledge and whatever evidence we have. That makes Bayesian reasoning useful for one-off questions, but it also means we need to be clear about the assumptions and probabilities we put in.

Hope
That brings us to a useful distinction: the theorem can be logically valid even when people disagree about the inputs. In that sense, it resembles a valid syllogism. If all men are mortal and Socrates is a man, then Socrates is mortal. The conclusion follows from the premises.

Corey
And contrast that with the invalid argument, “All dogs love food; Socrates loves food; therefore Socrates is a dog.” The premises don’t say dogs are the only ones who love food, so that conclusion doesn’t follow. Bayes’ theorem provides a valid way to combine specified probabilities, but it doesn’t magically make bad estimates or unsupported assumptions reliable.

Hope
What probabilities do we need? First, the prior probability of the hypothesis: how plausible it was before the new evidence, given our background knowledge. Second, the likelihood of the evidence if the hypothesis is true. Third, the likelihood of that same evidence if the hypothesis is false, or under a competing explanation.

Corey
Those last two likelihoods are easy to confuse. They are not complements and they don’t have to add up to one, because each is calculated under a different condition: one assumes the hypothesis, and the other assumes it’s false. The prior is often the hardest part to estimate, but all three are needed to work out the updated probability.

Hope
Here’s the talk’s made-up chickenpox example. Suppose the prior chance of getting chickenpox in a year is 3 percent. If someone has chickenpox, suppose the chance of a characteristic rash is 99 percent; if they don’t have chickenpox, suppose the chance of a similar-looking rash is 0.01 percent.

Corey
With those illustrative numbers, Bayes’ theorem gives about a 99.7 percent chance of chickenpox for someone who has that rash. The example shows why the prior matters alongside how strongly the evidence fits the explanation. And these are invented numbers for teaching the method, not medical statistics.

Hope
Now for the history. Thomas Bayes lived from 1702 to 1761 and was a Presbyterian minister with a strong interest in mathematics. He published just one mathematical work during his lifetime, a defense of Newton’s calculus against George Berkeley’s criticism. Supporters of Newton then elected him to the Royal Society of London.

Corey
Bayes discussed his ideas with the Society, but he never published the theorem himself. After Bayes died, his friend Richard Price found the relevant papers, developed the argument further, and published it under Bayes’ name. The portrait often shown as Bayes may not actually depict him, so even that familiar image comes with some uncertainty.

Hope
One controversial idea associated with Bayes was using equal priors when you don’t know how to choose a starting probability: begin with a 50–50 guess. Critics thought that was too subjective to belong in mathematics. Bayes’ reasoning was that a prior could be updated repeatedly as evidence came in, so an initially rough guess might matter less as more information accumulated.

Corey
Price also wanted to apply the reasoning to the existence of God, although that wasn’t Bayes’ own application in the paper. That topic has continued to attract disagreement: some have argued that Bayesian reasoning supports belief in God, while others dispute the argument. The important point here is that a valid method doesn’t settle a debate unless people also agree about the probabilities and evidence.

Hope
Pierre-Simon Laplace, a mathematician, physicist, and astronomer, later did extensive work on Bayes’ theorem. Some people argue that his contributions were so significant that the theorem might better bear his name. He encountered Bayes’ work after Price sent it to him, and incorporated ideas from it into his own thinking.

Corey
Laplace applied the method to court cases, including arguments about the risk of wrongly convicting someone. He used that concern to argue against capital punishment, because an innocent person could be convicted and executed. The talk notes that he faced criticism, and that later in his life he moved toward frequentist methods.

Hope
Bayesian methods then remained unpopular in much of statistics. Ronald Fisher, a major proponent of frequentist probability and a figure behind methods taught in introductory statistics, opposed Bayes’ theorem. That resistance helps explain why the method was not widely taught in universities for a long time, despite some striking applications.

Corey
One of those applications involved The Federalist Papers. James Madison, Alexander Hamilton, and John Jay wrote essays promoting the Constitution, initially without signing their names. The authorship of most papers was later established, but twelve remained disputed between Madison and Hamilton, who had similar writing styles and both reportedly claimed them.

Hope
Statistician Frederick Mosteller approached the problem using word choice. He had tens of thousands of words known to be written by each man—94,000 from Hamilton and 114,000 from Madison—and focused on common words such as “in,” “of,” and “upon,” rather than topic-dependent words like “war” or “executive.” One useful contrast was Madison’s “whilst” and Hamilton’s “while.”

Corey
Mosteller began each disputed paper with equal odds for Madison and Hamilton, then updated the probabilities as he examined successive 30-word snippets. The work was painstaking: his tools included a slide rule and adding machine, and he eventually used a computer programmed in Fortran, with more than a hundred Harvard helpers entering data. His conclusion was that Madison wrote all twelve disputed papers; even the least decisive result favored Madison by 240 to one.

Hope
That’s a vivid case of a mathematical method addressing a concrete historical question. The process didn’t rely on one dramatic word; it accumulated evidence about patterns of word use and repeatedly updated the authorship probabilities. It also shows how the same method can be applied when the evidence is textual rather than medical.

Corey
The next example is the effort to break Germany’s Enigma code during World War II. Enigma machines scrambled messages, and the huge number of possible settings—about 158 quintillion, 962 quadrillion, 555 trillion, 217 billion, 826 million, 360 thousand—made simply checking every setting impractical. Alan Turing and the codebreakers at Bletchley Park needed ways to narrow the search.

Hope
The German settings changed daily, and code sheets told users how to configure the machines. Allied codebreakers sometimes obtained those sheets, but they were only useful for a limited time; the Germans used soluble ink so that water could destroy them. At Bletchley Park, thousands of people worked on the challenge, including crossword solvers, linguists, and eventually mathematicians such as Turing.

Corey
A useful clue came from German weather reports, which followed a fairly standard format. When codebreakers had learned some message contents from captured sheets, they could use familiar words and patterns as likely targets in the search. Another constraint came from Enigma’s flaw: a letter could never be encoded as itself, ruling out many possible settings.

Hope
Turing combined those clues and other information to reduce the search dramatically, though the machines still had to check many combinations. His approach, described in the talk as “Turingery,” used an initial 50–50 assumption about a setting and updated it in light of evidence. The electromechanical devices called bombes carried out much of the checking.

Corey
The talk describes the team as eventually being able to break the code each day in under twenty minutes using the machines. But success created a second problem: they had to keep the breakthrough secret, or Germany might change the system. That meant Allied forces sometimes had to avoid acting on information they had decoded, so they wouldn’t reveal that the code had been broken.

Hope
And because the work was classified for decades, the role of the codebreakers—and the Bayesian style of reasoning involved—didn’t receive broad recognition until much later. It’s another example of evidence being used to update a search, although the historical details are more complex than a single equation.

Corey
The third application is history itself. Richard Carrier argues that historical claims can be analyzed using Bayes’ theorem, especially when documents are incomplete or biased. For example, a source written by the winning side of a war may deserve a different assessment from one written by someone with no such stake.

Hope
Consider the Trojan War: it appears in the Iliad and the Odyssey, but whether it happened as described is uncertain. Carrier’s approach asks whether we can make our assumptions explicit and estimate how likely the evidence would be if the event happened versus if it didn’t. Critics object that such estimates are subjective, while Carrier replies that people already make judgments about plausibility and explanatory strength; numbers make those judgments more explicit.

Corey
The same logic appears in an everyday claim. If a friend says they’ve been struck by lightning five times, you probably begin with a very low prior probability. If they then show medical records, that evidence should raise the probability, though you might still consider whether the records really support the claim. Bayesian thinking doesn’t require instantly accepting it; it requires updating in the direction and degree warranted by the evidence.

Hope
Carrier also suggests that we can sometimes reason without pretending to know an exact number. “Arguing a fortiori,” or arguing from the stronger case, means using a bound we’re confident about. If experts agree that the chance of a meteor on the scale of the one that destroyed the dinosaurs hitting within the next year is less than one in a hundred, we can use that upper limit rather than claim to know a precise probability.

Corey
Ranges can work similarly. If you think a claim’s prior probability lies somewhere between 20 and 50 percent, you can run the calculation at both ends and see the corresponding range of updated probabilities. Carrier offers a scale for translating verbal judgments—such as “virtually impossible” or “very probable”—into numerical starting points, but he doesn’t present those numbers as universal or final.

Hope
Context matters. Calling a car accident “extremely improbable” doesn’t automatically mean a one-in-a-hundred chance; that interpretation could be wildly different from what you mean in a particular situation. For disputed historical claims, Carrier proposes that experts make their assumptions explicit, debate them, and assess which arguments are better supported. The estimates remain open to disagreement, so the method organizes the reasoning rather than erasing uncertainty.

Corey
Let’s derive the theorem. Let H mean the hypothesis is true and E mean the evidence occurs. The multiplication rule says the probability of H and E together equals the probability of E multiplied by the probability of H given E. It also equals the probability of H multiplied by the probability of E given H.

Hope
Set those two expressions equal, then divide by the probability of E. That gives the basic form: the probability of H given E equals the probability of H times the probability of E given H, divided by the probability of E. In words, posterior equals prior times likelihood, divided by the probability of the evidence.

Corey
Often, we need to expand that denominator. Evidence E can occur if H is true, or if H is false. Those two routes add up: probability of H times probability of E given H, plus probability of not-H times probability of E given not-H. Substituting that into the denominator gives the expanded form of Bayes’ theorem.

Hope
So the full expression is: probability of H given E equals the prior probability of H times the likelihood of E under H, divided by that same quantity plus the prior probability of not-H times the likelihood of E under not-H. The denominator accounts for both ways the evidence could have arisen. That’s why the three inputs—the prior and the two likelihoods—are enough to calculate the updated probability.

Corey
Let’s use the talk’s prostate cancer example. Suppose 0.5 percent of men have prostate cancer, a test detects it 90 percent of the time when it is present, and the false-positive rate is 4 percent. We want the probability of cancer given a positive result—not simply the probability that the test detects cancer when cancer is present.

Hope
Using decimals, the prior is 0.005, the positive-test likelihood for someone with cancer is 0.90, and the positive-test likelihood for someone without cancer is 0.04. The calculation is 0.005 times 0.90, divided by that quantity plus 0.995 times 0.04. The result is about 10 percent.

Corey
That may feel surprising because the test catches most cases when cancer is there. But only 0.5 percent of the population starts with cancer in this example, while 99.5 percent does not. Four percent of that much larger group will still test positive, so false positives can make up a large share of all positive results.

Hope
That’s the base-rate lesson: a test’s accuracy alone doesn’t tell you the chance that a person with a positive result has the condition. The prior prevalence matters. The talk connects this to concerns about testing for diseases with stigma attached, because a positive result can have serious consequences even when the underlying condition is uncommon.

Corey
And if there’s another independent piece of relevant evidence, Bayes’ theorem can be applied again. The updated 10 percent becomes the new prior, and the next test result updates it further. In the talk’s illustration, repeated positive results could bring the probability close to 80 percent after a second test and around 99 percent after a third, though those figures depend on the example’s assumptions.

Hope
So the whole episode comes back to a disciplined habit: begin with what you thought before, ask how well the evidence fits that explanation and its alternatives, and update rather than ignore what you’ve learned. Bayes’ theorem makes that process explicit and, when the inputs are defensible, gives it a precise mathematical form. The debate is often not about whether the calculation follows, but about whether the probabilities we started with deserve our confidence.

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