matlab portopt,Portfolios on constrained efficient frontier

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值