portvar
Variance for portfolio of assets
Syntax
V = portvar(Asset,Weight)
Arguments
|
|
|
|
Description
V = portvar(Asset,Weight)
returns the portfolio variance as an
R
-by-1
vector (assuming
Weight
is a matrix of size
R
-by-N
) with each row representing a variance
calculation for each row of Weight
.
V = portvar(Asset)
assigns each security
an equal weight when calculating the portfolio variance.
References
Bodie, Kane, and Marcus. Investments. Chapter 7.
Version History
Introduced before R2006a