In this lesson

Estimation error and why optimisers disappoint

A portfolio optimiser is only as good as its inputs, and the inputs are estimates. This lesson measures how slowly an average return becomes known, shows with a calculator how far the best weights move with a plausible error, runs a simulation of ten assets, reports the 2009 test of 1/N, and lists the remedies in use.

Level
Beginner
Reading time
About 21 minutes

By the end you will be able to:

  • compute the standard error of an average return and say what it means
  • explain why returns are harder to estimate than volatilities and correlations
  • see how a plausible error in one input changes the best portfolio
  • describe how optimisers magnify estimation error
  • summarise the 1/N test of DeMiguel, Garlappi and Uppal
  • name the remedies: constraints, shrinkage, Black-Litterman, resampling and risk-based methods

The weak point of the method

The frontier and the best risky mix are exact results, given their inputs. The inputs are expected returns, volatilities and correlations, and none of them can be seen. They have to be estimated from past data, and the estimates carry errors. An optimiser that treats its inputs as certain does not average out these errors. It tends to seize on them, loading up on the assets whose estimated returns happen to be too high. The finance writer Richard Michaud called such programs “error maximizers” for this reason.

This lesson measures the problem. It shows how slowly an average return becomes known, how much that uncertainty moves the answer, and what a simulation of ten assets says about choosing weights from estimated data. It also reports a well-known academic test that found simple equal weights hard to beat, and ends with what practitioners do about it.

How well do we know an average return?

The average of a series of returns is itself uncertain. Its standard error, a measure of how far the estimate is likely to be from the true value, is the volatility divided by the square root of the number of observations. For US stocks, with a volatility of about 18% a year, 25 years of data give a standard error of 18 ÷ √25 = 3.6 points. The real 2000 to 2024 average was 9.25% with a standard error of 3.62 points.

Two standard errors either side gives a range that holds the true value about 95 times in 100. The table shows what that means for different lengths of record.

Standard error of an estimated average stock return of 9 percent with 18 percent volatility, and the range of two standard errors either side, for six lengths of record
Years of dataStandard error of the averageTrue average could be anywhere from about
58.05−7.1% to 25.1%
105.69−2.4% to 20.4%
253.601.8% to 16.2%
502.553.9% to 14.1%
1001.805.4% to 12.6%
2001.276.5% to 11.5%

Even 100 years of data leave an uncertainty of nearly 4 points either way. To pin the average down to within 1 point, with the same two-standard-error range, would take (2 × 18 ÷ 1)² = 1,296 years of data. This cannot be fixed by sampling more often: the precision of an average depends on the length of the period covered, and using monthly returns in place of yearly ones does not narrow it. The check on the formula is a simulation in code of 20,000 histories of 25 years, which gave a standard error of 3.6, as the formula says.

Volatilities and correlations are easier

Risk is easier to measure than return, and more frequent data do help. A volatility estimate from 25 yearly returns has a standard error of about 18 ÷ √(2 × 24) = 2.6 points, which means it is known to about 14%. With 25 years of monthly returns, 300 observations, the standard error is about 0.74 points, which is 4%. Correlations improve in the same way but remain unstable across periods, as the stock-bond correlation shows.

This difference matters. The inputs that are well measured are volatilities and correlations, and the one that is badly measured is the expected return. An optimiser that depends heavily on expected returns is leaning on the weakest input, and methods that use only volatilities and correlations, such as the lowest-risk mix, are on firmer ground.

See the weights move

The calculator below takes your estimated stock return and the length of record behind it, works out how uncertain it is, and shows the best share in stocks if the true figure were at the low end of the range, at your estimate and at the high end. The rest of the inputs are held fixed. The stock volatility is 18% and the bond volatility 9%, as before. The search for the best share allows no short selling.

How sure is the average?
stocks 18%, bonds 9% volatility
Error in stock average3.60%
Error in bond average1.80%
Stock return, low end1.8%
Stock return, high end16.2%
What the optimiser picks
best share in stocks
If the low end is true15.2%
At your estimate38.7%
If the high end is true44.9%
Swing between them29.7%

From 25 years of data, the average stock return of 9.0% is uncertain by about 3.60 points either way (one standard error), so, allowing two standard errors either side, the true figure could plausibly be anywhere from 1.8% to 16.2%. Bonds are uncertain by 1.80. An optimiser would put 15.2% in stocks if the true figure were at the low end, 38.7% at your estimate, and 44.9% at the high end, a swing of 29.7 points of the portfolio from an uncertainty in one input, with bonds, correlation and the risk-free rate 2.00% held fixed.

Five experiments. First, leave the settings alone: 25 years of data, an estimated stock return of 9%, bonds at 4%, a correlation of −0.4 and a risk-free rate of 2%. The stock average is uncertain by 3.60 points, so two standard errors either side give a range from 1.8% to 16.2%. The best share in stocks is 38.7% at your estimate, but 15.2% at the low end and 44.9% at the high end, a swing of 29.7 points.

Second, raise the data to 100 years. The error halves to 1.80 and the swing falls to 10.7 points. Third, cut the data to 5 years. The error rises to 8.05, the low end of the range falls to -7.1%, which is below the risk-free rate, and the optimiser would drop stocks entirely (0%). Fourth, return to 25 years and set the correlation to +0.5. The swing is 100.0 points. Fifth, set the correlation back to −0.4 and raise the risk-free rate to 4%. The best share at your estimate rises to 55.6%, since bills now pay more and stocks must earn their place, and the swing is 55.6 points. In every case a plausible error in one input moves the answer a long way.

Ten assets, estimated from data

With two assets the problem is visible. With many assets it is much worse, since the number of covariances grows quickly and each is estimated with error. To measure the damage, this lesson ran a simulation in code. It takes ten assets with invented true returns from 5% to 9%, volatilities from 15% to 25% and a correlation of 0.3 between each pair, and a risk-free rate of 2%. It then draws a history of returns of a given length, estimates the returns and covariances from it, and chooses weights in two ways: the best Sharpe ratio from the estimates (allowing short positions), and the lowest risk from the estimates. Each set of weights is scored by its true Sharpe ratio, calculated from the true values. The table shows the average over 2,000 simulated histories.

True Sharpe ratio, on average over 2,000 simulated histories, of three ways of choosing weights among ten assets from estimated returns and covariances, for five lengths of history
Months of data usedYearsSample best mixSample lowest-risk mixEqual weights (1/N)True best (unknowable)
6050.120.320.410.42
120100.160.330.410.42
240200.210.340.410.42
600500.280.340.410.42
1,2001000.330.340.410.42

The best mix chosen from estimates does badly. With 5 years of monthly data, 60 months, its true Sharpe ratio averages 0.12, a fraction of the unknowable best of 0.42, and it climbs only slowly as the history lengthens. The lowest-risk mix, which ignores expected returns, does far better. Equal weights, which need no estimate at all, come in at 0.41, close to the best that is possible. This is partly because the ten assets in the simulation are alike, so equal weights are nearly right by construction. In real markets assets differ more, and the gap between the methods is smaller or larger depending on the case. The simulation shows the mechanism and does not settle the size.

The 1/N test

A well-known test on real data was published by Victor DeMiguel, Lorenzo Garlappi and Raman Uppal in 2009. They compared 14 models that choose weights from sample data, with extensions designed to reduce estimation error, against the simple rule of putting 1/N of the money in each of N assets. They used seven datasets and measured performance on data that the models had not seen. They reported that none of the models was consistently better than 1/N on the Sharpe ratio, the certainty-equivalent return or turnover. They estimated that, with parameters calibrated to the US stock market, the sample-based method would need about 3,000 months of data, 250 years, to beat equal weights with 25 assets, and about 6,000 months with 50.

This does not show that optimisation is useless. It shows that the gain from optimising is small compared with the loss from estimation error, unless the inputs are improved. It is also a reason to prefer simple, robust rules when the data are short.

What practitioners do about it

Several remedies are in common use. Constraints, such as a ban on short positions and a cap on any one holding, stop the optimiser from taking extreme bets on noisy estimates. Shrinkage pulls estimated returns and covariances toward a stable target, such as the same return for all assets, which reduces the error at the price of some bias. The Black-Litterman approach starts from returns implied by the market portfolio and adjusts them only as far as the investor has views. Resampling averages the weights from many simulated histories. And risk-based methods, which use only volatilities and correlations, avoid the weakest input altogether.

The common thread is humility about the inputs. A good use of the frontier is to run it with several plausible sets of inputs, as the calculator does, and to prefer weights that stay reasonable across them. If a small change in one input transforms the answer, the answer should not be trusted.

What this lesson leaves out

  • A simulation with invented values. The ten assets, their true returns and the random draws are invented, with a fixed seed. The numbers show a pattern and are not a forecast.
  • Ten similar assets. Equal weights are close to the best by construction in the simulation. Real assets differ more.
  • Two standard errors. The ranges assume returns behave like a normal distribution drawn independently each year, which real returns do not exactly.
  • An abstract of the 2009 study. The description is from the abstract and not the full paper.
  • Round numbers in the calculator. Volatilities are fixed at 18% and 9%.
  • Not advice. The lesson does not say how any portfolio should be built.

Common mistakes

Treating an estimated average as known

It has a standard error that, for stocks, is several points even after 25 years.

Trusting an optimiser’s precise weights

Small changes in the inputs can change them greatly.

Using monthly data to learn the average faster

The precision of an average depends on the length of the period, not on how often it is sampled.

Reading 1/N as the best strategy

It is hard to beat when estimates are noisy, and it is not optimal in general.

Dismissing optimisation altogether

Used with constraints and robust inputs, it can still help.

Forgetting that the stock-bond correlation changes

An estimate from one period may not hold in the next.

Questions to answer

1. Stocks have an 18% volatility. What is the standard error of an average estimated from 25 years?

