liveBook · Manning

Bayes' theorem

Bayes' theorem relates conditional probabilities, expressing a posterior probability in terms of a prior probability, a likelihood, and the evidence.

How 3 Manning books explain it

Grokking Bayes

Bayes' theorem relates conditional probabilities, allowing a posterior probability to be calculated from a prior probability and likelihood.

How it is used
Updates probabilities assigned to competing hypotheses when new data arrive.
How deep it goes
Works through discrete-hypothesis calculations and NumPy normalization; defers continuous distributions.
Examples
Uses dark clouds, a rare-disease test, and a tea-versus-coffee survey to make updates concrete.
What you can do after
Build it from scratch for discrete hypotheses, then calculate a survey posterior with NumPy and SciPy.

Read how Grokking Bayes explains Bayes' theorem →

Timeless Algorithms, The Foundational Ideas

Bayes' theorem calculates a conditional probability from the reverse conditional probability and the relevant marginal probabilities.

How it is used
Uses Bayes' theorem to reason from observed evidence to hypotheses and revise beliefs as evidence accumulates.
How deep it goes
Defines prior, likelihood, marginal probability, and posterior, then works through a numerical diagnostic calculation.
Examples
Illustrates the theorem with a rare-disease test and probability distributions over neural-network parameters.
What you can do after
Enables readers to evaluate a positive test by calculating a posterior probability and recognizing its diagnostic limits.

Read how Timeless Algorithms, The Foundational Ideas explains Bayes' theorem →

Fabulous Adventures in Data Structures and Algorithms

Bayes' theorem is a probability rule that computes a conditional probability by combining prior probabilities with the likelihood of observed evidence.

How it is used
Updates beliefs about causes from observed effects and supports statistical models represented as generic probability types.
How deep it goes
Develops the formula through a survey table and maps each probability term to joint-distribution, filtering, and projection operations.
Examples
Uses a 10,000-person cold-and-sneeze survey and a C# categorical-distribution example producing posterior weights.
What you can do after
Build it from scratch as a generic C# posterior function using joint distributions, filters, and projections.

Read how Fabulous Adventures in Data Structures and Algorithms explains Bayes' theorem →

What to know first

Related concepts

Questions about Bayes' theorem

What is Bayes' theorem?

Bayes' theorem relates conditional probabilities, expressing a posterior probability in terms of a prior probability, a likelihood, and the evidence.

Which Manning books explain Bayes' theorem?

Grokking Bayes, Timeless Algorithms, The Foundational Ideas and Fabulous Adventures in Data Structures and Algorithms.

What should I know before learning Bayes' theorem?

Manning books that teach Bayes' theorem usually introduce hypothesis first.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.