Analyst Dojo
Lesson 3 of 5 8–12% of the exam

Portfolio variance, covariance and correlation

A portfolio’s variance depends on each asset’s variance, its weight and how the assets move together (covariance, or correlation times the two standard deviations). Unless the correlation is +1, the portfolio’s standard deviation is below the weighted average of the assets’ standard deviations. That gap is diversification.

8 min cram, 40 min full read. Based on the 2027 CFA® Program Level I curriculum, Portfolio Construction, Learning Module 1. Also part of the 2026 curriculum, so it applies to the November 2026 exam too.

Tailor this to you: take the self-assessment

Before this: Portfolio expected return, variance and the role of correlation, Statistical Characteristics of Asset Returns

On the exam

  • Calculate and interpret the mean, variance, and covariance (or correlation) of asset returns based on historical data
  • Calculate and interpret portfolio standard deviation
  • Describe the effect on a portfolio’s risk of investing in assets that are less than perfectly correlated

Calculate and interpret the mean, variance, covariance and correlation of historical returns, calculate a portfolio’s standard deviation, and describe the effect of less-than-perfect correlation. Expect one two-asset standard deviation calculation and one concept question on correlation.

How deeply to learn each part
Know the idea
Understand it in general. It frames other topics, but you will not calculate with it.
Use it
Understand it well enough to solve a question with it. Recognize when it applies.
Memorize
Learn it by heart. The exam will not give it to you.

You know this one. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still do.

You tested strong here. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still know it.

Cram mode: the one-screen version of this lesson. Switch to Full for the explanations, worked examples and interactives.

These formulas are the portfolio mathematics you met in the quantitative methods topic, now put to work. Here the inputs come from historical returns, and the question is why a mix of assets is less risky than the average of its parts.

How do you get the inputs from historical returns?

Use it

Four statistics describe a pair of assets: each one’s mean and standard deviation, then how they move together. For a sample of T periods the mean is the simple average, and the variance, covariance and standard deviation divide by T − 1.

Sample mean return Use it
Rˉ=∑t=1TRtT\bar{R} = \frac{\sum_{t=1}^{T} R_t}{T}
Sample variance Use it
s2=∑t=1T(Rt−Rˉ)2T−1s^{2} = \frac{\sum_{t=1}^{T} (R_t - \bar{R})^{2}}{T - 1}

Sample variance measures spread around the mean in squared units; its square root is the standard deviation. Covariance measures whether two returns tend to be on the same side of their own means at the same time.

Sample covariance Memorize
Cov1,2=∑t=1T(R1,t−Rˉ1)(R2,t−Rˉ2)T−1\mathrm{Cov}_{1,2} = \frac{\sum_{t=1}^{T} (R_{1,t} - \bar{R}_1)(R_{2,t} - \bar{R}_2)}{T - 1}

Covariance has awkward units (percent squared) and no natural scale. Dividing by both standard deviations gives the correlation coefficient , which is always between −1 and +1.

Correlation coefficient Memorize
ρ1,2=Cov1,2σ1 σ2\rho_{1,2} = \frac{\mathrm{Cov}_{1,2}}{\sigma_1\,\sigma_2}
Covariance from correlation Memorize
Cov1,2=ρ1,2 σ1 σ2\mathrm{Cov}_{1,2} = \rho_{1,2}\,\sigma_1\,\sigma_2
Rearrange itCovariance and correlation: solve for any one
The question asks for
Two assets have a correlation of 0.25 and standard deviations of 18.00% and 12.00%. The covariance of their returns is closest to:

0.25 × 0.18 × 0.12 = 0.0054

Covariance, Cov(R₁, R₂)0.0054

On your calculator
  1. 0.25×0.18×0.12=
  1. 0.25ENTER0.18×0.12×

ENTER enter (on the HP, puts the number on the stack)

Four years of returns for two funds:

YearFund XFund Y
112%5%
2−4%3%
318%1%
46%7%
Go deeper Population versus sample formulas

If the returns are the whole population, divide by T instead of T − 1. Historical returns are a sample of what could have happened, so the exam uses T − 1 unless a question says otherwise. The portfolio formulas themselves do not change: they take σ and covariance as given.

Go deeper Using the statistics worksheets

Both exam calculators can report the standard deviations and the correlation from the data directly. On the BA II Plus, enter the pairs in the data worksheet, switch the statistics worksheet to the two-variable type and step down to read the sample standard deviations and r. On the HP 12C, enter each pair as y, ENTER, x, then Σ+, and read the standard deviations and r from the statistics keys. The covariance is then r × sx × sy. Check the display against the hand calculation above the first time you do it.

