Skip to content
← All questions

What is the formal definition of the prior, likelihood, and posterior in the context of the librarian vs. farmer problem?

In this two-category example, the prior P(H)P(H) is the probability of the hypothesis 'Steve is a librarian' before seeing evidence, calculated as 1/211/21 based on the stipulated population. The likelihood P(E∣H)P(E|H) is the probability of the evidence 'fits the description' given the hypothesis is true, stipulated as 0.4. The posterior P(H∣E)P(H|E) is the updated probability of the hypothesis after incorporating the evidence, calculated as approximately 16.7%.

Conditions

  • Hypothesis H: 'Steve is a librarian'
  • Evidence E: 'Fits the description'
  • Population assumption: 10 librarians, 200 farmers
  • Likelihood assumption: 40% for librarians, 10% for farmers

Reasoning, step by step

  1. Define the hypothesis H and evidence E.
  2. Calculate the prior P(H)P(H) from the base rates (10/21010/210).
  3. Identify the likelihood P(E|H) from the descriptive match rate (0.4).
  4. Compute the posterior P(H|E) using Bayes' theorem or the sample grid.
  5. Interpret the posterior as the updated belief.

Example

"Let H be the hypothesis 'Steve is a librarian' and E be the evidence 'fits the description'. The term P(H)=1/21P(H) = 1/21 is the prior probability. The term P(E|H) = 0.4 is the likelihood—how probable the evidence is if the hypothesis is true... This result, P(H|E), is called the posterior—the updated belief after incorporating new data."

Common misconceptions

  • Confusing the prior with the posterior.
  • Thinking the likelihood is the probability of the hypothesis given the evidence.
  • Assuming the prior reflects real-world statistics rather than the specific illustrative setup.

Watch the explanation

Connected concepts

Explore next

Related questions

Find a method

↗
Find a method

↗
Find a method

↗
Understand why

↗
Find a method

↗

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.