# The probability of a probability

The Shores of the Dirac Sea has a somewhat head-scratching puzzle about probabilities:

Let us say that someone gives you a lopsided bet. Say that with probability $r$ one gets heads, and with probability $1-r$ one gets tails, and you have to pick heads or tails. You only know the outcome of the first event. Let's say after the first toss it came out heads. What is the probability that $r > \frac{1}{2}$?

At first glance, the question makes no sense. The outcome of a bet is determined by the probability, so what is it with asking about the probability of the probability? Maybe rephrasing the question might make it a bit more clearer:

Given that the probability of a head is $r$, the probability of a head is $r$. Given that a single toss ended up a head, what was the probability that $r > \frac{1}{2}$?

The first sentence might seem blatantly redundant, and you might be confused about what's different with the second sentence. If it doesn't make sense to you, thinking a lot harder is one way to figure out the difference, but another way is to learn about conditional probabilities. For the more mathematically inclined, expressing the problem in formulas makes the difference even more apparent, not to mention explaining the apparent redundancy:

Given this reformulation, all you have to do is to take advantage of the properties of conditional probabilities:

Embarrassingly, my first answer ended up being $\frac{1}{2}$:

I confused $P(H)$ with $P(H|p=r)$, which led me to the obvious-looking and yet seemingly wrong answer. (It's because $\frac{1}{2}$ is such an obvious guess that it seems so wrong, given my experience with conditional probabilities.) The denominator and numerator have to be computed separately, but I foolishly didn't do so. Since the probability of a head being exactly $r$ is $dr$, in which case the probability of a head is $r$, the probability of $p=r$ and a head simultaneously is $r \, dr$. (Not being a pure mathematician, I'll live with the bit of fudging here.) And since $P(H) = P(r \geq 0 \,\wedge\, H)$:

So the probability of the probability of a head coming up being larger than 0.5, given that a single toss turned out to be a head, ends up being 0.75. This probability is much more in line with what I would expect when working with conditional probabilities.

The next time you come across a brand new sort of coin that no one has ever seen before, and a single toss ends up being a head, you can confidently say that it's much more likely to be biased towards heads. Of course in real life, most of the coins you see will be like every other coin you've seen before, and all of them probably turned out to be fair, so all of this doesn't apply. On the other hand, there are other sorts of practical problems you can apply the same sort of reasoning to.

## 5 Replies to “The probability of a probability”

1. You're absolutely right. On the other hand, if nothing at all is known about the probability distribution, we may as well assume it to be uniform. Otherwise, I smash into another "probability distribution of probability distribution" problem whose solution is not apparent to me, and I'm not sure there can be one since the answer obviously depends on the distribution.

Fortunately for me, the puzzle at the Shores of the Dirac Sea says that we might as well assume a uniform distribution. :D

2. Christian Blatter says:

You have tacitly assumed that r is a priori uniformly distributed on [0,1].

3. silkop says: