Portfolio Optimization Tool
Covariance Sensitivity Tool
See how one covariance estimate changes everything.
Estimation error in the covariance matrix causes large, unpredictable swings in optimal portfolio weights, even when the estimation error is small. This tool demonstrates that fragility directly: choose any single covariance (or correlation) parameter, set its range of variation, and see how the optimal minimum-variance portfolio weights respond across that range. Michaud (1989) called the optimizer an "error maximizer" for exactly this reason.
Direct Answer
A covariance sensitivity tool shows how much a single covariance or correlation estimate changes the optimal portfolio weights produced by mean-variance optimization, even when the input error is small. Pick one covariance parameter, set a range for it, and the tool recomputes the minimum-variance portfolio weights across that range so the fragility becomes visible directly. This illustrates why optimizers are sensitive to small estimation errors, Michaud (1989) called this the "error maximizer" problem.
Tool Inputs
Weight Sensitivity Chart
Each line shows how one asset's optimal weight in the minimum-variance portfolio changes as the selected correlation varies. Large slopes = high sensitivity = fragility to estimation error in that parameter.
Sensitivity Table
Results will appear here.
Sensitivity Statistics
Run the analysis to see statistics.
What This Shows
- Steep slopes in the chart indicate high sensitivity: If the optimal weight for an asset changes by 20 percentage points when a correlation moves by 0.1, then a small estimation error in that correlation produces a large error in the portfolio weights.
- The range of motion over a realistic estimation error: A 36-month rolling correlation estimate has a standard error of approximately 1/√T ≈ 0.058 for T=300 data points. The sweep you specify (e.g., from 0.2 to 0.5) might represent a 2-3 standard error range, the kind of uncertainty that is always present in practice.
- Concentrated weight changes reveal the error-maximizer problem: When a single asset's weight swings between 0% and 60% over a plausible correlation range, the optimizer is not producing a robust portfolio. It is amplifying small estimation errors into large allocation changes.
- The fix is robust optimization: Shrinkage (Ledoit-Wolf), resampling, or adding weight constraints all reduce slope, they make the weight lines flatter. Constraints cap the maximum sensitivity by bounding how far weights can move. Shrinkage pulls the covariance matrix toward a target that has less extreme inverse eigenvalues, reducing the multiplier applied to estimation errors.
- Minimum-variance is typically more stable than max-Sharpe: Because min-variance doesn't use expected return estimates, it avoids the dominant source of estimation error. The slopes you see in this tool reflect covariance estimation error only; the max-Sharpe optimizer adds expected return estimation error on top, making it even more sensitive.
References
- Markowitz, H. (1952). "Portfolio Selection." The Journal of Finance, 7(1), 77-91, the mean-variance framework whose sensitivity to covariance-matrix inputs this tool demonstrates.
- CFA Institute Research and Policy Center: estimation error and robust portfolio optimization methodology
- National Bureau of Economic Research: portfolio theory and asset pricing research
Educational Disclaimer
This tool is for educational purposes only. Results are illustrative of general properties of mean-variance optimization and covariance sensitivity, they do not represent any specific investment strategy or recommendation. The projected gradient optimizer used here may not find the global minimum for all input combinations. This tool does not constitute investment advice.