Predicting Stock Prices of Chinese Liquor Companies with the LSTM Network: A Case Study on Shede Spirits
DOI:
https://doi.org/10.54097/hset.v57i.9998Keywords:
Machine learning, LSTM, Stock price prediction.Abstract
This paper presents an investigation into the application of Long Short-Term Memory (LSTM) networks for predicting stock prices of Chinese liquor companies, specifically Shede Spirits. The study utilized a one-year dataset of Shede Spirits' stock prices obtained from Yahoo Finance, covering daily opening, closing, and high prices. The data was preprocessed through sorting, normalization using MinMaxScaler, and creation of input-output pairs with a lookback window of 20 days. The dataset was split into training and testing sets with an 80:20 ratio. A two-layer LSTM model with 32 hidden units per layer was constructed and implemented using PyTorch. Dropout regularization was applied between LSTM layers to prevent overfitting. Experimental results showed the LSTM model's effectiveness in predicting Shede Spirits stock prices, achieving a Root Mean Squared Error (RMSE) of 0.023 and an R^2 score of 0.89 on the test dataset. The LSTM model demonstrated superior performance in capturing non-linear patterns and long-term dependencies compared to linear regression and ARIMA methods. The training loss plot indicated convergence towards an optimal state, and the dropout regularization successfully prevented overfitting. In conclusion, this research highlights the potential of LSTM networks as a powerful tool for stock price prediction in the Chinese liquor industry, offering benefits to investors and businesses. It also emphasizes the importance of employing advanced AI techniques in financial forecasting tasks.
Downloads
References
Teweles R J, Bradley E S. The stock markets. John Wiley & Sons, 1998.
Agrawal J G et al. State-of-the-art in stock prediction techniques. International Journal of Advanced Research in Electrical, Electronics and Instrumentation Engineering, 2013, 2(4): 1360-1366.
Ariyo A A, Adewumi A O, Ayo C K. Stock price prediction using the ARIMA model, 2014 UKSim-AMSS 16th international conference on computer modelling and simulation. IEEE, 2014: 106-112.
Zhu Y. Stock price prediction using the RNN model, Journal of Physics: Conference Series. IOP Publishing, 2020, 1650(3): 032103.
Bhuriya D, Kaushal G, Sharma A, et al. Stock market predication using a linear regression, 2017 international conference of electronics, communication and aerospace technology (ICECA). IEEE, 2017, 2: 510-513.
Wang J J, Wang J Z, Zhang Z G, et al. Stock index forecasting based on a hybrid model. Omega, 2012, 40(6): 758-766.
Yahoo, https://finance.yahoo.com/quote/600702.SS?p=600702.SS&.tsrc=fin-srch Yahoo Finance, 2023.
Hochreiter S, Schmidhuber J. Long short-term memory. Neural computation, 1997, 9(8): 1735-1780.
Bock S, Weiß M. A proof of local convergence for the Adam optimizer, 2019 international joint conference on neural networks (IJCNN). IEEE, 2019: 1-8.
Das K, Jiang J, Rao J N K. Mean squared error of empirical predictor, 2004.
Downloads
Published
Issue
Section
License

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







