Empirical Bayes
A shortcut for Bayesian analysis that estimates the prior itself from the same batch of data rather than specifying it by hand in advance — useful when you have many related, small-sample problems and want to borrow strength across them.
Prerequisites: Prior Elicitation and Prior Choice, Bayes' Theorem
A fund runs 50 small strategies, each with only a few months of live returns — far too little data to trust any single one's Sharpe ratio estimate on its own. A pure Bayesian approach would want a prior for each strategy's true Sharpe, but where would 50 separate, carefully elicited priors come from? Empirical Bayes offers a shortcut: instead of specifying the prior from outside knowledge, estimate it directly from the data itself — from the other 49 strategies — and let each strategy's estimate borrow strength from the whole group.
An analogy: guessing one batter's true skill using the whole league
A scout wants to estimate one rookie batter's true long-run batting average after only 20 at-bats — far too few to trust the raw number, which might be an inflated 0.400 or a deflated 0.150 purely from small-sample luck. But the scout also has data on hundreds of other players: batting averages cluster in a narrow, well-known range, mostly between 0.220 and 0.300. That league-wide pattern is a prior — not one the scout made up from theory, but one estimated directly from everyone else's data. Combining the rookie's raw 20-at-bat number with this data-derived prior pulls an extreme early number back toward the league-typical range, exactly as much as the small sample warrants. This pulling-back effect is called shrinkage, the signature move of empirical Bayes.
The maths, one symbol at a time
Suppose you have related units (strategies, batters, stores) each with its own true parameter and a noisy observed estimate . Empirical Bayes assumes the true 's themselves are drawn from a common population distribution, say , and estimates and directly from the observed across all units — rather than specifying them by hand. The resulting shrinkage estimator for each individual unit is approximately:
In words: start from the group average , then move toward the unit's own raw estimate , but only by a fraction that depends on how noisy that unit's own estimate is (, its estimation variance) relative to how much true variation exists across units (). A unit with a very noisy individual estimate (small sample) gets shrunk hard toward the group average; a unit with a precise individual estimate (large sample) barely moves, because its own data is already trustworthy enough to stand largely on its own.
Worked example 1: shrinking Sharpe ratios across strategies
Suppose the 50 strategies' raw Sharpe estimates have group mean and between-strategy variance (Sharpes genuinely range fairly widely). One strategy, with only 3 months of data, has raw Sharpe (unusually high, likely partly luck) and a large sampling variance from the short history. The shrinkage factor is . The empirical Bayes estimate is — far more sober than the raw 2.4, pulled heavily toward the group average because a 3-month sample carries little weight against the group's known spread.
Worked example 2: a strategy with a longer track record shrinks less
A different strategy in the same group of 50 has 5 years of data, giving a much smaller sampling variance, , with the same raw Sharpe of 2.4. The shrinkage factor is now . The estimate is — much closer to the raw 2.4, because 5 years of data is precise enough that the group prior has far less to add. Same raw number, same group prior, very different shrinkage — driven entirely by how much each estimate can be trusted on its own.
The explorer above shows a single prior-to-posterior update; empirical Bayes runs this same mechanic across many units simultaneously, except the "prior" itself is fitted from the group rather than chosen ahead of time.
What this means in practice
Empirical Bayes is the standard fix for the "many small samples" problem across quant research: shrinking noisy per-stock earnings surprise estimates toward a sector average, shrinking per-strategy Sharpe ratios toward a fund-wide average before capital allocation, or smoothing sparse per-category default rates in credit models (see Bayesian smoothing for rare categories). It's cheaper to implement than eliciting a real prior for every unit, and it directly attacks the regression-to-the-mean problem of chasing whichever noisy estimate happened to look best this quarter.
Empirical Bayes estimates the prior distribution from the same batch of related data it's about to be applied to, then shrinks each individual noisy estimate toward the group average by an amount that depends on how much that individual estimate can be trusted on its own — small samples shrink hard, large samples barely move.
Empirical Bayes technically uses the data twice — once to estimate the prior, once to update each individual posterior — which understates uncertainty slightly compared to a fully Bayesian hierarchical model that treats the group-level parameters as themselves uncertain (see hierarchical Bayesian models). It's also only valid if the units genuinely are drawn from a common population; shrinking a strategy that's structurally different from the rest of the group (a totally different asset class, say) toward an irrelevant group average will bias it toward the wrong number, not a useful one.
Related concepts
Practice in interviews
Further reading
- Efron and Morris, 'Stein's Paradox in Statistics' (1977)
- Gelman et al., Bayesian Data Analysis, ch. 5