The Sleeping Beauty Problem
santisbon
Posted on July 17, 2023
Sleeping Beauty agrees to be the subject of an experiment and is informed of the procedure:
- On Sunday night, she will be put to sleep.
- Then, a fair coin will be flipped.
- If it comes up Heads, she will be awakened on Monday and put back to sleep.
- If it comes up Tails, she will also be awakened on Monday and put back to sleep, but then she'll be awakened on Tuesday as well and put back to sleep.
- Each time that she is put back to sleep she will forget that she was ever awakened.
- Any time she's awake, she will be told no information but she'll be asked one question: What do you believe is the probability that the coin came up heads?
Image credit: Veritasium
How should she answer?
You might be tempted to say because that's the probability of a fair coin coming up Heads, but you would be mistaken. The correct answer is . To understand why, we need to realize that the question that is really being asked is this: What is the probability that the coin came up Heads given that you've been awakened?
This is a case where we need to incorporate observed data into our prior odds to come up with new odds that account for the new data. To do that, we need to calculate the probability of an event happening given that another event has already happened. We can use Bayes' Theorem for this.
ℹ️ Bayes' Theorem
But wait, where did that come from?
💡 It can be derived from the conditional probability that tells us in how many cases do both events and happen out of the cases where happens:
Similarly,
which means
and substituting in the expression for conditional probability yields Bayes' Theorem:
Now that we understand where Bayes' Theorem comes from, there's another way to look at it: As a way to understand two competing hypotheses and . We start by having some prior belief about the odds of those two. After observing some data, what are the new odds of the two hypotheses given the new data? In other words, how do we update our belief based on new evidence?
ℹ️
Let's start by specifying what we mean by odds. We mean how large is one probability relative to the other. Let's put it as a ratio. For example, if prior to seeing any data one hypothesis has probability of being true and the other has :Meaning the odds of to are to .
So how do we incorporate the new data into our belief?
💡 By calculating the new probability of each hypothesis given the new data.
Now we'll use a mathematical trick of multiplying and dividing by the same number to get the same value but expressed in terms of the probability of seeing the observed data given each hypothesis.
So,
And so we have that as a ratio, the posterior odds equal the prior odds times the probabilities of generating the new data.
Now let's apply this to our Sleeping Beauty problem. Let
The coin came up Heads
The coin came up Tails
You've been woken up
Meaning is twice as likely as given the new data. If you want to convert that to probabilities:
Therefore Sleeping Beauty should answer that the coin came up Tails as the probabilities are for Heads and for Tails.
We can give another explanation that is more informal but more intuitive. Imagine she's still woken up once if it's Heads, but on consecutive days if it's Tails. She's awake. She has no idea which of those scenarios she's in, but effectively she's being asked if she thinks she's in the scenario where it was Heads or in one of the scenarios where it was Tails. The answer should be clear.
Posted on July 17, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.