AnyLearn
All lessons
Businessintermediate

Estimation Error: Why Optimized Portfolios Disappoint

Mean-variance optimization treats its inputs as facts, and they are estimates. See why expected returns are nearly impossible to estimate, how optimizers magnify the noise, why simple 1/N weighting is so hard to beat out of sample, and how shrinkage and constraints recover much of the loss.

Updated · AI-authored, review-gated · how lessons are made

Not signed in: your progress and quiz score won't be saved.
Progress1 / 10

Optimizers as error maximizers

The previous lesson in this course computed mean-variance portfolios from inputs that were known exactly. Real inputs are estimated from a finite sample of history, and the optimizer cannot tell a precise estimate from a noisy one.

Richard Michaud named the consequence in "The Markowitz Optimization Enigma: Is 'Optimized' Optimal?" (Financial Analysts Journal, 1989): mean-variance optimizers behave as estimation-error maximizers. They overweight precisely the assets whose estimates look best, meaning high estimated returns, low estimated variances and negative estimated correlations, and those are disproportionately the assets whose estimates are most wrong in the flattering direction.

Key idea: An optimizer is a machine for acting on differences. Feed it inputs where the true differences are small and the estimation noise is large, and most of what it acts on is noise. The more aggressively it optimizes, the more confidently it bets on the noise.

Full lesson text

All 10 steps on one page, for reading, reference, and search.

Show

1. Optimizers as error maximizers

The previous lesson in this course computed mean-variance portfolios from inputs that were known exactly. Real inputs are estimated from a finite sample of history, and the optimizer cannot tell a precise estimate from a noisy one.

Richard Michaud named the consequence in "The Markowitz Optimization Enigma: Is 'Optimized' Optimal?" (Financial Analysts Journal, 1989): mean-variance optimizers behave as estimation-error maximizers. They overweight precisely the assets whose estimates look best, meaning high estimated returns, low estimated variances and negative estimated correlations, and those are disproportionately the assets whose estimates are most wrong in the flattering direction.

Key idea: An optimizer is a machine for acting on differences. Feed it inputs where the true differences are small and the estimation noise is large, and most of what it acts on is noise. The more aggressively it optimizes, the more confidently it bets on the noise.

2. Why expected returns are the weak input

The standard error of a sample mean shrinks only with the square root of the sample length. For annual returns with volatility σ\sigma observed over TT years:

SE(μ^)=σT\text{SE}(\hat{\mu}) = \frac{\sigma}{\sqrt{T}}

For an asset with 20% volatility, 10 years of data gives a standard error of 20%/10≈6.3%20\% / \sqrt{10} \approx 6.3\% on its expected annual return, larger than a typical equity risk premium. Pinning the mean down to within 1 percentage point would take (20/1)2=400(20 / 1)^2 = 400 years of stable history.

InputWhat sharpens the estimatePractical precision
Expected returnLonger calendar span onlyPoor: sampling more often within the same years does not help
VolatilityMore observations, including higher frequencyGood: daily data over a few years is informative
CorrelationMore observations, but n(n−1)/2n(n-1)/2 of themModerate, degrading fast as nn grows

Chopra and Ziemba (Journal of Portfolio Management, 1993) measured the damage directly: for an investor with moderate risk tolerance, errors in expected returns cost roughly ten times as much as errors in variances, and roughly twenty times as much as errors in covariances.

3. A controlled experiment

Simulation shows the effect without any argument about real markets. Build a market whose true parameters are known: 10 assets driven by one common factor (16% volatility, 6% annual premium), betas from 0.6 to 1.4, idiosyncratic volatility from 20% to 35%, and fixed small true alphas, so the true optimal portfolio genuinely beats equal weighting. Its true Sharpe ratio is 0.382, against 0.339 for 1/N.

Now pretend not to know the parameters. Draw TT months of returns, estimate the means and covariance from them, compute the tangency portfolio, and score its weights with the true parameters. Repeat 1,000 times per sample length.

True Sharpe ratio of the estimated tangency portfolio
Estimated mean-variance1/NTrue optimum
Annualised Sharpe ratio, scored on true parameters (Sharpe)00.10.20.30.45y10y20y50y100y250y500y
Source: Computed for this lesson: one-factor market, 10 assets, monthly returns, 1,000 simulations per window, numpy seed 0

With 5 years of data, the estimated portfolio's true Sharpe ratio averages 0.105, less than a third of what 1/N delivers without estimating anything.

4. How long until optimizing pays?

In the same simulation, count how often the estimated portfolio beats 1/N on true Sharpe ratio.

