ResNLS: An Improved Model for Stock Price Forecasting

arXiv cs.AI Papers

Summary

ResNLS is a hybrid neural network model combining ResNet and LSTM that improves stock price forecasting by emphasizing dependencies between stock prices, achieving at least 20% improvement over baselines and demonstrating practical trading applications.

arXiv:2312.01020v3 Announce Type: cross Abstract: Stock prices forecasting has always been a challenging task. Although many research projects try to address the problem, few of them pay attention to the varying degrees of dependencies between stock prices. In this paper, we introduce a hybrid model that improves the prediction of stock prices by emphasizing the dependencies between adjacent stock prices. The proposed model, ResNLS, is mainly composed of two neural architectures, ResNet and LSTM. ResNet serves as a feature extractor to identify dependencies between stock prices, while LSTM analyzes the initial time series data with the combination of dependencies, which are considered as residuals. Our experiment reveals that when the closing price data for the previous 5 consecutive trading days is used as input, the performance of the model (ResNLS-5) is optimal compared to those with other inputs. Furthermore, ResNLS-5 demonstrates at least a 20% improvement over current state-of-the-art baselines. To verify whether ResNLS-5 can help clients effectively avoid risks and earn profits in the stock market, we construct a quantitative trading framework for back testing. The result shows that the trading strategy based on ResNLS-5 predictions can successfully mitigate losses during declining stock prices and generate profits in periods of rising stock prices.
Original Article
View Cached Full Text

Cached at: 09/21/26, 09:38 AM

