Lecture notes · Probability · Lecture 21

Bayesian Statistical Inference I

MIT 6.041 Probabilistic Systems Analysis and Applied Probability, lecture 21, explained in plain English

Want this lecture to stick? In LessonBound you get checked practice questions for every part, can ask about anything you don't get, and can listen with your screen off. Free, no ads.

Learn this lecture free

Watch or read the original lecture: MIT OpenCourseWare.

Part 1 · 0:00–10:00

This part explains what statistical inference is: using data from the real world to build a model, and why that is different from pure probability.

Key ideas

Words to know

inference
Making a well-reasoned guess about something you cannot see directly, based on the data you can see.
model
A simplified description of how something in the real world behaves, often written with math.
parameter
A number inside a model that sets its details, such as how fast arrivals come in.
attenuated
Made weaker, or reduced in strength, as a signal gets smaller while travelling through something.

Example

Think of a weather forecaster who has never seen tomorrow. They look at past weather records and today's readings, build a rough model, and use it to guess what tomorrow will be like. Different forecasters might use different methods and still each be reasonable, which is the kind of choice this lesson describes.

3 checked practice questions for this part are in the app.

Part 2 · 10:00–20:00

This part explains the two main kinds of inference problems, the two ways of thinking about unknown quantities, and why Bayesian inference starts with a prior.

Key ideas

Words to know

prior distribution
Your starting beliefs about an unknown value, written as a range of likely values, before you look at any new data.
posterior distribution
Your updated beliefs about the unknown value after you have seen the data.
attenuation
How much a signal gets weaker as it travels through a medium, such as air or a wire.
Bayes rule
A formula for updating your beliefs about something unknown after you see evidence about it.

Example

Imagine you shout across a valley and listen for the echo to guess how far away the wall is. You know what you shouted, and you hear a fainter or louder version back, so the sound's weakening tells you something about the distance. Before you shout, you might already guess the wall is somewhere between 50 and 200 meters away, and the echo sharpens that guess.

3 checked practice questions for this part are in the app.

Part 3 · 20:00–30:00

This part explains how Bayesian inference works: you start with a belief, collect data, and use Bayes rule to update that belief into a new one about an unknown value.

Key ideas

Words to know

prior
Your starting belief about an unknown quantity, before you collect any new data.
posterior
Your updated belief about the unknown quantity after you have seen the data.
Bayes rule
A formula that tells you how to combine your prior belief with new data to get your updated belief.
bias
How likely a coin is to land heads. A fair coin has a bias of one half.

Example

Suppose you want to know how often a friend's coin lands heads. Before flipping, you guess it is probably close to fair, which is your prior. After 20 flips with 14 heads, you update that guess, and your new belief is the posterior, which might show that values near 0.6 are most likely.

3 checked practice questions for this part are in the app.

Part 4 · 30:00–40:00

This part explains how to pick a single best guess for an unknown value after seeing data, and why the choice depends on the rules you set.

Key ideas

Words to know

posterior distribution
your updated picture of how likely each possible value is, after you have seen the data.
MAP estimate
maximum a posteriori estimate: the single value that has the highest probability (or highest density) after seeing the data.
conditional expectation
the average value of the unknown quantity, worked out using only the data you have, like the center of gravity of the posterior picture.
mean squared error
the average of the squared gap between your guess and the true value; squaring makes big misses count more.

Example

Imagine you are guessing how far away a sound is, and you have a rough sense that it is somewhere between 4 and 10 blocks. If you want your guess to be off by as little as possible on average, you pick the middle, which is 7. Once you hear more clues, you narrow the range, and the middle of the new range becomes your best guess.

3 checked practice questions for this part are in the app.

Part 5 · 40:00–48:48

Once you have data, the best single guess for an unknown quantity is its conditional expectation, given that data.

Key ideas

Words to know

conditional expectation
The average value you would expect for something, once you already know some facts. It changes when new information arrives.
prior
What you believe about the unknown quantity before you look at any data.
posterior
What you believe about the unknown quantity after you have seen the data. It mixes your prior belief with what the data say.
estimator
A rule or machine that takes in data and outputs a guess about an unknown quantity.

Example

Imagine guessing how many apples are in a box you cannot see. Before anyone looks, your best guess is an average over what is likely. After someone shows you a few apples, your best guess changes to a new average that uses that information. The lesson says the best single guess is always this updated average, given what you have seen.

3 checked practice questions for this part are in the app.

← Lecture 20: Central Limit Theorem

Notes written by AI (Claude) from the lecture's official transcript, so check anything important against the lecture. MIT OpenCourseWare · CC BY-NC-SA 4.0 · not affiliated with or endorsed by MIT. These notes are shared under the same license.

LessonBound · Free lecture notes · Privacy · Terms · New York