|
recaplica
Bayes Theorem Formula: What It Is and How It Works |
| © 2026 Recaplica · recaplica.com — All rights reserved |
Bayes Theorem Formula: What It Is and How It WorksWhat to print Page numbers appear when printing with default margins. SlidesChoose a cut Flash10 slidesThe essential thread, to present in classFull14 slidesEvery chapter and the deeper detailBoth come with speaker notes. In 30 seconds quick readBayes theorem connects two opposite conditional probabilities: the chance of observing some evidence if a hypothesis were true, and the chance of that hypothesis being true given the evidence actually observed. It starts from conditional probability, the ratio between the chance that two events happen together and the chance of the second one on its own, and turns it around. It matters whenever you know P(evidence|cause) and want P(cause|evidence), which is exactly the case with diagnostic tests, where a positive result does not automatically mean being sick. The formula is P(A|B) = P(B|A)·P(A)/P(B). Key Points
Key figures
Deep DiveConditional probability answers a precise question: how likely does an event become once we know that another one has already happened? It is written P(A|B), where the vertical bar reads “given that”, and it is found by dividing the probability that A and B both occur by the probability of B taken on its own. The idea comes up as soon as you learn how to calculate probability, and it often leans on counting rules from combinatorics, because counting the favorable and the possible outcomes is the first step toward any conditional probability. Bayes theorem exists to flip that conditional probability around. According to the Stanford Encyclopedia of Philosophy, the theorem starts from how likely a given piece of evidence is if a hypothesis were true — P(evidence|hypothesis) — and arrives at the opposite probability: how likely the hypothesis is, given that evidence — P(hypothesis|evidence). These are two different conditional probabilities: knowing how likely a symptom is if someone is sick does not automatically tell you how likely someone is to be sick if they have that symptom. The formula, in the notation used by Wikipedia, is: P(A|B) = P(B|A) · P(A) / P(B) Here A is the hypothesis being tested and B is the evidence observed. Using it takes three ingredients: the known conditional probability P(B|A), the “starting” probability of the hypothesis P(A), and the overall probability of the observed evidence P(B). Conditional probability in a diagnostic testThe most common way to grasp Bayes theorem is through a medical test. A real application, cited by the Stanford Encyclopedia of Philosophy, is screening: a test’s sensitivity and specificity — its rates of true positives and true negatives — combined with how common the disease is in the tested population, let you work out how likely someone really is to be sick when the test comes back positive. The same logic runs through plenty of problems in probability and statistics where an observed result has to be traced back to a cause.
A positive result instinctively sounds like near-certain illness. The test is run on a huge number of healthy people — 999 out of 1,000 — so even a small error margin, applied to such a large group, ends up producing more wrong flags than real cases. It is what happens when a disease is rare in the population being tested, and working that out with real numbers rather than gut feeling is exactly what Bayes theorem is for. A bit of history, with one uncertain dateAccording to the Stanford Encyclopedia of Philosophy, the English minister Thomas Bayes was the first to grasp the theorem’s importance, in an essay published after his death titled “An Essay Toward Solving a Problem in the Doctrine of Chances,” dated 1764. Wikipedia instead gives 1763 as the publication year, with the title spelled “Towards” instead of “Toward”: the two sources disagree on the publication year. Bayes never published the work during his life. After his death, his family passed the papers to his friend Richard Price, a minister and philosopher with a solid grounding in mathematics. Price spent two years editing the unpublished manuscript before it was read to the Royal Society on 23 December 1763. A few years later, in 1774, the French mathematician Pierre-Simon Laplace arrived at the same result on his own, unaware of Bayes’s earlier essay. Readers who want to review the basics of number sets that probability and statistics build on will find a good complementary starting point there. Slide deckSlides ready to download and make your own in PowerPoint or Google Slides, with speaker notes. Pick the Flash cut or the Full one. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Common myths
Mind mapDrag the background to move around and the nodes to reposition them; use − and + to collapse and expand branches.
Quiz: test yourselfAnswer the questions to check what you have learned: you get instant feedback and a short explanation. Grade 0/10 0/5
FlashcardsTap the card to flip it and check whether you remember the answer, then move to the next one. 1 / 8 Explain it in your own wordsThe ultimate test: if you can explain it in simple words, you've truly understood it. Write your explanation, then compare it with the Recap. Your explanation is saved only on this device.
Frequently asked questionsWhat is Bayes theorem in simple terms?It is the formula that flips a conditional probability around: if you know the probability of observing a certain piece of evidence assuming a hypothesis is true, the theorem calculates the opposite probability, that of the hypothesis given the evidence actually observed. What is the difference between conditional probability and Bayes theorem?Conditional probability is the underlying concept: the probability of an event given that another has already happened. Bayes theorem is the tool that uses that concept to move from a known conditional probability to its opposite. Why doesn't a positive medical test mean you're definitely sick?Because that outcome also depends on how many healthy people get flagged by mistake: a rare enough disease lets even a low error rate produce more false alarms than real cases, as in the example of 1,000 people with a 0.1% incidence. Who came up with Bayes theorem?The English minister Thomas Bayes was the first to work out its importance, in an essay published after his death thanks to his friend Richard Price. The French mathematician Pierre-Simon Laplace reached the same result independently a few years later. What is Bayes theorem used for in practice?It is used whenever you want to estimate the real probability of a cause from an observed effect: medical screening, where it combines a test's sensitivity and specificity with disease prevalence, is a real application cited by the Stanford Encyclopedia of Philosophy. Every Recap goes through an independent review before publication. |












