Deriving Portfolio Variance
The return of our portfolio, `R_p`, is a simple weighted sum: `R_p = w₁R₁ + w₂R₂`
The average return, `μ_p`, is also a weighted sum: `μ_p = w₁μ₁ + w₂μ₂`
Now for the big question: What is the variance of this portfolio, `σ²_p`? Let's use our fundamental definition: `σ²_p = E[(R_p - μ_p)²]`.
Substitute our portfolio formulas: `R_p - μ_p = (w₁R₁ + w₂R₂) - (w₁μ₁ + w₂μ₂) = w₁(R₁ - μ₁) + w₂(R₂ - μ₂)`.
Now we square it, using `(a + b)² = a² + 2ab + b²`:
(Rp−μp)2=w12(R1−μ1)2+w22(R2−μ2)2+2w1w2(R1−μ1)(R2−μ2) We need the expected value of this entire expression. Since `E[]` distributes across sums and weights are constants:
σp2=w12E[(R1−μ1)2]+w22E[(R2−μ2)2]+2w1w2E[(R1−μ1)(R2−μ2)] We have just re-discovered the definitions of variance and covariance!
- E[(R1−μ1)2]=σ12 (Variance of Asset 1)
- E[(R2−μ2)2]=σ22 (Variance of Asset 2)
- E[(R1−μ1)(R2−μ2)]=σ12 (Covariance of Asset 1 and 2)
Substituting these in gives the classic two-asset formula:
σp2=w12σ12+w22σ22+2w1w2σ12