Skip to content
GabineteTools for thinking

No. 2195Anticipating risks and timelines

Bayes' theorem

Thomas Bayes (published post… · 1763

Lots of white pebbles with few vermilion stones; a brass sieve catches almost all the red, but even whiter.

The table / Model card · No. 2195 · Anticipating risks and timelines

Bayes' theorem

New evidence should shift your probability in proportion to how much more likely it is if the hypothesis is true.

View dossier · 5 sheets

The essentials

What it is

Lots of white pebbles with few vermilion stones; two brass sieves filter the mixture and on the right there is a bowl where vermilion predominates.

What it solves

How do you move from a prior belief to a calibrated updated belief when evidence is imperfect, and avoid ignoring base rates?

When to use it

Use it for fraud and risk screening, medical or quality testing, interpreting experiments and analytics, forecasting with new information, due diligence updates, and any decision where evidence is noisy and a base rate exists.

Where it comes from

The essay 'An Essay towards solving a Problem in the Doctrine of Chances' was published in Philosophical Transactions of the Royal Society in 1763, credited to the late Rev. Mr. Bayes, so it appeared after his death. Others, especially Laplace, later generalised and popularised the method. The theorem became central to statistics and machine learning in the late twentieth century.

Thomas Bayes · 1763

How it works

The posterior probability of a hypothesis H given evidence E equals P(E given H) times P(H), divided by P(E). The prior P(H) is the base rate before the evidence. The likelihood ratio, P(E given H) over P(E given not H), measures how diagnostic the evidence is. In odds form, posterior odds equal prior odds times the likelihood ratio, which makes sequential updating easy: multiply by each new ratio. A rare event with a modest false positive rate still has a low posterior, because false positives from the large non-event group outnumber the true positives.

You need

A prior probability or base rate, the probability of the evidence given each hypothesis (hit rate and false positive rate).

You get

A posterior probability, or posterior odds, that can serve as the next prior.

Case

Government Code and Cypher School (Bletchley Park) · 1941

Turing measures evidence in decibans

During World War II, Alan Turing wrote for the Government Code and Cypher School a paper on how to apply probability to cryptography. His central tool was the "factor principle", which he identifies with Bayes' theorem: each letter of the encrypted text multiplies the odds in favor of a candidate key.

Turing turned these factors into logarithms with its own unit, the deciban: it is enough to consult a table of media decibans per letter and add, calculation that with a transparent template "can be done very quickly".

Source: Alan M. Turing (ed. tipográfica de Ian Taylor) (2015) (opens in a new tab) ↗ · View all 4 cases ↓

Caution

When to avoid it

  • Avoid mechanical use when you cannot estimate a defensible prior or likelihood, when the data are tiny and the prior dominates, or when evidence items are not independent and are counted twice.

Common mistakes

  • Ignoring the base rate.
  • Confusing P(E given H) with P(H given E).
  • Double counting dependent evidence.
  • Using an unreasoned prior of 50%.
  • Treating the posterior as certainty.
  • Updating on selected or biased evidence.

Known weaknesses

  • Results depend on priors that can be subjective.
  • Needs reliable likelihood estimates.
  • Easy to double count dependent evidence.
  • Calculation is counterintuitive without natural frequencies.

How to apply it in 6 steps

How to apply it

Bayes' theorem

6 steps

Use the arrow keys to move between steps, Home and End for the first and last, and Enter to fold or unfold the booklet.

View all 6 steps
  1. State the hypothesis and prior

    Write what you are testing and the base rate before the evidence.

  2. Estimate the likelihoods

    Find the chance of the evidence if the hypothesis is true and if it is false.

  3. Compute the posterior

    Apply Bayes' formula or multiply prior odds by the likelihood ratio.

  4. Check the numbers

    Use natural frequencies, for example out of 1,000 cases, to sense-check.

  5. Update again with new evidence

    Use the posterior as the new prior, only for independent evidence.

  6. Decide

    Compare the posterior with the action threshold set by costs of errors.

Where it has been used

4 documented cases, each linked to the step it illustrates. The photos are reconstructions of the cases.

Fig. The square table or plane ABCD and the figure BghikmA

y = E x^p r^qBAAB →ghikmo
Redrawn facsimile from Bayes and Price (1763), ‘An Essay towardss solving a Problem in the Doctrine of Chances’, Philosophical Transactions 53, p. 385; literal labels; redrawn layout. Works of 1763 in the public domain; Internet Archive scan. View source (opens in a new tab) ↗
  1. State the hypothesis and prior: 1 case
  2. Estimate the likelihoods: 1 case
  3. Compute the posterior: no cases
  4. Check the numbers: no cases
  5. Update again with new evidence: 1 case
  6. Decide: 1 case
  • Cover of an oceanographic vessel: a camera towed down to the water next to a grid chart.
    Nine Scenarios to Find ScorpionArmada de Estados Unidos · 1968
    Step 1: State the hypothesis and prior
  • Wooden table in a war hut with square sheets, pencils and a lamp; an analyst with his back.
    Turing measures evidence in decibansGovernment Code and Cypher School (Bletchley Park) · 1941
    Step 2: Estimate the likelihoods
  • Control room of a search vessel: sonar screens and a back tech pointing to a point.
    Failed searches were also dataBEA (Francia) con Metron · 2011
    Step 5: Update again with new evidence
  • Unlabelled vial trays in a cold chamber with vaho; a back technique with gloves.
    A vaccine judged with a bayesian thresholdPfizer y BioNTech · 2020
    Step 6: Decide

Hover over a photo to highlight its thread. Open it to read the case.

Which decisions it helps with

Decision profile

A phased process to understand what is happening on any subject.

Keyboard: Tab to the sheet, use the arrows to explore the assessments and their questions, and press Escape to close the note.

IIdentity

Type of tool
Phased process
Decision stage
Understand what’s happeningalso: prepare for what might happen (31 %)
What it applies to
Any subjectGeneral technique: independent of the subject
Discipline
Psychology and decision science
What it produces
A sequence of phases completed in order

IIIResources required

  • TimeOne hour or less
  • PeopleOne person working alone
  • DataBetween “data collected for the purpose” and “quantitative analysis”
  • ExpertiseAnyone who has read a page of instructions
  • Time horizonDays or weeks
  • ScopeA unit or department
  • FrequencyOccasionally
The team’s own knowledge is enough

IITen axes

The dot shows which end the model favours. A hollow dot means no clear preference.

  • DirectionExecution
  • Top-downmixedBottom-up
  • PeopleProcesses
  • Generate optionsNarrow down options
  • Step-by-step analysisIntuition and experience
  • A strict sequence of stepsA flexible framework
  • Protect what we haveTake a risk
  • Improve what we haveFundamental change
  • Inside the organisationOutside the organisation
  • Understand firstAct now

IVUseful when

  • We may be fooling ourselves
How was this profile calculated?

An automated system reads each model card and answers the same questions for every model. This profile has answers for 77 of 77. No answers are entered by hand.

A very high probability counts as “yes” and a very low one as “no”. Intermediate answers are hidden.

On the axes, mixed means the model favours neither end.

How it works →

PRO dossier

In depth: 5 sheets with sources

A good test can give a bad conclusion if you ignore the base rate; the file teaches to count cases, chain evidence and decide with thresholds.

Dossier PROBayesian updateBayes and Price · 1763 · BAY-PRO

PRO 1 · Diagram · 1/5

Nine out of ten alerts are false even if the detector is 90 % correct

Counted in cases and not in percentages, the theorem is seen only: the false positives of the large group drown the true ones of the small group.

10,000 transactions

  • 50 frauds (base rate 0.5 %)
    • 45 marked (90%)
    • 5 escape
  • 9,950 legitimate
    • 398 marked (4 %)
    • 9,552 pass
  • 443 alerts in total
    • 45 are fraud: 10 %
    • Probability rises from a prior of 0.5% to 10%
  • Second signal (×8 in fraud)
    • Odds 0.11 → 0.90
    • Posterior probability ≈ 47%

In the form of odds the rule is a multiplication: odds a posteriori = previous odds × ratio of likelihoods. Each independent evidence adds a factor, and today's later is tomorrow's preview.

The decision does not exceed 47 %: it compares with a threshold set by the cost of each error. Blocking with two signals and confirming by SMS with one is a policy, not a calculation.

Illustrative case of the database (Kestrel Bank, fictitious). Recalculated figures on 10,000 cases.

Use the arrow keys to move between sheets. Press Enter to bring it to the front.

Dossier closed. Press the clasp to open it and read the first sheet.

A good test can give a bad conclusion if you ignore the base rate; the file teaches to count cases, chain evidence and decide with thresholds.

  1. PRO 1 · Diagram, 1/5: Nine out of ten alerts are false even if the detector is 90 % correct

    Counted in cases and not in percentages, the theorem is seen only: the false positives of the large group drown the true ones of the small group.

    10,000 transactions

    • 50 frauds (base rate 0.5 %)
      • 45 marked (90%)
      • 5 escape
    • 9,950 legitimate
      • 398 marked (4 %)
      • 9,552 pass
    • 443 alerts in total
      • 45 are fraud: 10 %
      • Probability rises from a prior of 0.5% to 10%
    • Second signal (×8 in fraud)
      • Odds 0.11 → 0.90
      • Posterior probability ≈ 47%

    In the form of odds the rule is a multiplication: odds a posteriori = previous odds × ratio of likelihoods. Each independent evidence adds a factor, and today's later is tomorrow's preview.

    The decision does not exceed 47 %: it compares with a threshold set by the cost of each error. Blocking with two signals and confirming by SMS with one is a policy, not a calculation.

    Illustrative case of the database (Kestrel Bank, fictitious). Recalculated figures on 10,000 cases.

  2. PRO 2 · Method, 2/5: The calculation is easy; the difficult is the previous, the independence and the threshold

    Who knows how to apply Bayes devotes almost all the time to four questions before multiplying anything.

    ElementExpert's questionTypical error
    PreviousWhat is the base rate in a population like this?Start at 50% by default
    VerisimilitudeHow often would you see this if the hypothesis were false?Confusing P(E|H) with P(H|E)
    RatioHow many times more likely is the signal if H is true?Treating a likelihood ratio of approximately 1 as evidence
    IndependenceIs this signal new or repeat one I already counted?Count twice the same source
    StagesWhat if a model assumption is false?A single foreword when there are doubts
    ThresholdFrom what probability do you compensate to act?Decide without cost of mistakes

    Sense check: always passes the result to natural frequencies ("out of every 1,000 cases..."). Gigerenzer and Hoffrage showed that with that format many more people reason well without previous training.

    If there are serious doubts about an assumption, calculate the posterior with and without it. Seeing where the two maps are separated is often the most informative of the analysis.

    Own writing from the steps of the tab and from the sources cited.

  3. PRO 3 · Case, 3/5: Two years without finding the AF 447; with a Bayesian map, one week

    The Rio-Paris flight fell to the Atlantic on June 1, 2009 with 228 people. After two failed campaigns, the French BEA commissioned Metron with a map of probability that incorporated everything known, including unsuccessful searches.

    1. Previous40 nautical mile circle: three heavy scenarios 0.35 / 0.35 / 0.30
    2. Failed searchesSurface, acoustic beacons and sonar 2009-2010 subtract probability
    3. Key doubtWhat if the beacons didn't work? Alternative Posterior
    4. 2011It starts at the center of the distribution
    5. One weekRemains in high probability area of map without beacons

    The BEA tests confirmed after the recovered beacon was not issued with a full battery. That is why the 2009 acoustic search, which had passed over the plane, heard nothing.

    The authors conclude that not having used a Bayesian approach in 2010 delayed the finding for up to a year, and admit that it would have been better to model both the failure of the beacons and the position of the plane.

    Data and weights taken from the article by Stone, Keller, Kratzke and Strumpfer (2014).

  4. PRO 4 · Origin, 4/5: Price published it, Laplace generalized it, and the war rescued it.

    Bayes didn't publish his result. His friend Richard Price edited the manuscript for two years and had it read in the Royal Society in December 1763.

    YearWhoWhat does it bring?
    1763Bayes and PriceInfer a parameter from the evidence
    1774LaplaceThe general rule, not knowing Bayes
    1812LaplaceAnalytical Theory of Probabilities
    s. XXFisher and FrequentistsRejection of the previous subjective
    1940-1970Turing, Koopman, U.S. Navy United StatesCodes and search for submarines
    1995Gelman and colleaguesModern Applied Bayesian Statistics

    McGrayne argues that for justice it should be called the Bayes-Price rule: Price corrected it, completed it, and found use for it. Stigler came to propose that the discoverer could be Nicholas Saunderson.

    It is confused with reasoning by dry base rate, with the "theory of search" (an application) and Bayesianism as a philosophy of science. The rule of updating is undisputed arithmetic; the discussion is where the previous ones come from.

  5. PRO 5 · Critique, 5/5: The rule is exact; the numbers you put in, no.

    No one disputes the theorem. Objections go against how it is used: priors chosen for convenience, models that explain everything and a precision that does not exist.

    1. 01Preliminaries and verisimilitudes are often judgments. In AF 447 the weights of the scenarios were subjective decisions declared.
    2. 02Gelman, Bayesian, picks up the two great objections: using it as an automatic engine of inference and its subjective aspect.
    3. 03Bowers and Davis: in psychology, adjusting priors and verisimilitudes a posteriori makes Bayesian models almost unfalsifiable.
    4. 04Double-counting dependent evidence inflates the posterior without warning.
    5. 05The posterior does not decide: without threshold and without cost of errors, 47% does not say what to do.

    Defensible use: explicit and discussed previouss, various scenarios when there are doubts, frequency checking and an agreed action threshold before seeing the result.

Thinking space

Anticipating risks and timelines

Use PERT, Monte Carlo simulations, premortems and risk registers to estimate, simulate and record what could go wrong.

Membership: 16 % · also “Diagnosing processes” (16 %)

View in the atlas of spaces →

Each point is a model. Distance reflects answers to the decision questions. Light points share this model’s space.

Similar models

Verified sources

Use the arrow keys to move between sources.

Original work

  1. Price), T. B. (. b. R. (1763). An Essay towards Solving a Problem in the Doctrine of Chances. Philosophical Transactions of the Royal Society of London.Original essay; Crossref confirms the title and 'By the late Rev. Mr. Bayes, F. R. S.' in the title string.View source: An Essay towards Solving a Problem in the Doctrine of Chances (opens in a new tab) ↗

Key development

  1. Stigler, S. M. (1986). Laplace's 1774 Memoir on Inverse Probability. Statistical Science, 1(3), 359-363.Laplace formulates the rule in 1774 independently.View source: Laplace's 1774 Memoir on Inverse Probability (opens in a new tab) ↗
  2. Gelman, A., Carlin, J. B., Stern, H. S., Rubin, D. B. and others (1995). Bayesian Data Analysis. book.Standard textbook on applied Bayesian methods; Open Library lists the authors and first publication 1995. I saw the catalogue record only.View source: Bayesian Data Analysis (opens in a new tab) ↗
  3. Gigerenzer, G. and Hoffrage, U. (1995). How to improve Bayesian reasoning without instruction: Frequency formats. Psychological Review, 102(4), 684-704.Natural frequencies improve Bayesian reasoning.View source: How to improve Bayesian reasoning without instruction: Frequency formats (opens in a new tab) ↗
  4. Stone, L. D., Keller, C. M., Kratzke, T. M. and Strumpfer, J. P. (2014). Search for the Wreckage of Air France Flight AF 447. Statistical Science, 29(1), 69-80.Case: later Bayesian who located the remains of AF 447 in a week after two years of searching.View source: Search for the Wreckage of Air France Flight AF 447 (opens in a new tab) ↗

Critique

  1. Gelman, A. (2008). Objections to Bayesian statistics. Bayesian Analysis, 3(3), 445-449.Background objections: automatic inference and subjectivity.View source: Objections to Bayesian statistics (opens in a new tab) ↗
  2. Bowers, J. S. and Davis, C. J. (2012). Bayesian just-so stories in psychology and neuroscience. Psychological Bulletin, 138(3), 389-414.Flexibility of priors and verisimilitudes makes many Bayesian models indelible.View source: Bayesian just-so stories in psychology and neuroscience (opens in a new tab) ↗

Practical guide

  1. McGrayne, S. B. (2011). The Theory That Would Not Die. book.Popular history of Bayes' rule and its applications; Open Library confirms title, author and 2011. I saw the catalogue record only.View source: The Theory That Would Not Die (opens in a new tab) ↗