Application of Time Series Forecasting Techniques for Multi-step Forecasting of Stock Closing Prices in the S&P 500 Index
Keywords:
Time Series Forecasting, Learning-based Model, SARIMA, Combined Forecasting, Stock Closing PriceAbstract
This study aimed to compare the forecasting performance of the daily closing prices of the top nine stocks in the S&P 500 Index using statistical forecasting methods and a learning-based model. The dataset consisted of the daily closing prices of BRK.B, AVGO, META, TSLA, GOOGL, AMZN, AAPL, MSFT, and NVDA from January 1, 2020, to July 3, 2025, comprising 1,432 observations. The data were divided into training and testing sets in the proportions of 80% and 20%, respectively. A fixed-origin multi-step forecasting approach was employed to compare the performance of six forecasting methods: Excel Forecast Sheet (FC), Classical Decomposition with Trend (CDT), Double Exponential Smoothing (DES), Combined Classical Decomposition with Trend and Double Exponential Smoothing (CDTDES), the Box–Jenkins method, and the Long Short-Term Memory (LSTM) model. Forecasting performance was evaluated using the Root Mean Square Error (RMSE). The results revealed that no single model consistently outperformed all others across every dataset. Among the forecasting methods considered, LSTM and CDTDES demonstrated comparable and superior overall performance, each producing the most accurate forecasts for three stocks. The Box–Jenkins method and FC achieved the best performance for two and one stocks, respectively. Neither CDT nor DES achieved the best forecasting performance for any dataset. Furthermore, LSTM was more suitable for datasets exhibiting nonlinear relationships, whereas CDTDES outperformed CDT and DES for trend-dominated time series. The findings suggest that selecting an appropriate forecasting model according to the characteristics of the data is crucial for improving forecasting accuracy. Moreover, CDTDES provides an alternative approach for forecasting time series data without seasonal components.
References
[1] Hyndman, R. J., and Athanasopoulos, G. (2018). Forecasting: Principles and practice (2nd ed.). OTexts. https://otexts.com/fpp2/
[2] Holt, C. C. (1957). Forecasting seasonals and trends by exponentially weighted moving averages (O.N.R. Memorandum No. 52). Carnegie Institute of Technology. https://doi.org/10.1016/j.ijforecast.2003.09.015
[3] Winters, P. R. (1960). Forecasting sales by exponentially weighted moving averages. Management Science, 6(3), 324–342. https://doi.org/10.1287/mnsc.6.3.324
[4] Box, G. E. P., Jenkins, G. M., and Reinsel, G. C. (1994). Time series analysis: Forecasting and control (3rd ed.). John Wiley&Sons, New Jersey.
[5] Minsan, P., and Minsan, W. (2025). Forecasting rainfall in the Ping, Wang, Yom, and Nan River basins of Thailand using decomposition and Holt-Winters methods enhanced by GRG nonlinear optimization. ASEAN Journal of Scientific and Technological Reports, 28(5), Article e259297. https://doi.org/10.55164/ajstr.v28i5.259297
[6] กาญจนา ทองบุญนาค, และ วิระภรณ์ ไหมทอง. (2568). การประมาณค่าพารามิเตอร์เหมาะที่สุดในวิธีโฮลต์-วินเทอร์และการแยกส่วนประกอบด้วยอัลกอริทึมการค้นหาแบบนกกาเหว่า: การพยากรณ์ปริมาณน้ำไหลรายเดือนเข้าสู่อ่างเก็บน้ำของเขื่อนขนาดใหญ่ในภาคกลางและภาคตะวันตกของประเทศไทย. วารสารวิทยาศาสตร์และเทคโนโลยีสู่ชุมชน, 3(5), 1–23. https://doi.org/10.57260/stc.2025.1089
[7] Adebiyi, A. A., Adewumi, A. O., and Ayo, C. K. (2014). Comparison of ARIMA and artificial neural networks models for stock price prediction. Journal of Applied Mathematics, 2014, Article 614342. https://doi.org/10.1155/2014/614342
[8] Hochreiter, S. (1991). Untersuchungen zu dynamischen neuronalen Netzen [Diploma thesis, Technische Universität München]. https://www.bioinf.jku.at/publications/older/3804.pdf
[9] Hochreiter, S., and Schmidhuber, J. (1997). Long short-term memory. Neural Computation, 9(8), 1735–1780. https://doi.org/10.1162/neco.1997.9.8.1735
[10] Qiu, J., Wang, B., and Zhou, C. (2020). Forecasting stock prices with long-short term memory neural network based on attention mechanism. PLOS ONE, 15(1), Article e0227222. https://doi.org/10.1371/journal.pone.0227222
[11] Minsan, P., and Minsan, W. (2026). Optimizing combined Holt–Winters and decomposition forecasting models with the whale optimization algorithm for monthly maximum of daily 24-hour average PM2.5 concentrations in the Bangkok metropolitan region. Science & Technology Asia, 31(1), 1–17. https://doi.org/10.14456/scitechasia.2026.1
[12] MarketWatch. (2025). Source: https://www.marketwatch.com. Accessed on December 17, 2025.
[13] Clemen, R. T. (1989). Combining forecasts: A review and annotated bibliography. International Journal of Forecasting, 5(4), 559–583. https://doi.org/10.1016/0169-2070(89)90012-5
[14] Stock, J. H., and Watson, M. W. (2004, September 20). Combination forecasts of output growth in a seven-country data set. Journal of Forecasting, 23(6), 405–430. https://doi.org/10.1002/for.928
[15] รักษ์คณา ภูสีเขียว. (2564).การพยากรณ์ปริมาณน้ำฝนระยะสั้นในบริเวณพื้นที่สนามบินสุวรรณภูมิด้วยโครงข่ายระบบประสาทแบบย้อนกลับ [วิทยานิพนธ์วิทยาศาสตรมหาบัณฑิต, จุฬาลงกรณ์มหาวิทยาลัย]. Chulalongkorn University Theses and Dissertations (Chula ETD). https://doi.org/10.58837/CHULA.THE.2021.1060
[16] Olah, C. (2015, August 27). Understanding LSTM networks. colah's blog. https://colah.github.io/posts/2015-08-Understanding-LSTMs/
[17] ธรรศทัพพ์ สงวนสุข. (2567). วิเคราะห์เปรียบเทียบการพยากรณ์ความผันผวนของราคาหุ้นระหว่าง GARCH และ machine learning/deep learning [วิทยานิพนธ์ปริญญามหาบัณฑิต, มหาวิทยาลัยธรรมศาสตร์]. https://ethesisarchive.library.tu.ac.th/thesis/2024/TU_2024_6602110550_20340_31458.pdf
[18] Makridakis, S., Spiliotis, E. and Assimakopoulos, V. (2018). Statistical and machine learning forecasting methods: Concerns and ways forward. PLOS ONE, 13(3), Article e0194889. https://doi.org/10.1371/journal.pone.0194889
Downloads
Published
How to Cite
Issue
Section
Categories
License
Copyright (c) 2026 Academic Journal of Science and Applied Science

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