Fund X and Fund Y on your calculator
  1. 2NDDATA2NDCLR WORK open and clear the data worksheet
  2. 12ENTER↓5ENTER↓4+|-ENTER↓3ENTER↓18ENTER↓1ENTER↓6ENTER↓7ENTER X then Y for each year
  3. 2NDSTAT2NDSET until LIN shows
  4. ↓ keep pressing [↓] to read Sx 9.3808, Sy 2.5820 and r −0.2752

2ND second function (the shifted label above a key) · DATA data worksheet · CLR WORK clear the worksheet · ENTER enter (on the HP, puts the number on the stack) · +|- change sign · STAT statistics worksheet · SET change the setting

  1. fCLEAR Σ
  2. 5ENTER12Σ+3ENTER4CHSΣ+1ENTER18Σ+7ENTER6Σ+ y first, then x
  3. gs sx = 9.3808, then [x≷y] for sy = 2.5820
  4. 0gŷ,rx≷y r = −0.2752

f gold shift key · CLEAR Σ clear the statistics registers · ENTER enter (on the HP, puts the number on the stack) · Σ+ add a data point · CHS change sign · g blue shift key · s standard deviation · ŷ,r estimated y and correlation · x≷y swap the last two numbers

How risky is a two-asset portfolio?

Memorize

The portfolio’s expected return is the weighted average of its assets’ expected returns. Correlation plays no part in it.

Portfolio expected return Memorize
E(Rp)=w1 E(R1)+w2 E(R2)E(R_p) = w_1\,E(R_1) + w_2\,E(R_2)

Risk is different. Portfolio variance has three terms: the variance of each asset scaled by its squared weight, plus twice the weights times the covariance. Written with correlation, the covariance is ρσ₁σ₂. The portfolio standard deviation is the square root.

Two-asset portfolio variance Memorize
σp2=w12σ12+w22σ22+2 w1w2 ρ1,2 σ1σ2\sigma_p^{2} = w_1^{2}\sigma_1^{2} + w_2^{2}\sigma_2^{2} + 2\,w_1 w_2\,\rho_{1,2}\,\sigma_1\sigma_2
Rearrange itTwo-asset portfolio risk: solve for the variance, the standard deviation or the correlation
The question asks for
A portfolio is 60.00% in asset 1 (standard deviation 20.00%) and 40.00% in asset 2 (standard deviation 10.00%). The correlation is 0.5. The portfolio variance is closest to:

0.6² × 0.2² + 0.4² × 0.1² + 2 × 0.6 × 0.4 × 0.5 × 0.2 × 0.1 = 0.0208

Portfolio variance (decimal)0.0208

On your calculator
  1. 0.6x²×0.2x²+(0.4x²×0.1x²)+(2×0.6×0.4×0.5×0.2×0.1)=the variance as a decimal

x² square

  1. 0.6ENTER×0.2ENTER××0.4ENTER×0.1ENTER××+2ENTER0.6×0.4×0.5×0.2×0.1×+the variance as a decimal

ENTER enter (on the HP, puts the number on the stack)

Change only the correlation and everything else follows. The weights fix the return at 8.6%; the risk changes.

ρσpWorking
+1.016.00%equals 0.6 × 20 + 0.4 × 10
+0.514.42%√(0.0144 + 0.0016 + 0.0048) = √0.0208
0.012.65%√(0.0144 + 0.0016) = √0.016
−0.510.58%√(0.0144 + 0.0016 − 0.0048) = √0.0112
−1.08.00%|0.6 × 20 − 0.4 × 10|
InteractiveTwo funds, one correlation: how much risk is left?

Try this 0 of 3

  • Set the correlation to −1, then find the mix with (almost) zero risk
  • Set the correlation to +1 and compare σp with the weighted average of the σs
  • At ρ = 0, find a mix that is less risky than the bond fund on its own
  • All mixes of the two funds
  • ρ = +1: no diversification
0%2.5%5%7.5%10%12.5%0%5%10%15%20%Risk, σ (%)Expected return (%)Equity fundBond fundσ 12.65%, E 8.60%

60% Equity fund and 40% Bond fund with correlation 0.00: expected return 8.60%, risk 12.65%, against 16.00% for a straight average of the two risks.

Expected return, E(Rp)8.60%
Risk, σp12.65%
Weighted average of the σs16.00%
Diversification benefit (σ saved)3.35%

