You are currently viewing a new version of our website. To view the old version click .
Economies
  • Article
  • Open Access

31 December 2024

Integrating Macroeconomic and Technical Indicators into Forecasting the Stock Market: A Data-Driven Approach

,
,
and
1
Department of Management Sciences, COMSATS University, Park Road, Islamabad 45550, Pakistan
2
School of Business Administration (SBA), Al Akhawayn University, Ifrane 53003, Morocco
3
VALORIZA—Research Center for Endogenous Resource Valorization, 7300-555 Portalegre, Portugal
4
Polytechnic Institute of Portalegre, 7300-110 Portalegre, Portugal
This article belongs to the Special Issue Financial Market Volatility under Uncertainty

Abstract

Forecasting stock markets is challenging due to the influence of various internal and external factors compounded by the effects of globalization. This study introduces a data-driven approach to forecast S&P 500 returns by incorporating macroeconomic indicators including gold and oil prices, the volatility index, economic policy uncertainty, the financial stress index, geopolitical risk, and shadow short rate, with ten technical indicators. We propose three hybrid deep learning models that sequentially combine convolutional and recurrent neural networks for improved feature extraction and predictive accuracy. These models include the deep belief network with gated recurrent units, the LeNet architecture with gated recurrent units, and the LeNet architecture combined with highway networks. The results demonstrate that the proposed hybrid models achieve higher forecasting accuracy than the single deep learning models. This outcome is attributed to the complementary strengths of convolutional networks in feature extraction and recurrent networks in pattern recognition. Additionally, an analysis using the Shapley method identifies the volatility index, financial stress index, and economic policy uncertainty as the most significant predictors, underscoring the effectiveness of our data-driven approach. These findings highlight the substantial impact of contemporary uncertainty factors on stock markets, emphasizing their importance in studies analyzing market behaviour.

1. Introduction

Estimating stock returns is crucial for informed decision-making in financial markets, as it enables investors to understand and anticipate market trends. However, forecasting stock returns is challenging due to the influence of numerous internal factors, such as historical prices, market structures, and investor sentiments, as well as external factors such as macroeconomic indicators, political stability, international agreements, and unforeseen events (Celebi & Hönig, 2019; Mahajan et al., 2022). Internal market dynamics are often shaped by external influences, especially macroeconomic factors, which ultimately affect stock prices (Yao et al., 2023). Recent advancements in Deep Learning (DL) have shown promising performance in learning complex data patterns by leveraging their sophisticated feature extraction and prediction capabilities (Sonkavde et al., 2023). The predictability of stock returns has critical implications for algorithmic trading, the development of investment strategies, and risk management. Ultimately, the goal of forecasting stock returns is to maximize returns on equity investments (Ivanyuk, 2022). Moreover, accurate market forecasts serve as Early Warning System (EWS) for potential market downturns and subsequent recoveries (Gajamannage et al., 2023; Liu & Long, 2020).
This study proposes a novel data-driven approach to forecasting S&P 500 returns by integrating macroeconomic indicators, such as market volatility, financial stress, economic policy uncertainty, monetary policy, and ten Technical Indicators (TIs). The contemporary uncertainty features of economic policy, geopolitical risk, financial stress and monetary policy are represented by the proxies of Economic Policy Uncertainty of America (US EPU), Geopolitical Risk (GPRD), Financial Stress Index (FSI) and Shadow Short Rate (SSR) respectively. Besides, we examine the impact of the international prices of gold and oil and the US stock market Volatility Index (VIX) on market forecasts.
Our proposed hybrid models are the sequential combinations of Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs). In the first layer, CNN variants Deep Belief Network (DBN) and LeNet are applied for features’ extraction. Then, in the second layer, RNN variants—Gated Recurrent Unit (GRU) and highway networks—are used for predictions. Hence, the proposed hybrid models are DBN–GRU, LeNet–GRU and LeNet–Highway for forecasting S&P 500 returns. The prediction performance of these hybrid models has been compared with that of the benchmark single models GRU, Highway Networks, LeNet and DBN in terms of Root Mean Square Error (RMSE), Mean Absolute Error (MAE) and Mean Absolute Percentage Error (MAPE). Our results suggest that the three proposed hybrid models outperform the benchmark component models for all evaluation measures. Moreover, the US market is predictable, and LeNet–Highway hybrid model is the best prediction model for the proposed data-driven approach.
The primary objective of this study is to enhance the predictive accuracy of stock market returns, specifically for the S&P 500 index, by integrating diverse macroeconomic indicators and TIs into advanced DL frameworks. The research aims to address the challenges posed by the complex interplay of internal and external market factors by proposing novel hybrid models. In doing so, this study identifies the key drivers of market returns—such as market volatility, financial stress, and economic policy uncertainty—and demonstrates the superiority of the hybrid models over single-model methods. The results of the best prediction method have also been validated using the Time Series Cross-Validation (TSCV) technique.
The approach of this study aligns with the increasing need for reliable forecasting in finance, offering a valuable framework that combines critical economic signals with advanced analytics to anticipate market movements effectively. The significance of this research lies in its potential to support investors, financial analysts, and policymakers by providing robust forecasting tools, facilitating informed decision-making, and enabling the development of effective trading strategies and risk management practices in real-time financial markets.
The rest of this paper is structured in six other sections. Section 2 is of Related Work that also includes problem statement. Section 3 presents Proposed Data-Driven Approach for Forecasting Stock Market which covers the details of the data and methodology along with the proposed hybrid deep models. This is followed by Section 4 of Results and Discussion, Section 5 of Time Series Cross Validation, and Section 6 of SHAP for Explaining Model’s Predictions. Lastly, Conclusions and Future Work are presented in Section 7.

3. Proposed Data-Driven Approach for Forecasting Stock Market

This section presents details of the data and its preprocessing, the CNN and RNN variants employed in the study, and the proposed hybrid deep models. The forecasting process begins with data collection and culminates in interpretability testing and cross-validation of the best prediction model. Figure 1 graphically represents the data-driven approach for forecasting S&P 500 returns in this study. Moreover, Algorithm 1 represents its workflow.
Figure 1. Data-Driven Approach for Forecasting S&P 500 Returns.

3.1. Dataset

