Open the editor

Maths · University

Bayes' Theorem Slides

Free animated slides, ready to teach: 6 slides where every step appears on a click and the diagrams move. Play them right here, present them full screen, or copy them into your account to edit.

A real Tracé deck playing in your browser. No account needed.

What the lesson covers

A medical test that is 90% sensitive still gives mostly false alarms when the illness is rare. The class uses Bayes' theorem and natural frequencies to find the chance of being ill after a positive test.

The slides, one by one

1 Bayes' theorem

Updating a probability with evidence

A test is 90% accurate and you test positive. Are you probably ill?

2 Bayes turns P(B|A) into P(A|B)

P(A∣B)=P(B∣A) P(A)P(B)P(A \mid B) = \dfrac{P(B \mid A)\,P(A)}{P(B)}
P(A): the prior, before theevidence\begin{aligned}&P(A)\textsf{: the prior, before the}\\ &\textsf{evidence}\end{aligned}
P(A∣B): the posterior, after itP(A \mid B)\textsf{: the posterior, after it}

3 Most positives come from the healthy majority

10 000 people, 1% ill

90 true positives, 495 false positives

4 The chance of being ill after a positive test

1% of people are ill. The test is positive for 90% of ill people and 5% of healthy people. Find P(ill | positive).

→ Total probability for P(+), then Bayes

P(+)=0.9×0.01+0.05×0.99P(+) = 0.9 \times 0.01 + 0.05 \times 0.99
P(+)=0.009+0.0495=0.0585P(+) = 0.009 + 0.0495 = 0.0585
P(D∣+)=0.0090.0585P(D \mid +) = \dfrac{0.009}{0.0585}
P(D∣+)≈0.154P(D \mid +) \approx 0.154

Only about 15% of people who test positive are ill

5 Quick check

P(A)=0.3, P(B∣A)=0.5, P(B)=0.25. Find P(A∣B).P(A) = 0.3\textsf{, }P(B \mid A) = 0.5\textsf{, }P(B) = 0.25\textsf{. Find }P(A \mid B)\textsf{.}
  • 0.6
  • 0.15
  • 0.5
  • 0.75
Show the answer

0.6

P(A|B) = 0.5 × 0.3 / 0.25 = 0.15 / 0.25 = 0.6.

6 What to remember

P(A∣B)=P(B∣A)P(A)P(B)P(A \mid B) = \frac{P(B \mid A)P(A)}{P(B)}
Find P(B) by adding over all cases\textsf{Find }P(B)\textsf{ by adding over all cases}

A rare condition means many false positives

Natural frequencies make it clear

Challenge: If 10% of people were ill, what would P(ill | positive) be?

Every slide is built click by click: text, formulas and pictures come in one step at a time, so the class follows the reasoning instead of reading ahead. Graphs with sliders can be dragged live while you present.

Make your own version with AIChange the level, the numbers or the language: type the topic and get a new deck that moves in about 30 seconds. Free, no account needed.

Questions teachers ask

What does Bayes' theorem say?

P(A|B) = P(B|A)P(A)/P(B). With 1% prevalence, 90% sensitivity and a 5% false positive rate, P(ill | positive) ≈ 0.154.

Are these slides really free?

Yes. Watch them on this page or present them full screen with no account. Making your own copy to edit is free too.

Can I change the slides before my lesson?

Yes. Press "Make my own copy" and the deck becomes one of your projects in the Tracé editor, where you can change the text, the numbers, the colours or the order of the clicks.

Do they work on a classroom projector or an interactive whiteboard?

Yes. They run in the browser on any laptop, so anything that shows your screen works. Press the right arrow or click to go to the next step.