Skip to content
Tactiverge

Learning Rooms/□ Level 4 · Systems Engineer/Research methods

A visual guide to Bayesian thinking

Julia Galef · Length: see YouTube · captions on YouTube · nothing loads until you press play

By the end you can…

  • Apply Bayes' rule to update a belief after a sensor reading.
  • Explain prior, likelihood, evidence and posterior in a sensing example.
  • Chain updates from several independent readings.
?Predict▶Watch✓Practise⚙Build

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

1.Predict before you press play

Hazards are 10% of rocks. The detector fires for 90% of hazards and for 5% of safe rocks. It fires. Probability it is a hazard?

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 (borrowed from the lesson “Updating a belief on a grid”, on the same idea). It gives you something to hang the video on.

Loading the interactive…

Can't use the diagram? Read a description instead

The grid shows 21 bars for the posterior plus prior and likelihood lines. The readout lists the data as ticks and crosses and states MAP, posterior mean, P(p > 0.5) and k/n.

3.Watch, actively

Pictures prior, evidence and posterior as areas, so updating a belief on new evidence feels like common sense rather than a formula.

Length: see YouTube · captions on YouTube · source

Nothing loads from YouTube until you press play.

Watch for…

  • → Watch how the prior and the evidence are drawn as areas: the posterior is the share of the 'evidence happened' area that belongs to each hypothesis.

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

Can't stream it? Read the idea instead

Start with how likely each explanation was before the evidence (the prior). Ask how likely the evidence would be under each one. Weight the priors by those likelihoods and rescale, and you get updated beliefs (the posterior). Strong evidence moves beliefs a lot; weak evidence, a little.

What the video covers (our own note, written when we verified it): Pictures prior, evidence and posterior as areas, so updating a belief on new evidence feels like common sense rather than a formula.

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

Read it instead

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

Before looking, a rover believes there is a 0.02 probability that a rock ahead is a hazard. Its hazard detector fires with probability 0.99 when there is a hazard and 0.02 when there is not. The detector fires. What is the posterior probability of a hazard?

Practice 2

A dust-storm alarm is 99% sensitive and has a 1% false-alarm rate, but storms occur on only 1% of sols. After an alarm, P(storm) is about…

Practice 3

The same camera takes two photos of a rock one second apart; both look like a hazard. Why should you NOT simply apply the update twice?

Practice 4

Prior P(H) = 0.2. P(E | H) = 0.8, P(E | not H) = 0.1. What is P(H | E)?

6.Where engineers use it

Autonomous rovers combine evidence from stereo cameras and hazard cameras before refusing a path. Too high a threshold and they stop at every shadow; too low and they drive into rocks.

From the applied view in the lesson Bayes' rule for sensor readings. Checked by automated tests only.

7.Build something with it

Follow-up project

Choose a detection threshold for a rover hazard detector. Write down the cost of a missed hazard and the cost of a false stop, then use Bayes' rule with two candidate (hit, false-alarm) pairs to argue which threshold is better.

Where this video lives

In the course catalogue: AIP-510 Bayesian estimation and sensor fusion

The video is by Julia Galef, 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.