Bodnar-Okhrin-Parolya Shrinkage

The Bodnar-Okhrin-Parolya Shrinkage combines the average returns and a target, their grand mean, with weights that are optimal for the quadratic loss when the number of assets grows with the number of periods (Bodnar, Okhrin and Parolya, 2019). Unlike the James-Stein Shrinkage, the two weights need not add up to one.

The formula for the Bodnar-Okhrin-Parolya Shrinkage starts from the averages m of the N assets over the T periods, the target b, a vector that holds their grand mean, and three quadratic forms with the inverse of the sample covariance S (ddof=1):

\[Q_{1} = m' \cdot S^{-1} \cdot m\] \[Q_{2} = m' \cdot S^{-1} \cdot b\] \[Q_{3} = b' \cdot S^{-1} \cdot b\]

The weight a of the averages and c of the target follow from them:

\[a = \frac{\left(Q_{1} - \frac{N}{T - N}\right) \cdot Q_{3} - Q_{2}^{2}}{Q_{1} \cdot Q_{3} - Q_{2}^{2}}\] \[c = \frac{(1 - a) \cdot Q_{2}}{Q_{3}}\]

The estimate combines the two and is scaled to a year with P, the number of periods in a year:

\[\mu = P \cdot (a \cdot m + c \cdot b)\]

A weight a well below 1 means the averages carry little information beyond their grand mean; the estimate can then lie further from the averages than either of them.

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: BOP estimator, optimal shrinkage mean.

In the Finance Toolkit this is get_expected_returns_estimate with method="bodnar_okhrin_parolya", 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="bodnar_okhrin_parolya", show_columns=["Mean", "Geometric", "Bayes-Stein", "James-Stein", "Bodnar-Okhrin-Parolya"])

Which returns:

References

  • Paper Bodnar, T., Okhrin, O. and Parolya, N. (2019). “Optimal Shrinkage Estimator for High-Dimensional Mean Vector.” Journal of Multivariate Analysis, 170, 63-79.
  • Library Referenced against skfolio’s ShrunkMu (Bodnar-Okhrin-Parolya Shrinkage)
  • Library Shares similar logic as Riskfolio-Lib’s mean_vector (Bodnar-Okhrin-Parolya Shrinkage)
Share