フィルターのクリア

varience of portfolio without financial toolbox

1 回表示 (過去 30 日間)
Sameer
Sameer 2014 年 5 月 20 日
回答済み: Roger Wohlwend 2014 年 5 月 21 日
how do i find the variance of a portfolio with N (variable number of assets)?
the number of stocks will change depending on number of stocks in the input file (N).
thanks

回答 (1 件)

Roger Wohlwend
Roger Wohlwend 2014 年 5 月 21 日
The variance of a portfolio is defined as w * C * w', where w is the vector (dimensions: 1 x N) with the portfolio weight and C is the matrix (dimensions N x N) with the variances / covariances of the assets. If you want the standard deviation of the portfolio - that is what most people are interested, even though they speak of the variance or the risk of the portfolio - just take the square root of the above term, e.g. calculate sqrt(w * C * w').

カテゴリ

Help Center および File ExchangePortfolio Optimization and Asset Allocation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by