Portfolio variance, term by term

  • w₁²σ₁² (Equity fund) 0.0144
  • w₂²σ₂² (Bond fund) 0.0016
  • 2w₁w₂ρσ₁σ₂ (cross term) 0
  • Variance 0.016 (dashed mark: 0.0256, the variance if ρ = +1)
Show working

E(Rp) = w₁E(R₁) + w₂E(R₂) = 0.6 × 11.00% + 0.4 × 5.00% = 8.60%

σ²p = w₁²σ₁² + w₂²σ₂² + 2w₁w₂ρσ₁σ₂ = 0.6² × 0.2² + 0.4² × 0.1² + 2 × 0.6 × 0.4 × 0 × 0.2 × 0.1

= 0.0144 + 0.0016 + 0 = 0.016

σp = √0.016 = 12.65% (the weighted average of the σs, 16.00%, is right only when ρ = +1)

Covariance = ρσ₁σ₂ = 0 × 0.2 × 0.1 = 0

On your calculator
  1. 0.6×0.2×0.6×0.2=STO10.0144
  2. 0.4×0.1×0.4×0.1=STO20.0016
  3. 2×0.6×0.4×0×0.2×0.1=cross term 0
  4. +RCL1+RCL2=variance 0.016
  5. √x0.1265, so 12.65%

STO store · RCL recall a stored number · √x square root

  1. 0.6ENTER0.2×0.6×0.2×0.0144
  2. 0.4ENTER0.1×0.4×0.1×+0.016
  3. 2ENTER0.6×0.4×0×0.2×0.1×+variance 0.016
  4. g√x0.1265, so 12.65%

ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root

Display: 0.1265

Correlation below +1 bends the line to the left: same return, less risk.

Slide the correlation from +1 down to −1. The dashed straight line is the +1 case, and the gap to its left is the diversification benefit. The weight slider moves the dot along the curve; its return follows the weights only.

What the correlation does to portfolio risk
Correlation between two assetsreturn is unchanged; only risk moves
  • ρ = +1 Memorize σp = weighted average of the σs; no diversification
  • −1 < ρ < +1 Memorize σp below the weighted average; the lower ρ, the lower σp
  • ρ = 0 Use it no linear relation; still a diversification benefit
  • ρ = −1 Memorize a zero-risk mix exists: w₁ = σ₂ ÷ (σ₁ + σ₂)

Three points to carry away.

  • At ρ = +1 the portfolio’s σ is exactly the weighted average. No diversification is possible: two assets that rise and fall together cannot offset each other.
  • Anywhere below +1 the portfolio’s σ is below that average, and the lower the correlation, the lower the risk. Diversification is this reduction in risk from combining assets that do not move in lockstep.
  • At ρ = −1 a mix exists with no risk at all. Set the two weighted σs equal: the weight in asset 1 is σ₂ ÷ (σ₁ + σ₂).
Zero-risk weight when correlation is −1 Use it
w1=σ2σ1+σ2w_1 = \frac{\sigma_2}{\sigma_1 + \sigma_2}

In the example this is 10 ÷ (20 + 10) = 33.3% in the equity fund: 0.333 × 20 = 6.67 and 0.667 × 10 = 6.67 cancel exactly.

Zero-risk weight
  1. 10÷(20+10)= 0.3333
  1. 10ENTER20ENTER10+÷ 0.3333

ENTER enter (on the HP, puts the number on the stack)

The intuition fits in a small table. Fuel is one of the biggest costs of an airline and the main product of an oil producer. Next year the oil price either spikes or slumps, with equal chances.

Oil spikesOil slumpsMeanσ
Airline3%15%9%6%
Second airline3%15%9%6%
Oil producer15%3%9%6%

Half and half in the two airlines earns 3% or 15% as before: ρ = +1, no gain. Half and half in an airline and the oil producer earns exactly 9% whatever the oil price does: ρ = −1, no risk. To reduce risk you need assets that do well when your others do badly.

Exam tip Most real assets have correlations well above −1. A correlation above about 0.90 offers little diversification; a correlation below about 0.50 is attractive. Stocks and bonds have generally been the least correlated of the major pairs, and Treasury bills are close to uncorrelated with stocks.

Go deeper Why correlations rise when you need them most

Correlations estimated from history are averages. In market crises many risky assets fall together, so correlations rise and the diversification benefit shrinks just when it is most wanted. Within one country, correlations among asset classes have been fairly stable. Across countries they have been rising over recent decades with globalization. Risk (standard deviation) is more stable over time than return, which is why historical risk and correlation are used as estimates for the future more readily than historical returns are.

