$$ \newcommand{\given}{\mid} \renewcommand{\neg}{\mathbin{\sim}} \renewcommand{\wedge}{\mathbin{\&}} \newcommand{\p}{Pr} \newcommand{\degr}{^{\circ}} \newcommand{\E}{E} \newcommand{\EU}{EU} \newcommand{\u}{U} \newcommand{\pr}{Pr} \newcommand{\po}{Pr^*} \definecolor{bookred}{RGB}{228,6,19} \definecolor{bookblue}{RGB}{0,92,169} \definecolor{bookpurple}{RGB}{114,49,94} $$

18 The Problem of Priors

When my information changes, I alter my conclusions. What do you do, sir?
—attributed to John Maynard Keynes

The last two chapters showed how Bayesians make personal probabilities objective. They can be quantified using betting rates. And they are bound to the laws of probability by Dutch books.

But what about learning from evidence? Observation and evidence-based reasoning are the keystones of science. They’re supposed to separate the scientific method from other ways of viewing the world, like superstition or faith. So where do they fit into the Bayesian picture?

18.1 Priors & Posteriors

When we observe something new, we change our beliefs. A doctor sees the results of her patient’s lab test and concludes he doesn’t have strep throat after all, just a bad cold.

In Bayesian terms, the beliefs you have before a change are called your priors. We denote your prior beliefs with the familiar operator \(\pr\). Your prior belief about hypothesis \(H\) is written \(\p(H)\). The new beliefs you form based on the evidence are called your posteriors. We write \(\po\) to distinguish them from what you believed before. So \(\po(H)\) is your posterior belief in \(H\).

What’s the rule for changing your beliefs? When you get new evidence, how do you go from \(\pr(H)\) to \(\po(H)\)? Let’s start by thinking about an example.

Imagine you’re about to test a chemical with litmus paper to determine whether it’s an acid or a base. Before you do the test, you think it’s probably an acid if the paper turns red, and it’s probably a base if the paper turns blue. Suppose the paper turns red. Conclusion: the sample is probably an acid.

So your new belief in hypothesis \(H\) is determined by your prior conditional belief. Before, you thought \(H\) was probably true if \(E\) is true. When you learn that \(E\) in fact is true, you conclude that \(H\) is probably true.

Conditionalization

When you learn new evidence \(E\), your posterior probability in hypothesis \(H\) should match your prior conditional probability: \[ \po(H) = \pr(H \given E). \]

For example, imagine I’m going to roll a six-sided die behind a screen so you can’t see the result. But I’ll tell you whether the result is odd or even. Before I do, what is your personal probability that the die will land on a high number (either \(4\), \(5\), or \(6\))? Let’s assume your answer is \(\pr(H) = 1/2\).

Also before I tell you the result, what is your personal probability that the die will land on a high number given that it lands on an even number? Let’s assume your answer here is \(\pr(H \given E) = 2/3\).

Prior vs. posterior probabilities in a die-roll problem. $H$ $=$ the die landed $4$, $5$, or $6$. $E$ $=$ the die landed even. $Pr(H) = 1/2$, $Pr^*(H) = 2/3$. Figure 18.1: Prior vs. posterior probabilities in a die-roll problem. \(H\) \(=\) the die landed \(4\), \(5\), or \(6\). \(E\) \(=\) the die landed even. \(Pr(H) = 1/2\), \(Pr^*(H) = 2/3\).

Now I roll the die and I tell you it did in fact land even. What is your new personal probability that it landed on a high number? Following the Conditionalization rule, \(\po(H) = \pr(H \given E) = 2/3\).

We learned how to use Bayes’ theorem to calculate \(\pr(H \given E)\). If we combine Bayes’ theorem with Conditionalization we get: \[ \po(H) = \pr(H) \frac{\pr(E \given H)}{\pr(E)}. \] Because this formula is so useful for figuring out what conclusion to draw from new evidence, the Bayesian school of thought is named after it. Bayesian statisticians use it to evaluate evidence in actual scientific research. And Bayesian philosophers use it to explain the logic behind the scientific method.8 We learned part of this story back in Chapter 10.

18.2 The Principle of Indifference

Bayes’ theorem provides an objective guide for changing your personal probabilities. Given the prior probabilities on the right hand side, you can calculate what your new probabilities should be on the left. But where do the prior probabilities on the right come from? Are there any objective rules for determining them? How do we calculate \(\pr(H)\), for example?

