Log inStart free
LESSON 2.16 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Bayes' theorem

Watch 200 people take one test, and count which positive results are true.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 2.16 · BAYES BAYP(D) = 10/200 = 5%
01
Stage 1 of 6 · Prior
The base rate is the prior: 10 of 200 people have the condition D.
Explain it simply

Each dot is one person in a town of 200. The 10 teal dots have a condition, D. That share, 5%, is called the prior. It's how likely D is before anyone takes a test.

200 dots, one per person. 10 teal dots have D. The tree splits everyone into 10 with D and 190 without D.

has Dno Drate on a branchtrue positive, posteriorfalse positive, missed
200 peoplefrequency treeprobability5%95%everyone200D10no D190P(D)10 / 200 = 5%of 200 people200 peoplefrequency treeprobability5%95%everyone200D10no D190P(D)10 / 200 = 5%of 200 people
Toy: a town of 200 people · one condition D · one test · expected counts, so every count is whole
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
P(D)=nDN\sy{prior}{param}{P(D)} = \frac{\sy{D}{data}{n_D}}{N}
P(D)=10200=0.050P(D) = \frac{10}{200} = 0.050

The prior is the share of people with D before any test.

Common mix-ups

MYTHA 90% accurate test means a positive is 90% sure.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01If the base rate rises from 5% to 25%, does P(D | +) rise above 50%?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.