# Bayesian Statistics

> Bayesian statistics combines prior beliefs with data to estimate uncertain quantities. Learn priors and posteriors, shrinkage, credible intervals and trading uses.

Source: https://learn.tradelabsai.com/math/bayesian-statistics/  
Track: Math and Statistics · Level: Intermediate · Updated: 2026-10-03  
Publisher: TradeLabs AI (https://tradelabsai.com). Education, not financial advice.  
Cite as: TradeLabs Learn, "Bayesian Statistics", https://learn.tradelabsai.com/math/bayesian-statistics/

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](https://learn.tradelabsai.com/math/maximum-likelihood/).
- **Posterior:** your updated belief.

This is Bayes' theorem applied to whole distributions. See [Bayes' Theorem](https://learn.tradelabsai.com/math/bayes-theorem/).

## A worked example: estimating a win rate

**Example: A beta prior for a win rate**
You test a new setup. Before trading, based on similar setups, you believe its win rate is probably around 50%, and you express this as a beta distribution with parameters a = 20 and b = 20 (equivalent to having seen 20 wins and 20 losses).

You then take 30 trades: 21 wins and 9 losses (70%).

The posterior is a beta distribution with a = 20 + 21 = 41 and b = 20 + 9 = 29. Its mean is 41 / 70 ≈ 58.6%.

The raw data says 70%, but with only 30 trades, the Bayesian estimate pulls it toward the prior, giving 58.6%. As more trades arrive, the data dominates and the prior matters less.

## 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](https://learn.tradelabsai.com/portfolio/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](https://learn.tradelabsai.com/math/confidence-intervals/).

## Bayesian methods in trading

| Method | Use | Lesson |
|---|---|---|
| Black Litterman model | Combine market equilibrium returns with investor views | [Black-Litterman Model](https://learn.tradelabsai.com/portfolio/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](https://learn.tradelabsai.com/strategies/pairs-trading/) |
| Hierarchical models | Share information across related assets or strategies | |
| Regime models | Estimate probabilities of hidden market states | [Structural Breaks and Regime Changes](https://learn.tradelabsai.com/math/regime-changes/) |
| Bayesian optimisation | Search parameter spaces efficiently | [Parameter Optimization](https://learn.tradelabsai.com/research/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](https://learn.tradelabsai.com/math/probability-distributions/).

## Continue learning

- Next lesson: [Probability Distributions Explained](https://learn.tradelabsai.com/math/probability-distributions/)
- Previous lesson: [Maximum Likelihood](https://learn.tradelabsai.com/math/maximum-likelihood/)
- Related: [Maximum Likelihood](https://learn.tradelabsai.com/math/maximum-likelihood/): Maximum likelihood estimation finds the model parameters that make observed data most probable. Learn the idea, simple examples, its use in GARCH and its limits.
- Related: [Bayes' Theorem](https://learn.tradelabsai.com/math/bayes-theorem/): Bayes' theorem shows how to update a probability when new evidence arrives. Learn the formula, trading and prediction market examples, and base rate errors.
- Related: [Confidence Intervals](https://learn.tradelabsai.com/math/confidence-intervals/): A confidence interval gives a range of plausible values for a statistic. Learn how to calculate them for returns and win rates and how to read them in backtests.
- Related: [Black-Litterman Model](https://learn.tradelabsai.com/portfolio/black-litterman-model/): The Black Litterman model starts from market implied returns and blends in an investor's views with stated confidence, producing stable and intuitive portfolios.
- Related: [Combining Signals](https://learn.tradelabsai.com/research/combining-signals/): Combining several weak signals often beats relying on one strong one. Learn standardisation, weighting methods, correlation between signals and pitfalls to avoid.
