Git Product home page Git Product logo

mean_variance_optimization's Introduction

mean_variance_optimization

根据均值方差理论优化fof组合资产配比并进行回测

说明

根据个人风险偏好,可以计算个人在低于指定风险下,收益最高的资产配置组合,简单使用的话可以按照如下操作来运行

git clone [this project]
cd [current work director]
python -m mvo

参数

可以在__main__.py文件中修改target_volatility指标,也可以在optimize.py文件下OptimizeConfig类中修改优化参数,在backtest.py中的BackTestConfig类下修改回测参数

config.py文件说明

配置文件

1.index_pool

资产配置的类型,大类包含四类,分别为权益固收另类现金权益类又包含A股(大盘和中盘)、港股、转债,固收类包含利率债和AA企业债, 在主流指数成分内配置

2.universe_limit

为了保证资产分配的多样性,在优化时对全部资产做个统一的限制

3.index_limit

统一限制太过粗糙,此处进行精确限定,如必须保证现金资产比例不低于5%

4.fund_pool

最后fof组合底层的标的资产,即小f

mean_variance_optimization's People

Contributors

pengchuanc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.