Let’s go back to our example where I roll a die behind a screen. Before I tell you whether the die landed on an even number, it seems reasonable to assign probability \(1/2\) to the proposition that the die will land on a high number (\(4\), \(5\), or \(6\)). But what if someone had a different prior probability, like \(\pr(H) = 1/10\)?

That seems like a strange opinion to have. Why would they think the die is so unlikely to land on a high number, when there are just as many high numbers as low ones? On the other hand, if you don’t know whether the die is fair, it is possible it’s biased against high numbers. So maybe they’re on to something. And notice, assigning \(\pr(H) = 1/10\) doesn’t violate the laws of probability, as long as they also assign \(\pr(\neg H) = 9/10\). So we couldn’t make a Dutch book against them.

Where do prior probabilities come from then? How do we decide whether to start with \(\pr(H) = 1/2\) or \(\pr(H) = 1/10\)? Here is a very natural proposal.

The Principle of Indifference dates back to the very early days of probability theory. In fact, Laplace seems to have thought it was the central principle of probability. For a long time it was known by a different name: “The Principle of Insufficient Reason.” The idea was that, without any reason to think one outcome more likely than another, they should all get the same probability. In \(1921\) it was renamed “The Principle of Indifference” by economist John Maynard Keynes (1883–1946). The idea behind the new name is that you should be indifferent about which outcome to bet on, since they all have the same probability of winning.

The Principle of Indifference

If there are \(n\) possible outcomes, each outcome should have the same prior probability: \(1/n\).

In the die example, there are six possible outcomes. So each would have prior probability \(1/6\), and thus \(\pr(H) = 1/2\): \[ \begin{aligned} \pr(H) &= \pr(4) + \pr(5) + \pr(6)\\ &= 1/6 + 1/6 + 1/6\\ &= 1/2. \end{aligned} \]

Here’s one more example. In North American roulette, the wheel has \(38\) pockets, \(2\) of which are green: zero (\(\mathtt{0}\)) and double-zero (\(\mathtt{00}\)). If you don’t know whether the wheel is fair, what should your prior probability be that the ball will land in a green pocket?

A North American roulette wheel Figure 18.2: A North American roulette wheel

According to the Principle of Indifference, each space has equal probability, \(1/38\). So \(\pr(G) = 1/19\): \[ \begin{aligned} \pr(G) &= \pr(\mathtt{0}) + \pr(\mathtt{00})\\ &= 1/38 + 1/38\\ &= 1/19. \end{aligned} \]

18.3 The Continuous Principle of Indifference

So far so good, but there’s a problem. Sometimes the number of possible outcomes isn’t a finite number \(n\), it’s a continuum. Suppose you had to bet on the angle the roulette wheel will stop at, rather than just the colour it will land on. There’s a continuum of possible angles, from \(0\degr\) to \(360\degr\). It could land at an angle of \(3\degr\), or \(314.1\degr\), or \(100\pi\degr\), etc.

So what’s the probability the wheel will stop at, say, an angle between \(180\degr\) and \(270\degr\)? Well, this range is \(1/4\) of the whole range of possibilities from \(0\degr\) to \(360\degr\). So the natural answer is \(1/4\). Generalizing this idea gives us another version of the Principle of Indifference.

Principle of Indifference (Continuous Version)

If there is an interval of possible outcomes from \(a\) to \(b\), the probability of any subinterval from \(c\) to \(d\) is: \[\frac{d-c}{b-a}.\]

The continuous version of the Principle of Indifference: $Pr(H)$ is the length of the $c$-to-$d$ interval divided by the length of the whole $a$-to-$b$ interval. Figure 18.3: The continuous version of the Principle of Indifference: \(Pr(H)\) is the length of the \(c\)-to-\(d\) interval divided by the length of the whole \(a\)-to-\(b\) interval.

The idea is that the prior probability of a hypothesis \(H\) is just the proportion of possibilities where \(H\) occurs. If the full range of possibilities goes from \(a\) to \(b\), and the subrange of \(H\) possibilities is from \(c\) to \(d\), then we just calculate how big that subrange is compared to the whole range.

18.4 Bertrand’s Paradox

Unfortunately, there’s a serious problem with this way of thinking. In fact it’s so serious that the Principle of Indifference is not accepted as part of the modern theory of probability. You won’t find it in a standard mathematics or statistics textbook on probability.

