Git Product home page Git Product logo

markowitz_model's Introduction

Markowitz_Model

"assets_returns.csv"包含了700天FTSE 100中83个公司的收益信息

Csv

csv.hpp和csv.cpp两个文件主要实现了读取csv格式文件的功能。

read_data

read_data.hpp和read_data.cpp两个文件包含将数据保存到2D vector中的函数。

Matrix

Matrix.hpp和Matrix.cpp两个文件包含运算符重载函数,以定义与vector和vector<vector>相关的操作。

assetsReturns

assetReturns.hpp和assetReturns.cpp两个文件包含4个类,用于执行样本内和样本外计算及回测。

class AR

  • 保存通用信息,例如样本内窗口,样本外窗口,滚动窗口,滚动次数窗口,700x83收益矩阵等。

class IS: public virtual AR

  • 计算样本内均值和协方差

class OOS: : public virtual AR

  • 计算样本外均值和协方差

class FTSE: public OOS, public IS

  • 回测

markowitz_model's People

Contributors

meiluli avatar

Stargazers

 avatar

Watchers

 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.