The prediction of Apple stock price based on linear regression model and random forest model

Yutong Gao
{"title":"The prediction of Apple stock price based on linear regression model and random forest model","authors":"Yutong Gao","doi":"10.54254/2753-8818/30/20241077","DOIUrl":null,"url":null,"abstract":"In the financial market, due to various factors, the stock price fluctuation is universal. Therefore, the directional prediction of stock market price based on technical analysis is very important in stock investment. This paper conducted a regression analysis and forecasted the future trends in the close price of Apple stock through recent five years between 2018 and 2023. For the purpose of this specific study, this paper did descriptive statistical analysis of the dataset, and made graphs and analyses of regression and predictions relied on the techniques of the Linear Regression Model and Random Forest Model. Based on the three indices: MSE, RMSE, and MAE, the paper compared the advantages and disadvantages of the two machine learning methods. The result of the experiments indicated that the regression generated through employment of the Linear Regression Model outperforms the result of the Random Forest Model, leading to the conclusion that Linear Regression Model is a more effective method to forecast in this dataset.","PeriodicalId":489336,"journal":{"name":"Theoretical and Natural Science","volume":" 79","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-01-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Theoretical and Natural Science","FirstCategoryId":"0","ListUrlMain":"https://doi.org/10.54254/2753-8818/30/20241077","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

In the financial market, due to various factors, the stock price fluctuation is universal. Therefore, the directional prediction of stock market price based on technical analysis is very important in stock investment. This paper conducted a regression analysis and forecasted the future trends in the close price of Apple stock through recent five years between 2018 and 2023. For the purpose of this specific study, this paper did descriptive statistical analysis of the dataset, and made graphs and analyses of regression and predictions relied on the techniques of the Linear Regression Model and Random Forest Model. Based on the three indices: MSE, RMSE, and MAE, the paper compared the advantages and disadvantages of the two machine learning methods. The result of the experiments indicated that the regression generated through employment of the Linear Regression Model outperforms the result of the Random Forest Model, leading to the conclusion that Linear Regression Model is a more effective method to forecast in this dataset.
基于线性回归模型和随机森林模型的苹果股价预测
在金融市场上,由于各种因素的影响,股票价格的波动是普遍存在的。因此,基于技术分析的股票市场价格方向性预测在股票投资中非常重要。本文通过回归分析,预测了2018年至2023年苹果股票近五年收盘价的未来走势。为了达到具体研究的目的,本文对数据集做了描述性统计分析,并依托线性回归模型和随机森林模型的技术对回归和预测做了图示和分析。根据三个指数本文比较了两种机器学习方法的优劣。实验结果表明,使用线性回归模型生成的回归结果优于随机森林模型的结果,从而得出结论:线性回归模型是对该数据集进行预测的更有效的方法。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信