Charta is on Google Play: practise on the go. Get the app

Use Bayes' formula to revise a probability

CFA® Level I · Quantitative Methods · Statistical Distributions for Financial Asset Prices and Returns · QM.4.c

The idea

Bayes' formula revises a probability when new information arrives: the updated (posterior) probability equals the likelihood of the evidence given the event, times the prior probability, divided by the total probability of the evidence. In words, it asks how much more consistent the evidence is with one state of the world than another, and moves the prior accordingly. Strong evidence moves a prior a long way; weak evidence barely moves it. Most reasoning errors here come from ignoring the prior altogether, which makes a rare event look common whenever a test for it is positive.

Formulas

Bayes' formula

P(A | B) = P(B | A) × P(A) ÷ P(B)

P(A)
the prior - what you believed before the evidence
P(B | A)
how likely the evidence is if A is true
P(B)
how likely the evidence is overall

Updating a belief with new information. The commonest error is ignoring the prior when it is small.

A practice question

From the question bank, with the reason each wrong option is wrong.

What does Bayes' formula do?

  1. Updates a prior probability in the light of new evidence - correct
  2. Calculates the variance of a distributionWhy not: Variance is a summary of a distribution you already have. Bayes' formula changes which distribution you hold.
  3. Converts a conditional probability into an unconditional oneWhy not: It converts a conditional probability into the reverse conditional - P(evidence given state) into P(state given evidence). Both remain conditional.

Bayes' formula is a way to revise a probability when you learn something new. You start with a prior probability, your belief before the new information. The formula then produces a posterior probability, your belief after it. Posterior = (Probability of the evidence if the event is true x Prior) / Probability of the evidence overall. In everyday terms, it tells you how much to change your mind, no more and no less.

A harder one

What does strong evidence do to a prior?

  1. Leaves it largely unchanged by the new dataWhy not: That is what no evidence does, or evidence that is equally likely under either state.
  2. Replaces it with the evidence's own probabilityWhy not: The prior still counts because the posterior is proportional to it. Evidence shifts the prior rather than discarding it.
  3. Shifts it towards what the evidence favours - correct

Strong evidence moves the prior a long way, but it does not erase it. Rule in odds form: posterior odds = prior odds x likelihood ratio, where the ratio says how much more likely the evidence is if the event is true. Example: a prior of 10% is odds of 1 to 9. Evidence four times as likely under the favoured case gives odds of 4 to 9, which is about 31%. So the prior is shifted, not thrown away, and a very small prior can stay small.

The hardest tier

An analyst applies Bayes' formula but uses a prior of 50% for an event that historically occurs 5% of the time. What is the effect?

  1. Little, because the evidence outweighs the priorWhy not: The posterior is proportional to the prior, so the prior never drops out. Evidence moves it; it does not replace it.
  2. The posterior will be too low, as the prior is discountedWhy not: The wrong direction. A prior ten times the base rate inflates the posterior, it does not depress it.
  3. The posterior will be much too high, as the prior is inflated - correct

In Bayes' formula the starting belief (the prior) feeds straight into the answer. Posterior odds = Prior odds x Likelihood ratio. A prior ten times too big gives a posterior that is far too big. Suppose the evidence is four times as likely if the event occurs. A true 5% prior gives odds of 5/95 x 4 = 0.21, or about 17%. A 50% prior gives odds of 1 x 4 = 4, or 80%. The evidence cannot rescue a bad prior.

In the app: 18 practice questions on this outcome, a narrated walkthrough with diagrams, spaced review that brings it back before you forget it.

Take the free diagnostic →

More in Statistical Distributions for Financial Asset Prices and Returns