Open Study Commons

Sheet 18 of 22

Reasoning under uncertainty

Needs sheet 03, sheet 08 and a little arithmetic.

Logic as presented so far has two values and no patience for “probably”. But nearly all real conclusions are held with some degree of confidence, and there are rules for that as well. Frank Ramsey, in a 1926 paper published after his death as “Truth and Probability”, argued that the laws of probability are the logic of partial belief. Bruno de Finetti reached similar conclusions, and later R. T. Cox and E. T. Jaynes treated probability as the natural extension of deductive logic. Jaynes’s book is titled Probability Theory: The Logic of Science (2003). This page takes that idea seriously.

Definition

Probability function. An assignment of numbers to statements such that: every probability lies between 0 and 1; every tautology gets 1; and if A and B cannot both be true, then Pr(A ∨ B) = Pr(A) + Pr(B).

Everything else follows from those three lines. If you restrict the values to 0 and 1, you get the truth tables back.

Example

Pr(¬A) = 1 − Pr(A), since A ∨ ¬A is a tautology and the two parts exclude each other. If you are 70 per cent sure the bus is on time, you are committed to 30 per cent that it’s late.

18.1 The conjunction rule

Rule

Pr(A ∧ B) can never be greater than Pr(A). Every situation in which both hold is one in which A holds.

That sounds too obvious to break. In a famous 1983 paper, Amos Tversky and Daniel Kahneman described an invented woman, Linda: single, outspoken, a philosophy graduate, concerned with social justice. People were asked what was more probable: that she is a bank teller, or that she is a bank teller active in the feminist movement. A large majority picked the second.

Definition

Conjunction fallacy. Judging a conjunction more probable than one of its parts.

The usual explanation is that a detailed story fits the description and so feels likely, because people answer “how representative is this?” in place of “how probable is this?”. There has been discussion over how participants understood the wording. Even so the general lesson is sound and useful: every added detail makes a story more convincing and less probable. Forecasts and conspiracy theories both exploit this.

18.2 Conditional probability

Definition

Conditional probability. Pr(A | B) is the probability of A given B. It is defined as Pr(A ∧ B) / Pr(B), when Pr(B) is not zero.

Definition

Independent. A and B are independent when Pr(A | B) = Pr(A): learning one tells you nothing about the other.

Counterexample

Independence is what makes the gambler’s fallacy a fallacy. After nine heads in a row with a fair coin, the chance of heads on the next toss is still one in two. The coin keeps no records. But do notice a condition. If you don’t know the coin is fair, nine heads is evidence that it isn’t, and heads becomes more likely. “Fair” was doing the work.

The most costly mistake in this subject is inverting a conditional. Pr(A | B) and Pr(B | A) can differ enormously.

Example

Nearly every professional footballer can run fast. Few fast runners are professional footballers. Pr(fast | footballer) is high, and Pr(footballer | fast) is tiny.

This is affirming the consequent (sheet 08) with numbers attached, and it has a clear cure.

18.3 Base rates

Here is the classic case. Every number in it is invented, for illustration.

Example

A disease affects 1 person in 100. A test gives a positive result for 90 per cent of those who have it, and for 9 per cent of those who do not. You test positive. How likely is it that you have the disease?

Many people say around 90 per cent. Let’s count instead. Imagine 10,000 people.

Ten thousand imagined people
GroupPeopleTest positiveTest negative
Have the disease1009010
Do not have it9,9008919,009
Total10,0009819,019

Of 981 positive results, 90 are real. So the chance you have the disease is 90 / 981, about 9 per cent. The test works. It has raised your risk ninefold. But the healthy group is so much larger that its small error rate produces far more positives than the disease does.

Definition

Base rate. The frequency of a thing in the relevant population, before any specific evidence is considered.

Definition

Base-rate neglect. Ignoring the base rate when judging a probability, and treating Pr(evidence | hypothesis) as if it answered the question.

Counting people like this works for nearly any such problem. Gerd Gigerenzer and colleagues found that answers improve sharply once a problem is put in natural frequencies, as in the table above, and not in percentages. (This illustration is about reasoning, and has nothing to do with any real test. A real result is a matter for a doctor.)

18.4 Bayes’s rule

The table is a calculation in disguise. The rule is named for Thomas Bayes, whose essay was published in 1763 after his death by his friend Richard Price.

Rule

Pr(H | E) = Pr(E | H) × Pr(H) / Pr(E).

There’s an easier version for most practical purposes, in terms of odds.

Rule

Posterior odds = prior odds × likelihood ratio. The likelihood ratio is Pr(E | H) / Pr(E | ¬H): how much more expected the evidence is if the hypothesis is true.

Example

