Portfolio Optimisation: What the Maths Can—and Cannot—Decide
Follow a minimum-variance calculation and test its dependence on assumptions.
Manage Portfolio RiskIntermediate4 min
Illustrative model
Plain English
The maths needs a question
Portfolio optimisation finds weights that best meet a specified mathematical objective while satisfying constraints. The objective might concern an estimated risk measure; the constraints define what combinations are allowed. The output answers that formal question. It cannot decide whether the question captures everything a person or institution cares about.
Here the objective is minimum variance, which means minimising the model’s estimated dispersion of portfolio returns. Volatility is the square root of variance. Neither measure describes every kind of risk: liquidity, permanent loss, changing relationships and extreme events can require separate consideration. Calling a portfolio minimum variance is meaningful only relative to its inputs and constraints.
We use two fictional assets, A and B. Weights must be non-negative and sum to one: the model is long-only, fully invested and includes no borrowing or cash alternative. Assume zero correlation between the assets’ returns. Zero correlation removes their covariance term in this calculation; it does not mean the assets are independent or cannot fall together.
Worked Example
Change one risk estimate
Initially, assume both assets have 20% annual volatility. Use decimal inputs of 0.20 and 0.20, estimated on a consistent annual basis. With zero correlation and equal risk estimates, the minimum-variance weights are 50% in each asset. The variance is 0.5 squared times 0.2 squared, plus the same term again: 0.02.
Taking the square root gives annual portfolio volatility of approximately 14.14%. This is a model estimate, not a maximum possible loss or a promised range of outcomes. The reduction from 20% follows from the assumed co-movement and the way the weights enter the variance formula.
Now change only A’s annual volatility estimate to 30%, leaving B at 20% and correlation at zero. The model’s weight in A becomes 0.04 divided by 0.13, approximately 30.77%; B receives approximately 69.23%. Using unrounded weights gives annual portfolio volatility of approximately 16.64%. Displayed percentages are rounded to two decimal places, and these hypothetical outputs are not recommended allocations.
Initial model weight, A
50.00%
Initial model weight, B
50.00%
Initial portfolio volatility
14.14%
Revised model weight, A
30.77%
Revised model weight, B
69.23%
Revised portfolio volatility
16.64%
Reading the result
A precise answer can depend on uncertain inputs
The model shifts weight away from A because A now has a higher estimated variance. It does not know anything about company quality, future returns or an investor’s circumstances. Expected returns do not enter this particular objective, so the output cannot support a claim that the revised portfolio offers a better return.
The revised minimum volatility is higher than before even though the weights adapt. That is consistent: changing an input changes the problem itself. The new weights minimise the revised variance function among the permitted combinations; they do not restore the old risk estimate or prove that realised risk will match either estimate.
The CVX portfolio mathematics material explains weights, covariance and constrained mean–variance models. Our example uses the narrower minimum-variance objective and a closed-form two-asset calculation. No software solver is needed to follow it. Different objectives or constraints would define different optimisation problems and could produce different weights.
Limits and assumptions
What remains outside the worksheet
Volatility and correlation are estimated rather than fixed properties. Different samples, measurement periods and changing market conditions can alter them. A zero correlation assumption is especially strong: positive co-movement would generally raise variance for a given positive-weight combination compared with this example. The optimisation cannot eliminate uncertainty in the inputs by calculating more decimal places.
Trading costs, taxes, liquidity limits and restrictions on particular holdings are omitted. So are return forecasts and losses outside what variance usefully summarises. A mathematically feasible solution can therefore be impractical or inappropriate outside the model. The educational task is to identify those omissions and examine sensitivity, rather than treat the smallest calculated number as a complete decision.
Common Mistake
Turning model weights into an instruction
Reporting “30.77% in A” without its assumptions hides the meaning of the result. The number belongs to a specific objective, two risk estimates, zero correlation and stated constraints. A clear explanation keeps those conditions beside the output and separates arithmetic correctness from the judgement needed to use any model in practice.
Optional derivationExplore the derivation
Optional mathematics: the two-asset minimum with zero correlation. All volatility inputs use decimals and the same annual convention.
01
Write variance as a function of A’s weight
Let w be A’s weight, so B’s weight is 1 − w. Zero covariance removes the cross term. The feasible interval is 0 ≤ w ≤ 1.
Formula
Variance equals w squared times A variance plus one minus w squared times B variance
Weight in A; weight in B is 1 − w.
Annual volatility; subscripts identify the asset.
Covariance is zero by assumption.
02
Find the stationary point and check it
Differentiating gives 2wσA² − 2(1 − w)σB² = 0. Solving gives the weight below. The second derivative is 2(σA² + σB²), which is positive for our inputs. The solution lies between zero and one, so it is the constrained minimum.
Formula
A weight equals B variance divided by the sum of A and B variances
Initially 0.04 / 0.08 = 0.5. After changing A, 0.04 / 0.13 ≈ 0.307692.
Self-check
Check your understanding
Why does A’s model weight fall when its volatility rises?
Its variance contributes more to the objective. Under the stated zero-correlation constraints, the minimum shifts towards B.
Does 16.64% volatility cap the possible annual loss?
No. Standard deviation measures dispersion; it is not a loss limit or a guarantee about future observations.
Why can two valid optimisations give different weights?
Different estimates, objectives or constraints define different problems. Correct arithmetic does not make their assumptions interchangeable.
Continue learning
Connect the ideas
Follow the related articles below to explore the assumptions behind this example.
Disclaimer
Educational Use Only
This article is for informational and educational purposes only. It does not provide personalised investment advice.