The dataset includes S&P 500 stock index as the target variable and a set of internal and external factors as features. The internal factors include values of ten TIs—Bollinger Bands (Boll_ub and Boll_lb), Relative Strength Index (RSI), Aroon Oscillator (AroonOsc), stochastic oscillator (stoch), Average Directional Index (ADX), Money Flow Index (MFI), Moving Average Convergence Divergence (MACD), Simple Moving Average (SMA), Weighted Moving Average (WMA), and Exponential Moving Average (EMA)—calculated from the open, high, low and close prices and volume data of S&P 500 index. Besides, the set of external factors comprises macroeconomic indicators including GPRD, FSI, US EPU, US SSR, gold and oil prices, and VIX. Here, the EPU and SSR are country-specific, and FSI and GPRD are global factors. While VIX is a volatility index measuring the implied volatility of S&P 500 index and is often referred to as the fear index (Sarwar, 2012). The expected volatility of the US stock market in the near future is based on this index. The purpose of selecting these features is to study the influence of both external and internal dynamics on the US stock market in terms of its prediction. Hence, the predictive ability of technical and macroeconomic indicators has been analyzed. The data for all features is of daily frequency for a period of 22.5 years ranging from 1 January 2001 to 26 June 2023. It is a long time period inhibiting the effect of major global events like 9/11 in 2001, GFC 2008, and the COVID-19 pandemic in 2020. The dataset spanning over two decades provides ample data points for training DL models, ensuring the models can capture both short-term and long-term dependencies. Moreover, the start of 2001 marks the period where consistent, high-quality daily data for the selected features became widely available.
Algorithm 1 Algorithm of the Data-Driven Approach Forecasting S&P 500 Returns.
 1:
Data Collection and Preprocessing:
 2:
Download S&P 500 index data using YahooFinance API in Python
 3:
Download data of macroeconomic indicators from their respective sources
 4:
Calculation of TIs using TA library
 5:
Merging datasets of external macroeconomic indicators with S&P 500 and TIs
 6:
Calculate returns taking percentage changes of all variables
 7:
Remove missing values
 8:
Remove outliers with 3 σ rule
 9:
Data Splitting:
10:
Input variables → X train , X test
11:
Target variable → y train , y test
12:
Input:
13:
Sequence of input data X = { x 1 , x 2 , . . . , x T }
14:
Corresponding target outputs y = { y 1 , y 2 , . . . , y T }
15:
Hyperparameters of the Proposed Models
16:
Implementation of the Proposed DL Models:
17:
Initialize the parameters (weights and bias vectors) of the proposed model
18:
Fit the model ← X t r a i n , y t r a i n
19:
Predict stock returns with the trained model ← X t e s t
20:
return predictions y ^ t
21:
Calculate Evaluation Metrics:
22:
RMSE, MAE, MAPE
23:
Compare the prediction performance of the proposed models
24:
Backtesting:
25:
Apply time series cross validation
26:
Interpretability of the model:
27:
Apply SHAP algorithm

3.2. Data Preprocessing

The daily data of all variables have been accessed from four sources. The S&P 500 index values are extracted using the Python Yahoo Finance API. While the EPU and GPR data have been obtained from a common source1 and the data for SSR2 and FSI3 have been accessed from their respective sources. The data for S&P 500 stock index, Gold, Oil, VIX, and FSI is available for working days only, whereas the data for US EPU, US SSR, and GPRD is inclusive of holidays (including weekends). Therefore, these features have been merged with respect to the dates of S&P 500 index using the Pandas Dataframe.merge function in Python. Please refer to Figure 2 for the merged data.
Figure 2. Merging Data.
We have considered the returns (percentage changes) of all variables and removed the outliers (values beyond ± 3 standard deviations) of the resultant dataset using the three sigma rule. The scale of the data has been reduced by taking returns and removing outliers. The final dataset has 4850 samples after deleting those with the missing values. The descriptive statistics of the returns are given in Table 2.
Table 2. Descriptive Statistics of Returns.

3.3. Convolutional and Recurrent Neural Networks Applied in the Study

We consider two convolutional neural networks—LeNet and DBN—and two recurrent neural networks—GRU and Highway—to propose our hybrid DL models for forecasting S&P 500 returns. Moreover, these are the benchmark models to compare the performance of our proposed models in this study. A brief introduction of these single models and the details of their proposed combinations are given in the following subsections.

3.3.1. Gated Recurrent Unit (GRU)

A gated recurrent unit, being a simplification of LSTM, is a special type of RNN introduced by Chung et al. (2014). It has been developed to reduce the computational complexity of LSTM to process sequential data like speech, text, and time series. GRU has two gates—the reset gate and the update gate—in contrast to the three gates of LSTM (forget, input, and output gates). The reset gate of GRU has the same function as the forget gate in LSTM, which is to determine the chunk of information coming from the hidden state to be forgotten, whereas the update gate updates the hidden state with the selective input information. This way, there is control over the flow of information passing through a GRU unit. The underlying purpose is to update the hidden state and calculate the output at every time step. The structure of a GRU cell is shown in Figure 3 (Su & Kuo, 2019).
Figure 3. Architecture of a GRU Cell.
Assume that x t is the input at a given time step t, h t 1 is the hidden state at the previous time step t 1 , W z and b z are the weights and biases for the update gate and W r and b r are the weights and biases for the reset gate, the respective outputs of the update and reset gates as z t and r t take the form as:
z t = σ ( W z · [ h t 1 , x t ] + b z )
r t = σ ( W r · [ h t 1 , x t ] + b r )
Moreover, the candidate hidden state h ˜ t of the GRU cell with W h and b h as its weights and biases is updated as:
h ˜ t = tan h ( W h · [ r t h t 1 , x t ] + b h )
With ⊙ as the hadamard product, the final output of the GRU cell is the updated hidden state h t calculated as:
h t = ( 1 z t ) h t 1 + z t h ˜ t

3.3.2. Recurrent Highway Networks (RHNs)

A highway network is a deep feed-forward NN having hundreds of layers with skip connections that regulate the flow of information. These networks have been designed and introduced by Srivastava et al. (2015) with the main purpose of resolving the issues of gradient-based training of very deep networks. These are inspired by the LSTM architecture. The depth of NNs is crucial for solving complex research problems and large datasets. However, this depth poses challenges to the training of such networks (Sonkavde et al., 2023). The highway networks have been introduced as a solution to this problem. They enable gradient-based training of hundreds of layers using multiple activation functions. The equations for the basic unit of a highway network are:
T ( x ) = σ ( W T · x + b T )
C ( x ) = 1 T ( x )
H ( x ) = ReLU ( W H · x + b H )
Y ( x ) = T ( x ) · H ( x ) + C ( x ) · x
Here x is the input to the network; T ( x ) is the transform gate and C ( x ) is the carry gate; H ( x ) is the transformed output; W T and b T are the weights and bias terms for the transformation gate; W H and b H are the weights and bias terms for the transformation; s i g m a is the sigmoid activation function and R e L U is the rectified linear unit activation function; and lastly, Y ( x ) is the final output.
We are predicting stock returns by incorporating the linear activation function in the final output layer of the highway network. The basic architecture of a highway network is shown in Figure 4, (Tao et al., 2018).
Figure 4. Architecture of Recurrent Highway Network.

3.3.3. LeNet