In the example above, prior odds of disease are 1 to 99. The likelihood ratio is 0.90 / 0.09 = 10. Posterior odds are 10 to 99, which is about 9 per cent. It’s the same answer, and it shows the structure more clearly: a piece of evidence has a strength, measured by the likelihood ratio, and the strength multiplies what you already thought.

This one rule tidies up several earlier pages.

18.5 The prosecutor’s fallacy

Example

An illustration, with invented figures. A sample at a crime scene matches a suspect. The match would occur by chance in one person in a million. “So the odds are a million to one against his innocence,” says the prosecutor. But that is Pr(match | innocent), and the jury need Pr(innocent | match). In a region of 5 million people about five innocent people would also match. If there is no other evidence, the suspect is one of about six matches, and the odds favour innocence. Of course there is usually other evidence, and that is the point: the match has to be combined with it. It cannot be turned into the answer on its own.

The inversion error has been a serious problem in real courtrooms, and statisticians have written to warn against it.

18.6 Why be coherent?

Definition

Dutch book. A set of bets, each one fair by your own probabilities, that together guarantee you a loss.

Example

You are 60 per cent sure it will rain, and 60 per cent sure it won’t. These don’t add up to 1. A bookmaker sells you a ticket for 60p that pays £1 if it rains, and another for 60p that pays £1 if it doesn’t. You think each is a fair price. You pay £1.20 and you collect £1, whatever the weather.

Ramsey and de Finetti showed that a person whose degrees of belief break the rules can always be caught like this, while a person who obeys them can’t. So incoherent beliefs are a practical flaw as well as an abstract one. Nobody really sells such bets. The argument is a way of showing that an inconsistency in your confidence is an inconsistency in what you take as reasons for action.

18.7 Logic with uncertain premises

Suppose you have a valid argument, and you are only fairly sure of each premise. How sure should you be of the conclusion? Ernest Adams proved a neat limit.

Rule

In a valid argument, the uncertainty of the conclusion is at most the sum of the uncertainties of the premises. (Uncertainty is 1 minus the probability.)

Ten premises, each 99 per cent certain, guarantee only 90 per cent for the conclusion. So long chains of reasoning leak. This leads to a pair of puzzles worth knowing.

Definition

Lottery paradox. For a fair lottery with a million tickets, it’s reasonable to believe of each ticket that it will lose. It’s also reasonable to believe one will win. Yet these beliefs are inconsistent. Henry Kyburg raised this in 1961.

Definition

Preface paradox. An author believes every statement in a book and also believes, reasonably, that the book has at least one error. David Makinson set this out in 1965.

These suggest you cannot hold “reasonable to believe” as a yes-or-no category and expect it to be closed under ∧. That fits the rule above. High probability for each claim does not give high probability for them all taken together.

Try to break this

You’re on a game show. Three doors: a car behind one, goats behind two. You pick door 1. The host, who knows where the car is and always opens a door with a goat, opens door 3. Should you switch to door 2? Many intelligent people are quite sure it makes no difference. Before you read the answer below, count: imagine playing 300 times, and write the table.

18.8 Exercises

  1. Solve the door problem above by counting.

    Answer

    In 300 games, you pick the car at the start in about 100, and a goat in about 200. Switching loses in the first 100 and wins in the other 200, because the host has removed the only other goat. So switching wins two times out of three. The key is that the host’s choice is not random.

  2. “Most car accidents happen near home. So you are safer driving far away.” What is missing?

    Answer

    The base rate. Most driving is done near home, so more accidents would be expected there even if the risk per mile were the same.

  3. A witness says that a taxi was blue. Witnesses in these conditions are right 80 per cent of the time. Only 15 per cent of taxis in the city are blue, and the rest are green. What is the probability it was blue? (Numbers adapted from a well-known problem by Tversky and Kahneman, for practice.)

    Answer

    Take 100 taxis. Of 15 blue, 12 are called blue. Of 85 green, 17 are called blue. So 12 / 29, about 41 per cent.

  4. What is the likelihood ratio of a test that is positive for 99 per cent of those with a condition, and for 1 per cent of those without it? Starting from prior odds of 1 to 999, what are the posterior odds?

    Answer

    The ratio is 99. Posterior odds are 99 to 999, or about 1 to 10. That is about a 9 per cent chance. Even a very good test can leave you uncertain if the condition is rare.

  5. Which is more probable? (a) “A major earthquake strikes somewhere in the next ten years.” (b) “A major earthquake strikes in California in the next ten years, causing a flood.”

    Answer

    (a). Every situation in which (b) is true is also a situation in which (a) is true. (b) may feel more vivid.

  6. You have read ten independent claims, each with a 95 per cent chance of being true. What does the rule of uncertainties promise for their conjunction? What is the real value if they are independent?

    Answer

    The sum of the uncertainties is 0.5, so the rule promises at least 50 per cent. If they are independent, the value is 0.95¹⁰, about 60 per cent.