
Time Series Stock Price Forecasting Based on Genetic Algorithm (GA)-Long Short-Term Memory Network (LSTM) Optimization
- 1 Columbia University, New York, 10027, USA
* Author to whom correspondence should be addressed.
Abstract
In this paper, a time series algorithm based on Genetic Algorithm (GA) and Long Short-Term Memory Network (LSTM) optimization is used to forecast stock prices effectively, taking into account the trend of the big data era. The data are first analyzed by descriptive statistics, and then the model is built and trained and tested on the dataset. After optimization and adjustment, the mean absolute error (MAE) of the model gradually decreases from 0.11 to 0.01 and tends to be stable, indicating that the model prediction effect is gradually close to the real value. The results on the test set show that the time series algorithm optimized based on Genetic Algorithm (GA)-Long Short-Term Memory Network (LSTM) is able to accurately predict the stock prices, and is highly consistent with the actual price trends and values, with strong generalization ability. The MAE on the test set is 2.41, the MSE is 9.84, the RMSE is 3.13, and the R2 is 0.87. This research result not only provides a novel stock price prediction method, but also provides a useful reference for financial market analysis using computer technology and big data.
Keywords
Time Series Stock, LSTM, Genetic Algorithm
[1]. Shiri, Farhad Mortezapour, et al. "A comprehensive overview and comparative analysis on deep learning models: CNN, RNN, LSTM, GRU." arxiv preprint arxiv:2305.17473 (2023).
[2]. Abou Houran, Mohamad, et al. "COA-CNN-LSTM: Coati optimization algorithm-based hybrid deep learning model for PV/wind power forecasting in smart grid applications." Applied Energy 349 (2023): 121638.
[3]. Zhao, Lingxiao, et al. "A hybrid VMD-LSTM/GRU model to predict non-stationary and irregular waves on the east coast of China." Ocean Engineering 276 (2023): 114136.
[4]. Limouni, Tariq, et al. "Accurate one step and multistep forecasting of very short-term PV power using LSTM-TCN model." Renewable Energy 205 (2023): 1010-1024.
[5]. Redhu, Poonam, and Kranti Kumar. "Short-term traffic flow prediction based on optimized deep learning neural network: PSO-Bi-LSTM." Physica A: Statistical Mechanics and its Applications 625 (2023): 129001.
[6]. Wan, An**, et al. "Short-term power load forecasting for combined heat and power using CNN-LSTM enhanced by attention mechanism." Energy 282 (2023): 128274.
[7]. Osama, Omnia M., et al. "Forecasting Global Monkeypox Infections Using LSTM: A Non-Stationary Time Series Analysis." 2023 3rd International Conference on Electronic Engineering (ICEEM). IEEE, 2023.
[8]. Yin, Lirong, et al. "U-Net-LSTM: time series-enhanced lake boundary prediction model." Land 12.10 (2023): 1859.
[9]. Xu, Huanwei, et al. "An improved CNN-LSTM model-based state-of-health estimation approach for lithium-ion batteries." Energy 276 (2023): 127585.
[10]. Cao, Yisheng, et al. "Multi-timescale photovoltaic power forecasting using an improved Stacking ensemble algorithm based LSTM-Informer model." Energy 283 (2023): 128669.
Cite this article
Sha,X. (2024). Time Series Stock Price Forecasting Based on Genetic Algorithm (GA)-Long Short-Term Memory Network (LSTM) Optimization. Advances in Economics, Management and Political Sciences,91,142-149.
Data availability
The datasets used and/or analyzed during the current study will be available from the authors upon reasonable request.
Disclaimer/Publisher's Note
The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of EWA Publishing and/or the editor(s). EWA Publishing and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
About volume
Volume title: Proceedings of the 2nd International Conference on Management Research and Economic Development
© 2024 by the author(s). Licensee EWA Publishing, Oxford, UK. This article is an open access article distributed under the terms and
conditions of the Creative Commons Attribution (CC BY) license. Authors who
publish this series agree to the following terms:
1. Authors retain copyright and grant the series right of first publication with the work simultaneously licensed under a Creative Commons
Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this
series.
2. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the series's published
version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial
publication in this series.
3. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and
during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See
Open access policy for details).