DOI - Mendel University Press

DOI identifiers

DOI: 10.11118/978-80-7509-990-7-0167

COMPARATIVE ANALYSIS OF SELECTED TIME SERIES FORECASTING APPROACHES FOR INDIAN MARKETS

Ankit Tripathi1, Arpit Tripathi1, Oldøich Trenz1, Pawan Kumar Mishra1
1 Faculty of Business and Economics, Mendel University in Brno, Zemėdėlská 1, 613 00 Brno, Czech Republic

Financial market analysis and prediction have been topics of interest to traders and investors for decades. This study assesses the performance of selected time series prediction methods like deep learning algorithms (Long short-term memory model (LSTM)), traditional statistical models (Seasonal Auto Regressive Integrated Moving Approach with eXogenous regressors (SARIMAX)), and advanced ensemble learning algorithms (XGBoost and FB-Prophet) using real-world data from the Indian financial market. The stock prices of Reliance Company serve as a case study, enabling a thorough evaluation of predictive accuracy and errors of the models. A pre-processing approach has been proposed and implemented, integrating significant economic factors (Gold Price, USD to INR conversion, Consumer Price Index (CPI), Wholesale Price Index (WPI) and Indian 10-year yield bond) and evaluated with technical metrics (Mean squared error, Mean Absolute Error and R2 Score). The study investigates how the inclusion of these factors impacts prediction accuracy across the selected time series prediction methods. The comparative evaluation of models before and after the pre-processing method sheds light on the evolving predictive accuracy of LSTM, SARIMAX, FB-Prophet, and XGBoost. The study showed that the SARIMAX (extension of ARIMA with seasonality and exogenous factors) and XGBOOST performed relatively well with the proposed approach while LSTM and FB prophet (though advanced) did not perform as expected in Indian financial markets. This research contributes to advancing the understanding of time series forecasting in the financial market of India, offering practical insights for decision-makers and researchers.

Keywords: Financial Time Series, Stock Market Prediction, Deep Learning in Finance, Ensemble Learning in Economics, ARIMA and XGBoost Analysis

pages: 167-186, online: 2024



