Giter Club home page Giter Club logo

fama-and-macbeth-test-capm's Introduction

1.文件说明

1.1. 程序文件

docoding.py

程序文件执行了从数据读取至输出的绝大部分工作。

1.2. 输出结果

sf_info.csv

报告了所有上市公司数据起始时间和终止时间。
img_4.png

alldata.csv

报告了所有上市公司自2014年12月31日至2016年11月30日的第一步回归结果,由于部分公司缺失了部分数据, 而beta计算是根据2005年1月起120个月的数据进行滚动回归进行的,因此部分公司起始时间晚于2014年12月。
img_2.png

result.csv

报告了第二步回归结果。第二部回归共24次,为2014年12月31日至2016年11月30日共24个月的回归结果, 其中gamma0为回归的常数项,gamma1为β一次项系数,gamma2位β二次项系数,gamma3为残差标准差的系数 stde为第二步回归残差标准差。
img_3.png

result.xlsx

由result.csv直接转化而来,用excel数据分析t检验进行了检验,检验p值列在结果下方。

mkt.csv

市场收益率输入文件

msf.csv

个股收益率输入文件

2. 结果分析

根据最终结果result.csv显示,gamma1-gamma3各项的p值均大于0.2,即不能拒绝其为0的原假设。因此CAPM模型在A股市场并不成立。
img_5.png

fama-and-macbeth-test-capm's People

Contributors

tctianwen avatar

Watchers

 avatar

Forkers

cavenus

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.