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
Formula: Beta and binomial
After x fills in n orders. Read a and b as fills and misses you have already seen.
Example: Updating a fill rate
Prior , worth orders. Then of orders fill. What is the posterior mean?
- Posterior
- Mean
Idea: A weighted average
The posterior mean averages the raw rate and the prior mean; the data weigh .
- Here
- Check:
Common mistake: Same mean, same prior
and both have mean , yet data move them very differently.
Instead After fills in : but . State .
Formula: Gamma and Poisson
After s events in t days: a pseudo-events over b pseudo-days, mean (a + s)/(b + t).
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 .
Formula: Normal and normal: precisions add
Precision is 1 over a variance. The posterior mean averages m and x̄ weighted by their precisions.
Example: A normal update
Prior for the mean, , , . Find the posterior mean.
- Precision , so
- Mean
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