Covariance estimation in portfolio optimisation: look-back periods, shrinkage, and stability — pfolio Academy

Covariance estimation in portfolio optimisation: look-back periods, shrinkage, and stability

Portfolio optimisation—including mean-variance optimisation and its variants—requires an estimate of how assets move relative to each other. This estimate, the covariance matrix, is the input most responsible for the instability of optimised portfolios. Small errors in covariance estimation can produce dramatically different optimal weights, leading to concentrated positions, excessive turnover, and poor out-of-sample performance. Understanding why covariance estimation is difficult, and what approaches exist to improve stability, is essential context for interpreting any quantitative portfolio construction method.

What covariance estimation involves

The covariance matrix for a portfolio of N assets contains N variance terms (one per asset) and N(N−1)/2 unique covariance terms. For a 20-asset portfolio, this means 190 unique parameters to estimate from historical data.

The standard approach is the sample covariance matrix: calculate each covariance from the historical returns series over a chosen look-back window. The problems with this approach are:

  • Estimation error: with T observations and N assets, the sample covariance matrix is noisy when T is not much larger than N. The noise increases as N grows and as T shrinks. For portfolios with 50+ assets and five years of monthly data (60 observations), the sample covariance matrix has substantial estimation error.
  • Non-stationarity: covariances are not stable over time. Correlations between equities and bonds, for example, shifted materially—from consistently positive in the 1970s–80s to consistently negative in the 2010s—so a look-back window long enough to reduce noise may include regimes that no longer characterise current market structure.
  • Look-back window choice: short windows (one year) are responsive to recent conditions but noisy. Long windows (ten years) are more stable but may include stale data from different regimes. There is no theoretically correct choice.

Shrinkage estimators

The most widely used improvement on the sample covariance matrix is shrinkage. A shrinkage estimator blends the sample covariance matrix with a structured target—typically a matrix with equal correlations (the constant correlation model) or a single-factor matrix—to pull extreme estimates toward a more stable centre:

Σ_shrunk = (1 − α) × Σ_sample + α × Σ_target

The Ledoit-Wolf formula provides an analytically derived optimal shrinkage intensity α that minimises the expected estimation error. Empirical tests consistently show that Ledoit-Wolf shrinkage produces better out-of-sample portfolio performance than the raw sample covariance matrix across a wide range of asset universes and time periods.

Factor models

An alternative to shrinkage is to estimate covariance through a factor model. In a factor model, returns are decomposed into a small number of common factors (market, size, value, momentum, industry) plus an asset-specific residual. The covariance matrix is reconstructed from factor covariances and factor loadings:

Σ = BFB′ + D

Where B is the matrix of factor loadings, F is the factor covariance matrix, and D is the diagonal matrix of residual variances. Factor models reduce the estimation problem from N(N−1)/2 parameters to a much smaller number and impose structure that makes the estimate more stable across time periods.

Limitations

  • All estimation methods rely on historical data and assume that past covariances are informative about future covariances—an assumption that holds imperfectly, particularly across structural regime changes
  • Shrinkage and factor models reduce estimation error but introduce model risk: the structured target or factor model may be misspecified in ways that introduce systematic bias
  • Covariance instability during market stress: correlations rise during crises regardless of the estimation method used, and no estimation approach fully anticipates this
  • The choice of estimation method interacts with the optimisation approach; some combinations are more robust out-of-sample than others, and the best combination varies by asset universe

Covariance estimation in pfolio

pfolio's portfolio optimisation tools use a regularised covariance estimator that incorporates shrinkage to improve out-of-sample stability. Users who examine portfolio weights in the construction module can observe how changing the look-back window or regularisation intensity affects the resulting allocation. The help centre article on mean-variance optimisation provides additional context on the sensitivity of optimal weights to covariance inputs.

Related articles

Disclaimer
This article constitutes advertising within the meaning of Art. 68 FinSA and is for informational purposes only. It does not constitute investment advice. Investments involve risks, including the potential loss of capital.

Get started now

It is never too early and it is never too late to start investing. With pfolio, everybody can be their own wealth manager.
pfolio — start investing for free, broker-agnostic DIY portfolio management
This website uses cookies. Learn more in our Privacy Policy