Bayesian statistics: conjugacy, shrinkage and credible intervals
STAT · Chapter 712 min readAsked at Two Sigma, QuantCo, Citadel, DE Shaw
After this lesson you should be able to
- Update a beta prior with binomial data and read off the posterior.
- State the difference between a credible and a confidence interval.
- Explain why a Bayesian posterior mean is a shrinkage estimator.
Bayesian inference treats the parameter as uncertain and the data as fixed, which is the reverse of the frequentist setup and much closer to how a trader actually reasons. The practical payoff in finance is shrinkage: a prior is a principled way of saying "this estimate is mostly noise, so do not move far from where I started".
Equation 7.1
The update
Posterior is proportional to likelihood times prior. The constant of proportionality is whatever makes it integrate to one, and for conjugate pairs you never need to compute it.
- What you believed before seeing the data.
- The likelihood — the same object as in maximum likelihood.
| Likelihood | Prior | Posterior |
|---|---|---|
| Binomial | Beta | Beta |
| Poisson | Gamma | Gamma |
| Normal, known variance | Normal | Normal, with precision-weighted mean |
| Normal, unknown variance | Normal-inverse-gamma | Same family |
| Multinomial | Dirichlet | Dirichlet, counts added |
A prior is a pile of imaginary data. Beta behaves exactly as if you had already seen successes and failures before the experiment began. That reading makes the strength of a prior concrete: Beta is two observations’ worth and barely moves the answer, while Beta is a hundred and will dominate a sample of twenty. It also tells you how to elicit one — ask how many observations of evidence your belief is worth, rather than asking someone to draw a density.
Example 7.4
You believe a signal has around a hit rate, with Beta worth of conviction. It then hits 7 of 10. What is your posterior?
Show the worked solutionHide the worked solution
Worked solution
- Formula
- Substitute
- Solve
- Answer
Sanity check. The sample said and the prior said ; the posterior sits at , much closer to the prior because twenty pseudo-observations outweigh ten real ones. That pull is shrinkage, and it is what stops you over-reacting to a short run.
The rest of this lesson is in Premium
You have read the opening. 9 more sections follow, including 3 worked examples and 3 quick checks.
Nothing is charged for 7 days, and you can cancel before then. Or read The law of large numbers and the central limit theorem in full, free.