What happens when a portfolio has many assets?

Use it

Take an equally weighted portfolio of N assets and let σ̄² be the average variance and average covariance be the mean of all the pairwise covariances.

Equally weighted portfolio of N assets Use it
σp2=σˉ2N+N−1N Cov‾\sigma_p^{2} = \frac{\bar{\sigma}^{2}}{N} + \frac{N-1}{N}\,\overline{\mathrm{Cov}}

The first term shrinks as N grows: each asset’s own variance gets divided across more holdings. The second term approaches the average covariance. So for a large portfolio, covariance among the assets accounts for almost all of its risk. If all assets share the same σ and the same pairwise correlation ρ, the average covariance is ρσ² and the floor for the portfolio’s σ is √(ρσ²).

Rearrange itMany assets: solve for the risk, the floor, the correlation or the number of assets
The question asks for
An equally weighted portfolio holds 10 assets, each with a standard deviation of 30.00%, and every pair has a correlation of 0.3. The portfolio’s standard deviation is closest to:

√(0.3² ÷ 10 + (9 ÷ 10) × 0.3 × 0.3²) = 0.182483, so 18.25%

Portfolio standard deviation18.25%

On your calculator
  1. 0.3x²÷10+(9÷10×0.3×0.3x²)=√xa decimal, ×100 for percent

x² square · √x square root

  1. 0.3ENTER×10÷9ENTER10÷0.3×0.3ENTER××+g√xa decimal, ×100 for percent

ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root

What is left in a portfolio of many assets
Variance of an equally weighted portfolioσ̄²/N + (N − 1)/N × average covariance
  • Own variances Use it divided by N; fade away as N grows
  • Average covariance Memorize stays; the floor that diversification cannot remove

The risk that remains is shared by all the assets. Adding more holdings wipes out each one’s own variance but cannot touch the covariance they have in common. The next module calls that remaining part systematic risk. If the assets were on average uncorrelated, the floor would be zero. Real assets are not.

Go deeper The covariance matrix view for three or more assets

With N assets the exact portfolio variance sums every weight pair times its covariance. The covariance of an asset with itself is its variance, so the N variances sit on the diagonal of a matrix and the N(N − 1)/2 distinct covariances sit above and below it, each counted twice. The number of covariances grows far faster than the number of assets, which is why the covariance terms dominate in large portfolios.

Portfolio variance, any number of assets Know the idea
σp2=∑i=1N∑j=1Nwi wj Covi,j\sigma_p^{2} = \sum_{i=1}^{N}\sum_{j=1}^{N} w_i\,w_j\,\mathrm{Cov}_{i,j}

Memorize this

MemorizeCorrelation, risk and return

ρPortfolio σpPortfolio return
+1weighted average of the σsweighted average
betweenbelow the weighted averageweighted average
−1can reach zeroweighted average

Memory hook Correlation never enters the return formula: it changes risk only. Lower ρ bends the line to the left.

Know it cold ρ is bounded: −1 ≤ ρ ≤ +1. Below +1, σp < w₁σ₁ + w₂σ₂.

MemorizeTwo-asset portfolio risk

Memory hook Three terms: asset 1’s own risk, asset 2’s own risk, and the interaction. Never drop the third.

Know it cold σp2=w12σ12+w22σ22+2w1w2ρσ1σ2\sigma_p^2 = w_1^2\sigma_1^2 + w_2^2\sigma_2^2 + 2w_1w_2\rho\sigma_1\sigma_2, with Cov=ρσ1σ2\text{Cov} = \rho\sigma_1\sigma_2. Weights add to 1.

MemorizeMany assets, correlation guide

IdeaRule
Equal weights, large Nσp² → average covariance, not zero
Common σ and ρσp² = σ²/N + (N − 1)/N × ρσ²; floor √(ρσ²)
High correlationabove about 0.90: little diversification
Desirable correlationgenerally below about 0.50

Memory hook Own variance is divided by N and disappears; the shared part is not.

From returns to portfolio risk
Historical returns of two assetssample statistics divide by T − 1
  • 1. Means Use it R̄ = ΣR ÷ T
  • 2. Variances and standard deviations Use it Σ(R − R̄)² ÷ (T − 1), then the square root
  • 3. Covariance, then correlation Memorize Σ of the products of deviations ÷ (T − 1); ρ = Cov ÷ (σ₁σ₂)
  • 4. Portfolio variance Memorize w₁²σ₁² + w₂²σ₂² + 2w₁w₂ρσ₁σ₂
    • 5. Portfolio σp the square root of step 4
