Calculate portfolio variance and standard deviation from asset weights, standard deviations, and correlations for two or more assets.
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Two assets | Finds the variance and standard deviation of a portfolio that holds two assets | Requires each assetโs weight and standard deviation, and the correlation between the two, from โ1 to 1 |
| Three or more assets (lists) | Finds the variance and standard deviation of a portfolio of up to 100 assets | Requires a list of weights, a list of standard deviations in the same asset order, and the correlation of every pair in the order 12, 13, 23, 14, 24, 34 and so on |
Weights and standard deviations go in either as percent numbers (20 for 20%) or as decimals (0.20). The result is the variance in decimal returns squared, with the standard deviation as a percent and the sum of the weights. Weights are used as entered and are not rescaled to 100%, and a negative weight stands for a short position.
Portfolio Variance Formulas
2 ฮฃ wiwjฯijฯiฯj [1]
| ฯpยฒ | Portfolio variance |
| wi | Weight of asset i, as a decimal |
| ฯi | Standard deviation of asset iโs returns, as a decimal |
| ฯij | Correlation between the returns of assets i and j |
The first sum has one term per asset and the second has one term for each pair of assets. The variance of a weighted sum is the sum of every covariance between its parts [1], and a covariance is the correlation times the two standard deviations [2]. That is why a portfolioโs variance depends on how its assets move together and not just on each assetโs own variance [3]. The portfolio standard deviation is the square root of the variance.
Two assets
2w1w2ฯฯ1ฯ2
With weights of 40% and 60%, standard deviations of 30% and 40% and a correlation of 0.25, the variance is 0.16 ร 0.09 + 0.36 ร 0.16 + 2 ร 0.4 ร 0.6 ร 0.25 ร 0.3 ร 0.4 = 0.0864. The standard deviation is โ0.0864 = 29.39%, lower than the 36% weighted average of the two, because the assets are not perfectly correlated.
Three or more assets (lists)
The main formula is applied to the lists. A portfolio of n assets needs n ร (n โ 1) รท 2 correlations: 3 for three assets, 6 for four. With weights of 50, 30 and 20, standard deviations of 20, 30 and 40 and correlations of 0.2 (assets 1 and 2), 0.1 (1 and 3) and 0.5 (2 and 3), the three single-asset terms add up to 0.0245 and the three pair terms to 0.0124. The variance is 0.0369 and the standard deviation is 19.21%.
A set of correlations that cannot all be true at once is rejected. For example, two assets cannot both be almost perfectly correlated with a third and strongly negatively correlated with each other.
Limits of This Estimate
- All standard deviations and correlations must be measured over the same return period, such as monthly or annual. The result is for that same period.
- Inputs taken from past returns describe the past. Correlations and volatility change, most of all in market stress.
- Variance measures how widely returns spread around their average. It does not capture every investment risk, and it treats gains and losses alike.
- When the weights do not add up to 100%, the result is the variance of the exposure entered, and a note says so.
Sources
- Wolfram MathWorld, Variance: variance of a sum and of a linear sum in terms of covariances
- Wolfram MathWorld, Covariance: correlation as covariance divided by the two standard deviations
- H. M. Markowitz, Foundations of Portfolio Theory, Nobel Lecture (1990): variance of the portfolio as a measure of its risk, involving all covariance terms
