| Financial Toolbox | Search  Help Desk |
| portrand | See Also |
Randomized portfolio risks, returns, and weights.
Syntax
[risk, ror, weights] = portrand(asset, ret, pts) [risk, ror, weights] = portrand(asset, ret) [risk, ror, weights] = portrand(asset) portrand(asset, ret, pts)
Arguments
assetretasset. By default, ret is computed by taking the average value of each column of asset.pts1000.Description
[risk, ror, weights] = portrand(asset, ret, pts)
returns the risks, rates of return, and weights of random portfolio configurations.
riskpts-by-1 vector of standard deviations.rorpts-by-1 vector of expected rates of return.weightspts-by-N matrix of asset weights. Each row of weights is a different portfolio configuration.portrand(asset, ret, pts)
plots the points representing each portfolio configuration. It does not return any data to the MATLAB workspace.
This function is used in the MATLAB Financial Expo and illustrates how multiple weighting combinations of the same portfolio will generate the same expected rate of return.
See Also
frontier
Reference
Bodie, Kane, and Marcus, Investments, Chapter 7.