Skip to content
Tactiverge

Learning Rooms/○ Level 3 · Innovator/Mathematics

The medical test paradox, and redesigning Bayes' rule

3Blue1Brown · Length: see YouTube · captions on YouTube · nothing loads until you press play

By the end you can…

  • Use event notation and compute conditional probabilities from a frequency table.
  • Derive Bayes' rule from counts and apply it with a base rate.
  • Explain why a rare condition makes even a good detector's alarms mostly false.
?Predict▶Watch✓Practise⚙Build

Watch it all: no segment has been checked by hand for this video yet.

1.Predict before you press play

1% of parts are faulty. The detector flags 90% of faulty parts and 5% of good ones. A part is flagged. Roughly how likely is it to be faulty?

Pick one before you press play. A wrong guess is fine: it is what makes the video stick.

2.See the idea first

Play with this diagram for a minute. It gives you something to hang the video on.

Loading the interactive…

Can't use the diagram? Read a description instead

The base-rate tree splits 10,000 parts by base rate into faulty and good, then each into flagged and not flagged. At base rate 1%, sensitivity 90% and false positives 5%: 100 faulty (90 flagged, 10 missed) and 9,900 good (495 flagged, 9,405 passed). P(faulty | flagged) = 90 ÷ 585 ≈ 15.4%. A second independent flag raises it to about 77%.

3.Watch, actively

Why a very accurate test can still be wrong most of the time when the condition is rare: the base-rate effect your fault detector faces.

Length: see YouTube · captions on YouTube · source

Nothing loads from YouTube until you press play.

Watch for…

  • → Watch for the idea of a test's 'Bayes factor': how much a positive result multiplies the odds, regardless of the base rate you start from.

Pause whenever you like. Rewatching a hard minute is a good habit, not a failure.

Can't stream it? Read the idea instead

When a condition is rare, even an accurate test produces more false positives than true ones, because there are so many more cases without the condition. Bayes' rule says how strongly a positive result should update the odds you started with.

What the video covers (our own note, written when we verified it): Why a very accurate test can still be wrong most of the time when the condition is rare: the base-rate effect your fault detector faces.

Written by Tactiverge in our own words, not a transcript. The full lesson below explains the idea without the video.

Jot down one thing that surprised you and one question you still have.

Private: saved only on this device, never sent to Tactiverge.

4.Practise what you just saw

These come from the lesson that use this video and are checked on the server. Wrong answers get a hint and another try.

Practice 1 · a fresh version every time

1% of parts on a line are faulty. A camera check flags 99% of faulty parts and wrongly flags 1% of good parts. A part is flagged. What is the probability, as a percentage, that it is really faulty?

%

Practice 2 · a fresh version every time

2% of parts on a line are faulty. A camera check flags 95% of faulty parts and wrongly flags 5% of good parts. A part is flagged. What is the probability, as a percentage, that it is really faulty?

%

Practice 3

P(flagged | faulty) = 0.95. Which statement follows?

Practice 4

Base rate 0.5%, sensitivity 95%, false positives 4%. Which change most raises P(faulty | flagged)?

6.Build something with it

Follow-up project

BUILD 003 Level 4 asks how often a majority vote of three sensors is wrong when each is wrong 10% of the time. Work it out with a probability tree, then use Bayes' rule to find P(part is really red | majority says red) for a line where 30% of parts are red. Say which assumption could fail.

Open BUILD 003: Create an Intelligent Sorting Machine →

Where this video lives

In the course catalogue: AIP-350 Perception system lab

The video is by 3Blue1Brown, embedded from YouTube with privacy-enhanced mode and never autoplayed. The room around it (prompts, notes, practice, projects) is Tactiverge's, written with AI assistance and checked by automated tests only.