LeNet is one of the initial CNNs proposed by LeCun et al. (1998). It has been primarily designed for recognition of images of handwritten digits and laid the foundation for further advancements in deep learning. The basic structure of LeNet, as shown in Figure 5, comprises seven layers, including two 5 × 5 convolutional layers, 2 average pooling layers and three dense layers with non-linear activation functions (Wang et al., 2017). LeNet bascially refers to LeNet-5, which is the fifth iteration of the LeNet CNN model. It has unique convolutional filters or kernels that identify the inherent patterns of the data. It has been widely used for object recognition and natural language processing. Moreover, it has been used to predict the direction of S&P 500 using data of per minute frequency (Sim et al., 2019). The empirical results show that CNNs can better predict S&P 500 than ANN and SVM. In another work, an optimized CNN has been used by Chung and Shin (2020) to predict the Korean stock index KOSPI movement using TIs as features. The optimized CNN outperformed simple CNN and ANN in terms of prediction performance.
Figure 5. Architecture of LeNet.

3.3.4. Deep Belief Networks (DBNs)

A deep belief network is an unsupervised learning algorithm comprising of two different NNs—Restricted Boltzman Machines (RBMs) and belief networks. RBMs are similar to the regular Boltzman machines, with the exception that they are not fully connected and therefore they are named as ’restricted’. The RBMs are used for pre-training and the back propagation NN is employed for reverse fine-tuning in a DBN.
DBN involves multiple layers with conditional dependencies; therefore, it has an extensive set of equations. However, a simplified set of equations for its building block are represented here (Zhang & Ci, 2020). There are N h nodes in the hidden layers and N v nodes in the visible layer. Assume the binary states of the visible node i and hidden node j as v i and h j , the weight between them as w i j and the biases as a i and b j . The equations for RBM layers will be:
The visible layer consists of observable variables:
P ( v i = 1 ) = σ j = 1 N h W i j h j + b i
The hidden layer consists of latent variables:
P ( h j = 1 ) = σ i = 1 N v W i j v i + c j
The joint energy of the RBM is given by:
E ( v , h ) = i = 1 N v j = 1 N h W i j v i h j i = 1 N v b i v i j = 1 N h c j h j
The conditional probabilities are given by the sigmoid function:
P ( h j = 1 | v ) = σ i = 1 N v W i j v i + c j
A DBN is composed of multiple RBMs stacked on top of each other. The hidden layer of one RBM becomes the visible layer of the next RBM, such that:
P ( v i ( k ) = 1 | h ( k ) ) = σ j = 1 N ( k 1 ) W i j ( k ) h j ( k 1 ) + b i ( k )
P ( h j ( k ) = 1 | v ( k ) ) = σ i = 1 N ( k ) W i j ( k ) v i ( k ) + c j ( k )
However, the output layer of a DBN for regression can be modified as:
y ^ i = j = 1 N ( k ) W i j ( k ) h j ( k 1 ) + b i ( k )
Here y ^ i is the predicted stock return for the i t h sample, and h j ( k 1 ) is the activation from the hidden layer of the previous RBM. The linear activation function will be used instead of the sigma function. The framework of the DBN regression model is depicted in Figure 6 (Boesch, 2024).
Figure 6. Architecture of DBN.

3.4. Proposed Hybrid Deep Learning Models

In our data-driven approach, the hybrid DL models are combined on the idea of an encoder-decoder framework. The encoder is first applied to filter the original inputs for feature extraction, and then the decoder makes predictions using the extracted features as input. The hybrid NNs have been extensively worked upon for stock market prediction (Jia et al., 2023; Sonkavde et al., 2023). This study also employs hybrid NNs for predicting stock returns of S&P 500. Specifically, we employ a CNN variant to extract features and then a recurrent architecture for predictions. Though RNNs are more acknowledged for doing well with the sequential data, CNNs can also be applied successfully for sequential modeling (Jerez & Kristjanpoller, 2020). They also have the advantages of avoiding gradient and memory problems. In some studies, CNNs outperform LSTMs (Bai et al., 2018). Hence, convolutional neural networks LeNet and DBN are used for features’ extraction at the first tier, and recurrent neural networks GRU and Highway are used for prediction at the second tier. The proposed three hybrid sequential models are DBN-GRU, LeNet-GRU, and LeNet-Highway. The topologies of the proposed DBN-GRU, LeNet-GRU, and LeNet-Highway models are given in Table 3, Table 4 and Table 5.
Table 3. Topology of the Proposed Model 1: DBN-GRU.
Table 4. Topology of the Proposed Model 2: LeNet-GRU.
Table 5. Topology of the Proposed Model 3: LeNet-Highway.
The choice of DL models to forecast S&P 500 returns is justified by their ability to capture complex, non-linear relationships of the uncertainty factors US EPU, FSI, GPR, and SSR with stock returns and volatility. Literature highlights that these risk factors often lack linear relationships with market dynamics, making non-linear models like DL more suitable for forecasting (Aye et al., 2018; Balcilar et al., 2019). Besides, hybrid models are known to leverage the strengths of different neural network architectures, enabling enhanced predictive performance for complex financial time series data. Existing literature underscores that hybrid architectures outperform standalone DL models by addressing their limitations, such as overfitting and weak generalization in dynamic systems (Hajirahimi & Khashei, 2019; Pradeepkumar & Ravi, 2018).

4. Results and Discussion

