Quoto

Courses / Bayesian deep dive

Conjugate priors

10 cards2 min readStatistics

Card 1 of 10
  1. Idea: A pair of numbers instead of a curve

    With a conjugate prior the posterior stays in the prior’s family, so an update changes a couple of numbers.

    • No curve to store or normalise
    • Order does not matter: just keep adding
  2. Formula: Beta and binomial

    After x fills in n orders. Read a and b as fills and misses you have already seen.

  3. Example: Updating a fill rate

    Prior , worth orders. Then of orders fill. What is the posterior mean?

    1. Posterior
    2. Mean
  4. Idea: A weighted average

    The posterior mean averages the raw rate and the prior mean; the data weigh .

    • Here
    • Check:
  5. Common mistake: Same mean, same prior

    and both have mean , yet data move them very differently.

    Instead After fills in : but . State .

  6. Formula: Gamma and Poisson

    After s events in t days: a pseudo-events over b pseudo-days, mean (a + s)/(b + t).

  7. Quick check: A disconnect rate

    Prior for daily disconnects. Over days you count . What is the posterior mean rate?

    Show the answer

    Answer:

    Posterior , mean ; the raw rate was .

  8. Formula: Normal and normal: precisions add

    Precision is 1 over a variance. The posterior mean averages m and x̄ weighted by their precisions.

  9. Example: A normal update

    Prior for the mean, , , . Find the posterior mean.

    1. Precision , so
    2. Mean
  10. Idea: When to stop using them

    An honest prior with humps, or fat tails, fits no neat family: use a grid or a sampler.

    • A conjugate model still sanity-checks the heavy method