# ResNLS: An Improved Model for Stock Price Forecasting
Source: [https://arxiv.org/html/2312.01020](https://arxiv.org/html/2312.01020)
2021

[https://github\.com/yuanzhe\-jia/stock\-price\-forecasting](https://github.com/yuanzhe-jia/stock-price-forecasting)Yuanzhe JiaAli AnaissiEmail:[ali\.anaissi@sydney\.edu\.au](mailto:[email protected])Affiliation:University of Sydney, Sydney, NSW, AustraliaBasem SuleimanEmail:[basem\.suleiman@sydney\.edu\.au](mailto:[email protected])Affiliation:University of Sydney, Sydney, NSW, AustraliaAffiliation:University of New South Wales, Sydney, NSW, Australia

###### Abstract

Stock prices forecasting has always been a challenging task\. Although many research projects try to address the problem, few of them pay attention to the varying degrees of dependencies between stock prices\. In this paper, we introduce a hybrid model that improves the prediction of stock prices by emphasizing the dependencies between adjacent stock prices\. The proposed model, ResNLS, is mainly composed of two neural architectures, ResNet and LSTM\. ResNet serves as a feature extractor to identify dependencies between stock prices, while LSTM analyzes the initial time series data with the combination of dependencies, which are considered as residuals\. Our experiment reveals that when the closing price data for the previous 5 consecutive trading days is used as input, the performance of the model \(ResNLS\-5\) is optimal compared to those with other inputs\. Furthermore, ResNLS\-5 demonstrates at least a 20% improvement over current state\-of\-the\-art baselines\. To verify whether ResNLS\-5 can help clients effectively avoid risks and earn profits in the stock market, we construct a quantitative trading framework for back testing\. The result shows that the trading strategy based on ResNLS\-5 predictions can successfully mitigate losses during declining stock prices and generate profits in periods of rising stock prices\. The relevant code is publicly available on GitHub\.

###### keywords

Stock Price Forecasting, ResNLS\.

### 0\.1Introduction

The exploration of stocks has never stopped since the inception of the stock market, and stock price forecasting stands out as the most compelling and widely discussed topic\. However, many factors affect stock price fluctuations\. From a macro perspective, stock prices will be influenced by several factors including international environments, national policies, economic development levels and social hot issues[Shiller et al\. \(1984\)](https://arxiv.org/html/2312.01020#bib.bib35);[Conover et al\. \(1999\)](https://arxiv.org/html/2312.01020#bib.bib36);[Pastor and Veronesi \(2012\)](https://arxiv.org/html/2312.01020#bib.bib37);[Huy et al\. \(2021\)](https://arxiv.org/html/2312.01020#bib.bib50)\. From a micro point of view, stock prices are also affected by factors such as the company operations, competition, disclosure, and investor sentiment[Iqbal and Hamid \(2000\)](https://arxiv.org/html/2312.01020#bib.bib52);[Fisher and Statman \(2000\)](https://arxiv.org/html/2312.01020#bib.bib38);[Ozoguz and Rebello \(2013\)](https://arxiv.org/html/2312.01020#bib.bib51)\. These factors interact, making the internal mechanism of the stock market difficult to understand, and the change cycle even more difficult to grasp[King \(1966\)](https://arxiv.org/html/2312.01020#bib.bib49);[Liu and Zhang \(2015\)](https://arxiv.org/html/2312.01020#bib.bib56)\.

The rise of AI technology makes it increasingly possible to predict future[Arslanian and Fischer \(2019\)](https://arxiv.org/html/2312.01020#bib.bib53);[Strader et al\. \(2020\)](https://arxiv.org/html/2312.01020#bib.bib54);[Chopra and Sharma \(2021\)](https://arxiv.org/html/2312.01020#bib.bib55);[Anaissi et al\. \(2021a\)](https://arxiv.org/html/2312.01020#bib.bib2);[Anaissi et al\. \(2021b\)](https://arxiv.org/html/2312.01020#bib.bib3), helping us find inspiration and motivation to study the problem of stock price forecasting\. However, the mainstream approaches, like CNN\-based, RNN\-based and Transformer\-based prediction models, do not emphasize distinguishing the degree of dependencies between stock prices, especially between adjacent price data and data far apart\. Therefore, our key goal is to propose a time\-series prediction model that pays much attention to adjacent data characteristics\. The contributions of this paper are as follows: \(a\) analysing the limitations of mainstream prediction models for stock price forecasting; \(b\) proposing a sequential neural network that values the features of different dependencies between stock prices and verify its superiority; \(c\) back testing the model and demonstrating that it can help to avoid risks and make profits for clients\.

This paper is organized as follows\. Section[1](https://arxiv.org/html/2312.01020#S1)is about related work, mainly discusses and analyses the contributions and limitations of the mainstream stock price prediction approaches in the last 20 years\. Section[2](https://arxiv.org/html/2312.01020#S2)introduces the preliminaries required for understanding the model we proposed in this paper\. In section[3](https://arxiv.org/html/2312.01020#S3)we describe our research ideas and model structure in detail\. In section[4](https://arxiv.org/html/2312.01020#S4)we clarify the dataset used for experiments, the model training procedure, the evaluation metrics, as well as how to conduct experiments on exploratory data analysis, model comparison and back testing to verify the predictive ability, stability and applicability of our model\. Finally, we conclude the paper in section[5](https://arxiv.org/html/2312.01020#S5)and look to the future\.

## 1Related Work

Stock price forecasting has earned a lot of interests in recent years and has attracted many researchers working in academia and industry\. Although the EMH[Fama \(1965\)](https://arxiv.org/html/2312.01020#bib.bib1)indicates that it is impossible to predict future prices based on historical data, many researchers have attempted to demonstrate the validity of price prediction[Smith \(2003\)](https://arxiv.org/html/2312.01020#bib.bib4);[Bisen and Pandey \(2013\)](https://arxiv.org/html/2312.01020#bib.bib5);[Leković and others \(2018\)](https://arxiv.org/html/2312.01020#bib.bib6);[Spulbar et al\. \(2021\)](https://arxiv.org/html/2312.01020#bib.bib8);[Stephens et al\. \(2021\)](https://arxiv.org/html/2312.01020#bib.bib7)\. In recent years, scholars have pinned their hopes on AI technology to improve the accuracy of the prediction models\. Thus, conference papers, journal articles and academic reports related to this area in the past 20 years have been analyzed\. We focus on the work that proposed fruitful new approaches and group them into four categories, which are SVM\-based models, tree\-based models, neural network models and hybrid neural network models\. Since this section contains a large number of technical terms, the notations are summarized in Table[1](https://arxiv.org/html/2312.01020#S1.T1)for the convenience\.

Table 1:Notations used in this paper\.SVM\-based models and tree\-based models\. SVM was earlier used for stock price prediction[Cao and Tay \(2001\)](https://arxiv.org/html/2312.01020#bib.bib9);[Kim \(2003\)](https://arxiv.org/html/2312.01020#bib.bib10);[Huang et al\. \(2005\)](https://arxiv.org/html/2312.01020#bib.bib11);[Gavrishchaka and Banerjee \(2006\)](https://arxiv.org/html/2312.01020#bib.bib12);[Yeh et al\. \(2011\)](https://arxiv.org/html/2312.01020#bib.bib13)\. Huang, W\. et al\.[Huang et al\. \(2005\)](https://arxiv.org/html/2312.01020#bib.bib11)adopted SVM to predict the NIKKEI 225 Index\. However, the authors stated at the end that in view of the vulnerability of SVM to the over\-fitting problem, future work should consider combining it with other algorithms\. Inspired by the idea, Wang, J\. et al\.[Wang et al\. \(2016\)](https://arxiv.org/html/2312.01020#bib.bib14)developed a hybrid SVR model by combining PCA and BSO algorithms\. Oztekin, A\. et al\.[Oztekin et al\. \(2016\)](https://arxiv.org/html/2312.01020#bib.bib15)developed an ensemble model which integrates ANFIS and SVM; Xiao, C\. et\.al\.[Xiao et al\. \(2020\)](https://arxiv.org/html/2312.01020#bib.bib16)combined the ARIMA with SVM\. Those hybrid models take into account the linear and nonlinear characteristics of stock fluctuations, so as to achieve higher prediction performance\. Tree\-based models also have good applications in stock price forecasting\. Wu, M\.\-C\. et al\.[Wu et al\. \(2006\)](https://arxiv.org/html/2312.01020#bib.bib17)used a combination of Decision Tree and Filter Rule to predict the NASDAQ 100 Index\. Filter Rule is a common way used by traditional investors to analyse the timing of stock buying and selling\. Combined with Decision Tree, it can be considered as a supplement of empirical analysis to machine intelligence\. However, a common problem faced by these models is the low prediction accuracy\.

Neural network models\. With the popularity of deep learning, prediction models based on neural networks emerge in an endless way\. Many works have been done using ANN for stock price prediction[Qi and Zhang \(2008\)](https://arxiv.org/html/2312.01020#bib.bib18);[Yu et al\. \(2009\)](https://arxiv.org/html/2312.01020#bib.bib19);[Mostafa \(2010\)](https://arxiv.org/html/2312.01020#bib.bib20);[Guresen et al\. \(2011\)](https://arxiv.org/html/2312.01020#bib.bib21);[Qiu et al\. \(2016\)](https://arxiv.org/html/2312.01020#bib.bib22)and achieved better performance than SVM\-based and tree\-based models\. Some researchers took different approaches on training data\. In the prediction task of the S&P 500 Index, Chen, Y\.\-C\., & Huang, W\.\-C\.[Chen and Huang \(2021\)](https://arxiv.org/html/2312.01020#bib.bib23)trained a CNN model with different input features\. Their research proved that using the gold price, the gold volatility index, the crude oil price and the crude oil price volatility index as input features allowed deep models to accurately predict future stock prices\. Other studies focused on modifying the vanilla neural networks for better predictions\. For example, Chandriah, K\.\-K\., & Naraganahalli, R\.\-V\.[Chandriah and Naraganahalli \(2021\)](https://arxiv.org/html/2312.01020#bib.bib59)found that using the modified\-Adam algorithm to optimize parameters in RNN can enhance the predictive ability of the network and make it suitable for long\-time prediction tasks\. Lv, L\. et al\.[Lv et al\. \(2018\)](https://arxiv.org/html/2312.01020#bib.bib24)used the PSO algorithm to optimize the hidden states of the vanilla LSTM\. Wang, X\. et al\.[Wang et al\. \(2021\)](https://arxiv.org/html/2312.01020#bib.bib25)introduced a 1\-arctan function to improve the forget gate of the vanilla LSTM\. All the studies achieved better performance in accuracy, reliability and adaptability\.

Hybrid neural network models\. In recent years, hybrid neural networks have gradually occupied the mainstream of stock price prediction tasks\. The core idea is to use the encoder\-decoder framework, first apply the encoder to extract features from the original input, and then feed the extracted features into the decoder for prediction\. Some researchers[Kim and Won \(2018\)](https://arxiv.org/html/2312.01020#bib.bib57)combined the vanilla LSTM with various generalized auto\-regressive conditional heteroscedasticity\-type models and achieved excellent prediction results\. Another representative work[Yang et al\. \(2020\)](https://arxiv.org/html/2312.01020#bib.bib58)proposed a novel hierarchical transformer with the multi\-task architecture designed to harness the text and audio data from quarterly earnings conference calls to predict future stock prices in the short and long term\. A recent study[Ko and Chang \(2021\)](https://arxiv.org/html/2312.01020#bib.bib26)used BERT, which has been shining in the NLP field, as an encoder to perform sentiment analysis on stock\-related comments in social media, then integrated the output features with initial stock prices to enhance LSTM performance\. The prediction accuracy of the model is 12\.05% higher than that of the vanilla LSTM\.

In conclusion, neural network\-based models are now absolutely dominant when it comes to stock price forecasting\. However, most of them overlook the differences in the degree of dependencies between stock prices, let alone consider both the dependency differences and time\-series characteristics simultaneously\. To address this limitation, our paper introduces a hybrid model that balances both aspects effectively\.

## 2Preliminary

Recurrent neural networks[Elman \(1990\)](https://arxiv.org/html/2312.01020#bib.bib27)are commonly used to process the time\-series data like stock prices\. In RNN, each neuron has two kinds of input data, one is the hidden state from the previous neuron, the other is the input data from the current time step\. The main advantage of RNN is the memory cell \(i\.e\. the hidden state\) that can be updated at each time step\. So the last hidden state will theoretically contain all the useful information extracted from the sequential input after training\. But RNN is not that robust as the gradients flowing through the network are sometimes too large or too small\.

![Refer to caption](https://arxiv.org/html/2312.01020v3/figures/fig1.png)

Figure 1:The structure of the LSTM neuron\.LSTM[Hochreiter and Schmidhuber \(1997\)](https://arxiv.org/html/2312.01020#bib.bib28)is proposed to solve the so\-called vanishing/exploding gradient issue\. It introduces the concept of “logic gate”, effectively mitigating the problem that RNN is difficult to deal with long\-term sequential data\. LSTM has three gates and one cell in each hidden neuron \(see Figure[1](https://arxiv.org/html/2312.01020#S2.F1)\), they are the input gate, the forget gate, the output gate and the memory cell \(cc\)\. Among them, the input gate and the forget gate determine which information \(ht−1,xth\_\{t\-1\},x\_\{t\}\) needs to be remembered and eliminated in the current neuron; the memory cell updates the information in the current neuron: saves the information determined by the input gate to be remembered, and discards the information that is eliminated by the forget gate; and the output gate determines the final information \(hth\_\{t\}\) needs to be transmitted to the next neuron\. All in all, the retention mechanism for valid information in LSTM not only solves the vanishing/exploding gradient problem that has been plaguing RNN to a great extent, but also helps the network speed up the convergence even if LSTM has four times the amount of parameters of RNN\.

However, when the dependencies between the input data are too long, it is still difficult for a vanilla LSTM to accurately grasp the dependencies across time steps\. Thus, the Attention mechanism[Yang et al\. \(2016\)](https://arxiv.org/html/2312.01020#bib.bib44);[Seo et al\. \(2016\)](https://arxiv.org/html/2312.01020#bib.bib45)is invented to help neural networks to learn the interconnections between input data\. As a representative work that promotes the attention mechanism, Transformer[Vaswani et al\. \(2017\)](https://arxiv.org/html/2312.01020#bib.bib39)is designed to process sequential data by using a self\-attention mechanism that allows it to weigh the importance of different parts of the input sequence when generating outputs\. Unlike traditional RNNs, which process sequential data one element at a time, Transformer can process the entire sequence in parallel, making it much faster and more efficient\. BERT[Devlin et al\. \(2018\)](https://arxiv.org/html/2312.01020#bib.bib46)is a pre\-trained language model composed of multiple bidirectional stacked encoders in Transformer\. The model is pre\-trained by using a large number of unlabelled texts in an unsupervised manner, and achieves breakthroughs in many downstream tasks, such as sentiment analysis, part\-of\-speech tagging and name entity recognition\. GPT\-3[Brown et al\. \(2020\)](https://arxiv.org/html/2312.01020#bib.bib48)is another well\-known pre\-trained model that uses multiple stacked Transformer decoders to produce human\-like text\. The quality of the text generated by GPT\-3 is so high that it can be difficult to determine whether or not it is written by a human\.

This research also draws on some excellent ideas in the computer vision field\. As early as the end of the last century, Lecun, Y\. et al\. proposed LeNet\-5[LeCun et al\. \(1998\)](https://arxiv.org/html/2312.01020#bib.bib47), which can be seen as the modern structure of CNNs\. The network includes the convolution layer, the pooling layer and the fully\-connected layer\. Weights and biases contained in these layers will be trained and updated with the back\-propagation algorithm\. However, compared to traditional machine learning algorithms such as SVM, LeNet\-5 does not demonstrate superiority in image classification tasks at that time\. Until AlexNet[Krizhevsky et al\. \(2012\)](https://arxiv.org/html/2312.01020#bib.bib29)showed great advantages in the ImageNet 2012 competition, a large number of CNN architectures[Zeiler and Fergus \(2014\)](https://arxiv.org/html/2312.01020#bib.bib30);[Simonyan and Zisserman \(2014\)](https://arxiv.org/html/2312.01020#bib.bib31);[Szegedy et al\. \(2014\)](https://arxiv.org/html/2312.01020#bib.bib32)have been invented and proposed, and structures of those models have become deeper and deeper\. But deep models cannot consistently make predictions better\. To mitigate the problem, He, K\. et al\.[He et al\. \(2015\)](https://arxiv.org/html/2312.01020#bib.bib33)added residual connections to deep convolution networks and achieved a prediction accuracy beyond human level, that is ResNet\. The shortcuts in ResNet allow features in shallow layers to be preserved at deeper layers in forward\. That means more gradients could impact the shallow layers that are very hard to get updated in normal deep networks\. Therefore, ResNet is used as the backbone of many deep models, as is the model proposed in this paper\.

## 3Methodology \- ResNLS

![Refer to caption](https://arxiv.org/html/2312.01020v3/figures/fig2.png)

Figure 2:Research ideas of ResNLS\.Most stock price prediction models fail to consider a very important factor that is the dependencies between stock prices across time\. Our proposed model, ResNLS, takes into consideration the dependency differences and time\-series characteristics between stock prices\. For example, suppose we use the stock prices of previous 10 consecutive trading daysp1,…,p10p\_\{1\},\.\.\.,p\_\{10\}to predict the stock price of the next trading dayp11p\_\{11\}\. When a sequential neural network such as LSTM learnsp10p\_\{10\}, it does not consider the difference between the dependency ofp10p\_\{10\}andp9p\_\{9\}, and the dependency ofp10p\_\{10\}andp1p\_\{1\}\(see Figure[2](https://arxiv.org/html/2312.01020#S3.F2)\)\. However, there should be a stronger relationship between adjacent stock prices than between stock prices farther apart\. This is primarily due to the fact that the opening price of the subsequent trading day relies on the closing price of the current day[Willinger et al\. \(1999\)](https://arxiv.org/html/2312.01020#bib.bib40)\. Consequently, our proposed model focuses on studying the dependency between adjacent stock prices and make predictions based on these dependency features\.

![Refer to caption](https://arxiv.org/html/2312.01020v3/figures/fig3.png)

Figure 3:Structure of ResNLS\.The structure of our proposed model, ResNLS, is illustrated in Figure[3](https://arxiv.org/html/2312.01020#S3.F3)\. Our model is mainly composed of two kinds of neural networks, ResNet and LSTM, thus named as ResNLS\. The residual block is the core design, which has a similar structure to the encoder in Transformer\. The difference is that the self\-attention mechanism in Transformer weighs the influence of all parts of the input sequence on the current input, while the convolution layer in the residual block pays much attention to the influence from adjacent inputs, which will be considered as supplements to the global information\. The residual block is also designed to mitigate the potential problem that weights in shallower layers are hard to be updated during the back\-propagation process\. Thus, our proposed model can not only draw insights from the original input data, but also learn more data patterns from the dependency features in an effective way\. As for details of the block: first, two convolution layers with the same kernel size are stacked in the block, performing feature extraction on stock price data in sequence\. Second, a batch normalization layer and a dropout layer follow behind, aiming to speed up the convergence, as well as making the training process more stable\. Third, a fully\-connected layer is applied to transform the dimensions of the dependency features so that they will be consistent with the dimensions of the initial input\.

Going a step further into the model design, as there are different degrees of dependencies between stock prices as mentioned above, ResNLS uses convolution kernels to pre\-process the input stock price data, which is equivalent to feature extraction on stock price data over a fixed time step\. The feature representations are the vectorized expressions that reflect the dependencies between adjacent stock prices\. They will help to deepen the understanding of local dependencies of the input utterance when they provide useful information\. On the other hand, they will not have a negative impact on prediction performance if what they represent is not that important\. This is because the residual block establishes a shortcut connection between the initial input and the LSTM layer, and gradients from the LSTM layer can be directly transferred to the lower layer, which not only effectively prevents the vanishing gradient problem \(the gradients flowing through the network are sometimes too small\), but also improves the computational efficiency at the same time\. Afterwards, those features are regarded as a residual term and added element\-wise with the initial input to form a new set of sequential data, which is subsequently passed through the LSTM layer on top of the model to make predictions for future stock prices\.

## 4Experimental Results

### 4\.1Dataset

The datasets used in this paper are SSE Composite Index and CSI 300 Index \(see Table[1](https://arxiv.org/html/2312.01020#S1.T1)\) obtained from Tushare API111[https://tushare\.pro/document/2?doc\_id=14](https://tushare.pro/document/2?doc_id=14)\. The reason why we use them is that the two indices enjoy a high reputation in the global capital market, both of them are known as barometers of China’s economy\. These two sets contain the stock price data of the indices for each trading day, such as the opening price, the closing price, the highest price as well as the lowest price\. Table[2](https://arxiv.org/html/2312.01020#S4.T2)shows the data sample obtained by segmenting the closing price data of the SSE Composite Index with the 10 consecutive trading days as the unit step\. To ensure that the input data is clean, consistent, and has unified structure, we perform data pre\-processing on the raw dataset\. Particularly, we clean the stock price data, normalize it to eliminate scale differences, and transform it into tensors\. We then split the whole pre\-processed data into training and test sets\. Specifically, we select the closing price data of the SSE Composite Index from January 1, 2011 to December 31, 2020 as the training set, and the closing price data from January 1, 2021 to December 31, 2021 as the test set\. Similarly, we select the closing price data of the CSI 300 Index from January 1, 2009 to December 31, 2018 as the training set, while the closing price data from January 1, 2019 to December 31, 2019 as the test set\. The selected data intervals enable our model to compare with other baselines\.

Table 2:Sample of the pre\-processed dataset from the SSE Composite Index\.
### 4\.2Training Procedure

As for model training, inspired by the self\-attention architecture in Transformer, we adopt two convolution layers in the residual block\. Each convolution layer uses 64 filters with a kernel size of 3, applies ReLU as the activation function, and adopts a weight decay of 1e\-5\. The feature data extracted by convolution layers will be normalized by batch normalization layers\. Furthermore, a dropout layer with a retain probability of 0\.8 is introduced to prevent over\-fitting\. On top of the residual block, our model applies a LSTM layer whose hidden size is set to 32\. Furthermore, Adam has been selected as the optimizer due to its ability to implement adaptive learning rates for different parameters in the network, thus a smaller batch size \(64\) with a larger initial learning rate \(1e\-3\) are preferred[Kingma and Ba \(2014\)](https://arxiv.org/html/2312.01020#bib.bib41)\. Finally, 50\-training\-epoch is enough for the model to find the pattern of the stock price data\.

### 4\.3Evaluation Metrics

We use Mean Absolute Error \(MAE\), Mean Squared Error \(MSE\) and Root Mean Squared Error \(RMSE\) to evaluate the forecasting performance of models\. The smaller the error, the more accurate the prediction\. Their equations are shown as follow,Nt​e​s​tN\_\{test\}is the number of data samples in the test setTt​e​s​tT\_\{test\}, whilepip\_\{i\}andpi^\\hat\{p\_\{i\}\}are the ground truth price and the predicted stock price at the time stepii, respectively\.

M​A​E=1Nt​e​s​t​∑y∈Tt​e​s​t\|pi−pi^\|MAE=\\frac\{1\}\{N\_\{test\}\}\\sum\_\{y\\in T\_\{test\}\}\|p\_\{i\}\-\\hat\{p\_\{i\}\}\|\(1\)
M​S​E=1Nt​e​s​t​∑y∈Tt​e​s​t\(pi−pi^\)2MSE=\\frac\{1\}\{N\_\{test\}\}\\sum\_\{y\\in T\_\{test\}\}\(p\_\{i\}\-\\hat\{p\_\{i\}\}\)^\{2\}\(2\)
R​M​S​E=1Nt​e​s​t​∑y∈Tt​e​s​t\(pi−pi^\)2RMSE=\\sqrt\{\\frac\{1\}\{N\_\{test\}\}\\sum\_\{y\\in T\_\{test\}\}\(p\_\{i\}\-\\hat\{p\_\{i\}\}\)^\{2\}\}\(3\)
We also use Average Rate of Return \(ARR\) to assess the profitability of trading strategies\. The higher the value, the more profitable the strategy is\. In the equation below,V0V\_\{0\}andVnV\_\{n\}represent the asset value at the beginning and end of the strategy period, respectively\.

A​R​R=Vn−V0V0∗100%ARR=\\frac\{V\_\{n\}\-V\_\{0\}\}\{V\_\{0\}\}\*100\\%\(4\)

### 4\.4Exploratory Data Analysis

Table 3:Prediction results for the SSE Composite Index from different inputs\.![Refer to caption](https://arxiv.org/html/2312.01020v3/figures/fig4.jpg)

Figure 4:Prediction loss of ResNLSs with different inputs\. For each sub\-graph: \(a\) “n” equals to 3; \(b\) “n” equals to 5; \(c\) “n” equals to 10; \(d\) “n” equals to 20; \(e\) “n” equals to 40; \(f\) “n” equals to 60\.To identify the optimal input data for ResNLS, comparative experiments are conducted in this study\. The experiments use the closing price data for the previous "n" \(3, 5, 10, 20, 40 and 60\) consecutive trading days as input, where those time step sizes are often used in stock analysis[Ming\-Ming and Siok\-Hwa \(2006\)](https://arxiv.org/html/2312.01020#bib.bib42);[Huang and Ni \(2017\)](https://arxiv.org/html/2312.01020#bib.bib43)\. All the experimental models use the same training and test sets of the SSE Composite Index\. It is clear from the result \(see Table[3](https://arxiv.org/html/2312.01020#S4.T3)\) that ResNLS with the input of the closing price data for the previous 5 consecutive trading days has the smallest prediction errors \(MAE, MSE and RMSE\), significantly outperforms those models with inputs of closing price data for the previous 3, 10, 20, 40, 60 consecutive trading days\.

Figure[4](https://arxiv.org/html/2312.01020#S4.F4)shows the training loss and test loss of ResNLSs under different inputs\. It can be concluded that with the increase of “n”, the fluctuation degree of the test loss becomes more and more serious\. When “n” equals to 60, the fluctuation trajectory of the test loss is the most volatile\. However, when “n” equals to 5, that is to say, the closing price data for the previous 5 consecutive trading days is used as the input, the fluctuation trajectory of the test loss is the smoothest\. This demonstrates that ResNLS\-5 can smoothly converge towards the global optimum\. In summary, the closing price data for the previous 5 consecutive trading days is the most suitable input for the proposed model, and ResNLS\-5 is the best model proposed in this paper\.

### 4\.5Model Comparison

Our research also conducts multiple comparative experiments to verify the validity and stability of the best proposed model, ResNLS\-5\. In addition to ResNLS\-5, the experiments also include the vanilla CNN, RNN, LSTM and BiLSTM models, as well as four advanced models including VGG\-19[Simonyan and Zisserman \(2014\)](https://arxiv.org/html/2312.01020#bib.bib31), DenseNet\-121[Huang et al\. \(2017\)](https://arxiv.org/html/2312.01020#bib.bib60), ALSTM[Wang et al\. \(2021\)](https://arxiv.org/html/2312.01020#bib.bib25)and CNN\-BiLSTM\-ECA[Chen et al\. \(2021\)](https://arxiv.org/html/2312.01020#bib.bib34)\. It is clear from the experiment results \(see Table[4](https://arxiv.org/html/2312.01020#S4.T4)\) that ResNLS\-5 has the smallest prediction errors \(MAE, MSE, RMSE\) in prediction tasks of the SSE Composite Index and CSI 300 Index, significantly outperforms the vanilla CNN, RNN, LSTM, BiLSTM models, and also shows superiority compared to the baselines proposed from recent papers\.

Table 4:Prediction results from different models\.In order to more intuitively compare the prediction performance of the models before and after the improvement, this paper further plots the prediction results of the vanilla LSTM and ResNLS\-5 respectively\. Figure[5](https://arxiv.org/html/2312.01020#S4.F5)shows the prediction results of the vanilla LSTM on the closing price data of the SSE Composite Index on all trading days from January 1, 2021 to December 31, 2021; Figure[6](https://arxiv.org/html/2312.01020#S4.F6)shows the prediction results of ResNLS\-5 for the closing price data of the SSE Composite Index on all trading days in the same time period\. In both figures, the dark grey solid line before 2021 represents the training data\. Due to the large amount of data, only part of the training data is shown in the figures; the light grey solid line after 2021 represents the target values in the test data, that is, the real trend of the closing prices of the SSE Composite Index; and the solid red line after 2021 represents the prediction results of the models during this period\. Comparing the two figures, it can be seen that most parts of the red solid line in Figure[5](https://arxiv.org/html/2312.01020#S4.F5)are below the light grey solid line, which indicates that there is a significant difference between the prediction results of the vanilla LSTM and the real stock price trend\. While the fluctuation trajectories of the red solid line and the light grey solid line in Figure[6](https://arxiv.org/html/2312.01020#S4.F6)almost coincide, which proves that the prediction performance of ResNLS\-5 is more ideal\.

![Refer to caption](https://arxiv.org/html/2312.01020v3/figures/fig5.png)

Figure 5:Prediction results of the SSE Composite Index from LSTM\.![Refer to caption](https://arxiv.org/html/2312.01020v3/figures/fig6.png)

Figure 6:Prediction results of the SSE Composite Index from ResNLS\-5\.Similarly, Figure[7](https://arxiv.org/html/2312.01020#S4.F7)shows the prediction results of the vanilla LSTM on the closing price data of the CSI 300 Index on all trading days from January 1, 2019 to December 31, 2019; Figure[8](https://arxiv.org/html/2312.01020#S4.F8)shows the prediction results of ResNLS\-5 for the closing price data of the CSI 300 Index on all trading days in the same time period\. In both figures, the dark grey solid line before 2019 represents the training data\. Due to the large amount of data, only part of the training data is shown in the figures; the light grey solid line after 2019 represents the target values in the test data, that is, the real trend of the closing prices of the CSI 300 Index; and the solid red line after 2019 represents the prediction results of the models during this period\. Comparing the two figures, it can be seen that most of the fluctuation trajectories of the red solid line and the light grey solid line in Figure[7](https://arxiv.org/html/2312.01020#S4.F7)are misaligned, which indicates that there is a significant difference between the prediction results of the vanilla LSTM and the real stock price trend\. While the fluctuation trajectories of the red solid line and the light grey solid line in Figure[8](https://arxiv.org/html/2312.01020#S4.F8)almost coincide, which proves that the prediction performance of ResNLS\-5 is indeed more ideal\.

![Refer to caption](https://arxiv.org/html/2312.01020v3/figures/fig7.png)

Figure 7:Prediction results of the CSI 300 Index from LSTM\.![Refer to caption](https://arxiv.org/html/2312.01020v3/figures/fig8.png)

Figure 8:Prediction results of the CSI 300 Index from ResNLS\-5\.
### 4\.6Back Testing

To verify whether the best proposed model, ResNLS\-5, can help clients effectively avoid risks and earn profits in the stock market, we constructed a quantitative trading framework to back test the effectiveness of the model\. The back testing experiments are conducted on two different data sets, one is the closing price data of the SSE Composite Index from January 1, 2021 to December 31, 2021, and the other is the closing price data of the CSI 300 Index from January 1, 2019 to December 31, 2019\.

The experiments compare the ARR of two strategies on these two different data sets\. One strategy is the benchmark strategy, which involves holding the stock unchanged for a period of time\. Therefore, the earnings per share brought by this strategy is equal to the difference between the closing price at the end of the period and the closing price at the beginning of the period\. Another strategy is the prediction strategy, which is to buy and sell the stock based on the predictions of ResNLS\-5\. Imagine if you could predict the closing price of a stock in the next trading day, how could you make a profit? A simple way is to buy the stock at the opening price on the next trading day if the future closing price is higher than the current closing price\. If the future closing price is lower than the current closing price, then sell the stock at the opening price on the next trading day to avoid risk and ensure returns\. Therefore, the rules of the prediction strategy are designed as follows: if the forecast closing price is higher than 1% of the current closing price, buy all the cash as shares; and if the forecast closing price is lower than 1% of the current closing price, sell all shares\. Our experiments do not consider the commissions, taxes and other expenses that may be incurred in the trading process\. Stock transaction fees vary from place to place, and those expenses have less impact on the final stock return\. Taxes do have an impact on financial performance, especially for active trading\. That is the reason why the threshold is set to 1%, much higher than the average daily growth rate \(0\.28%\-0\.39%\) of the indexes mentioned above, which also means that the trading conditions are met only 3\-4 times during the year and the tax burden will not reverse the conclusion\. All in all, we try to keep the experimental setup as simple and efficient as possible\.

Table 5:Back testing results\.![Refer to caption](https://arxiv.org/html/2312.01020v3/figures/fig9.png)

Figure 9:Back testing results of the SSE Composite Index\.![Refer to caption](https://arxiv.org/html/2312.01020v3/figures/fig10.png)

Figure 10:Back testing results of the CSI 300 Index\.As can be seen from Table[5](https://arxiv.org/html/2312.01020#S4.T5), the ARR of the prediction strategy is higher than that of the benchmark strategy on two different data sets, indicating that applying prediction strategy can bring more profits to the clients\. We further plots the back testing results on the two data sets separately\. Figure[9](https://arxiv.org/html/2312.01020#S4.F9)shows the back testing results on the closing price data of the SSE Composite Index from January 1, 2021 to December 31, 2021; Figure[10](https://arxiv.org/html/2312.01020#S4.F10)shows the back testing results on the closing price data of the CSI 300 Index from January 1, 2019 to December 31, 2019\. In both figures, the light grey solid line represents the ARR of the benchmark strategy, and the solid red line represents the ARR of the prediction strategy\. Comparing the two lines in each figure, it can be seen that most parts of the red solid line are above the light grey solid line, which proves that the prediction strategy can always bring more profits\. We can also find that the prediction strategy effectively avoids the fall of the SSE Composite index at the end of February 2021 \(see Figure[9](https://arxiv.org/html/2312.01020#S4.F9)\), and also avoids the fall of the CSI 300 index in April 2019 \(see Figure[10](https://arxiv.org/html/2312.01020#S4.F10)\)\. This avoidance, although its effectiveness may vary during stock declines, still helps clients reduce their exposure to risks\.

## 5Conclusion

The experiments show that the best proposed model in this research, ResNLS\-5, has the advantages of high prediction accuracy, high stability and high applicability when predicting future closing stock prices\. First, when the closing price data for the previous 5 consecutive trading days is used as the input, the forecast performance of the proposed model is optimal\. Furthermore, in prediction tasks of the SSE Composite Index and the CSI 300 Index, ResNLS\-5 has the smallest prediction errors, significantly outperforms the vanilla CNN, RNN, LSTM, BiLSTM models, and also shows superiority compared to the advanced models proposed by other papers\. Second, the proposed model has strong stability\. It can be seen from the above experiments that if the model structure for predicting the SSE Composite Index remains unchanged, and only the training data and test data are replaced with the closing price data of the CSI 300 Index, the model can then be applied to predict the short\-term trend of this stock index\. Third, the back testing experiments show that ResNLS\-5 has high applicability\. This is because the prediction strategy based on ResNLS\-5 can effectively avoid losses caused by falling stock prices, and at the same time earn profits for clients in the stage of rising stock prices\.

The limitations and future work mainly include the following aspects\. First, the proposed model in this research only predicts the closing price data\. Does the model have the same prediction performance on other stock prices? Future work should include forecasting other stock prices such as the opening price, the lowest price and the highest price of stock indices\. Second, the model design is based on the stock price data for the previous 5 consecutive trading days to predict the stock price for the next trading day\. While ResNLS\-5 does seem to have a better fit, it still appears to have a lag\. If one or two months were expanded out for detail, the lag would be even more pronounced\. How to predict the long\-term stock prices? Future work should consider using macro data to make forecasts of long\-term stock price trends\. Third, how does the prediction model deal with the impact of unexpected events on stock prices? For example, the recent outbreak of the Russian\-Ukrainian war had a disastrous effect on global stock markets\. When the black swan event occurs, how to improve the predictions? These are the problems to be solved in the field of stock price forecasting\. Therefore, future work should further explore how to handle unexpected events\.

Finally, the authors believe the current AI technology is still in the stage of imitating human capabilities\. Although the advantage of computing power shows the potential of surpassing human beings, the AI technology can not perform well when facing with complex tasks that are still difficult for human experts to complete\. That is to say, if it is difficult for a stock market specialist with many years of experience to predict long\-term price trends and identify unexpected events, we should not expect that the current AI technology will have better performance\.

## References

- Anaissiet al\.\(2021a\)A\. Anaissi, B\. Suleiman, and M\. NajiIntelligent structural damage detection: a federated learning approach\.InAdvances in Intelligent Data Analysis XIX: 19th International Symposium on Intelligent Data Analysis, IDA 2021, Porto, Portugal, April 26–28, 2021, Proceedings 19,pp\. 155–170\.Cited by:[§0\.1](https://arxiv.org/html/2312.01020#S0.SS1.p2.1)\.
- Anaissiet al\.\(2021b\)A\. Anaissi, B\. Suleiman, and S\. M\. ZandaviOnline tensor\-based learning model for structural damage detection\.ACM Transactions on Knowledge Discovery from Data \(TKDD\)15\(6\),pp\. 1–18\.Cited by:[§0\.1](https://arxiv.org/html/2312.01020#S0.SS1.p2.1)\.
- Arslanian and Fischer \(2019\)H\. Arslanian and F\. FischerThe future of finance: the impact of fintech, ai, and crypto on financial services\.Springer\.Cited by:[§0\.1](https://arxiv.org/html/2312.01020#S0.SS1.p2.1)\.
- Bisen and Pandey \(2013\)V\. Bisen and M\. PandeyTesting efficient market hypothesis \(emh\) in current indian stock market\.Journal of Commerce and Management Thought4\(4\),pp\. 792\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p1.1)\.
- Brownet al\.\(2020\)T\. Brown, B\. Mann, N\. Ryder, M\. Subbiah, J\. D\. Kaplan, P\. Dhariwal, A\. Neelakantan, P\. Shyam, G\. Sastry, A\. Askell,et al\.Language models are few\-shot learners\.Advances in neural information processing systems33,pp\. 1877–1901\.Cited by:[§2](https://arxiv.org/html/2312.01020#S2.p3.1)\.
- Cao and Tay \(2001\)L\. Cao and F\. E\. TayFinancial forecasting using support vector machines\.Neural Computing & Applications10\(2\),pp\. 184–192\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p2.1)\.
- Chandriah and Naraganahalli \(2021\)K\. K\. Chandriah and R\. V\. NaraganahalliRNN/lstm with modified adam optimizer in deep learning approach for automobile spare parts demand forecasting\.Multimedia Tools and Applications80\(17\),pp\. 26145–26159\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p3.1)\.
- Chenet al\.\(2021\)Y\. Chen, R\. Fang, T\. Liang, Z\. Sha, S\. Li, Y\. Yi, W\. Zhou, and H\. SongStock price forecast based on cnn\-bilstm\-eca model\.Scientific Programming2021\.Cited by:[§4\.5](https://arxiv.org/html/2312.01020#S4.SS5.p1.1)\.
- Chen and Huang \(2021\)Y\. Chen and W\. HuangConstructing a stock\-price forecast cnn model with gold and crude oil indicators\.Applied Soft Computing112,pp\. 107760\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p3.1)\.
- Chopra and Sharma \(2021\)R\. Chopra and G\. D\. SharmaApplication of artificial intelligence in stock market forecasting: a critique, review, and research agenda\.Journal of Risk and Financial Management14\(11\),pp\. 526\.Cited by:[§0\.1](https://arxiv.org/html/2312.01020#S0.SS1.p2.1)\.
- Conoveret al\.\(1999\)C\. M\. Conover, G\. R\. Jensen, and R\. R\. JohnsonMonetary environments and international stock returns\.Journal of Banking & Finance23\(9\),pp\. 1357–1381\.Cited by:[§0\.1](https://arxiv.org/html/2312.01020#S0.SS1.p1.1)\.
- Devlinet al\.\(2018\)J\. Devlin, M\. Chang, K\. Lee, and K\. ToutanovaBert: pre\-training of deep bidirectional transformers for language understanding\.arXiv preprint arXiv:1810\.04805\.Cited by:[§2](https://arxiv.org/html/2312.01020#S2.p3.1)\.
- Elman \(1990\)J\. L\. ElmanFinding structure in time\.Cognitive science14\(2\),pp\. 179–211\.Cited by:[§2](https://arxiv.org/html/2312.01020#S2.p1.1)\.
- Fama \(1965\)E\. F\. FamaThe behavior of stock\-market prices\.The journal of Business38\(1\),pp\. 34–105\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p1.1)\.
- Fisher and Statman \(2000\)K\. L\. Fisher and M\. StatmanInvestor sentiment and stock returns\.Financial Analysts Journal56\(2\),pp\. 16–23\.Cited by:[§0\.1](https://arxiv.org/html/2312.01020#S0.SS1.p1.1)\.
- Gavrishchaka and Banerjee \(2006\)V\. V\. Gavrishchaka and S\. BanerjeeSupport vector machine as an efficient framework for stock market volatility forecasting\.Computational Management Science3\(2\),pp\. 147–160\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p2.1)\.
- Guresenet al\.\(2011\)E\. Guresen, G\. Kayakutlu, and T\. U\. DaimUsing artificial neural network models in stock market index prediction\.Expert Systems with Applications38\(8\),pp\. 10389–10397\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p3.1)\.
- Heet al\.\(2015\)K\. He, X\. Zhang, S\. Ren, and J\. SunDelving deep into rectifiers: surpassing human\-level performance on imagenet classification\.InProceedings of the IEEE international conference on computer vision,pp\. 1026–1034\.Cited by:[§2](https://arxiv.org/html/2312.01020#S2.p4.1)\.
- Hochreiter and Schmidhuber \(1997\)S\. Hochreiter and J\. SchmidhuberLong short\-term memory\.Neural computation9\(8\),pp\. 1735–1780\.Cited by:[§2](https://arxiv.org/html/2312.01020#S2.p2.1)\.
- Huanget al\.\(2017\)G\. Huang, Z\. Liu, L\. Van Der Maaten, and K\. Q\. WeinbergerDensely connected convolutional networks\.InProceedings of the IEEE conference on computer vision and pattern recognition,pp\. 4700–4708\.Cited by:[§4\.5](https://arxiv.org/html/2312.01020#S4.SS5.p1.1)\.
- Huang and Ni \(2017\)P\. Huang and Y\. NiBoard structure and stock price informativeness in terms of moving average rules\.The Quarterly Review of Economics and Finance63,pp\. 161–169\.Cited by:[§4\.4](https://arxiv.org/html/2312.01020#S4.SS4.p1.1)\.
- Huanget al\.\(2005\)W\. Huang, Y\. Nakamori, and S\. WangForecasting stock market movement direction with support vector machine\.Computers & operations research32\(10\),pp\. 2513–2522\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p2.1)\.
- Huyet al\.\(2021\)D\. T\. N\. Huy, V\. K\. Nhan, N\. T\. N\. Bich, N\. T\. P\. Hong, N\. T\. Chung, and P\. Q\. HuyImpacts of internal and external macroeconomic factors on firm stock price in an expansion econometric model—a case in vietnam real estate industry\.Data Science for Financial Econometrics,pp\. 189–205\.Cited by:[§0\.1](https://arxiv.org/html/2312.01020#S0.SS1.p1.1)\.
- Iqbal and Hamid \(2000\)Z\. Iqbal and S\. A\. HamidStock price and operating performance of esop firms: a time\-series analysis\.Quarterly Journal of Business and Economics,pp\. 25–47\.Cited by:[§0\.1](https://arxiv.org/html/2312.01020#S0.SS1.p1.1)\.
- Kim and Won \(2018\)H\. Y\. Kim and C\. H\. WonForecasting the volatility of stock price index: a hybrid model integrating lstm with multiple garch\-type models\.Expert Systems with Applications103,pp\. 25–37\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p4.1)\.
- Kim \(2003\)K\. KimFinancial time series forecasting using support vector machines\.Neurocomputing55\(1\-2\),pp\. 307–319\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p2.1)\.
- King \(1966\)B\. F\. KingMarket and industry factors in stock price behavior\.the Journal of Business39\(1\),pp\. 139–190\.Cited by:[§0\.1](https://arxiv.org/html/2312.01020#S0.SS1.p1.1)\.
- Kingma and Ba \(2014\)D\. P\. Kingma and J\. BaAdam: a method for stochastic optimization\.arXiv preprint arXiv:1412\.6980\.Cited by:[§4\.2](https://arxiv.org/html/2312.01020#S4.SS2.p1.1)\.
- Ko and Chang \(2021\)C\. Ko and H\. ChangLSTM\-based sentiment analysis for stock price forecast\.PeerJ Computer Science7,pp\. e408\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p4.1)\.
- Krizhevskyet al\.\(2012\)A\. Krizhevsky, I\. Sutskever, and G\. E\. HintonImagenet classification with deep convolutional neural networks\.Advances in neural information processing systems25\.Cited by:[§2](https://arxiv.org/html/2312.01020#S2.p4.1)\.
- LeCunet al\.\(1998\)Y\. LeCun, L\. Bottou, Y\. Bengio, and P\. HaffnerGradient\-based learning applied to document recognition\.Proceedings of the IEEE86\(11\),pp\. 2278–2324\.Cited by:[§2](https://arxiv.org/html/2312.01020#S2.p4.1)\.
- Lekovićet al\.\(2018\)M\. Lekovićet al\.Evidence for and against the validity of efficient market hypothesis\.Economic themes56\(3\),pp\. 369–387\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p1.1)\.
- Liu and Zhang \(2015\)L\. Liu and T\. ZhangEconomic policy uncertainty and stock market volatility\.Finance Research Letters15,pp\. 99–105\.Cited by:[§0\.1](https://arxiv.org/html/2312.01020#S0.SS1.p1.1)\.
- Lvet al\.\(2018\)L\. Lv, W\. Kong, J\. Qi, and J\. ZhangAn improved long short\-term memory neural network for stock forecast\.InMATEC web of conferences,Vol\.232,pp\. 01024\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p3.1)\.
- Ming\-Ming and Siok\-Hwa \(2006\)L\. Ming\-Ming and L\. Siok\-HwaThe profitability of the simple moving averages and trading range breakout in the asian stock markets\.Journal of Asian Economics17\(1\),pp\. 144–170\.Cited by:[§4\.4](https://arxiv.org/html/2312.01020#S4.SS4.p1.1)\.
- Mostafa \(2010\)M\. M\. MostafaForecasting stock exchange movements using neural networks: empirical evidence from kuwait\.Expert systems with applications37\(9\),pp\. 6302–6309\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p3.1)\.
- Ozoguz and Rebello \(2013\)A\. Ozoguz and M\. J\. RebelloInformation, competition, and investment sensitivity to peer stock prices\.Competition, and Investment Sensitivity to Peer Stock Prices \(July 2, 2013\)\.Cited by:[§0\.1](https://arxiv.org/html/2312.01020#S0.SS1.p1.1)\.
- Oztekinet al\.\(2016\)A\. Oztekin, R\. Kizilaslan, S\. Freund, and A\. IseriA data analytic approach to forecasting daily stock returns in an emerging market\.European Journal of Operational Research253\(3\),pp\. 697–710\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p2.1)\.
- Pastor and Veronesi \(2012\)L\. Pastor and P\. VeronesiUncertainty about government policy and stock prices\.The journal of Finance67\(4\),pp\. 1219–1264\.Cited by:[§0\.1](https://arxiv.org/html/2312.01020#S0.SS1.p1.1)\.
- Qi and Zhang \(2008\)M\. Qi and G\. P\. ZhangTrend time–series modeling and forecasting with neural networks\.IEEE Transactions on neural networks19\(5\),pp\. 808–816\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p3.1)\.
- Qiuet al\.\(2016\)M\. Qiu, Y\. Song, and F\. AkagiApplication of artificial neural network for the prediction of stock market returns: the case of the japanese stock market\.Chaos, Solitons & Fractals85,pp\. 1–7\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p3.1)\.
- Seoet al\.\(2016\)M\. Seo, A\. Kembhavi, A\. Farhadi, and H\. HajishirziBidirectional attention flow for machine comprehension\.arXiv preprint arXiv:1611\.01603\.Cited by:[§2](https://arxiv.org/html/2312.01020#S2.p3.1)\.
- Shilleret al\.\(1984\)R\. J\. Shiller, S\. Fischer, and B\. M\. FriedmanStock prices and social dynamics\.Brookings papers on economic activity1984\(2\),pp\. 457–510\.Cited by:[§0\.1](https://arxiv.org/html/2312.01020#S0.SS1.p1.1)\.
- Simonyan and Zisserman \(2014\)K\. Simonyan and A\. ZissermanVery deep convolutional networks for large\-scale image recognition\.arXiv preprint arXiv:1409\.1556\.Cited by:[§2](https://arxiv.org/html/2312.01020#S2.p4.1),[§4\.5](https://arxiv.org/html/2312.01020#S4.SS5.p1.1)\.
- Smith \(2003\)V\. L\. SmithConstructivist and ecological rationality in economics\.American economic review93\(3\),pp\. 465–508\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p1.1)\.
- Spulbaret al\.\(2021\)C\. Spulbar, R\. Birau, L\. F\. Spulbar,et al\.A critical survey on efficient market hypothesis \(emh\), adaptive market hypothesis \(amh\) and fractal markets hypothesis \(fmh\) considering their implication on stock markets behavior\.Ovidius University Annals, Economic Sciences Series21\(2\),pp\. 1161–1165\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p1.1)\.
- Stephenset al\.\(2021\)C\. R\. Stephens, H\. A\. Benink, J\. L\. Gordillo, and J\. P\. Pardo\-GuerraA new measure of market inefficiency\.Journal of risk and financial management14\(6\),pp\. 263\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p1.1)\.
- Straderet al\.\(2020\)T\. J\. Strader, J\. J\. Rozycki, T\. H\. Root, and Y\. J\. HuangMachine learning stock market prediction studies: review and research directions\.Journal of International Technology and Information Management28\(4\),pp\. 63–83\.Cited by:[§0\.1](https://arxiv.org/html/2312.01020#S0.SS1.p2.1)\.
- Szegedyet al\.\(2014\)C\. Szegedy, S\. Reed, D\. Erhan, D\. Anguelov, and S\. IoffeScalable, high\-quality object detection\.arXiv preprint arXiv:1412\.1441\.Cited by:[§2](https://arxiv.org/html/2312.01020#S2.p4.1)\.
- Vaswaniet al\.\(2017\)A\. Vaswani, N\. Shazeer, N\. Parmar, J\. Uszkoreit, L\. Jones, A\. N\. Gomez, Ł\. Kaiser, and I\. PolosukhinAttention is all you need\.Advances in neural information processing systems30\.Cited by:[§2](https://arxiv.org/html/2312.01020#S2.p3.1)\.
- Wanget al\.\(2016\)J\. Wang, R\. Hou, C\. Wang, and L\. ShenImproved v\-support vector regression model based on variable selection and brain storm optimization for stock price forecasting\.Applied Soft Computing49,pp\. 164–178\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p2.1)\.
- Wanget al\.\(2021\)X\. Wang, S\. Zhu, X\. Ma, K\. Zhang, and X\. FanForecasting model of shanghai stock index based on alstm\.In2021 International Conference on Computer Information Science and Artificial Intelligence \(CISAI\),pp\. 130–134\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p3.1),[§4\.5](https://arxiv.org/html/2312.01020#S4.SS5.p1.1)\.
- Willingeret al\.\(1999\)W\. Willinger, M\. S\. Taqqu, and V\. TeverovskyStock market prices and long\-range dependence\.Finance and stochastics3\(1\),pp\. 1–13\.Cited by:[§3](https://arxiv.org/html/2312.01020#S3.p1.1)\.
- Wuet al\.\(2006\)M\. Wu, S\. Lin, and C\. LinAn effective application of decision tree to stock trading\.Expert Systems with applications31\(2\),pp\. 270–274\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p2.1)\.
- Xiaoet al\.\(2020\)C\. Xiao, W\. Xia, and J\. JiangStock price forecast based on combined model of ari\-ma\-ls\-svm\.Neural Computing and Applications32\(10\),pp\. 5379–5388\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p2.1)\.
- Yanget al\.\(2020\)L\. Yang, T\. L\. J\. Ng, B\. Smyth, and R\. DongHtml: hierarchical transformer\-based multi\-task learning for volatility prediction\.InProceedings of The Web Conference 2020,pp\. 441–451\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p4.1)\.
- Yanget al\.\(2016\)Z\. Yang, X\. He, J\. Gao, L\. Deng, and A\. SmolaStacked attention networks for image question answering\.InProceedings of the IEEE conference on computer vision and pattern recognition,pp\. 21–29\.Cited by:[§2](https://arxiv.org/html/2312.01020#S2.p3.1)\.
- Yehet al\.\(2011\)C\. Yeh, C\. Huang, and S\. LeeA multiple\-kernel support vector regression approach for stock market price forecasting\.Expert Systems with Applications38\(3\),pp\. 2177–2186\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p2.1)\.
- Yuet al\.\(2009\)L\. Yu, S\. Wang, and K\. K\. LaiA neural\-network\-based nonlinear metamodeling approach to financial time series forecasting\.Applied Soft Computing9\(2\),pp\. 563–574\.Cited by:[§1](https://arxiv.org/html/2312.01020#S1.p3.1)\.
- Zeiler and Fergus \(2014\)M\. D\. Zeiler and R\. FergusVisualizing and understanding convolutional networks\.InEuropean conference on computer vision,pp\. 818–833\.Cited by:[§2](https://arxiv.org/html/2312.01020#S2.p4.1)\.

Similar Articles