Show the working

18 ÷ √25 = 3.6 points.

2. What range of two standard errors does that give around an estimate of 9%?

Show the working

1.8% to 16.2%.

3. What is the standard error from 100 years?

Show the working

1.8 points.

4. How many years would be needed to bring two standard errors down to 1 point?

Show the working

(2 × 18 ÷ 1)² = 1,296.

5. Does using monthly returns shrink the standard error of the average?

Show the working

No. It depends on the length of the period covered.

6. In the calculator, what does the optimiser do if the stock average is at the low end with 5 years of data?

Show the working

The low end is -7.1%, below the risk-free rate, so it holds 0% in stocks.

7. In the ten-asset simulation, how did the sample best mix compare with equal weights?

Show the working

With 120 months of data its true Sharpe ratio averaged 0.16 against 0.41 for equal weights.

8. What did DeMiguel, Garlappi and Uppal find?

Show the working

None of 14 sample-based models was consistently better than 1/N on seven datasets.

9. Name two remedies for estimation error.

Show the working

For example constraints on the weights, and shrinkage of the estimates toward a stable target.

Where this is used

  • An adviser tests how much a recommended mix changes if the return estimates change.
  • A pension fund caps the weight in any one asset class to limit the effect of noisy estimates.
  • A fund manager shrinks estimated returns toward a common value before optimising.
  • An investor chooses equal weights across a few funds in place of a model with many inputs.
  • A risk team checks how stable a portfolio’s weights are across plausible inputs.
  • A student learns why a precise answer from a model can still be unreliable.

Key terms

Estimation error
The gap between an estimated input and its true value.
Standard error
A measure of how far an estimate is likely to be from the true value.
Error maximizer
Michaud’s description of an optimiser that magnifies errors in its inputs.
1/N rule
Putting an equal share of the money in each of N assets.
Out-of-sample
Tested on data that was not used to build the model.
Shrinkage
Pulling estimates toward a stable target to reduce their error.
Black-Litterman
A method that starts from market-implied returns and adjusts them for the investor’s views.
Resampling
Averaging the weights found from many simulated histories.
Constraint
A rule on the weights, such as no short positions or a cap on one holding.
Turnover
How much of a portfolio is bought and sold to keep to the target weights.

Questions people ask

Why is the average return so hard to estimate?

Returns are noisy compared with their average, so it takes a very long record to separate the average from luck.

Are volatilities easier to estimate?

Yes, especially with frequent data, because the precision of a volatility estimate grows with the number of observations.

Does the 1/N result mean I should not optimise?

It means that optimising on noisy estimates may not help. The lesson does not recommend any strategy.

What is shrinkage?

Moving estimated returns or covariances part of the way toward a simple target, trading a little bias for much less noise.

Can better data fix the problem?

Longer records help slowly. Better models and constraints often help more.

Where does this leave the efficient frontier?

It is still a good way to think about risk and return. Its exact weights should be tested against changes in the inputs.

Sources and review

  1. Victor DeMiguel, Lorenzo Garlappi and Raman Uppal (2009), Optimal versus naive diversification: how inefficient is the 1/N portfolio strategy?, Review of Financial Studies 22(5), 1915 to 1953, read as an abstract on IDEAS, for the comparison of 14 sample-based models and extensions with the 1/N rule on seven datasets, the finding that none is consistently better, and the estimated windows of about 3,000 months for 25 assets and 6,000 months for 50.
  2. William F. Sharpe, The Sharpe Ratio, for the Sharpe ratio used to score the portfolios. Read for the previous lesson.
  3. Aswath Damodaran, NYU Stern, Historical returns on stocks, bonds and bills: 1928-2024, for the 2000 to 2024 yearly returns of US stocks and Treasury bonds used for the real-data example.
  4. Robert Merton (1980), On estimating the expected return on the market, Journal of Financial Economics, and Richard Michaud (1989), The Markowitz optimization enigma: is optimized optimal?, Financial Analysts Journal, for the points that an average return is estimated slowly and that optimisers magnify errors in their inputs; and the Black-Litterman and shrinkage approaches. Cited from memory, and the formulas behind them were checked by simulation in code.

Review note: the description of the 2009 study was read in its abstract, and not in the full paper. The yearly returns are from the dataset in the earlier lessons. The standard error of an average, the standard error of a volatility estimate and the ten-asset simulation were all worked out in code, and the simulation uses invented true values, ten similar assets and a fixed random seed, so its numbers show the pattern and are not a forecast. The references to Merton, Michaud, shrinkage and Black-Litterman are from memory. The calculator uses round numbers near the 2000 to 2024 figures.

How the numbers were checked: each fact taken from a source was read from that source or from the summary named, and every number worked out in this lesson was recomputed in code by a second method. Returns, volatilities and correlations used in the examples are either computed from the dataset named above or are invented round numbers, as each example says.

The calculator in this lesson was checked by running its script and an independent calculation side by side at the starting settings and at every setting used in the experiments, and the two agreed.