Predicting the Link between Stock Prices and Indices with Machine Learning in R Programming Language

This paper provides an in-depth analysis machine study of the relationship between stock prices and indices through machine learning algorithms. Stock prices are difficult to predict by a single financial formula because there are too many factors that can affect stock prices. With the development o...

Full description

Saved in:
Bibliographic Details
Main Author: Mengya Cao
Format: Article
Language:English
Published: Wiley 2021-01-01
Series:Journal of Mathematics
Online Access:http://dx.doi.org/10.1155/2021/1275637
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1832560703794315264
author Mengya Cao
author_facet Mengya Cao
author_sort Mengya Cao
collection DOAJ
description This paper provides an in-depth analysis machine study of the relationship between stock prices and indices through machine learning algorithms. Stock prices are difficult to predict by a single financial formula because there are too many factors that can affect stock prices. With the development of computer science, the author now uses many computer science techniques to make more accurate predictions of stock prices. In this project, the author uses machine learning in R Studio to predict the prices of 35 stocks traded on the New York Stock Exchange and to study the interaction between the prices of four indices in different countries. Further, it is proposed to find the link between stocks and indices in different countries and then use the predictions to optimize the portfolio of these stocks. To complete this project, the author used Linear Regression, LASSO, Regression Trees, Bagging, Random Forest, and Boosted Trees to perform the analysis. The experimental results show that the MRDL deep multiple regression model proposed in this paper predicts the closing price trend of stocks with a mean square error interval [0.0043, 0.0821]. Additionally, 80% of the proposed DMISV, KDJSV, MACDV, and DKB stock buying and selling strategies have a return greater than 10%. The experimental results validate the effectiveness of the proposed buying and selling strategies and stock price trend prediction methods in this paper. Compared with other algorithms, the accuracy of the algorithm in this study is increased by 15%, and the efficiency of prediction is increased by 25%.
format Article
id doaj-art-e2a841b7c04a43be8b03e517208ee7f6
institution Kabale University
issn 2314-4785
language English
publishDate 2021-01-01
publisher Wiley
record_format Article
series Journal of Mathematics
spelling doaj-art-e2a841b7c04a43be8b03e517208ee7f62025-02-03T01:26:55ZengWileyJournal of Mathematics2314-47852021-01-01202110.1155/2021/1275637Predicting the Link between Stock Prices and Indices with Machine Learning in R Programming LanguageMengya Cao0Olin Business SchoolThis paper provides an in-depth analysis machine study of the relationship between stock prices and indices through machine learning algorithms. Stock prices are difficult to predict by a single financial formula because there are too many factors that can affect stock prices. With the development of computer science, the author now uses many computer science techniques to make more accurate predictions of stock prices. In this project, the author uses machine learning in R Studio to predict the prices of 35 stocks traded on the New York Stock Exchange and to study the interaction between the prices of four indices in different countries. Further, it is proposed to find the link between stocks and indices in different countries and then use the predictions to optimize the portfolio of these stocks. To complete this project, the author used Linear Regression, LASSO, Regression Trees, Bagging, Random Forest, and Boosted Trees to perform the analysis. The experimental results show that the MRDL deep multiple regression model proposed in this paper predicts the closing price trend of stocks with a mean square error interval [0.0043, 0.0821]. Additionally, 80% of the proposed DMISV, KDJSV, MACDV, and DKB stock buying and selling strategies have a return greater than 10%. The experimental results validate the effectiveness of the proposed buying and selling strategies and stock price trend prediction methods in this paper. Compared with other algorithms, the accuracy of the algorithm in this study is increased by 15%, and the efficiency of prediction is increased by 25%.http://dx.doi.org/10.1155/2021/1275637
spellingShingle Mengya Cao
Predicting the Link between Stock Prices and Indices with Machine Learning in R Programming Language
Journal of Mathematics
title Predicting the Link between Stock Prices and Indices with Machine Learning in R Programming Language
title_full Predicting the Link between Stock Prices and Indices with Machine Learning in R Programming Language
title_fullStr Predicting the Link between Stock Prices and Indices with Machine Learning in R Programming Language
title_full_unstemmed Predicting the Link between Stock Prices and Indices with Machine Learning in R Programming Language
title_short Predicting the Link between Stock Prices and Indices with Machine Learning in R Programming Language
title_sort predicting the link between stock prices and indices with machine learning in r programming language
url http://dx.doi.org/10.1155/2021/1275637
work_keys_str_mv AT mengyacao predictingthelinkbetweenstockpricesandindiceswithmachinelearninginrprogramminglanguage