The accuracy of the applied prediction models has been gauged using three evaluation metrics: RMSE, MAE, and MAPE. Among these, RMSE and MAE are scale-dependent. These can be used for comparing different models on the same data, as is the case in this study. Besides, MAPE is independent of the scale of the data and is a percentage measure of the model’s accuracy (Mahajan et al., 2022). However, it needs a meaningful zero and can be undefined for the actual values closer to zero. Our study evaluates the prediction performance of the benchmark and the proposed models by calculating both scale-dependent RMSE and MAE and scale-independent MAPE.
The evaluation metrics of our applied models are reported in Table 6. This table presents deep models in order of descending RMSE. It is evident that the three proposed models, DBN-GRU, LeNet-GRU and LeNet-Highway, outperform their component models (DBN, GRU, LeNet and Highway) for the three evaluation metrics. Hence, the prediction performance of the proposed hybrid models is better than the single deep models. The result aligns with the previous studies that suggest that combined models are more viable for time series modeling and can enhance the forecasting accuracy in contrast to single models used separately (Hajirahimi & Khashei, 2019; Liang et al., 2019; Pradeepkumar & Ravi, 2018).
Table 6. Evaluation of Prediction Performance.
To further verify the prediction performance of the proposed hybrid models, the forecasted returns of the S&P 500 were plotted against the actual returns for the out-of-sample values in Figure 7, Figure 8 and Figure 9. These plots show that the proposed models have a better predictive ability for forecasting S&P returns over the testing period. Moreover, these plots present varying but reasonable degrees of randomness in their forecasts. Similar results were also plotted for the prediction performance of the single benchmark models.
Figure 7. S&P500 Return Prediction with Hybrid DBN-GRU Model.
Figure 8. S&P500 Return Prediction with Hybrid LeNet-GRU Model.
Figure 9. S&P500 Return Prediction with Hybrid LeNet-Highway Model.
Notably, the hybrid LeNet–Highway model outperforms all other models with the lowest RMSE, MAE and MAPE values, as shown in Figure 10, Figure 11 and Figure 12, respectively. Additionally, the prediction performance of DBN–GRU and LeNet–GRU is almost similar. This result can be due to using the GRU for final predictions in both models. It also suggests that DBN and LeNet perform equally well for feature extraction. However, LeNet is the best-performing solo model among DBN, GRU, and Highway. A CNN variant outperforming sequential RNNs is supported in the literature (Bai et al., 2018; Jerez & Kristjanpoller, 2020).
Figure 10. RMSE of the Applied Deep Models.
Figure 11. MAE of the Applied Deep Models.
Figure 12. MAPE of the Applied Deep Models.
When we compare the prediction performance of the proposed hybrid models with that of their component models, we find that the DBN-GRU hybrid has approximately 41%, 33%, and 45% lower RMSE, MAE, and MAPE values respectively, than those of DBN, which is performing better than GRU. This can be verified by examining the bar chart comparing errors in Figure 13. Similarly, LeNet performs better than GRU for all metrics. Their hybrid LeNet-GRU outperforms LeNet with around 8%, 18%, and 14% lower RMSE, MAE, and MAPE, respectively, as shown in Figure 14. Lastly, our best-performing LeNet-Highway hybrid model beats LeNet with lower RMSE, MAE, and MAPE of around 11%, 10%, and 23% respectively, as shown in Figure 15.
Figure 13. Comparison of Error Values of DBN, GRU and their Hybrid Model.
Figure 14. Comparison of Error Values of LeNet, GRU and their Hybrid Model.
Figure 15. Comparison of Error Values of LeNet, Highway Network and their Hybrid Model.
While our results demonstrate the superior forecasting performance of the proposed hybrid DL models, we acknowledge that combining different architectures may lead to higher computational costs, potentially limiting their real-time application. This challenge can be addressed by leveraging techniques such as model optimization and parallel processing to reduce computational overhead without significantly compromising performance. However, there must be a trade-off between the model’s complexity and forecasting performance. Given these considerations, the primary focus of this study is to enhance forecasting accuracy, ensuring that the models effectively capture the complex, non-linear dynamics of financial markets.

5. Time Series Cross Validation

Cross validation is a method to assess the generalizability of a model’s learning to a new dataset. For prediction models, it is applied to estimate that how accurately the forecasting model is going to predict in real time (Donate et al., 2013). Time Series Cross Validation (TSCV) is used in ML to assess the generalizability of a prediction model for new or unseen data. It is different from the k-fold cross validation in terms of data splitting. The k-fold method is not suitable for time series validation as it randomly splits the data into testing and training sets without maintaining order of the training and testing subsets (Zhou, 2021). However, the order of data samples matters for sequential data as is the case for stock data. Test samples must be preceded by consecutive training samples and this order is to be maintained for all folds of the validation technique. The prediction model is trained on the training samples and tested on the validation samples and the process is repeated for a given number of folds and sizes of the validation data. This way, the predictive performance of the model is assessed across time.
In this study, we have used TSCV for analyzing the predictive ability of our best prediction model, LeNet-Highway. The model has been cross validated by comparing the results in terms of RMSE, MAE, and MAPE for different mixes of number of folds (k = 10, 20) and size of validation data (100, 10, 1) (Zhou, 2021). We get the results of cross validation comparable with the prediction performance of the LeNet-Highway and its component models, LeNet and Highway, for 10 folds and 100 validation samples. The results of this combination are presented in Table 7 and its results confirm the generalizability of our proposed model LeNet-Highway. The cross validation of our proposed model also postulates that future returns can be predicted based on their previous values. Historical data of the stock market provides patterns for the predictability of future performance of the market as established by many studies in the existing literature (Gajamannage et al., 2023; Gupta et al., 2022; Huang et al., 2023; Ma & Yan, 2022; Rezaei et al., 2021). However, this is in contradiction to the hypotheses of efficient markets (Fama, 1970) and random walk (Godfrey et al., 1964).
Table 7. Results of Time Series Cross Validation for k = 10 and validation_samples = 100.

6. SHapley Additive exPlanation (SHAP) for Explaining the Model’s Predictions

DL models are also referred to as ’black-box’ models as they cannot explain how they produce certain forecasts. Their predictions are not explainable unless they have been verified with some customized tools. Such tools offer interpretability that helps build trust in the model’s predictions. Moreover, it helps in detecting biases, if any, in the data or the model. SHAP is one such tool, based on Shapley values, which use game theory to credit each variable for the predictions of the model.
SHapley Additive exPlanation (SHAP) is an Explainable Artificial Intelligence (XAI) technique for understanding the intricate choices made by deep models. It has been proposed by Lundberg and Lee (2017) that explains individual predictions. By giving each variable an interpretable value and providing information on how each contributes to the model’s predictions individually, SHAP overcomes the opacity that deep models have by design. It provides a thorough and easy to understand analysis of the significance of every input variable for forecasting the target variable. Practitioners and researchers can better understand the significant variables influencing a model’s output with the aid of this factor-wise attribution.
In this research, we have implemented SHAP to explain the forecasts of our best prediction model LeNet-Highway. First, a background summary is produced by applying K-means clustering to the training dataset. We use 25 clusters of our data samples using K-means. The model’s predictions and a background summary derived from k-mean clustering are used in the design of a SHAP explainer known as ‘Kernel Explainer’, which measures the SHAP values for each variable. These values provide information about the role that variable plays in the model’s ability to predict outcomes based on a particular sample. We generate a force plot and a summary plot using these shap values to know the contribution of variables in the model’s predictions. For a variable and a sample, each point on the summary plot represents a shapley value. The feature determines the position on the y-axis, while the shapley value determines the position on the x-axis. The variable’s value is represented by color, ranging from low to high. In the summary plot, the y-axis direction of the jittered overlapped points helps us understand the distribution of the Shapley values for each variable. The variables are listed in descending order of significance.
As shown in Figure 16, the summary plot orders variables based on their importance in predicting the S&P 500 return. This plot summarizes the top ten important variables for predicting the S&P 500 using our proposed LeNet-Highway hybrid model. The most significant variables of our dataset include seven macroeconomic indicators and three TIs. It shows that VIX is our prediction model’s most important input variable. Indeed, the higher percentage change values in VIX result in lower stock return values. Thus, a significant negative relationship exists between VIX and S&P 500 returns (Campisi et al., 2023; Sarwar, 2012). This finding aligns with previous studies, such as Adeloye et al. (2024); Campisi et al. (2023); Sarwar (2012), which suggest that stock market volatility and market performance are negatively associated, and increased volatility significantly diminishes market outcomes in the long run. The change in volatility is followed by the contemporary factors of FSI and US EPU, the second and third most important predictors of S&P 500 returns. This is well-supported by the literature, which establishes the significant predictive power of contemporaneous uncertainty factors like EPU for market returns and volatility (Aye et al., 2018; Brogaard & Detzel, 2015). Interestingly, EPU, as a risk factor, has been shown to predict future returns in financial markets and may be compensated with a risk premium (Pastor & Veronesi, 2013; Phan et al., 2018). It is important to note that the four contemporary macroeconomic indicators—percentage changes in US EPU, FSI, GPRD and US SSR—are important variables for predicting the S&P 500 return. Similarly, the global FSI has been identified as the most significant predictor in equity markets by Liang et al. (2023), while contractionary monetary policy, as reflected in SSR, has been found to decrease stock returns (Tokmakcioglu & Ozcelebi, 2020). However, there are also some contradictions, and the impact of uncertainty factors such as EPU is not significant for some equity markets (Li et al., 2016; Mensi et al., 2014). In addition, the direction and strength of the association between EPU and stock markets appear to depend on market conditions, like credit constraints (Carrière-Swallow & Céspedes, 2013). These mixed findings underline the complex and heterogeneous role of contemporary uncertainty factors in predicting stock market returns across different regions and economic conditions. Besides, oil and gold returns are also included in the list of important explanatory variables. Moreover, the summary plot shows that aroonOsc, ADX, and MACD returns are significant TIs for US market forecasts. We find support for many studies that establish the importance of these indicators in capturing market trends and momentum (Kamara et al., 2022; Ma & Yan, 2022; Stein, 2022).
Figure 16. SHAP Summary Plot for LeNet-Highway.
In addition, a force plot visually shows how each variable in a model influences an individual forecast. It highlights the contribution of each variable, pushing the prediction higher (positive value) or lower (negative value) relative to the baseline prediction. At the point where the data sample is actually predicted, these forces balance each other. In the force plot shown in Figure 17, the baseline value is set to be 0.35, and the most important variable is VIX that is in line with the results of the summary plot. Higher values of variables (in red) force the predicted return to lower side while the lower values of variables (in blue) force it to the higher side. For instance, higher values of change in VIX lower the expected return, and lower values of change in oil increase the expected return (Aye et al., 2018; Brogaard & Detzel, 2015). It is important to note that these values are given for a specific sample.
Figure 17. Force Plot for LeNet-Highway.

