Mathematics · live now

Bayes' theorem and evidence

Reverse a conditional probability and update it on evidence. Start with Bayes' theorem and its prior, likelihood and posterior, and find its denominator with the law of total probability. Then weigh evidence with the likelihood ratio, update odds with the odds form of Bayes' rule and the log-odds scale, and combine several pieces of evidence.

No account needed to read a lesson · 30-day money-back guarantee

See the full learning path

7

lessons

67

practice questions

70

prerequisite lessons

See it taught

2 of the 7 lessons here are free to preview - the whole explanation and worked example, with no account and no email.

Live, not a screenshot

Lesson 01 · Bayes' theorem

Ω
Aces (4)
Red (26)
2
2
24
24

Step 1: The four regions

Each region of Ω is labelled with its number of cards: aces that are not red 2, red aces 2, red cards that are not aces 24, and neither 24. So there are 4 aces and 26 red cards.

Both conditional probabilities use the same overlap, the 2 red aces.

Step 2: Given an ace

We learn that the card is an ace, so every card outside the aces is ruled out, and the 4 aces become the whole. The overlap is half of it:

P(red∣ace)=22+2=24=12

Step 3: Given red

Now we learn instead that the card is red, so every card outside red is ruled out, and the 26 red cards become the whole. The same overlap is only a small part of it:

P(ace∣red)=22+24=226=113

Step 4: Same overlap, different wholes

Both conditional probabilities divide the same overlap, 2 cards, by the number of cards in the event we are given. The overlap is half of the small aces circle but only a small part of the large red circle.

So the conditional probability given the rarer event, ace, is the larger.

The diagram from the lesson itself, running live.

The 7 lessons

The 7 lessons in this unit. Expand any one to see what it covers. Each unlocks when its own prerequisites are passed.

01

Bayes' theorem

Preview

12 questions

Learn which of two conditional probabilities is larger, how Bayes' rule finds a conditional probability from the reverse one, and what the prior, likelihood and posterior are.

Covers

Which is larger, P(A∣B)P(A \mid B) or P(B∣A)P(B \mid A)?

Bayes' rule

Prior, likelihood and posterior

Preview this lesson - no account needed

02

Bayes with total probability

8 questions

Learn how to apply Bayes' rule when its denominator is not given, finding it with the law of total probability over a partition.

Covers

Two groups

A partition

03

Likelihoods and the likelihood ratio

9 questions

Learn what the likelihood of a hypothesis measures, and use the likelihood ratio to judge whether evidence favours it or counts against it.

Covers

Hypotheses, evidence and likelihoods

The likelihood ratio

04

Odds

9 questions

Learn how to turn a probability into odds, read odds written as "a to b", find the odds that an event does not happen, and convert odds back into a probability.

Covers

Odds from a probability

Probability from odds

05

The odds form of Bayes' rule

Preview

8 questions

Learn how to update the odds of a hypothesis by multiplying them by the likelihood ratio, and turn the updated odds into a probability.

Covers

The odds form of Bayes' rule

From posterior odds to a posterior probability

Preview this lesson - no account needed

06

The log-odds scale

12 questions

Learn how to find the log-odds of an event from its odds, what the sign and size of a log-odds value say about how likely the event is, and how to turn log-odds back into a probability.

Covers

Log-odds of an event

Properties of log-odds

Probability from log-odds

07

Combining evidence

9 questions

Learn how to combine several pieces of evidence by multiplying the odds by each likelihood ratio, and how this becomes a sum on the log-odds scale.

Covers

Updating on a second piece of evidence

Adding evidence on the log-odds scale

Where this unit sits in the curriculum

This unit is part of our Essential Probability & Statistics for ML learning path, which contains 88 lessons. Every one of them is drawn below.

The diagnostic test lets you skip any lesson you already know, including the ones in this unit.

Every dot is a lesson and every line a prerequisite. The 7 red dots are the lessons in Bayes' theorem and evidence; the 70 blue dots feeding into them are the lessons Bayes' theorem and evidence depends on; the 11 pale dots are the rest of the learning path, which come after Bayes' theorem and evidence or alongside it.Bayes' theorem and evidenceFirst lessons on the left88 lessons

Hover any dot to name its lesson.

7 lessons in this unit

70 prerequisite lessons across the unit, counting every step back to the start

11 other lessons in the learning path - after this unit, or alongside it

Every dot is a lesson, every line a prerequisite. You can only start a lesson once you have mastered all of its prerequisites, so you are always building on solid foundations.

Start Bayes' theorem and evidence

One subscription covers every learning path, and you can test out of anything you already know.

One subscription covers every learning path · 30-day money-back guarantee

More in Probability and Statistics: Sample spaces and events, Counting, Probability fundamentals, Conditional probability and independence, Discrete random variables