Description
[PortRisk,PortReturn,PortWts] = portopt(ExpReturn,ExpCovariance) sets
up the most basic portfolio problem with weights greater than or equal
to 0 that must sum to 1. All
that is necessary to solve this problem is the mean and covariance
of asset returns. The problem returns 10 equally-spaced points on
the efficient frontier by return.
[PortRisk,PortReturn,PortWts] = portopt(ExpReturn,ExpCovariance,NumPorts) sets
up the basic portfolio problem but lets you specify how many equally-spaced
points on the efficient frontier that you want in NumPorts.
If you specify 1, it returns the minimum-risk
portfolio.
[PortRisk,PortReturn,PortWts] = portopt(ExpReturn,ExpCovariance,NumPorts,PortReturn) sets
up the basic portfolio problem but lets you specify target returns
on the efficient frontier in the vector PortReturn.
This functionality requires that if you set PortReturn, NumPorts should
be empty.
Note
portopt generates a warning if have returns
outside the range and returns the portfolios at the endpoints of the
efficient frontier.
The outputs for portopt are:
PortRisk is an NPORTS-by-1 vector
of the standard deviation of each portfolio.
PortReturn is an NPORTS-by-1 vector
of the expected return of each portfolio.
PortWts is an NPORTS-by-NASSETS matrix
of weights allocated to each asset. Each row represents a portfolio.
The total of all weights in a portfolio is 1.
If portopt is invoked without output arguments,
it writes to the current figure window.
此篇博客介绍了如何使用Matlab的portopt函数来设置基本的投资组合问题,包括目标收益率、资产方差及不同点数的高效前沿。函数返回各组合的风险、回报率和权重矩阵,适用于初级到进阶投资者。

2823

被折叠的 条评论
为什么被折叠?