7. Conclusions and Future Work

In this study, we adopted a data-driven approach to forecast the stock market by integrating several macroeconomic and TIs as predictors. We combined convolutional and recurrent neural networks to develop three novel deep hybrid models: DBN-GRU, LeNet-GRU, and LeNet-Highway. Using CNN variants (LeNet and DBN) for feature extraction and recurrent NNs (GRU and Highway) for prediction, we sequentially combined these deep models to examine the predictive power of macroeconomic and technical indicators for the US stock market. Our findings reveal that the US stock market is indeed predictable, with the LeNet-Highway hybrid model emerging as the most accurate prediction model of S&P 500 returns, delivering the lowest RMSE, MAE, and MAPE values among all models tested. This model outperforms the second-best LeNet model by 11%, 10%, and 23% in RMSE, MAE, and MAPE, respectively.
Significantly, our analysis indicates that both LeNet and DBN are effective at extracting relevant features, confirming the superior feature extraction capability of CNNs in this context. Importantly, all three hybrid models demonstrated lower prediction errors than their component models, underscoring the enhanced predictive power of combining CNNs with recurrent networks. This synergy leverages the feature extraction strength of CNNs alongside the sequential pattern-capturing ability of RNNs, leading to improved forecasts of S&P 500 returns. Furthermore, SHAP values provided insight into the model’s interpretability, identifying VIX, FSI, and US EPU as the most influential factors in predicting S&P 500 returns.
These findings emphasize the predictive importance of macroeconomic indicators over TIs in forecasting stock returns. The robustness of our best-performing model was confirmed through time series cross-validation, affirming its generalizability on unseen datasets. This study highlights the critical role of advanced DL frameworks in enhancing stock market prediction accuracy. Accurate market predictions are crucial for stock market stakeholders, as they enable more informed investment decisions, effective risk management, and strategic asset allocation. Enhanced predictive accuracy provides financial analysts, portfolio managers, and institutional investors with insights that can optimize returns, anticipate market shifts, and maintain a competitive edge in the dynamic financial landscape.
Our study has several limitations that present opportunities for future research. While this study focuses on the US stock market, it can be extended to other countries’ markets to enable cross-market comparisons. However, data for country-specific EPUs is often available only at a monthly frequency, which may impact prediction granularity. Future studies could also incorporate additional factors, such as foreign exchange rates, cryptocurrency prices, and other relevant variables, to assess their influence on stock market prediction accuracy. Moreover, indicators like the Twitter-based Economic Uncertainty (TEU) could be examined for their predictive potential. Besides, testing alternative DL models beyond GRU, Highway Networks, DBN, and LeNet may offer further insights into the stock market’s data learning capabilities and predictive performance. However, it should be pointed out that the proposed hybrid models do not address Unobserved Heterogeneity (UH), which refers to variations in data caused by unobserved factors. These unmeasured factors may impact the accuracy and reliability of predictions (Hamed et al., 2022). Thus, future research could explore methods like latent variable models or hybrid approaches combining statistical techniques with DL to better account for UH.

Author Contributions

Conceptualization, S.L.; methodology, S.L. and F.A.; software, S.L. and S.I.; validation, S.L., F.A. and P.F.; formal analysis, S.L., S.I. and F.A.; resources, F.A. and P.F.; data curation, S.L.; writing—original draft preparation, S.L.; writing—review and editing, S.L., F.A. and P.F.; visualization, S.L. and S.I.; supervision, F.A.; funding acquisition, P.F. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Fundação para a Ciência e a Tecnologia (grants UIDB/05064/2020).

Data Availability Statement

The data used in this study is publicly available on https://finance.yahoo.com/ (accessed on 2 July 2023) and has been accessed using the YahooFinance API in Python yfinance. Moreover, the data for EPU and GPR are publicly available on https://www.policyuncertainty.com (accessed on 7 July 2023); and the data for FSI and SSR are publicly available on https://www.financialresearch.gov/ (accessed on 7 July 2023) and https://www.ljkmfa.com/ (accessed on 7 July 2023), respectively.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ADXAverage Directional Index
ANNArtificial Neural Netwrok
ARMAAutoregressive Moving Average
ARIMAAutoregressive Integrated Moving Average
CNNConvolutional Neural Network
DBNDeep Belief Network
DLDeep Learning
EMAExponential Moving Average
EPUEconomic Policy Uncertainty
FSIFinancial Stress Index
GEPUGlobal Economic Policy Uncertainty
GFCGlobal Financial Crisis
GFSIGlobal Financial Stress Index
GPRDDaily Geopolitical Risk
GRUGated Recurrent Unit
LSTMLong Short-Term Memory
MACDMoving Average Convergence Divergence
MAEMean Absolute Error
MAPEMean Absolute Percentage Error
MFIMoney Flow Index
MLMachine Learning
NNsNeural Networks
RBMRestricted Boltzman Machine
RMSERoot Mean Square Error
RNNRecurrent Neural Network
RSIRelative Strength Index
S&PStandard and Poor’s
SMASimple Moving Average
SSRShadow Short Rate
TIsTechnical Indicators
USUnited States
WMAWeighted Moving Average

