python最优投资组合_python中基于投资组合优化方法的金融库

Some research says that "mean variance portfolio optimization" can

give good results. I discussed this in a message

To implement this approach, a needed input is the covariance matrix of

returns, which requires historical stock prices, which one can obtain

using "Python quote grabber" http://www.openvest.org/Databases/ovpyq .

For expected returns -- hmmm. One of the papers I cited found that

assuming equal expected returns of all stocks can give reasonable

results.

Then one needs a "quadratic programming" solver, which appears to be

handled by the CVXOPT Python package.

If someone implements the approach in Python, I'd be happy to hear

about it.

There is a "backtest" package in R (open source stats package callable

from Python) http://cran.r-project.org/web/packages/backtest/index.html

"for exploring portfolio-based hypotheses about financial instruments

(stocks, bonds, swaps, options, et cetera)."

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值