没有合适的资源?快使用搜索试试~ 我知道了~
20150301202 陈裕 基于Python和JoinQuant平台的选股模型构建与设计(王海燕)1
需积分: 0 1 下载量 75 浏览量
2022-08-08
23:11:39
上传
评论
收藏 1.36MB DOCX 举报
温馨提示
试读
38页
(2)使用金融技术分析:使用资本资产定价模型(CAPM)计算股票的Beta系数来探寻个股相对于大盘的波动性,将低于市场安全线的股票筛除 (3)使用Python语
资源详情
资源评论
资源推荐
京 江 学 院
JINGJIANG COLLEGE OF J I A N G S U N I V E R S I T Y
本 科 毕 业 论 文
基于 Python 和 JoinQuant 平台的选股模型构建与
设计
Construction and Design of Stock Selection Model Based on Python
and JoinQuant Platform
专 业: 计算机科学与技术
班 级: 15 计算机 2 班
学 号: 20150301202
姓 名: 陈 裕
指导教师姓名: 王 海 燕
指导教师职称: 副 教 授
2019 年 5 月
I
基于 Python 和 JoinQuant 平台的选股模型构建与设计
专业班级:15 计算机 2 班 学生姓名:陈裕
指导教师:王海燕 职称:副教授
摘要 股票市场每天都会产生大量数据,如何从这些数据中分析出有价值的信息,是股票分
析机构和股票投资者最为关注的问题。选股模型是将公司基本面分析与金融技术分析结合起
来,以 Python 为开发语言,JoinQuant 为测试平台,分析公司基本面(财务)数据及股票
历史交易数据,构建出投资组合模型为投资者作出优质决策。具体操作:(1)通过获取的
Wind 数据对公司基本面进行分析,从净资产收益率(ROE)、净利润增长率、主营业务收
入增长率三个指标入手,筛选出一批具有良好发展前景的公司;(2)使用金融技术分析:使
用资本资产定价模型(CAPM)计算股票的 Beta 系数来探寻个股相对于大盘的波动性,将
低于市场安全线的股票筛除;计算股票收益率的偏度和峰度来检验收益率数据的正态性,将
数据特征偏离正态性较大的股票筛除。(3)使用 Python 语言构建分别以夏普比率和方差为
指标的投资组合模型,从两个模型中分别选出排名前三的组合;将六种投资组合分别放入
JoinQuant 平台中回测,分析各组合的回测结果。从回测结果中得出使用夏普比率作为指标
构建的模型效果更好。通过模型选出的投资组合质量较高,能有效规避风险,并获得较高收
益,为选股开拓了新的视野。
关键词:Python JoinQuant 选股 CAPM MPT 夏普比率
II
Construction and Design of Stock Selection Model Based on Python and JoinQuant
Platform
Abstract The stock market generates a large amount of data every day. How to analyze valuable
information from these data is the most concerned issue for stock analysts and stock investors. The
stock selection model combines the company's fundamental analysis with financial technology analysis,
using Python as the development language, JoinQuant as the test platform, analyzing the company's
fundamental (financial) data and stock historical trading data, and building a portfolio model for investors.
Quality decision making. Specific operations: (1) Analysis of the company's fundamentals through the
acquired Wind data, starting from the three indicators of return on net assets (ROE), net profit growth
rate, and main business income growth rate, screening out a batch of good development Prospective
company; (2) Using financial technology analysis: Calculate the stock's Beta coefficient using the
Capital Asset Pricing Model (CAPM) to explore the volatility of individual stocks relative to the market,
and to screen stocks below the market safety line; calculate stock returns The skewness and kurtosis
are used to test the normality of the yield data, and the data features are deviated from the stocks with
higher normality. (3) Using the Python language to construct a portfolio model with Sharpe ratio and
variance as indicators, select the top three combinations from the two models separately; put the six
portfolios into the JoinQuant platform for backtesting, and analyze each Combined backtest results.
From the backtest results, the model constructed using the Sharpe ratio as an indicator is better. The
quality of the investment portfolio selected by the model is high, which can effectively avoid risks and
obtain higher returns, which opens up new horizons for stock selection.
Key words: Python JoinQuant Stock selection CAPM MPT Sharpe ratio
III
目 录
第 1 章 绪论..................................................................................................................................1
1.1 选题背景.............................................................................................................................1
1.2 国内外研究现状.................................................................................................................1
1.3 研究目的.............................................................................................................................2
1.4 研究意义.............................................................................................................................2
1.5 研究方法.............................................................................................................................3
1.6 本章小结.............................................................................................................................3
第 2 章 相关理论与技术...........................................................................................................4
2.1 相关理论.............................................................................................................................4
2.1.1 对数收益率...............................................................................................................4
2.1.2 资本资产定价模型(CAPM) ...............................................................................4
2.1.3 偏度和峰度...............................................................................................................5
2.1.4 夏普比率(Sharpe Ratio)......................................................................................5
2.1.5 现代投资组合理论模型(MPT) ..........................................................................6
2.2 相关技术.............................................................................................................................6
2.2.1 基本面分析...............................................................................................................6
2.2.2 金融技术分析...........................................................................................................7
2.2.3Python 技术 ...............................................................................................................7
2.2.4JoinQuant 平台介绍 ..................................................................................................8
2.3 本章小结.............................................................................................................................8
第 3 章 股票数据分析 ...............................................................................................................9
3.1 股票数据分析总体框架图.................................................................................................9
3.2 基本面分析.........................................................................................................................9
3.2.1 基本面数据获取.....................................................................................................10
3.2.2 基本面数据预处理.................................................................................................10
3.2.3 基本面数据分析步骤.............................................................................................11
3.2.4 程序设计.................................................................................................................11
3.2.5 筛选结果.................................................................................................................11
3.3 金融技术分析...................................................................................................................12
3.3.1 历史交易数据获取及预处理.................................................................................12
3.3.2 资本资产定价模型(CAPM)应用 .....................................................................13
3.3.3 数据正态性检验.....................................................................................................16
3.3.4 筛选股票并统计收益率.........................................................................................18
3.4 投资组合模型构建...........................................................................................................20
3.4.1 使用夏普比率构建模型.........................................................................................21
3.4.2 使用方差构建模型.................................................................................................22
IV
3.5 本章小结...........................................................................................................................23
第 4 章 实证分析.......................................................................................................................24
4.1 JoinQuant 平台策略构建 ..................................................................................................24
4.2 实证结果与分析...............................................................................................................24
4.2.1 以夏普比率为指标的模型测试.............................................................................24
4.2.2 以方差为指标的模型测试.....................................................................................26
4.3 本章小结...........................................................................................................................29
第 5 章 结论................................................................................................................................30
5.1 总结...................................................................................................................................30
5.2 不足与展望.......................................................................................................................31
致谢 ................................................................................................................................................32
参考文献.......................................................................................................................................33
剩余37页未读,继续阅读
小小二-yan
- 粉丝: 26
- 资源: 299
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0