What the correlation does to portfolio risk
Correlation between two assetsreturn is unchanged; only risk moves
  • ρ = +1 Memorize σp = weighted average of the σs; no diversification
  • −1 < ρ < +1 Memorize σp below the weighted average; the lower ρ, the lower σp
  • ρ = 0 Use it no linear relation; still a diversification benefit
  • ρ = −1 Memorize a zero-risk mix exists: w₁ = σ₂ ÷ (σ₁ + σ₂)
What is left in a portfolio of many assets
Variance of an equally weighted portfolioσ̄²/N + (N − 1)/N × average covariance
  • Own variances Use it divided by N; fade away as N grows
  • Average covariance Memorize stays; the floor that diversification cannot remove
Sample mean return Use it
Rˉ=∑t=1TRtT\bar{R} = \frac{\sum_{t=1}^{T} R_t}{T}
Quick example

Five annual returns: 2%, 8%, 5%, 9%, 6%. The sum is 30 and T = 5, so the mean is 6%.

On your calculator
  1. 2+8+5+9+6=÷5= 6
  1. 2ENTER8+5+9+6+5÷ 6

ENTER enter (on the HP, puts the number on the stack)

Sample variance Use it
s2=∑t=1T(Rt−Rˉ)2T−1s^{2} = \frac{\sum_{t=1}^{T} (R_t - \bar{R})^{2}}{T - 1}
Quick example

Same five returns, mean 6. Deviations: −4, +2, −1, +3, 0. Squares: 16, 4, 1, 9, 0 sum to 30. 30 ÷ 4 = 7.5 (%²), so s = 2.74%.

On your calculator
  1. 4x²+2x²+1x²+3x²=÷4= 7.5

x² square

  1. 4ENTER×2ENTER×+1ENTER×+3ENTER×+4÷ 7.5

ENTER enter (on the HP, puts the number on the stack)

Sample covariance Memorize
Cov1,2=∑t=1T(R1,t−Rˉ1)(R2,t−Rˉ2)T−1\mathrm{Cov}_{1,2} = \frac{\sum_{t=1}^{T} (R_{1,t} - \bar{R}_1)(R_{2,t} - \bar{R}_2)}{T - 1}
Quick example

Four years. Fund A’s deviations from its mean: +3, −1, −4, +2. Fund B’s: +2, 0, −3, +1. Products: 6, 0, 12, 2 sum to 20. 20 ÷ 3 = 6.67 (%²). Positive: they tend to sit on the same side of their means.

On your calculator
  1. 3×2+(4+|-×3+|-)+(2×1)=÷3= 6.6667

+|- change sign

  1. 3ENTER2×4CHSENTER3CHS×+2ENTER1×+3÷ 6.6667

ENTER enter (on the HP, puts the number on the stack) · CHS change sign

Correlation coefficient Memorize
ρ1,2=Cov1,2σ1 σ2\rho_{1,2} = \frac{\mathrm{Cov}_{1,2}}{\sigma_1\,\sigma_2}
Quick example

Covariance −0.0045, standard deviations 15% and 10%. −0.0045 ÷ (0.15 × 0.10) = −0.30. Always between −1 and +1.

On your calculator
  1. 0.0045+|-÷(0.15×0.1)= -0.3

+|- change sign

  1. 0.0045CHSENTER0.15ENTER0.1×÷ -0.3

CHS change sign · ENTER enter (on the HP, puts the number on the stack)

Covariance from correlation Memorize
Cov1,2=ρ1,2 σ1 σ2\mathrm{Cov}_{1,2} = \rho_{1,2}\,\sigma_1\,\sigma_2
Quick example

Correlation −0.35, standard deviations 14% and 9%. −0.35 × 0.14 × 0.09 = −0.00441.

On your calculator
  1. 0.35+|-×0.14×0.09= -0.00441

+|- change sign

  1. 0.35CHSENTER0.14×0.09× -0.00441

CHS change sign · ENTER enter (on the HP, puts the number on the stack)

Portfolio expected return Memorize
E(Rp)=w1 E(R1)+w2 E(R2)E(R_p) = w_1\,E(R_1) + w_2\,E(R_2)
Quick example

25% in an asset expected to return 12% and 75% in one expected to return 6%. 0.25 × 12 + 0.75 × 6 = 7.5%, whatever the correlation.

On your calculator
  1. 0.25×12+(0.75×6)= 7.5
  1. 0.25ENTER12×0.75ENTER6×+ 7.5

ENTER enter (on the HP, puts the number on the stack)