What’s the problem? Imagine a factory makes square pieces of paper, whose sides always have length somewhere between \(1\) and \(3\) feet. What is the probability the sides of the next piece of paper they manufacture will be between \(1\) and \(2\) feet long?

Applying the Principle of Indifference we get \(1/2\): \[ \frac{d-c}{b-a} = \frac{2-1}{3-1} = \frac{1}{2}. \] That seems reasonable, but now suppose we rephrase the question. What is the probability that the area of the next piece of paper will be between \(1\) ft\(^2\) and \(4\) ft\(^2\)? Applying the Principle of Indifference again, we get a different number, \(3/8\): \[ \frac{d-c}{b-a} = \frac{4-1}{9-1} = \frac{3}{8}. \] But the answer should have been the same as before: it’s the same question, just rephrased! If the sides are between \(1\) and \(2\) feet long, that’s the same as the area being between \(1\) ft\(^2\) and \(4\) ft\(^2\).

Joseph Bertrand (1822--1900) presented this paradox in $1889$. He used a different example though. Our example, which is easier to understand, comes from  Bas van Fraassen. Figure 18.4: Joseph Bertrand (1822–1900) presented this paradox in \(1889\). He used a different example though. Our example, which is easier to understand, comes from Bas van Fraassen.

So which answer is right, \(1/2\) or \(3/8\)? It depends on which dimension we apply the Principle of Indifference to: length vs. area. And there doesn’t seem to be any principled way of deciding which dimension to use. So we don’t have a principled way to apply the Principle of Indifference.

Here’s a video explaining Bertrand’s paradox thanks to wi-phi.com:

There’s nothing special about the example of the paper factory, the same problem comes up all the time. Take the continuous roulette wheel. Suppose the angle it stops at depends on how hard it’s spun. The wheel’s starting speed can be anywhere between \(1\) and \(10\) miles per hour, let’s suppose. And if it’s between \(2\) and \(5\) miles per hour, it lands at an angle between \(180\degr\) and \(270\degr\) degrees. Otherwise it lands at an angle outside that range.

If we apply the Principle of Indifference to the wheel’s starting speed we get a probability of \(1/3\) that it will land at an angle between \(180\degr\) and \(270\degr\): \[ \frac{d-c}{b-a} = \frac{5-2}{10-1} = \frac{1}{3}. \] But we got an answer of \(1/4\) when we solved the same problem before. Once again, what answer we get depends on how we apply the Principle of Indifference. If we apply it to the final angle we get \(1/4\), if we apply it to the starting speed we get \(1/3\). And there doesn’t seem to be any principled way of deciding which way to go.

More realistic and serious examples are also commonplace, the sorts of things a practicing scientist deals with all the time. Imagine an object is rolling downhill, with \(10\) meters to go before it reaches the bottom. Its velocity is between \(1\) meter per second and \(3\) meters per second. What’s the probability it will reach the bottom in the next \(5\) seconds?

It will only get there in time if its velocity is at least \(2\) meters per second. So the probability is \(1/2\), right?

Well, consider the ball’s energy instead of its velocity. Energy can be defined in terms of mass and velocity, according to the equation \(E = mv^2/2\), where \(m\) is the object’s mass and \(v\) is its velocity. Suppose our ball’s mass is \(1\) kilogram, so \(m = 1\). That means its energy is somewhere between \(1/2\) and \(9/2\). We said it will reach the bottom within \(5\) seconds just in case the velocity is at least \(2\) meters per second, which corresponds to energy \(2\). So, according to the Principle of Indifference, the probability it has enough energy to reach the bottom in time is: \[ \frac{9/2 - 2}{9/2 - 1/2} = \frac{5}{8}. \] Which is the right answer then, \(1/2\) or \(5/8\)? If you’re trying to land a space shuttle, or predict the likely outcome of a medical treatment, this kind of thing really matters.

18.5 The Problem of Priors

There is no accepted solution to Bertrand’s paradox.

Some Bayesians think it shows that prior probabilities should be somewhat subjective. Your beliefs have to follow the laws of probability to avoid Dutch books. But beyond that, you can start with whatever prior probabilities seem right to you. (The Principle of Indifference should be abandoned.)

Others think the paradox shows that Bayesianism is too subjective. The whole idea of “prior” and “posterior” probabilities was a mistake, say the frequentists. Probability isn’t a matter of personal beliefs. There are objective rules for using probability to evaluate a hypothesis, but Bayes’ theorem is the wrong way to go about it.