References

  1. ABU-MOSTAFA, Y. S. and ATIYA, A. F. 1996. Introduction to financial forecasting. Appl Intell, 6, 205-213. https://doi.org/10.1007/BF00126626 Go to original source...
  2. AGRAWAL, M., KHAN, A. U. and SHUKLA, P. K. 2019. Stock price prediction using technical indicators: a predictive model using optimal deep learning. Learning, 6, 7. Go to original source...
  3. AITHAL, P., ACHARYA, D. and GEETHA, M. 2019. Identifying Significant Macroeconomic Indicators for Indian Stock Markets. IEEE Access, 7, 143829-143840. https://doi.org/10.1109/ACCESS.2019.2945603 Go to original source...
  4. AL-TAMIMI, H. A. H., ALWAN, A. A. and ABDEL RAHMAN, A. A. 2011. Factors Affecting Stock Prices in the UAE Financial Markets. Journal of Transnational Management, 16, 3-19. https://doi.org/10.1080/15475778.2011.549441 Go to original source...
  5. BATRA, V., KANDPAL, D. and SINHA, R. 2020. Relationship between exchange rate (usd/inr) and stock market indices in India (sensex). Asian Journal of Research in Banking and Finance, 10, 1-14. Go to original source...
  6. BHUNIA, A. and DAS, A. 2012. Association between gold prices and stock market returns: Empirical evidence from NSE. Journal of Exclusive Management Science, 1, 1-7.
  7. BISWAS, A. 2018. Impact of Reliance Industry Stock Price on NIFTY 50-Granger Causality Test.
  8. RESEARCH REVIEW International Journal of Multidisciplinary, 3(11), 367-376. https://doi.org/10.5281/zenodo.1490556 Go to original source...
  9. CHATTERJEE, A., BHOWMICK, H. and SEN, J. 2022. Stock Volatility Prediction using Time Series and Deep Learning Approach. arXiv: 2210.02126. https://doi.org/10.48550/arXiv.2210.02126 Go to original source...
  10. CHEN, K., ZHOU, Y. and DAI, F. 2015. A LSTM-based method for stock returns prediction: A case study of China stock market. In: IEEE International Conference on Big Data (Big Data). Santa Clara, CA, USA, pp. 2823-2824. https://doi.org/10.1109/BigData.2015.7364089 Go to original source...
  11. CHEN, T. and GUESTRIN, C. 2016. XGBoost: A Scalable Tree Boosting System. In: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. pp. 785-794. https://doi.org/10.1145/2939672.2939785 Go to original source...
  12. DASSANAYAKE, W., ARDEKANI, I., JAYAWARDENA, C., SHARIFZADEH, H. and GAMAGE, N. 2021. Forecasting accuracy of Holt-Winters exponential smoothing: Evidence from New Zealand. New Zealand Journal of Applied Business Research, 17, 11-30. https://doi.org/10.3316/informit.391329680991168 Go to original source...
  13. DHINGRA, K. and KAPIL, S., 2021. Impact of Macroeconomic Variables on Stock Market-An Empirical Study. In: LAKHANPAL, P., MUKHERJEE, J., NAG, B. and TUTEJA, D. (Eds.). Trade, Investment and Economic Growth: Issues for India and Emerging Economies. Springer, Singapore, pp. 177-194. https://doi.org/10.1007/978-981-33-6973-3_12 Go to original source...
  14. DICKEY, D. A. and FULLER, W. A. 1981. Likelihood Ratio Statistics for Autoregressive Time Series with a Unit Root. Econometrica, 49, 1057-1072. https://doi.org/10.2307/1912517 Go to original source...
  15. FARID, S., TASHFEEN, R., MOHSAN, T. and BURHAN, A., 2023. Forecasting stock prices using a data mining method: Evidence from emerging market. International Journal of Finance & Economics, 28, 1911-1917. https://doi.org/10.1002/ijfe.2516 Go to original source...
  16. FISCHER, T. and KRAUSS, C. 2018. Deep learning with long short-term memory networks for financial market predictions. European Journal of Operational Research, 270, 654- 669. https://doi.org/10.1016/j.ejor.2017.11.054 Go to original source...
  17. GOOGLE COLABORATORY. 2023. Fb prophet before integration with economic variables [online]. https://colab.research.google.com/drive/1MbtF5EsiczjPpseNTRPur0CNRiL3KCwk#scrollTo=6zNcy9mP-djZ [accessed 6.10.24].
  18. GOOGLE COLABORATORY. 2023. FB Prophet after integration with economic variables [online]. https://colab.research.google.com/drive/1T1Wfgbbdzv1o0xIrIk3Cqd-ZeYvt8rol#scrollTo=CVTm37ixq6MX [accessed 6.10.24].
  19. GOOGLE COLABORATORY. 2023. LSTM after integration with economic variables [online]. https://colab.research.google.com/drive/10geD107lGWAusxI4VJzA-06ywM_Xe0C4#scrollTo=gtjgxvaXbikH [accessed 6.10.24].
  20. GOOGLE COLABORATORY. 2023. LSTM before integration with economic variables [online]. https://colab.research.google.com/drive/1KnpEyH-SOnyCGDWH2m9U3oDB4evqcxBm#scrollTo=aZhdNWwNNLCr [accessed 6.10.24].
  21. GOOGLE COLABORATORY. 2023. SARIMAX after integration with economic variables [online]. https://colab.research.google.com/drive/1ZKlhC1P67NdeyysWn7Ml_rDouC4yvWEB #scrollTo=SYDozCaHrPuK [accessed 6.10.24].
  22. GOOGLE COLABORATORY. 2023. SARIMAX before integration with economic variables [online]. https://colab.research.google.com/drive/1tBVT3L24QseeGO7VjBK3TuZvK44uCSCJ #scrollTo=ctZInzRBWxcK [accessed 6.10.24].
  23. GOOGLE COLABORATORY. 2023. XGBoost after integration with economic variables [online]. https://colab.research.google.com/drive/1jadYL8RGEokaIWYo6IhQliYG0R3UR8wc#scrollTo=UJuoBi5FhGFl [accessed 6.10.24].
  24. GOOGLE COLABORATORY. 2023. XGBoost before integration with economic variables [online]. https://colab.research.google.com/drive/1jCwnYGKrDhdghVySmDL5mf6gO7odM p#scrollTo=WJe9w8A8lP18 [accessed 6.10.24].
  25. GORGOLIS, N., HATZILYGEROUDIS, I., ISTENES, Z. and GRAD-GYENGE, L. 2019. Hyperparameter Optimization of LSTM Network Models through Genetic Algorithm. In: 10th International Conference on Information, Intelligence, Systems and Applications (IISA). Patras, Greece, pp. 1-4, https://doi.org/10.1109/IISA.2019.8900675 Go to original source...
  26. GRANGER, C. W. J. 1969. Investigating Causal Relations by Econometric Models and Cross- spectral Methods. Econometrica, 37, 424-438. https://doi.org/10.2307/1912791 Go to original source...
  27. GUMELAR, A., SETYORINI, H., ADI, D., NILOWARDONO, S., LATIPAH, WIDODO, A., TEGUH WINOWO, A., SULISTYONO, M. and CHRISTINE, E. 2020. Boosting the Accuracy of Stock Market Prediction using XGBoost and Long Short-Term Memory. In: International Seminar on Application for Technology of Information and Communication (iSemantic). Semarang, Indonesia pp. 609-613. https://doi.org/10.1109/iSemantic50169.2020.9234256 Go to original source...
  28. HAMDANI, A. F., SWANJAYA, D. and HELILINTAR, R. 2023. Facebook Prophet Model with Bayesian Optimization for USD Index Prediction. JUITA: Jurnal Informatika, 11, 293-300. https://doi.org/10.30595/juita.v11i2.17880 Go to original source...
  29. HUSSAIN, M., MALIK, A., RASOOL, N., FAYYAZ, M. and MUMTAZ, M. 2012. The Impact of Macroeconomic Variables on Stock Prices: An Empirical Analysis of Karachi Stock Exchange. Mediterranean Journal of Social Sciences, 3, 295-312. https://doi.org/10.5901/mjss.2012.v3n3p295 Go to original source...
  30. HYNDMAN, R. J. and ATHANASOPOULOS, G. 2018. Forecasting: principles and practice. OTexts. https://books.google.cz/books?hl=en&lr=&id=_bBhDwAAQBAJ&oi=fnd&pg=PA7 &dq=forecasting+principles+and+practice+2018&ots=Tjg-wfWPGK&sig=lFdCll7vOVMtzQ5hShUpgM1KLc0&redir_esc=y#v=onepage&q=sa rima&f=false
  31. JOHANSEN, S. 1995. Likelihood-Based Inference in Cointegrated Vector Autoregressive Models. Oxford University Press. New York. Go to original source...
  32. KARMAKAR, M. 2005. Modeling Conditional Volatility of the Indian Stock Markets. Vikalpa, 30, 21-38. https://doi.org/10.1177/0256090920050303 Go to original source...
  33. KHASHEI, M. and BIJARI, M. 2011. A novel hybridization of artificial neural networks and ARIMA models for time series forecasting. Applied Soft Computing, The Impact of Soft Computing for the Progress of Artificial Intelligence, 11, 2664-2675. https://doi.org/10.1016/j.asoc.2010.10.015 Go to original source...
  34. KING, K., DENG, A. and METZ, D. 2012. An econometric analysis of oil price movements: the role of political events and economic news, financial trading, and market fundamentals. Bates White Economic Consulting, 1, 53.
  35. KUMAR, J. P. S., SUNDAR, R. and RAVI, A. 2023. Comparison of stock market prediction performance of ARIMA and RNN-LSTM model - A case study on Indian stock exchange. Presented at the AIP Conference Proceedings, 2875, 020010. https://doi.org/10.1063/5.0154124 Go to original source...
  36. KUMARIA, A., RAJKAR, A., RAUT, A. and NAIR, R. S. 2023. Forecasting the Indian Financial Markets with LSTM and Price Indicators. In: RAY, K. P., DIXIT, A., ADHIKARI, D. and MATHEW, R. (Eds.). Proceedings of the 2nd International Conference on Signal and Data Processing. Springer Nature, Singapore, pp. 395-403. https://doi.org/10.1007/978- 981-99-1410-4_33 Go to original source...
  37. LAKSHMANASAMY, T. 2021. The Relationship Between Exchange Rate and Stock Market Volatilities in India: ARCH-GARCH Estimation of the Causal Effects. International Journal of Finance Research, 2, 244-259. Go to original source...
  38. LEE, K. J., CHI, A. Y., YOO, S. and JIN, J. J. 2008. Forecasting korean stock price index (kospi) using backpropagationn neural network model bayesian chiao's model and sarima model. Journal of Management Information and Decision Sciences, 11.
  39. LITZENBERGER, R., CASTURA, J. and GORELICK, R. 2012. The impacts of automation and high frequency trading on market quality. Annu. Rev. Financ. Econ., 4, 59-98. Go to original source...
  40. LIU, L., PEI, Z., CHEN, P., LUO, H., GAO, Z., FENG, K. and GAN, Z. 2023. An Efficient GAN-Based Multi-classification Approach for Financial Time Series Volatility Trend Prediction. Int J Comput Intell Syst, 16, 40. https://doi.org/10.1007/s44196-023-00212-x Go to original source...
  41. LIU, Y., HUANG, S., TIAN, X., ZHANG, F., ZHAO, F. and ZHANG, C. 2024. A stock series prediction model based on variational mode decomposition and dual-channel attention network. Expert Systems with Applications, 238, 121708. Go to original source...
  42. MEHTAB, S., SEN, J. and DUTTA, A. 2021. Stock Price Prediction Using Machine Learning and LSTM-Based Deep Learning Models. In: THAMPI, S. M., PIRAMUTHU, S., LI, K.-C., BERRETTI, S., WOZNIAK, M. and SINGH, D. (Eds.). Machine Learning and Metaheuristics Algorithms, and Applications. Springer, Singapore, pp. 88-106. https://doi.org/10.1007/978-981-16-0419-5_8 Go to original source...
  43. NASIRI, H. and EBADZADEH, M. M. 2023. Multi-step-ahead stock price prediction using recurrent fuzzy neural network and variational mode decomposition. Applied Soft Computing, 148, 110867. Go to original source...
  44. OBTHONG, M., TANTISANTIWONG, N., JEAMWATTHANACHAI, W. and WILLS, G. 2020. A survey on machine learning for stock price prediction: algorithms and techniques. In: Presented at the 2nd International Conference on Finance, Economics, Management and IT Business. (05/05/20 - 06/05/20), pp. 63-71. https://doi.org/10.5220/0009340700630071 Go to original source...
  45. PANIGRAHI, A. et al. 2022. Impact of Global and Domestic Economic Variables on 10-Year Indian Government Bond Yield: An Empirical Study. IUP Journal of Applied Finance; Hyderabad, 28(2), 5-23.
  46. PATEL, S. A. 2013. Causal Relationship Between Stock Market Indices and Gold Price: Evidence from India. IUP Journal of Applied Finance, 19(1), 99-109.
  47. RAHEEM AHMED, R., VVEINHARDT, J., ŠTREIMIKIENĖ, D., GHAURI, S. P. and AHMAD, N. 2017. Estimation of long-run relationship of inflation (CPI & WPI), and oil prices with KSE-100 index: evidence from Johansen multivariate cointegration approach. Technological and Economic Development of Economy, 23(4), 567-588. https://doi.org/10.3846/20294913.2017.1289422 Go to original source...
  48. SAPRE, A. A. and GORI, S. 2023. The Predicament of Land Acquisition, Displacement and Resettlement: An Analysis of Indian Scenario. Journal of Asian and African Studies, 00219096231179651. https://doi.org/10.1177/00219096231179651 Go to original source...
  49. SEAH, S. 2022. Untapped Potential in the ASEAN-India Relationship: Climate Change and Green Recovery, In: ASEAN and India. WORLD SCIENTIFIC, pp. 227-233. https://doi.org/10.1142/9789811262906_0027 Go to original source...
  50. SHARIF, T., PUROHIT, H. and PILLAI, R. 2015. Analysis of Factors Affecting Share Prices: The Case of Bahrain Stock Exchange. International Journal of Economics and Finance, 7(3), 207. https://doi.org/10.5539/ijef.v7n3p207 Go to original source...
  51. SHARMA, K., BHALLA, R. and GANESAN, G. 2022. Time Series Forecasting Using FB-Prophet. Presented at the ACM.
  52. SIAMI-NAMINI, S. and NAMIN, A. S. 2018. Forecasting Economics and Financial Time Series: ARIMA vs. LSTM. arXiv: 1803.06386. https://doi.org/10.48550/arXiv.1803.06386 Go to original source...
  53. SINGH, P. and BORAH, B. 2014. Forecasting stock index price based on M-factors fuzzy time series and particle swarm optimization. International Journal of Approximate Reasoning, 55, 812-833. https://doi.org/10.1016/j.ijar.2013.09.014 Go to original source...
  54. Smith, G. n. d. The Price of Gold and Stock Price Indices for The United States.
  55. SONKAVDE, G., DHARRAO, D., BONGALE, A., DEOKATE, S., DORESWAMY, D. and BHAT, S. 2023. Forecasting Stock Market Prices Using Machine Learning and Deep Learning Models: A Systematic Review, Performance Analysis and Discussion of Implications. International Journal of Financial Studies, 11, 94. https://doi.org/10.3390/ijfs11030094 Go to original source...
  56. SRIVASTAVA, S., PANT, M. and GUPTA, V. 2023. Analysis and prediction of Indian stock market: a machine-learning approach. International Journal of System Assurance Engineering and Management, 14, 1567-1585. Go to original source...
  57. SUBBURAYAN, B., DHIVYA, N. and ALEX, A. 2021. Empirical Relationship of Macroeconomic Variables and Stock Prices : Indian Stock Market and Japanese Stock Market.
  58. TAYLOR, S. and LETHAM, B. 2017. Forecasting at Scale. The American Statistician, 72(1), 37-45. https://doi.org/10.1080/00031305.2017.1380080 Go to original source...
  59. ZHANG, D., QIAN, L., MAO, B., HUANG, C. and SI, Y. 2018. A Data-Driven Design for Fault Detection of Wind Turbines Using Random Forests and XGBoost. IEEE Access, 6, 21020-21031,. https://doi.org/10.1109/ACCESS.2018.2818678 Go to original source...
  60. ZHANG, Y. and CHEN, L. 2021. A Study on Forecasting the Default Risk of Bond Based on XGboost Algorithm and Over-Sampling Method. Theoretical Economics Letters, 11, 258-267. https://doi.org/10.4236/tel.2021.112019 Go to original source...
  61. Reliance Industries Limited (reliance.ns) stock historical prices & data. 2023. Yahoo! Finance [online]. https://finance.yahoo.com/quote/RELIANCE.NS/history?p=RELIANCE.NS [Accessed: 01 December 2023].
  62. Digital quality of life index. 2023. Surfshark.com [online]. https://surfshark.com/dql2023 [Accessed: 20 December 2023].
  63. Gold futures historical prices, 2023. Investing.com India [online]. https://in.investing.com/commodities/gold-historical-data [Accessed: 20 December 2023].
  64. India 10-year Bond Historical Data. 2023. Investing.com India [online]. https://in.investing.com/rates-bonds/india-10-year-bond-yield-historical-data [Accessed: 20 December 2023].
  65. India wholesale price index (WPI). 2023. Investing.com India [online]. https://in.investing.com/economic-calendar/indian-wpi-inflation-564 [Accessed: 20 December 2023].
  66. India consumer price index (CPI). 2023. Investing.com India [online].. Available at: https://in.investing.com/economic-calendar/indian-cpi-973 [Accessed: 20 December 2023].
  67. USD INR historical data. 2023. Investing.com India [online]. https://in.investing.com/currencies/usd-inr-historical-data%20 [Accessed: 20 December 2023].