Two-asset portfolio variance Memorize
σp2=w12σ12+w22σ22+2 w1w2 ρ1,2 σ1σ2\sigma_p^{2} = w_1^{2}\sigma_1^{2} + w_2^{2}\sigma_2^{2} + 2\,w_1 w_2\,\rho_{1,2}\,\sigma_1\sigma_2
Quick example

40% in an asset with σ = 24% and 60% in one with σ = 8%, correlation 0.6. 0.009216 + 0.002304 + 0.00553 = 0.01705, so σp = √0.01705 = 13.06%. The weighted average of the σs is 14.4%.

On your calculator
  1. 0.4x²×0.24x²+(0.6x²×0.08x²)+(2×0.4×0.6×0.6×0.24×0.08)=√x 0.1306

x² square · √x square root

  1. 0.4ENTER×0.24ENTER××0.6ENTER×0.08ENTER××+2ENTER0.4×0.6×0.6×0.24×0.08×+g√x 0.1306

ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root

Zero-risk weight when correlation is −1 Use it
w1=σ2σ1+σ2w_1 = \frac{\sigma_2}{\sigma_1 + \sigma_2}
Quick example

Perfectly negatively correlated assets with σ = 15% and 5%. Weight in the first: 5 ÷ (15 + 5) = 25%. Check: 0.25 × 15 = 3.75 and 0.75 × 5 = 3.75, which cancel.

On your calculator
  1. 5÷(15+5)= 0.25
  1. 5ENTER15ENTER5+÷ 0.25

ENTER enter (on the HP, puts the number on the stack)

Equally weighted portfolio of N assets Use it
σp2=σˉ2N+N−1N Cov‾\sigma_p^{2} = \frac{\bar{\sigma}^{2}}{N} + \frac{N-1}{N}\,\overline{\mathrm{Cov}}
Quick example

N = 25 assets, each σ = 20%, average correlation 0.4 (average covariance 0.016). 0.04 ÷ 25 + (24 ÷ 25) × 0.016 = 0.0016 + 0.01536 = 0.01696, so σp = 13.02%. The floor as N grows is √0.016 = 12.65%.

On your calculator
  1. 0.2x²÷25+(24÷25×0.016)=√x 0.1302

x² square · √x square root

  1. 0.2ENTER×25÷24ENTER25÷0.016×+g√x 0.1302

ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root

Portfolio variance, any number of assets Know the idea
σp2=∑i=1N∑j=1Nwi wj Covi,j\sigma_p^{2} = \sum_{i=1}^{N}\sum_{j=1}^{N} w_i\,w_j\,\mathrm{Cov}_{i,j}
Quick example

With three assets there are 3 variance terms and 3 distinct covariances, each covariance counted twice (9 terms in all). The covariance of an asset with itself is its variance.

How it is asked

  1. Two-asset standard deviation

    70/30 in assets with σ 16% and 10%, correlation 0.3. Portfolio σ?

    0.012544 + 0.0009 + 0.002016 = 0.01546 → 12.43%. Traps: 11.59% (no covariance term), 14.20% (weighted average).

  2. Effect of a lower correlation

    Weights and σs fixed; the correlation falls. What happens to risk and expected return?

    Risk falls, expected return is unchanged.

  3. Very large equally weighted portfolio

    As N becomes very large, portfolio variance approaches?

    The average covariance, not zero. With σ 25% and ρ 0.4, the floor is √(0.4 × 0.0625) = 15.81%.

  4. Covariance from historical data

    Three years of returns for two funds. Sample covariance?

    Deviations from each mean, multiply, add, divide by T − 1. Trap: dividing by T.

Exam traps

  • Dropping the 2w₁w₂Cov term.
  • Taking the weighted average of standard deviations. That is right only at ρ = +1.
  • Squaring the weights but forgetting to square σ, or using σ where a covariance is required.
  • Thinking more assets drive risk to zero. The floor is the average covariance.
  • Dividing by T instead of T − 1 for a sample covariance or variance.
  • Entering percentages and decimals in the same formula. Use all decimals for the variance.

Checkpoint

4 exam-style questions. About 90 seconds each.

  1. 1A portfolio is 50% in asset A (standard deviation 18%) and 50% in asset B (standard deviation 12%). The correlation between the two assets is 0.25. The portfolio’s standard deviation is closest to:

  2. 2Holding the weights and the assets’ standard deviations constant, a fall in the correlation between two assets will:

  3. 3As the number of assets in an equally weighted portfolio becomes very large, the portfolio’s variance approaches:

  4. 4Over three years, fund S returned 9%, 3% and −3%, and fund T returned 2%, 6% and 10%. The sample covariance of the two funds’ returns (in %²) is closest to:

