Prediction of S&P500 Stock Index Using ARIM and Linear Regression

Authors

  • Kefei Guo
  • Zifan Jiang
  • Yujian Zhang

DOI:

https://doi.org/10.54097/hset.v38i.5848

Keywords:

S&P500; ARIMA; simple linear regression; LSTM; stock price forecasting.

Abstract

This paper mainly establishes a linear model suitable for the volatility of the S&P 500 index and forecasts the S&P 500 index. Firstly, the data set is divided into the training set and test set. After testing a series of data attributes such as the smoothness of the original data series and log series, the original data series and log series of the S&P 500 index weekly data series are modeled based on the ARIMA model. The next step is to check the fit of the model and use ACF and PACF to determine the parameters of two different models to fit the original data series and the log data series, respectively. Based on two different models, the rationality of the model is confirmed by the residual white noise test and various natural maps. By establishing the model and analyzing the residual error of the model, finding out unreasonable fluctuation of the residual error of the model fitting and giving the corresponding explanation combined with the history. Finally, a fitted model to make rough forecasts for the S&P 500 from January 2020 to December 2020. Although this forecasting model cannot predict detailed fluctuations daily, it can still correctly determine whether a stock is going up or down. To sum up, the ARIMA model does not perform well in stock forecasting and it may need to be improved using other methods.

Downloads

Download data is not yet available.

References

"Introduction to Financial Data Analysis: Based on R Language" by Ruey S. Tsay

Meln ikov, Alexander & Chuyan, Roman. (2012). On linear regression analysis for modeling and forecasting of S&P500 Index. Risk Management (Russian). 2-6.

Gharehchopogh, Farhad Soleimanian, Tahmineh Haddadi Bonab and Seyyed Reza Khaze. “A LINEAR REGRESSION APPROACH TO PREDICTION OF STOCK MARKET TRADING VOLUME: A CASE STUDY.” (2013).

M. Liu and C. Duan, “The Analysis of China CPI Trend Forecast Based on ARIMA Model,” Proceedings of the 2018 International Conference on Management, Economics, Education and Social Sciences (MEESS 2018). Atlantis Press, 2018.

He S Y. 2003. Applied time series analysis. Peking University Press.

Michańków, Jakub, Paweł Sakowski, and Robert Ślepaczuk. 2022. "LSTM in Algorithmic Investment Strategies on BTC and S&P500 Index" Sensors 22, no. 3: 917. https://doi.org/10.3390/s22030917

Bluesky Capital, and Andrea Leccese. “Machine Learning in Finance: Why You Should Not Use LSTM’s to Predict the Stock Market.” Bluesky Capital, 13 Jan. 2019, https://www.blueskycapitalmanagement.com/machine-learning-in-finance-why-you-should-not-use-lstms-to-predict-the-stock-market/.

Liu Song, Zhang Shuai. An empirical study on stock price prediction using ARIMA model. Economic Research Guide, 2021.

S. Ravikumar and P. Saraf, “Prediction of Stock Prices using Machine Learning (Regression, Classification) Algorithms,” 2020 International Conference for Emerging Technology (INCET). IEEE, Jun. 2020. doi: 10.1109/incet49848.2020.9154061.

Bergh, D.v.d., Clyde, M.A., Gupta, A.R.K.N. et al. A tutorial on Bayesian multi-model linear regression with BAS and JASP. Behav Res 53, 2351–2371 (2021). https://doi.org/10.3758/s13428-021-01552-2.

Downloads

Published

16-03-2023