Estimation windowShare of draws beating 1/N
5 years (60 months)0%
20 years0.5%
50 years3.3%
100 years13.1%
250 years (3,000 months)58.6%
500 years95.2%
Predict first

The crossover in this toy market sits near 3,000 months. What did DeMiguel, Garlappi and Uppal (2009) find for a 25-asset portfolio calibrated to the US equity market?

The simulation is deliberately generous to the optimizer: returns are normal, parameters never change, and the model is exactly right. Real markets add regime changes and fat tails, which make estimation harder, not easier.

5. The 1/N result

DeMiguel, Garlappi and Uppal's "Optimal Versus Naive Diversification: How Inefficient Is the 1/N Portfolio Strategy?" (Review of Financial Studies, 2009) ran the comparison on real data. They evaluated 14 models, the sample mean-variance portfolio plus extensions designed specifically to reduce estimation error, across seven empirical datasets, and reported that none is consistently better than the 1/N rule in terms of Sharpe ratio, certainty-equivalent return, or turnover.

Their conclusion is that, out of sample, the gain from optimal diversification is more than offset by estimation error.

Gotcha: The result does not say optimization is useless or that 1/N is optimal. It says that with realistic amounts of data, the estimated optimum is further from the true optimum than 1/N is. 1/N wins by estimating nothing, so it cannot be hurt by estimation error. That makes it the right benchmark for any optimized strategy: an optimizer that cannot beat 1/N out of sample has not demonstrated anything.

6. The covariance matrix is noisy too

Dropping expected returns and targeting minimum variance removes the weakest input, but the covariance matrix has its own problem: size. With 50 assets it has 1,275 distinct entries, and five years of monthly data supplies only 60 observations per asset. The sample estimate is then badly conditioned, and inverting it, which every optimizer does, amplifies its errors.

The same one-factor simulation, now with 50 assets and 60 months of data, scoring minimum-variance portfolios by their true volatility over 500 draws:

True volatility of minimum-variance portfolios, 50 assets, 60 months
Annualised volatility on true parameters (%)010203011.1513.8116.4828.12True optimumLedoit-Wolf shrinkage1/NSample covariance
Source: Computed for this lesson: one-factor market, 50 assets, 60 monthly observations, 500 simulations, scikit-learn LedoitWolf, numpy seed 1

The portfolio built to have the least risk, using the sample covariance, ends up with 28.1% true volatility, far worse than 1/N at 16.5%. The same optimizer fed a shrunk covariance estimate reaches 13.8%, better than 1/N and much closer to the true minimum of 11.2%.

7. Shrinkage: pull the estimate toward structure

Ledoit and Wolf's "Honey, I Shrunk the Sample Covariance Matrix" (Journal of Portfolio Management, 2004) argues that the sample covariance matrix should not be used for portfolio optimization, because it contains exactly the kind of error that perturbs an optimizer most. Their remedy is a weighted average of the sample matrix SS and a simple, stable target FF:

Σ^=δF+(1−δ)S,0≤δ≤1\hat{\Sigma} = \delta F + (1 - \delta) S, \qquad 0 \le \delta \le 1

The target has few parameters, for example a constant correlation or a single-factor model, so it is biased but precise. The sample matrix is unbiased but noisy. The shrinkage intensity δ\delta is estimated from the data to minimise expected error, so no tuning is required. The effect is to pull extreme coefficients toward central values, which is where the optimizer was being misled.

from sklearn.covariance import LedoitWolf
import numpy as np

lw = LedoitWolf().fit(returns)        # returns: T x n array of asset returns
Sigma_hat = lw.covariance_
print("shrinkage intensity:", round(lw.shrinkage_, 3))

w = np.linalg.solve(Sigma_hat, np.ones(Sigma_hat.shape[0]))
w_minvar = w / w.sum()

scikit-learn's implementation shrinks toward a scaled identity matrix, a simpler target than the ones in the 2004 paper.

8. Constraints as hidden shrinkage

Practitioners long imposed no-short-selling rules and position limits for business reasons, and noticed that constrained portfolios often performed better out of sample than the unconstrained optimum, even though the constraints are "wrong" in theory.

Jagannathan and Ma (Journal of Finance, 2003) explained why in "Risk Reduction in Large Portfolios: Why Imposing the Wrong Constraints Helps". A no-short-sale constraint binds precisely on the assets the optimizer wants to short, which are typically those whose estimated covariances are too high. Imposing it has the same effect as shrinking those extreme estimates. They found that with no-short-sale constraints in place, the plain sample covariance matrix performed about as well as factor models, shrinkage estimators and daily-data estimates.

