For a vector of random variables , the covariance matrix is
The diagonal holds the variances ; the off-diagonal entries encode pairwise relationships.
Three properties matter:
- is symmetric: .
- is positive semi-definite: for any vector . This says portfolio variance can't be negative.
- For a linear combination , .
Portfolio variance is the canonical application: with weights and asset returns ,
Negative off-diagonal entries help — that's diversification. Positive off-diagonals hurt because correlated assets don't cancel each other's swings.