What is a conjugate prior, and why is the Beta prior for a coin's heads probability easy to interpret as 'imaginary extra tosses'? What is the posterior for a Beta(1, 1) prior after 3 heads and 1 tail?

Probabilistic models, Conjugate priors
Level L1 Beginner. Length Short. Nature Th+Mat Both.

What's being asked

Whether you know why some prior and likelihood pairs give a posterior of the same family, so updating becomes simple counting.

Key idea

A prior is conjugate to a likelihood if the posterior is in the same family as the prior. For a coin, the Beta(a,b) prior and Bernoulli tosses are conjugate: after seeing h heads and t tails the posterior is Beta(a+h, b+t). So a and b act like pseudo-counts, imaginary heads and tails you believed in before tossing.

Steps

  1. Say what we want: a belief about the unknown heads probability θ before data (prior), data (tosses), and an updated belief after data (posterior).
  2. State the update rule: add the real counts to the prior counts. Posterior =Beta(a+h, b+t). No integral needs doing; this is the whole benefit of conjugacy.
  3. Interpret a,b: Beta(1,1) is flat (all values of θ equally likely) and behaves like having seen one imaginary head and one imaginary tail. A big prior such as Beta(50,50) is like 100 imaginary tosses and moves slowly.
  4. Do the example: prior Beta(1,1), data 3 heads and 1 tail, so posterior =Beta(1+3, 1+1)=Beta(4,2).
  5. Read it: the posterior mean is aa+b=46=23≈0.67. With more tosses the real counts outweigh the pseudo-counts and the prior matters less.

Common mistakes

How long your answer should be

About 2 minutes: the update rule, the pseudo-count reading, then Beta(4, 2).

Read this

Previous in Probabilistic models: What is a latent (hidden) variable in a probabilistic model, and why might we add one? Heights of students are recorded, but not whether each student is in the junior batch or the senior batch. If half are juniors averaging 160 cm and half are seniors averaging 170 cm, what is the overall average height?
Next in Probabilistic models: What is a Bayesian network, and why does it need far fewer parameters than the full joint distribution?