Bayesian Inference
Treating parameters as random and updating beliefs with data, priors, posteriors, conjugacy, credible intervals, and the deep result that shrinkage and regularization are Bayesian estimation in disguise.
Prerequisites: Maximum Likelihood Estimation (MLE), Bias, Variance, and the Quality of Estimators
Bayesian inference inverts the frequentist picture. Where a frequentist treats the parameter as a fixed unknown and the data as random, a Bayesian treats the parameter as random, an object of belief, and updates that belief as data arrive. This reframing does two things a quant should care about: it gives the interval statement everyone wants (a probability that the parameter lies in a range), and it unifies shrinkage, regularization, and the whole practice of "pulling estimates toward a sensible prior" under one principled operation. In a low-data, strong-prior world like finance, that is not a philosophical luxury, it is the natural machinery.
Bayes' theorem as an updating rule
Encode beliefs about a parameter before seeing data as the prior . The likelihood says how probable the data are for each (the same object maximized in Maximum Likelihood Estimation (MLE)). Bayes' theorem combines them into the posterior:
The denominator is just the normalizing constant, so the working slogan is posterior ∝ likelihood × prior. All Bayesian inference is reading off summaries of the posterior: its mean or mode is the point estimate, its spread is the uncertainty.
Conjugacy: when the update is closed-form
For special prior–likelihood pairs the posterior is in the same family as the prior, conjugacy, and updating is algebra rather than integration. The canonical example is the normal-mean model. With data ( known) and a normal prior , the posterior is normal with
Read this carefully, it is the heart of Bayesian shrinkage. The posterior mean is a precision-weighted average of the prior mean and the data mean , where precision is inverse variance. When data are scarce or noisy (small , large ), the estimate stays near the prior; as data accumulate () the data term dominates and the posterior mean , converging to the MLE. The prior's influence is exactly an extra " worth" of pseudo-observations. Other conjugate pairs, Beta–Binomial for probabilities, Gamma–Poisson for counts, Inverse-Gamma for variances, follow the same "add pseudo-counts" logic.
Credible intervals, what people actually want
A credible interval is a range that contains the parameter with stated posterior probability:
This is the statement almost everyone wrongly attributes to a frequentist confidence interval. Here it is literally correct, because is random, "95% probability is in this interval" is a legitimate sentence. The price is that it depends on the prior; the reward is directness. (With a flat prior and symmetric likelihood the two intervals often numerically coincide, which is why the misinterpretation persists.)
The deep connection: regularization is Bayes
The result that should make a quant sit up: penalized estimation is Bayesian MAP estimation. The maximum a posteriori estimate maximizes . Take a Gaussian likelihood (so the log-likelihood is ) and:
- a Gaussian prior contributes , the MAP objective is exactly ridge with ;
- a Laplace prior contributes , the MAP objective is exactly LASSO.
So ridge and LASSO are not ad-hoc penalties; they are posterior modes under a belief that coefficients are small. The tuning parameter is the prior's tightness. This is the unifying view behind Ridge and LASSO Regularization and covariance Shrinkage, shrinking a noisy sample estimate toward a structured target is precisely combining a weak likelihood with an informative prior.
Worked example: shrinking a strategy's Sharpe
You observe a new strategy with an in-sample Sharpe of over one year, but you have a strong prior, from having seen hundreds of strategies, that true Sharpes cluster near with modest spread. The one-year estimate is noisy (large , small ), so the precision-weighted posterior mean pulls heavily toward , you might land near . This is not pessimism for its own sake; it is the mathematically correct combination of a weak signal with a well-founded prior, and it is why sophisticated allocators discount dazzling short-track-record Sharpes rather than taking them at face value. The Black–Litterman model applies the identical logic to expected returns, blending a market-equilibrium prior with investor views.
Failure modes in financial data
- Prior misspecification. A confidently wrong prior biases the posterior, and with little data the prior dominates, garbage prior, garbage posterior. The discipline is to make priors explicit and test sensitivity to them.
- Overconfident priors on non-stationary parameters. A tight prior on a drifting quantity (a beta, a vol) fights the very adaptation you need; priors should be wide enough to let regime changes register. See Stationarity.
- Computational cost. Outside conjugate families the posterior is an intractable integral requiring MCMC or variational approximation, which can be slow to converge and hard to diagnose for high-dimensional models.
- Pseudo-objectivity. "Non-informative" priors are not truly neutral (they are not invariant to reparameterization) and can be surprisingly influential in small samples; there is no escaping the prior choice, only making it honestly.
In interviews
State Bayes' theorem as posterior ∝ likelihood × prior and be able to explain conjugacy with the normal–normal example, emphasizing that the posterior mean is a precision-weighted average of prior and data that converges to the MLE as . Nail the frequentist-versus-Bayesian interval distinction: a credible interval genuinely carries "95% probability the parameter is inside," which a confidence interval does not. The result interviewers love for quant roles is that ridge = Gaussian prior MAP and LASSO = Laplace prior MAP, regularization is Bayesian estimation, and shrinkage toward a prior is the optimal response to parameter uncertainty. Ground it in finance with the Sharpe-shrinkage or Black–Litterman example: in a low-data world, a good prior is worth more than more parameters.
Related concepts
Practice in interviews
Further reading
- Gelman et al., Bayesian Data Analysis
- Hoff, A First Course in Bayesian Statistical Methods
- Robert, The Bayesian Choice