Bayes-Stein Shrinkage

The Bayes-Stein Shrinkage pulls the average returns towards the average return of the minimum variance portfolio, by an intensity that grows as the averages differ less compared to their estimation error. Jorion (1986) derived it as a Bayesian estimator with a prior centred on that common return, which removes much of the estimation error of the averages.

The formula for the Bayes-Stein Shrinkage starts from the sample covariance S (ddof=1) of the T periods of the N assets, rescaled as Jorion proposed, and the average return \(\mu_{0}\) of the minimum variance portfolio of the averages m, with u a vector of ones:

\[\Sigma = \frac{S \cdot (T - 1)}{T - N - 2}\] \[\mu_{0} = \frac{u' \cdot \Sigma^{-1} \cdot m}{u' \cdot \Sigma^{-1} \cdot u}\]

The shrinkage intensity phi follows from the distance d between the averages and the common return, measured in the units of the covariance:

\[d = m - \mu_{0} \cdot u\] \[\phi = \frac{N + 2}{(N + 2) + T \cdot d' \cdot \Sigma^{-1} \cdot d}\]

The estimate moves every average that share of the way towards \(\mu_{0}\), scaled to a year with P, the number of periods in a year:

\[\mu = P \cdot ((1 - \phi) \cdot m + \phi \cdot \mu_{0} \cdot u)\]

A phi close to 1 means the history cannot tell the assets apart, and the estimate gives them almost the same expected return; the minimum variance portfolio then becomes the natural choice.

It shows how much the choice moves the input that mean-variance weights are most sensitive to. The expected return of an asset can only be estimated from a short and noisy history: the precision of an average return grows with the length of the history in years, not with the number of periods within them, so even decades of data leave it imprecise. An optimizer that takes such estimates at face value bets most on the assets whose averages happen to be highest in the sample. The estimators differ in how they deal with this: by weighting recent periods, by deriving the returns from a model of risk, by shrinking the averages towards a common value or by using only an ordering of the assets.

Also known as: Bayes-Stein mean, Jorion estimator, shrunk mu.

In the Finance Toolkit this is get_expected_returns_estimate with method="bayes_stein", the same function as Expected Returns Estimate.

Example · AAPL, MSFT, JNJ, XOM · 2021 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_expected_returns_estimate:

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["AAPL", "MSFT", "JNJ", "XOM"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

toolkit.portfolio.get_expected_returns_estimate(method="bayes_stein", show_columns=["Mean", "Geometric", "Bayes-Stein", "James-Stein", "Bodnar-Okhrin-Parolya"])

Which returns:

References

  • Paper Jorion, P. (1986). “Bayes-Stein Estimation for Portfolio Analysis.” Journal of Financial and Quantitative Analysis, 21(3), 279-292.
  • Library Shares similar logic as skfolio’s ShrunkMu (Bayes-Stein Shrinkage)
Share