DOI QR코드

DOI QR Code

An Empirical Study on the Comparison of LSTM and ARIMA Forecasts using Stock Closing Prices

  • Gui Yeol, Ryu (Department of Software, Seokyeong University)
  • Received : 2022.12.10
  • Accepted : 2022.12.15
  • Published : 2023.03.31

Abstract

We compared empirically the forecast accuracies of the LSTM model, and the ARIMA model. ARIMA model used auto.arima function. Data used in the model is 100 days. We compared with the forecast results for 50 days. We collected the stock closing prices of the top 4 companies by market capitalization in Korea such as "Samsung Electronics", and "LG Energy", "SK Hynix", "Samsung Bio". The collection period is from June 17, 2022, to January 20, 2023. The paired t-test is used to compare the accuracy of forecasts by the two methods because conditions are same. The null hypothesis that the accuracy of the two methods for the four stock closing prices were the same were rejected at the significance level of 5%. Graphs and boxplots confirmed the results of the hypothesis tests. The accuracies of ARIMA are higher than those of LSTM for four cases. For closing stock price of Samsung Electronics, the mean difference of error between ARIMA and LSTM is -370.11, which is 0.618% of the average of the closing stock price. For closing stock price of LG Energy, the mean difference is -4143.298 which is 0.809% of the average of the closing stock price. For closing stock price of SK Hynix, the mean difference is -830.7269 which is 1.00% of the average of the closing stock price. For closing stock price of Samsung Bio, the mean difference is -4143.298 which is 0.809% of the average of the closing stock price. The auto.arima function was used to find the ARIMA model, but other methods are worth considering in future studies. And more efforts are needed to find parameters that provide an optimal model in LSTM.

Keywords

Acknowledgement

This research was supported by Seokyeong University in 2022.

References

  1. McKinsey Global Institute, Big Data: The next frontier for innovation, competition, and productivity, 2011.
  2. Chun, Se-Hak, "The Effect of Data Size on the k-NN Predictability: Application to Samsung Electronics Stock Market Prediction," JIntell Inform Syst(jiis), Vol. 25, No. 3, pp. 239~251, 2019. DOI: http://dx.doi.org/10.13088/jiis.2019.25.3.239
  3. Jinho Byun, "Current Status and Perspectives of Fintech Innovation," Journal of New Industry and Business, Vol 51, No. 2, pp. 35-48, 2018 DOI: 10.30753/emr.2018.36.2.003
  4. Seonghoon Jang and Seung-Jung Shin, "Machine Learning-Based Programming Analysis Model Proposal: Based on User Behavioral Analysis," International Journal of Advanced Smart Convergence(IJASC), Vol.9, No.4, pp. 179-183, 2020. DOI: http://dx.doi.org/10.7236/IJASC.2020.9.4.179
  5. Soonduck Yoo, "Research on the Methodology for Policy Deriving to active Artificial Intelligence," The Journal of The Institute of Internet, Broadcasting and Communication(JIIBC), Vol. 20, No. 5, pp.187-193, 2020. DOI: https://doi.org/10.7236/JIIBC.2020.20.5.187
  6. Gui Yeol Ryu, "A Study on Open API of Securities and Investment Companies for Activating Big Data," International Journal of Advanced Smart Convergence(IJASC), Vol. 8, No. 2, pp. 102-108, 2019. DOI: http://dx.doi.org/10.7236/IJASC.2019.8.2.102
  7. Gui Yeol Ryu, "A Study on Comparison of Open Application Programming Interface of Securities Companies Supporting Python," International Journal of Advanced Smart Convergence(IJASC), Vol. 10, No. 1, pp. 97-104, 2021. DOI: http://dx.doi.org/10.7236/IJASC.2021.10.1.97
  8. Gui Yeol Ryu, "A Study on Comparison of Response Time using Open API of Daishin Securities Co. and eBest Investment and Securities Co.," International Journal of Advanced Smart Convergence(IJASC), Vol. 11, No. 1, pp. 11-18, 2022. DOI: http://dx.doi.org/10.7236/IJASC.2022.11.1.11
  9. Douglas C. Montgomery, Cheryl L. Jennings, Murat Kulahci, Introduction to Time Series Analysis and Forecasting, 2nd Edition, Wiley, 2015.
  10. Armin Lawi and Eka Kurnia, Accurately Forecasting Stock Prices using LSTM and GRU Neural Networks: A Deep Learning approach for forecasting stock price time-series data in groups, LAMBERT, 2021.
  11. Jeong-hyun Lee and Hoo-bin Kim, Gyo-eon Shim, "Prediction Model of Real Estate ROI with the LSTM Model based on AI and Bigdata", International Journal of Advanced Smart Convergence(IJASC), Vol. 11, No. 1, pp. 19-27, 2022. DOI: http://dx.doi.org/10.7236/IJASC.2022.11.1.19
  12. Il Seok Oh and Jin Seon Lee, Artificial Intelligence in Python, HANBIT Academy, 2021.
  13. Rob J Hyndman and George Athanasopoulos, Forecasting: Principles and Practice, 2nd edition, OTexts, 2018.
  14. Gui Yeol Ryu, Introduction to Big Data Analysis R and Big Data Platform Hadoop, 2019.