Notes by Sara
Lesson 25

Three funds, one number

Example, with made-up numbers. You hold 50% in a stock fund, 30% in a property fund and 20% in a bond fund. You know each fund's expected return, its standard deviation and how each pair is correlated. What are the portfolio's return and risk?

The idea

A vector is an ordered list: the weights w = (0.5, 0.3, 0.2), or the expected returns μ = (8%, 5%, 3%). A matrix is a table. The one finance uses most is the covariance matrix Σ: one row and one column per asset, each asset's variance on the diagonal and the covariance of each pair off it.

StocksPropertyBonds
Stocks0.04000.00600
Property0.00600.01000.0010
Bonds00.00100.0025

Diagonal: standard deviations 20%, 10% and 5%, squared. Off the diagonal: correlation × both standard deviations. Stocks and property have correlation 0.3, so 0.3 × 0.20 × 0.10 = 0.006. The table is symmetric.

Return = w · μ  ·  Variance = wT Σ w

w · μ is a dot product: multiply matching items and add. wT Σ w means: multiply every cell of Σ by the weights of its row and its column, then add all the cells.

Quick check

What's the dot product of (1, 2, 3) and (4, 5, 6)?

Worked example: return and risk

1. Return: w · μ0.5 × 8 + 0.3 × 5 + 0.2 × 3 = 6.1%
2. Each cell × its row weight × its column weightsee the grid below
3. Add all nine cells0.01292
4. Standard deviation√0.01292 = 11.4%
Portfolioreturn 6.1% · risk 11.4%

The grid also shows where the risk comes from: add each row and divide by the total. Stocks are 50% of the money but 84% of the risk. In Excel: =SUMPRODUCT(weights, returns) for step 1, and =MMULT(TRANSPOSE(weights), MMULT(covariance, weights)) for step 3, with the weights in a column.

Why this scales

The two formulas don't change as you add assets. Twenty funds just means a 20-long vector and a 20 × 20 matrix. That's how portfolio software, risk systems and the efficient frontier handle hundreds of holdings. Each asset's risk share, from the row totals, tells you which holdings really drive the swings.

Try it yourself
Three assets: weights, risks and correlations.

Weights (%)

Standard deviations (%)

Correlations (−1 to 1)

Portfolio standard deviation
Share of risk: asset 1 · 2 · 3
Weights add to
Common mistakes
Three slips beginners make.
  • Putting correlations in the matrix. The formula needs covariances: correlation × both standard deviations.
  • Counting each pair once. Every pair appears twice, above and below the diagonal. Adding all the cells handles it.
  • Mismatched order. The weights, returns and rows of the matrix must list the assets in the same order.

Remember

  • A vector is a list, a matrix is a table. The covariance matrix has variances on the diagonal and covariances off it.
  • Portfolio return = w · μ. Portfolio variance = wT Σ w: weight every cell and add.
  • Row totals show each asset's share of the risk, which can be far from its share of the money.

Check yourself

Three questions. Try them without scrolling up.

1. Weights (0.6, 0.4) and expected returns (10%, 4%). What's the portfolio's expected return?

2. Covariance matrix [0.04, 0.01; 0.01, 0.09] and weights (0.5, 0.5). What's the portfolio standard deviation?

3. What sits on the diagonal of a covariance matrix?

Score: 0 of 3