ToolWhat it does to the inputs or weightsCost
Covariance shrinkagePulls extreme estimates toward a structured targetSome bias toward the target
Long-only constraintImplicitly shrinks the estimates that drive short positionsCannot express negative views
Position capsStops any single estimate from dominatingGives up concentration when it is justified
Ignoring expected returnsRemoves the noisiest input entirelyNo use of any return views

9. From noisy inputs to robust weights

Each remedy attacks a different stage of the pipeline from the previous lesson.

flowchart LR
  A["Sample means: very noisy"] --> X["Drop them, or shrink hard"]
  B["Sample covariance: noisy when n is large"] --> Y["Shrink toward a structured target"]
  X --> O["Optimizer"]
  Y --> O
  C["Long-only and position caps"] --> O
  O --> W["Weights"]
  W --> T["Test out of sample against 1/N"]

10. What to take from this

The estimation-error literature does not leave you with nothing. It leaves you with an ordering of how much to trust each step.

  1. Trust expected-return estimates least. Historical averages over any realistic window are mostly noise. If a strategy's weights depend heavily on them, its backtest is likely to overstate what it will deliver.
  2. Prefer portfolios that need fewer estimates. Minimum variance needs no means; equal weighting needs nothing at all.
  3. Never feed a raw sample covariance matrix to an optimizer when the number of assets is not small relative to the number of observations. Shrink it.
  4. Treat constraints as regularisation, not only as compliance rules.
  5. Benchmark against 1/N out of sample. Any claimed improvement should survive that comparison after costs.

In practice: This is the portfolio version of overfitting. An unconstrained optimizer on sample inputs is a flexible model fitted to a short, noisy dataset, and it fails for the same reason. The next lesson turns to the portfolio rules that use less estimation, and what they cost.

Check your understanding

The lesson ends with a 5-question quiz. Take it in the player above to see your score.

  1. An asset has 20% annual volatility. Roughly what is the standard error of its expected annual return estimated from 10 years of data?
    • 0.2%
    • 2%
    • About 6.3%
    • 20%
  2. According to Chopra and Ziemba (1993), which input errors are the most costly for a mean-variance investor?
    • Errors in expected returns
    • Errors in variances
    • Errors in covariances
    • All three cost about the same
  3. What did DeMiguel, Garlappi and Uppal (2009) find across 14 models and seven datasets?
    • Mean-variance consistently beat 1/N after five years of data
    • Minimum variance always beat 1/N
    • 1/N is the true optimal portfolio
    • None of the models was consistently better than 1/N in Sharpe ratio, certainty-equivalent return, or turnover
  4. In the lesson's 50-asset simulation with 60 months of data, why did the sample-covariance minimum-variance portfolio end up riskier than 1/N?
    • Because minimum variance ignores covariances
    • Because inverting a large, noisy sample covariance matrix amplifies its errors into extreme weights
    • Because 1/N uses more data
    • Because shrinkage was applied by mistake
  5. Why can a no-short-sale constraint improve out-of-sample risk, according to Jagannathan and Ma (2003)?
    • It forces the portfolio into cash
    • It raises expected returns
    • It acts like shrinkage on the extreme covariance estimates that drive short positions
    • It removes the need for a covariance matrix

Related lessons

Business
intermediate

Practical Portfolio Construction: Minimum Variance, Risk Parity and Rebalancing

When expected returns cannot be trusted, portfolios are built from risk instead. Learn how to measure each holding's risk contribution, how minimum variance and equal risk contribution portfolios work and differ, what leverage does to them, and how rebalancing and turnover turn a weight rule into a real strategy.

10 steps·~15 min
Business
intermediate

Mean-Variance Optimization: The Mathematics of Diversification

Portfolio risk is not the average of the risks inside it. Learn Markowitz's mean-variance framework, how correlation sets the limit of diversification, how the minimum-variance and tangency portfolios are computed, and what the model quietly assumes about its inputs.

10 steps·~15 min
AI
advanced

Building Something That Holds Up

Given that the tradable-signal path is narrow and hard to evidence, the systems worth building are the ones the first lesson identified: extraction at scale. This lesson covers the engineering that makes them survive audit, the evaluation that does not depend on returns, and the governance obligations that apply once a model touches a regulated process.

8 steps·~12 min
AI
advanced

Where LLMs Actually Fit in a Trading Firm

The popular framing is a model that predicts prices. That is the one job the technology is worst suited to, and it obscures the one it is genuinely good at: turning unstructured text into structured data at a scale that was previously unaffordable. This lesson locates LLMs against the trading stack and rules out the places they cannot go.

8 steps·~12 min