Key takeaways

  • σp² = w₁²σ₁² + w₂²σ₂² + 2w₁w₂ρσ₁σ₂. Never forget the covariance term.
  • Correlation changes risk, not expected return.
  • Below ρ = +1, σp is less than the weighted average of the σs; at ρ = −1 risk can reach zero.
  • With many assets, variance falls to the average covariance.
Sample mean return Use it
Rˉ=∑t=1TRtT\bar{R} = \frac{\sum_{t=1}^{T} R_t}{T}
Quick example

Five annual returns: 2%, 8%, 5%, 9%, 6%. The sum is 30 and T = 5, so the mean is 6%.

On your calculator
  1. 2+8+5+9+6=÷5= 6
  1. 2ENTER8+5+9+6+5÷ 6

ENTER enter (on the HP, puts the number on the stack)

Sample variance Use it
s2=∑t=1T(Rt−Rˉ)2T−1s^{2} = \frac{\sum_{t=1}^{T} (R_t - \bar{R})^{2}}{T - 1}
Quick example

Same five returns, mean 6. Deviations: −4, +2, −1, +3, 0. Squares: 16, 4, 1, 9, 0 sum to 30. 30 ÷ 4 = 7.5 (%²), so s = 2.74%.

On your calculator
  1. 4x²+2x²+1x²+3x²=÷4= 7.5

x² square

  1. 4ENTER×2ENTER×+1ENTER×+3ENTER×+4÷ 7.5

ENTER enter (on the HP, puts the number on the stack)

Sample covariance Memorize
Cov1,2=∑t=1T(R1,t−Rˉ1)(R2,t−Rˉ2)T−1\mathrm{Cov}_{1,2} = \frac{\sum_{t=1}^{T} (R_{1,t} - \bar{R}_1)(R_{2,t} - \bar{R}_2)}{T - 1}
Quick example

Four years. Fund A’s deviations from its mean: +3, −1, −4, +2. Fund B’s: +2, 0, −3, +1. Products: 6, 0, 12, 2 sum to 20. 20 ÷ 3 = 6.67 (%²). Positive: they tend to sit on the same side of their means.

On your calculator
  1. 3×2+(4+|-×3+|-)+(2×1)=÷3= 6.6667

+|- change sign

  1. 3ENTER2×4CHSENTER3CHS×+2ENTER1×+3÷ 6.6667

ENTER enter (on the HP, puts the number on the stack) · CHS change sign

Correlation coefficient Memorize
ρ1,2=Cov1,2σ1 σ2\rho_{1,2} = \frac{\mathrm{Cov}_{1,2}}{\sigma_1\,\sigma_2}
Quick example

Covariance −0.0045, standard deviations 15% and 10%. −0.0045 ÷ (0.15 × 0.10) = −0.30. Always between −1 and +1.

On your calculator
  1. 0.0045+|-÷(0.15×0.1)= -0.3

+|- change sign

  1. 0.0045CHSENTER0.15ENTER0.1×÷ -0.3

CHS change sign · ENTER enter (on the HP, puts the number on the stack)

Covariance from correlation Memorize
Cov1,2=ρ1,2 σ1 σ2\mathrm{Cov}_{1,2} = \rho_{1,2}\,\sigma_1\,\sigma_2
Quick example

Correlation −0.35, standard deviations 14% and 9%. −0.35 × 0.14 × 0.09 = −0.00441.

On your calculator
  1. 0.35+|-×0.14×0.09= -0.00441

+|- change sign

  1. 0.35CHSENTER0.14×0.09× -0.00441

CHS change sign · ENTER enter (on the HP, puts the number on the stack)

Portfolio expected return Memorize
E(Rp)=w1 E(R1)+w2 E(R2)E(R_p) = w_1\,E(R_1) + w_2\,E(R_2)
Quick example

25% in an asset expected to return 12% and 75% in one expected to return 6%. 0.25 × 12 + 0.75 × 6 = 7.5%, whatever the correlation.

On your calculator
  1. 0.25×12+(0.75×6)= 7.5
  1. 0.25ENTER12×0.75ENTER6×+ 7.5

ENTER enter (on the HP, puts the number on the stack)

Two-asset portfolio variance Memorize
σp2=w12σ12+w22σ22+2 w1w2 ρ1,2 σ1σ2\sigma_p^{2} = w_1^{2}\sigma_1^{2} + w_2^{2}\sigma_2^{2} + 2\,w_1 w_2\,\rho_{1,2}\,\sigma_1\sigma_2
Quick example