Notes

1
http://www.policyuncertainty.com, accessed on 7 July 2023.
2
www.ljkmfa.com/visitors/, accessed on 7 July 2023.
3

References

  1. Adeloye, F. C., Olawoyin, O., & Chinaemerem, D. (2024). Economic policy uncertainty and financial markets in the united state. International Journal of Research and Innovation in Social Science, 8(6), 998–1016. [Google Scholar] [CrossRef]
  2. Alqahtani, A., & Martinez, M. (2020). Us economic policy uncertainty and gcc stock market. Asia-Pacific Financial Markets, 27(3), 415–425. [Google Scholar] [CrossRef]
  3. Andrei, D., & Hasler, M. (2015). Investor attention and stock market volatility. The Review of Financial Studies, 28(1), 33–72. [Google Scholar] [CrossRef]
  4. Antonakakis, N., Chatziantoniou, I., & Filis, G. (2017). Oil shocks and stock markets: Dynamic connectedness under the prism of recent geopolitical and economic unrest. International Review of Financial Analysis, 50, 1–26. [Google Scholar] [CrossRef]
  5. Arouri, M., Estay, C., Rault, C., & Roubaud, D. (2016). Economic policy uncertainty and stock markets: Long-run evidence from the us. Finance Research Letters, 18, 136–141. [Google Scholar] [CrossRef]
  6. Aslam, F., Mohti, W., Ali, H., & Ferreira, P. (2023). Interplay of multifractal dynamics between shadow policy rates and stock markets. Heliyon, 9, e18114. [Google Scholar] [CrossRef] [PubMed]
  7. Aye, G. C., Balcilar, M., Demirer, R., & Gupta, R. (2018). Firm-level political risk and asymmetric volatility. The Journal of Economic Asymmetries, 18, e00110. [Google Scholar] [CrossRef]
  8. Baek, Y., & Kim, H. Y. (2018). Modaugnet: A new forecasting framework for stock market index value with an overfitting prevention lstm module and a prediction lstm module. Expert Systems with Applications, 113, 457–480. [Google Scholar] [CrossRef]
  9. Bai, S., Kolter, J. Z., & Koltun, V. (2018). An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. arXiv, arXiv:1803.01271. [Google Scholar]
  10. Baker, S. R., Bloom, N., & Davis, S. J. (2016). Measuring economic policy uncertainty. The Quarterly Journal of Economics, 131(4), 1593–1636. [Google Scholar] [CrossRef]
  11. Balcilar, M., Gupta, R., Kim, W. Y., & Kyei, C. (2019). The role of economic policy uncertainties in predicting stock returns and their volatility for hong kong, malaysia and south korea. International Review of Economics & Finance, 59, 150–163. [Google Scholar]
  12. Bali, T. G., Brown, S. J., & Tang, Y. (2022). Disagreement in economic forecasts and equity returns: Risk or mispricing? China Finance Review International. ahead-of-print. [Google Scholar]
  13. Black, F. (1995). Interest rates as options. The Journal of Finance, 50(5), 1371–1376. [Google Scholar] [CrossRef]
  14. Boesch, G. (2024, February 8). Deep belief networks: A comprehensive overview. Available online: https://viso.ai/deep-learning/deep-belief-networks/ (accessed on 28 October 2024).
  15. Bouras, C., Christou, C., Gupta, R., & Suleman, T. (2019). Geopolitical risks, returns, and volatility in emerging stock markets: Evidence from a panel garch model. Emerging Markets Finance and Trade, 55(8), 1841–1856. [Google Scholar] [CrossRef]
  16. Brogaard, J., & Detzel, A. (2015). The asset-pricing implications of government economic policy uncertainty. Management Science, 61(1), 3–18. [Google Scholar] [CrossRef]
  17. Caldara, D., & Iacoviello, M. (2017). Measuring geopolitical risk. Technical report. Board of Governors of the Federal Reserve System. [Google Scholar]
  18. Caldara, D., & Iacoviello, M. (2022). Measuring geopolitical risk. American Economic Review, 112(4), 1194–1225. [Google Scholar] [CrossRef]
  19. Campisi, G., Muzzioli, S., & Baets, B. D. (2023). A comparison of machine learning methods for predicting the direction of the us stock market on the basis of volatility indices. International Journal of Forecasting, 40, 869–880. [Google Scholar] [CrossRef]
  20. Carrière-Swallow, Y., & Céspedes, L. F. (2013). The impact of uncertainty shocks in emerging economies. Journal of International Economics, 90(2), 316–325. [Google Scholar] [CrossRef]
  21. Celebi, K., & Hönig, M. (2019). The impact of macroeconomic factors on the german stock market: Evidence for the crisis, pre-and post-crisis periods. International Journal of Financial Studies, 7(2), 18. [Google Scholar] [CrossRef]
  22. Chalmers, J., Picard, N., & Eastman, H. (2023, January 18). Pwc’s global investor survey 2022, Harvard Law School Forum on Corporate Governance.
  23. Chiang, T. C. (2019). Economic policy uncertainty, risk and stock returns: Evidence from g7 stock markets. Finance Research Letters, 29, 41–49. [Google Scholar] [CrossRef]
  24. Christou, C., Cunado, J., Gupta, R., & Hassapis, C. (2017). Economic policy uncertainty and stock market returns in pacific rim countries: Evidence based on a bayesian panel var model. Journal of Multinational Financial Management, 40, 92–102. [Google Scholar] [CrossRef]
  25. Chung, H., & Shin, K. S. (2020). Genetic algorithm-optimized multi-channel convolutional neural network for stock market prediction. Neural Computing and Applications, 32, 7897–7914. [Google Scholar] [CrossRef]
  26. Chung, J., Gulcehre, C., Cho, K., & Bengio, Y. (2014). Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv, arXiv:1412.3555. [Google Scholar]
  27. Claus, E., Claus, I., & Krippner, L. (2014). Asset markets and monetary policy shocks at the zero lower bound. Reserve Bank of New Zealand. [Google Scholar]
  28. Claus, E., Claus, I., & Krippner, L. (2018). Asset market responses to conventional and unconventional monetary policy shocks in the united states. Journal of Banking & Finance, 97, 270–282. [Google Scholar]
  29. Das, D., Kannadhasan, M., & Bhattacharyya, M. (2019). Do the emerging stock markets react to international economic policy uncertainty, geopolitical risk and financial stress alike? The North American Journal of Economics and Finance, 48, 1–19. [Google Scholar] [CrossRef]
  30. Das, D., Maitra, D., Dutta, A., & Basu, S. (2022). Financial stress and crude oil implied volatility: New evidence from continuous wavelet transformation framework. Energy Economics, 115, 106388. [Google Scholar] [CrossRef]
  31. Donate, J. P., Cortez, P., Sánchez, G. G., & De Miguel, A. S. (2013). Time series forecasting using a weighted cross-validation evolutionary artificial neural network ensemble. Neurocomputing, 109, 27–32. [Google Scholar] [CrossRef]
  32. Evans, M. D., & Hnatkovska, V. V. (2014). International capital flows, returns and world financial integration. Journal of International Economics, 92(1), 14–33. [Google Scholar] [CrossRef]
  33. Fama, E. F. (1970). Efficient capital markets: A review of theory and empirical work. The Journal of Finance, 25(2), 383–417. [Google Scholar] [CrossRef]
  34. Ftiti, Z., & Hadhri, S. (2019). Can economic policy uncertainty, oil prices, and investor sentiment predict islamic stock returns? A multi-scale perspective. Pacific-Basin Finance Journal, 53, 40–55. [Google Scholar] [CrossRef]
  35. Gajamannage, K., Park, Y., & Jayathilake, D. I. (2023). Real-time forecasting of time series in financial markets using sequentially trained dual-lstms. Expert Systems with Applications, 223, 119879. [Google Scholar] [CrossRef]
  36. Gao, R., Zhang, X., Zhang, H., Zhao, Q., & Wang, Y. (2022). Forecasting the overnight return direction of stock market index combining global market indices: A multiple-branch deep learning approach. Expert Systems with Applications, 194, 116506. [Google Scholar] [CrossRef]
  37. Ghani, M., & Ghani, U. (2023). Economic policy uncertainty and emerging stock market volatility. Asia-Pacific Financial Markets, 1–17. [Google Scholar] [CrossRef]
  38. Godfrey, M. D., Granger, C. W., & Morgenstern, O. (1964). The random-walk hypothesis of stock market behavior. Kyklos, 17(1), 1–30. [Google Scholar] [CrossRef]
  39. Gupta, R., Marfatia, H. A., & Olson, E. (2020). Effect of uncertainty on us stock returns and volatility: Evidence from over eighty years of high-frequency data. Applied Economics Letters, 27(16), 1305–1311. [Google Scholar] [CrossRef]
  40. Gupta, U., Bhattacharjee, V., & Bishnu, P. S. (2022). Stocknet—gru based stock index prediction. Expert Systems with Applications, 207, 117986. [Google Scholar] [CrossRef]
  41. Hajirahimi, Z., & Khashei, M. (2019). Hybrid structures in time series modeling and forecasting: A review. Engineering Applications of Artificial Intelligence, 86, 83–106. [Google Scholar] [CrossRef]
  42. Hamed, M. M., Ali, H., & Abdelal, Q. (2022). Forecasting annual electric power consumption using a random parameters model with heterogeneity in means and variances. Energy, 255, 124510. [Google Scholar] [CrossRef]
  43. Hong, H., Torous, W., & Valkanov, R. (2007). Do industries lead stock markets? Journal of Financial Economics, 83(2), 367–396. [Google Scholar] [CrossRef]
  44. Hu, Z., Kutan, A. M., & Sun, P. W. (2018). Is us economic policy uncertainty priced in china’s a-shares market? evidence from market, industry, and individual stocks. International Review of Financial Analysis, 57, 207–220. [Google Scholar] [CrossRef]
  45. Huang, Y., Ma, F., Bouri, E., & Huang, D. (2023). A comprehensive investigation on the predictive power of economic policy uncertainty from non-us countries for us stock market returns. International Review of Financial Analysis, 87, 102656. [Google Scholar] [CrossRef]
  46. Ilgın, K. (2024). The effect of financial stress on stock markets: An example of mint economies. Marmara Üniversitesi İktisadi ve İdari Bilimler Dergisi, 46(2), 452–467. [Google Scholar] [CrossRef]
  47. Index, OFR Financial Stress. (2023, December 15). Financial stress index. Available online: https://www.financialresearch.gov/financial-stress-index/ (accessed on 15 December 2023).
  48. Ivanyuk, V. (2022). Methodology for constructing an experimental investment strategy formed in crisis conditions. Economies, 10(12), 325. [Google Scholar] [CrossRef]
  49. Jerez, T., & Kristjanpoller, W. (2020). Effects of the validation set on stock returns forecasting. Expert Systems with Applications, 150, 113271. [Google Scholar] [CrossRef]
  50. Jia, Y., Anaissi, A., & Suleiman, B. (2023). Resnls: An improved model for stock price forecasting. Computational Intelligence, 40, e12608. [Google Scholar] [CrossRef]
  51. Kamara, A. F., Chen, E., & Pan, Z. (2022). An ensemble of a boosted hybrid of deep learning models and technical analysis for forecasting stock prices. Information Sciences, 594, 1–19. [Google Scholar] [CrossRef]
  52. Kannadhasan, M., & Das, D. (2020). Do asian emerging stock markets react to international economic policy uncertainty and geopolitical risk alike? A quantile regression approach. Finance Research Letters, 34, 101276. [Google Scholar] [CrossRef]
  53. Krippner, L. (2013). Measuring the stance of monetary policy in zero lower bound environments. Economics Letters, 118(1), 135–138. [Google Scholar] [CrossRef]
  54. Krippner, L. (2015). A comment on wu and xia (2015), and the case for two-factor shadow short rates. [Google Scholar]
  55. LeCun, Y., Bottou, L., Bengio, Y., & Haffner, P. (1998). Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11), 2278–2324. [Google Scholar] [CrossRef]
  56. Li, R., Han, T., & Song, X. (2022). Stock price index forecasting using a multiscale modelling strategy based on frequency components analysis and intelligent optimization. Applied Soft Computing, 124, 109089. [Google Scholar] [CrossRef]
  57. Li, S., Huang, X., Cheng, Z., Zou, W., & Yi, Y. (2023). AE-ACG: A novel deep learning-based method for stock price movement prediction. Finance Research Letters, 58, 104304. [Google Scholar] [CrossRef]
  58. Li, X. -L., Balcilar, M., Gupta, R., & Chang, T. (2016). The causal relationship between economic policy uncertainty and stock returns in china and india: Evidence from a bootstrap rolling window approach. Emerging Markets Finance and Trade, 52(3), 674–689. [Google Scholar] [CrossRef]
  59. Liang, C., Luo, Q., Li, Y., & Huynh, L. D. T. (2023). Global financial stress index and long-term volatility forecast for international stock markets. Journal of International Financial Markets, Institutions and Money, 88, 101825. [Google Scholar] [CrossRef]
  60. Liang, Y., Niu, D., & Hong, W. C. (2019). Short term load forecasting based on feature extraction and improved general regression neural network model. Energy, 166, 653–663. [Google Scholar] [CrossRef]
  61. Liu, H., & Long, Z. (2020). An improved deep learning model for predicting stock market price time series. Digital Signal Processing, 102, 102741. [Google Scholar] [CrossRef]
  62. Ludvigson, S. C., Ma, S., & Ng, S. (2021). Uncertainty and business cycles: Exogenous impulse or endogenous response? American Economic Journal: Macroeconomics, 13(4), 369–410. [Google Scholar] [CrossRef]
  63. Lundberg, S. M., & Lee, S. I. (2017). A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems (Vol. 30, pp. 4765–4774). Curran Associates, Inc. [Google Scholar]
  64. Ma, C., & Yan, S. (2022). Deep learning in the chinese stock market: The role of technical indicators. Finance Research Letters, 49, 103025. [Google Scholar] [CrossRef]
  65. Mahajan, V., Thakan, S., & Malik, A. (2022). Modeling and forecasting the volatility of nifty 50 using garch and rnn models. Economies, 10(5), 102. [Google Scholar] [CrossRef]
  66. Mensi, W., Hammoudeh, S., Reboredo, J. C., & Nguyen, D. K. (2014). Do global factors impact brics stock markets? A quantile regression approach. Emerging Markets Review, 19, 1–17. [Google Scholar] [CrossRef]
  67. Niu, Z., Wang, C., & Zhang, H. (2023). Forecasting stock market volatility with various geopolitical risks categories: New evidence from machine learning models. International Review of Financial Analysis, 89, 102738. [Google Scholar] [CrossRef]
  68. Pastor, L., & Veronesi, P. (2013). Political uncertainty and risk premia. Journal of financial Economics, 110(3), 520–545. [Google Scholar] [CrossRef]
  69. Phan, D. H. B., Sharma, S. S., & Tran, V. T. (2018). Can economic policy uncertainty predict stock returns? Global evidence. Journal of International Financial Markets, Institutions and Money, 55, 134–150. [Google Scholar] [CrossRef]
  70. Pradeepkumar, D., & Ravi, V. (2018). Soft computing hybrids for forex rate prediction: A comprehensive review. Computers & Operations Research, 99, 262–284. [Google Scholar]
  71. Rapach, D. E., Strauss, J. K., & Zhou, G. (2010). Out-of-sample equity premium prediction: Combination forecasts and links to the real economy. The Review of Financial Studies, 23(2), 821–862. [Google Scholar] [CrossRef]
  72. Rezaei, H., Faaljou, H., & Mansourfar, G. (2021). Stock price prediction using deep learning and frequency decomposition. Expert Systems with Applications, 169, 114332. [Google Scholar] [CrossRef]
  73. Salemi Mottaghi, M., & Haghir Chehreghani, M. (2023). A deep comprehensive model for stock price prediction. Journal of Ambient Intelligence and Humanized Computing, 14, 11385–11395. [Google Scholar] [CrossRef]
  74. Salisu, A. A., Isah, K. O., & Cepni, O. (2024). Conventional and unconventional shadow rates and the us state-level stock returns: Evidence from non-stationary heterogeneous panels. The Quarterly Review of Economics and Finance, 97, 101890. [Google Scholar] [CrossRef]
  75. Salisu, A. A., Ogbonna, A. E., Lasisi, L., & Olaniran, A. (2022). Geopolitical risk and stock market volatility in emerging markets: A garch–midas approach. The North American Journal of Economics and Finance, 62, 101755. [Google Scholar] [CrossRef]
  76. Salles, R., Pacitti, E., Bezerra, E., Porto, F., & Ogasawara, E. (2022). Tspred: A framework for nonstationary time series prediction. Neurocomputing, 467, 197–202. [Google Scholar] [CrossRef]
  77. Sarwar, G. (2012). Intertemporal relations between the market volatility index and stock index returns. Applied Financial Economics, 22(11), 899–909. [Google Scholar] [CrossRef]
  78. Segnon, M., Gupta, R., & Wilfling, B. (2023). Forecasting stock market volatility with regime-switching garch-midas: The role of geopolitical risks. International Journal of Forecasting, 40, 29–43. [Google Scholar] [CrossRef]
  79. Selvin, S., Vinayakumar, R., Gopalakrishnan, E. A., Menon, V. K., & Soman, K. P. (2017, September 13–16). Stock price prediction using lstm, rnn and cnn-sliding window model [Conference session]. International Conference on Advances in Computing, Communications and Informatics (ICACCI) (pp. 1643–1647), Udupi, India. [Google Scholar]
  80. Sim, H. S., Kim, H. I., & Ahn, J. J. (2019). Is deep learning for image recognition applicable to stock market prediction? Complexity, 2019, 4324878. [Google Scholar] [CrossRef]
  81. Sonkavde, G., Dharrao, D. S., Bongale, A. M., Deokate, S. T., Doreswamy, D., & Bhat, S. K. (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(3), 94. [Google Scholar] [CrossRef]
  82. Srivastava, R. K., Greff, K., & Schmidhuber, J. (2015). Highway networks. arXiv, arXiv:1505.00387. [Google Scholar]
  83. Stein, T. (2022). Forecasting the equity premium with frequency-decomposed technical indicators. International Journal of Forecasting, 40, 6–28. [Google Scholar] [CrossRef]
  84. Su, Y., & Kuo, C. C. J. (2019). On extended long short-term memory and dependent bidirectional recurrent neural network. Neurocomputing, 356, 151–161. [Google Scholar] [CrossRef]
  85. Tao, Y., Ma, L., Zhang, W., Liu, J., Liu, W., & Du, Q. (2018). Hierarchical attention-based recurrent highway networks for time series prediction. arXiv, arXiv:1806.00685. [Google Scholar]
  86. Tokmakcioglu, K., & Ozcelebi, O. (2020). Impacts of the shadow short rates on the ted spread and stock returns: Empirical evidence from developed markets. Ekonomicky Casopis, 68(3), 269–288. [Google Scholar]
  87. Wang, J., Qian, Y., Ye, Q., & Wang, B. (2017). Image retrieval method based on metric learning for convolutional neural network. IOP Conference Series: Materials Science and Engineering, 231, 012002. [Google Scholar]
  88. World Bank. (2023, August 10). Global economic prospects. Available online: https://www.worldbank.org/en/publication/global-economic-prospects (accessed on 10 August 2024).
  89. Yao, Y., Zhang, Z. Y., & Zhao, Y. (2023). Stock index forecasting based on multivariate empirical mode decomposition and temporal convolutional networks. Applied Soft Computing, 142, 110356. [Google Scholar] [CrossRef]
  90. Zhang, P., & Ci, B. (2020). Deep belief network for gold price forecasting. Resources Policy, 69, 101806. [Google Scholar] [CrossRef]
  91. Zhang, Y., He, J., He, M., & Li, S. (2023). Geopolitical risk and stock market volatility: A global perspective. Finance Research Letters, 53, 103620. [Google Scholar] [CrossRef]
  92. Zhou, F. (2021). Cross-validation research based on rbf-svr model for stock index prediction. Data Science, Finance and Economics, 1(1), 1–20. [Google Scholar] [CrossRef]
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 MDPI and/or the editor(s). MDPI 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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.