So what’s the right way, according to frequentism? The next two chapters introduce the frequentist method.

Exercises

  1. Suppose a carpenter makes circular tables that always have a diameter between \(40\) and \(50\) inches. Use the Principle of Indifference to answer the following questions. (Give exact answers, not decimal approximations.)

    1. What is the probability the next table the carpenter makes will have a diameter of at least \(43\) inches?
    2. What is the probability the next table the carpenter makes will have either a diameter between \(41\) and \(42\) inches, or between \(47\) and \(49\) inches?
    3. Recalculate the probabilities from parts (a) and (b), but this time apply the Principle of Indifference to circumference instead of diameter. Does this change what answers you get?
    4. Recalculate the probabilities from parts (a) and (b), but this time apply the Principle of Indifference to area instead of diameter. Does this change what answers you get?
  2. Joe spends his afternoons whittling cubes that have a side length between \(2\) and \(10\) centimeters. Use the Principle of Indifference to answer the following questions. (Give exact answers, not decimal approximations.)

    1. What is the probability that Joe’s next cube will have sides at least \(6\) centimeters long?
    2. What is the probability Joe’s next cube will either have sides shorter than \(4\) centimeters or longer than \(7\) centimeters?
    3. Recalculate the probabilities from parts (a) and (b), but this time apply the Principle of Indifference to the area of each face, rather than the length of each side. Does this change what answers you get?
    4. Recalculate the probabilities from parts (a) and (b), but this time apply the Principle of Indifference to volume. Is the result the same or different compared to the answers from parts (a), (b), and (c)?
  3. Joel is in New York and he needs to be in Montauk by \(4\):\(00\) to meet Clementine. He boards a train departing at \(3\):\(00\) and asks the conductor whether they’ll be in Montauk by \(4\):\(00\). The conductor says the train will arrive some time between \(3\):\(50\) and \(4\):\(12\), but she refuses to be more specific.

    1. According to the Principle of Indifference, what is the probability that Joel will be in Montauk in time to meet Clementine?

    After thinking it over, Joel realizes that his odds may actually be better than that. It’s a \(60\) mile trip to Montauk, so the train must travel at an average speed between \(a\) and \(b\) miles per hour.

    1. What are \(a\) and \(b\)?
    2. How fast must the train travel to get to Montauk by \(4\):\(00\)?
    3. According to the Principle of Indifference, what is the probability that the train will travel fast enough to get to Montauk by \(4\):\(00\)?
  4. A factory makes triangular traffic signs. The height of their signs is always the same as the width of the base. And the base is always between \(3\) and \(6\) feet.

    1. According to the Principle of Indifference, what is the probability that the next sign produced will be between \(5\) and \(6\) feet high?
    2. Explain how to reformulate the problem in part (a) so that the probability given by the Principle of Indifference changes.
    3. Explain the challenge that cases like this pose for the theory of personal probability. What do critics of Bayesianism say these examples demonstrate about prior probabilities?
  5. A factory makes circular dartboards whose diameter is always between \(1\) and \(2\) feet.

    1. According to the Principle of Indifference, what is the probability that the next dartboard produced will have a diameter between \(1\) and \(5/3\) feet?
    2. If we reformulate part (a) in terms of the dartboard’s area, what is the probability given by the Principle of Indifference then? (Reminder: the area of a circle with diameter \(d\) is \(A = \pi/4 \times d^2\).)
    3. Explain the challenge that cases like this pose for the theory of personal probability. What do critics of Bayesianism say these examples demonstrate about prior probabilities?
  6. Some bars water down their whisky to save money. Suppose the proportion of whisky to water at your local bar is always somewhere between \(1/2\) and \(2\). That is, there’s always at least \(1\) unit of whisky for every \(2\) units of water. But there’s never more than \(2\) units of whisky for every \(1\) unit of water. Suppose you order a “whisky.”

    1. According to the Principle of Indifference, what is the probability that it will be mostly whisky? (“Mostly” means more than half.)
    2. What is the maximum possible proportion water to whisky?
    3. What is the minimum possible proportion water to whisky?
    4. Now calculate the probability that your drink will be less than \(1/2\) water again, but this time apply the Principle of Indifference to the proportion of water to whisky. Is the result the same or different?
  7. True or false: if someone’s personal probabilities violate the Principle of Indifference, then they can be Dutch booked.