Stock Price Prediction Using Convolutional Neural Networks on a Multivariate Time Series

Sidra Mehtab, Jaydip Sen
{"title":"Stock Price Prediction Using Convolutional Neural Networks on a Multivariate Time Series","authors":"Sidra Mehtab, Jaydip Sen","doi":"10.36227/techrxiv.15088734","DOIUrl":null,"url":null,"abstract":"Prediction of future movement of stock prices has been a subject matter of many research work. On one hand, we have proponents of the Efficient Market Hypothesis who claim that stock prices cannot be predicted, on the other hand, there are propositions illustrating that, if appropriately modelled, stock prices can be predicted with a high level of accuracy. There is also a gamut of literature on technical analysis of stock prices where the objective is to identify patterns in stock price movements and profit from it. In this work, we propose a hybrid approach for stock price prediction using machine learning and deep learning-based methods. We select the NIFTY 50 index values of the National Stock Exchange (NSE) of India, over a period of four years: 2015 – 2018. Based on the NIFTY data during 2015 – 2018, we build various predictive models using machine learning approaches, and then use those models to predict the “Close” value of NIFTY 50 for the year 2019, with a forecast horizon of one week, i.e., five days. For predicting the NIFTY index movement patterns, we use a number of classification methods, while for forecasting the actual “Close” values of NIFTY index, various regression models are built. We, then, augment our predictive power of the models by building a deep learning-based regression model using Convolutional Neural Network (CNN) with a walk-forward validation. The CNN model is fine-tuned for its parameters so that the validation loss stabilizes with increasing number of iterations, and the training and validation accuracies converge. We exploit the power of CNN in forecasting the future NIFTY index values using three approaches which differ in number of variables used in forecasting, number of sub-models used in the overall models and, size of the input data for training the models. Extensive results are presented on various metrics for all classification and regression models. The results clearly indicate that CNN-based multivariate forecasting model is the most effective and accurate in predicting the movement of NIFTY index values with a weekly forecast horizon.","PeriodicalId":404477,"journal":{"name":"Mechanical Engineering eJournal","volume":"11 2","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-02-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"15","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Mechanical Engineering eJournal","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.36227/techrxiv.15088734","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 15

Abstract

Prediction of future movement of stock prices has been a subject matter of many research work. On one hand, we have proponents of the Efficient Market Hypothesis who claim that stock prices cannot be predicted, on the other hand, there are propositions illustrating that, if appropriately modelled, stock prices can be predicted with a high level of accuracy. There is also a gamut of literature on technical analysis of stock prices where the objective is to identify patterns in stock price movements and profit from it. In this work, we propose a hybrid approach for stock price prediction using machine learning and deep learning-based methods. We select the NIFTY 50 index values of the National Stock Exchange (NSE) of India, over a period of four years: 2015 – 2018. Based on the NIFTY data during 2015 – 2018, we build various predictive models using machine learning approaches, and then use those models to predict the “Close” value of NIFTY 50 for the year 2019, with a forecast horizon of one week, i.e., five days. For predicting the NIFTY index movement patterns, we use a number of classification methods, while for forecasting the actual “Close” values of NIFTY index, various regression models are built. We, then, augment our predictive power of the models by building a deep learning-based regression model using Convolutional Neural Network (CNN) with a walk-forward validation. The CNN model is fine-tuned for its parameters so that the validation loss stabilizes with increasing number of iterations, and the training and validation accuracies converge. We exploit the power of CNN in forecasting the future NIFTY index values using three approaches which differ in number of variables used in forecasting, number of sub-models used in the overall models and, size of the input data for training the models. Extensive results are presented on various metrics for all classification and regression models. The results clearly indicate that CNN-based multivariate forecasting model is the most effective and accurate in predicting the movement of NIFTY index values with a weekly forecast horizon.
基于多元时间序列的卷积神经网络股票价格预测
预测股票价格的未来走势一直是许多研究工作的主题。一方面,我们有有效市场假说的支持者,他们声称股票价格无法预测,另一方面,也有主张表明,如果适当建模,股票价格可以预测得非常准确。还有一些关于股票价格技术分析的文献,其目的是确定股票价格变动的模式并从中获利。在这项工作中,我们提出了一种使用机器学习和基于深度学习的方法进行股票价格预测的混合方法。我们选择印度国家证券交易所(NSE)的NIFTY 50指数值,为期四年:2015年至2018年。基于2015 - 2018年的NIFTY数据,我们使用机器学习方法构建了各种预测模型,然后使用这些模型预测2019年NIFTY 50的“收盘价”值,预测范围为一周,即5天。为了预测NIFTY指数的运动模式,我们使用了多种分类方法,而为了预测NIFTY指数的实际“Close”值,我们建立了各种回归模型。然后,我们通过使用卷积神经网络(CNN)构建一个基于深度学习的回归模型来增强模型的预测能力,并进行前向验证。CNN模型对其参数进行微调,使验证损失随着迭代次数的增加而趋于稳定,训练精度和验证精度趋于收敛。我们利用CNN在预测未来NIFTY指数值方面的能力,使用三种方法,这些方法在预测中使用的变量数量,整体模型中使用的子模型数量以及用于训练模型的输入数据的大小上有所不同。广泛的结果提出了各种指标的所有分类和回归模型。结果清楚地表明,基于cnn的多变量预测模型对NIFTY指数值在周预测范围内的运动预测最为有效和准确。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信