40% in an asset with σ = 24% and 60% in one with σ = 8%, correlation 0.6. 0.009216 + 0.002304 + 0.00553 = 0.01705, so σp = √0.01705 = 13.06%. The weighted average of the σs is 14.4%.

On your calculator
  1. 0.4x²×0.24x²+(0.6x²×0.08x²)+(2×0.4×0.6×0.6×0.24×0.08)=√x 0.1306

x² square · √x square root

  1. 0.4ENTER×0.24ENTER××0.6ENTER×0.08ENTER××+2ENTER0.4×0.6×0.6×0.24×0.08×+g√x 0.1306

ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root

Zero-risk weight when correlation is −1 Use it
w1=σ2σ1+σ2w_1 = \frac{\sigma_2}{\sigma_1 + \sigma_2}
Quick example

Perfectly negatively correlated assets with σ = 15% and 5%. Weight in the first: 5 ÷ (15 + 5) = 25%. Check: 0.25 × 15 = 3.75 and 0.75 × 5 = 3.75, which cancel.

On your calculator
  1. 5÷(15+5)= 0.25
  1. 5ENTER15ENTER5+÷ 0.25

ENTER enter (on the HP, puts the number on the stack)

Equally weighted portfolio of N assets Use it
σp2=σˉ2N+N−1N Cov‾\sigma_p^{2} = \frac{\bar{\sigma}^{2}}{N} + \frac{N-1}{N}\,\overline{\mathrm{Cov}}
Quick example

N = 25 assets, each σ = 20%, average correlation 0.4 (average covariance 0.016). 0.04 ÷ 25 + (24 ÷ 25) × 0.016 = 0.0016 + 0.01536 = 0.01696, so σp = 13.02%. The floor as N grows is √0.016 = 12.65%.

On your calculator
  1. 0.2x²÷25+(24÷25×0.016)=√x 0.1302

x² square · √x square root

  1. 0.2ENTER×25÷24ENTER25÷0.016×+g√x 0.1302

ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root

Portfolio variance, any number of assets Know the idea
σp2=∑i=1N∑j=1Nwi wj Covi,j\sigma_p^{2} = \sum_{i=1}^{N}\sum_{j=1}^{N} w_i\,w_j\,\mathrm{Cov}_{i,j}
Quick example

With three assets there are 3 variance terms and 3 distinct covariances, each covariance counted twice (9 terms in all). The covariance of an asset with itself is its variance.

All Portfolio Construction formulas, every lesson

Practice exam-style questions on Portfolio Risk and Return: Part I

Questions about this lesson?

Where this comes back

Questions candidates ask

How do you calculate the standard deviation of a two-asset portfolio?

Square each weight and each standard deviation and multiply the pairs, then add twice the product of the two weights, the correlation and the two standard deviations. Take the square root of the total. Use decimals, and do not skip the cross term.

What is the difference between covariance and correlation?

Covariance shows whether two returns tend to move together, but its size depends on the units and on how volatile the assets are. Correlation is the covariance divided by both standard deviations, so it is bounded between −1 and +1 and measures strength as well as direction.

Why does diversification reduce risk but not to zero?

Each asset’s own variance shrinks as more assets are added, because it is divided by N. The covariance among the assets does not shrink: with many assets, portfolio variance approaches the average covariance. Only perfectly negatively correlated assets can remove risk entirely.

Spotted an error? Tell us and we will fix it.

  1. How the major asset classes compare on return and risk
  2. Risk aversion, utility and indifference curves
  3. Portfolio variance, covariance and correlation
  4. The efficient frontier and the global minimum-variance portfolio
  5. The capital allocation line and the optimal portfolio

Ask Sensei Listen instead

Questions on Portfolio variance, covariance and correlation

Learn with Sensei, out loud The voice tutor, in early access

Sensei teaches the lesson aloud and stops when you interrupt: "wait, why is the geometric mean lower?" It answers with the lesson's own example, then quizzes you by voice. Every account can try Sensei on one module, with one voice question.

USD 149 a month founding price (regular USD 199), kept for as long as you stay subscribed. Everything in Plus included.

In active development and improving every day. Send feedback · Plans and pricing

Analyst Dojo Plus

Your free review list holds 10 items.

Plus keeps everything you save, for USD 19 a month. To make room on the free plan, remove something from your review list.

See Plus

Lessons, checkpoints and the lesson questions in practice stay free. Compare plans