Bayesian Statistics
Bayesian statistics combines prior beliefs with data to estimate uncertain quantities. Learn priors and posteriors, shrinkage, credible intervals and trading uses.
Bayesian statistics treats unknown quantities, such as a strategy's true win rate or a stock's expected return, as uncertain values described by probability distributions. You start with a prior distribution reflecting what you believe before seeing the data, then update it with the data to get a posterior distribution. This approach is natural for traders, who constantly update views as new information arrives, and it is especially useful when data is limited or noisy, which describes most of finance.
The core idea#
posterior ∝ likelihood × prior
- Prior: your belief before seeing new data.
- Likelihood: how probable the data is under each possible value. See Maximum Likelihood.
- Posterior: your updated belief.
This is Bayes' theorem applied to whole distributions. See Bayes' Theorem.
A worked example: estimating a win rate#
Shrinkage#
Pulling noisy estimates toward a sensible central value is called shrinkage. It is one of the most useful ideas in quantitative finance:
| Application | What is shrunk |
|---|---|
| Expected returns | Individual stock forecasts shrunk toward the market average |
| Covariance matrices | Sample covariances shrunk toward a simpler structure (Ledoit and Wolf, 2004). See Portfolio Optimization |
| Strategy performance | Backtested Sharpe ratios shrunk toward lower values |
| Betas | Raw betas adjusted toward 1.0 (Blume adjustment) |
| Signal weights | Model coefficients shrunk toward zero (ridge regression) |
Shrinkage reduces the impact of noise and usually improves out of sample performance.
Credible intervals#
A Bayesian 95% credible interval contains the true value with 95% probability, given the model and prior. This matches how most people intuitively interpret intervals, unlike frequentist confidence intervals. See Confidence Intervals.
Bayesian methods in trading#
| Method | Use | Lesson |
|---|---|---|
| Black Litterman model | Combine market equilibrium returns with investor views | Black-Litterman Model |
| Bayesian updating of signals | Adjust strategy confidence as live results arrive | |
| Kalman filters | Track changing hedge ratios or trends in real time | Pairs Trading |
| Hierarchical models | Share information across related assets or strategies | |
| Regime models | Estimate probabilities of hidden market states | Structural Breaks and Regime Changes |
| Bayesian optimisation | Search parameter spaces efficiently | Parameter Optimization |
Choosing priors#
- Informative priors: based on previous research, similar strategies or economic theory.
- Weak or uninformative priors: spread out, letting the data dominate.
- Sceptical priors: centred on "no edge", useful for strategy evaluation, since most ideas do not work.
Results should be checked for sensitivity: if conclusions change completely with a slightly different prior, the data is not very informative.
Frequentist vs Bayesian#
| Frequentist | Bayesian | |
|---|---|---|
| Parameters | Fixed but unknown | Uncertain, described by distributions |
| Prior information | Not used formally | Used explicitly |
| Intervals | Confidence intervals | Credible intervals |
| Small samples | Can be unstable | Prior stabilises estimates |
Both have strengths; many practitioners use whichever suits the problem.
Frequently asked questions#
What is Bayesian statistics?#
An approach that treats unknown quantities as probability distributions and updates prior beliefs with data to form posterior beliefs.
What is shrinkage in finance?#
Pulling noisy estimates, such as expected returns or covariances, toward a sensible central value to reduce the effect of noise.
Why is Bayesian thinking useful for traders?#
Because market data is limited and noisy, and Bayesian methods combine prior knowledge with new evidence and update naturally as results arrive.
Next, learn the shapes data can take in Probability Distributions Explained.
3 quick questions on this lesson. Get them all right to finish it.
Turn on JavaScript to take the quiz.
Mentioned in
- Linear Algebra for TradersMath and Statistics