scieee AI-readable full text Open interactive document viewer

Stock market prediction, COVID-19 pandemic and neural networks: an SCG algorithm application

Goel, Himanshu,Som, Bhupender Kumar

Abstract

EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.

Full text

Goel, Himanshu; Som, Bhupender Kumar Article Stock market prediction, COVID-19 pandemic and neural networks: an SCG algorithm application EconomiA Provided in Cooperation with: The Brazilian Association of Postgraduate Programs in Economics (ANPEC), Rio de Janeiro Suggested Citation: Goel, Himanshu; Som, Bhupender Kumar (2023) : Stock market prediction, COVID-19 pandemic and neural networks: an SCG algorithm application, EconomiA, ISSN 2358-2820, Emerald, Bingley, Vol. 24, Iss. 1, pp. 134-146, https://doi.org/10.1108/ECON-07-2022-0101 This Version is available at: https://hdl.handle.net/10419/329546 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by/4.0/ Stock market prediction, COVID-19 pandemic and neural networks: an SCG algorithm application Himanshu Goel Jagan Institute of Management Studies, Delhi, India, and Bhupender Kumar Som Department of Management, Jagan Institute of Management Studies, Delhi, India Abstract Purpose –This study aims to predict the Indian stock market (Nifty 50) by employing macroeconomic variables as input variables identified from the literature for two sub periods, i.e. the pre-coronavirus disease 2019 (COVID-19) (June 2011–February 2020) and during the COVID-19 (March 2020–June 2021). Design/methodology/approach –Secondary data on macroeconomic variables and Nifty 50 index spanning a period of last ten years starting from 2011 to 2021 have been from various government and regulatory websites. Also, an artificial neural network (ANN) model was trained with the scaled conjugate gradient algorithm for predicting the National Stock exchange’s (NSE) flagship index Nifty 50. Findings –The findings of the study reveal that Scaled Conjugate Gradient (SCG) algorithm achieved 96.99% accuracy in predicting the Indian stock market in the pre-COVID-19 scenario. On the contrary, the proposed ANN model achieved 99.85% accuracy in during the COVID-19 period. The findings of this study have implications for investors, portfolio managers, domestic and foreign institution investors, etc. Originality/value –The novelty of this study lies in the fact that are hardly any studies that forecasts the Indian stock market using artificial neural networks in the pre and during COVID-19 periods. Keywords COVID-19, Neural networks, Machine learning, Stock market, Prediction Paper type Research paper 1. Introduction Stock market prediction has always been a topic of immense interest to various investors, practitioners and researchers. A precise prediction of stocks is a complex process due to the presence of an inherent noisy and highly volatile environment (Ticknor, 2013). There is extensive literature available on the factors affecting the stock market. However, some of the factors that exist in literature are a mix of the macroeconomic variables and global stock market variables. These are the Foreign Exchange rate (Srivastava, 2010;Akter, Rana, & Anik, 2020); Index of Industrial Production (Srivastava, 2010); Consumer Price Index; Long Term Interest Rates (Srivastava, 2010;Mohammed and Rumman, 2018); Gold (Jain & Biswal, 2016;Bouri, Jain, Biswal, & Roubaud, 2017); Crude oil prices (Basher, Haug, & Sadorsky, 2011), Indian Volatility Index (Shahani & Bansal, 2020) and Morgan Stanley Capital International (MSCI) World Index (Srivastava, 2010;Mensi, Hammoudeh, Yoon, & Balcilar, 2016). In addition to the above mentioned factors, this study considers MSCI emerging ECON 24,1 134 © Himanshu Goel and Bhupender Kumar Som. Published in EconomiA. Published by Emerald Publishing Limited. This article is published under the Creative Commons Attribution (CC BY 4.0) licence. Anyone may reproduce, distribute, translate and create derivative works of this article (for both commercial and non-commercial purposes), subject to full attribution to the original publication and authors. The full terms of this licence may be seen at http://creativecommons.org/licences/by/4.0/ legalcode The current issue and full text archive of this journal is available on Emerald Insight at: https://www.emerald.com/insight/1517-7580.htm Received 27 July 2022 Revised 11 November 2022 23 January 2023 Accepted 30 March 2023 EconomiA Vol. 24 No. 1, 2023 pp. 134-146 Emerald Publishing Limited e-ISSN: 2358-2820 p-ISSN: 1517-7580 DOI 10.1108/ECON-07-2022-0101 market index as a new variable for predicting the Indian stock market in pre and during COVID-19 periods. Since the majority of trades takes place in USD. Therefore, we have considered USD/INR exchange rate. If the dollar makes a strong gain, the imports would probably rise which may increase the stock prices of Indian export companies thereby affecting the Indian stock market. Weak index of industrial production (IIP) results in fall in the stock market as the consumer’s demand falls thereby impacting the overall profitability of the firm and vice versa. Change in long-term interest rates (LTINTs) impacts the stock market because the higher the interest rate, less attractive shall be the equity investment and vice versa. Increase in crude oil prices leads to increase in production cost thereby decrease in profit margins and vice versa. When the gold prices rise, the stock market falls and vice versa. Whenever there is huge flow of foreign institutional investors (FIIs), the Indian stock market tends to rise and vice versa. Rise in inflation lowers the demand of the consumers thereby impacting the profitability of the firm and vice versa. Higher value of India volatility index (IVIX) indicates high volatility, i.e. significant change in Nifty and vice versa. Indian stock market may be integrated with the major emerging markets and developed markets in the long run. Therefore, this study takes MSCI emerging market index (EMI) and MSCI World Index for explaining the movement of Indian stock market. The outbreak of coronavirus disease (COVID-19) pandemic –a severe respiratory syndromehas turned into the most contagious event throughout the world history. The first case of novel coronavirus was reported from Wuhan City of China on 31st December 2019. This deadly virus was declared as a global pandemic by the World Health Organization (WHO) on 11th March 2020. The outbreak of this global pandemic had a serious impact on the people’s life as it resulted in imposing of stringent measures such as closing of national borders, sealing of cities and lockdown to contain the spread of the virus. Also, the enforcement of lockdown in countries resulted in the crashing of stock markets, a major drop in oil prices, falls in production and exports, an increase in unemployment levels and the downfall of economic activities. Moreover, due to this pandemic the global stock markets erased about US6$ trillion from 24th February to 28th February 2020 (Ozili & Arun, 2020). The COVID-19 pandemic has majorly hit the economies across the globe including India (Singh, Goel, & Kumari, 2021). Therefore, it is imperative to study the impact of COVID-19 on prediction of stock market thereby guarding the interest of stakeholders. It can be discerned from the survey of previous studies that a wide range of models and techniques have been employed by various scholars for time series forecasting including stock market prediction (Singh, Som, Komalavalli, & Goel, 2021). Broadly, two kinds of model surface from the review, i.e. statistical models and artificial intelligence (AI)-based models. Under the statistical model category, the widely used models are autoregressive integrated moving average (Banerjee, 2014;Babu & Reddy, 2014) and regression methods (Dutta, Bandopadhyay, & Sengupta, 2012). Under AI technique, primarily machine learning algorithms and artificial neural network (ANN) which have been rarely used to forecast time series or the Indian stock market. Therefore, in this study we have employed Scaled conjugate gradient algorithm ANN model to forecast the Indian stock market in pre and during COVID-19 periods. The major advantage of Scaled Conjugate Gradient (SCG) algorithm is that it does not line search iteration wise, unlike other conjugate algorithms. In the line search, the responses of each network of all training inputs are computed for every search which is computationally expensive. Therefore, SCG is much faster and accurate in terms of prediction (Moller, 1993). Our study makes following contribution to the previous or existing literature. First, in terms of the factors that have been considered to predict the Indian stock market. Second, our study compares the stock market forecast accuracy of SCG in pre and during COVID-19 periods as we know that the COVID-19 had a very bad impact on the stock Stock market prediction and COVID-19 135 markets across the globe. Thus, it is imperativetoforecastthestockinduringCOVID-19 and pre-COVID-19 scenarios. It makes our study one of its kind. Therefore, we are motivated to take up this study. This study intends to forecast the Indian stock market using macroeconomic and global stock market variables identified from the literature by employing the SCG Neural Networks algorithm which is faster than the other conjugate algorithms (Moller, 1993). The rest of the study proceeds in the following sections. Section two illustrates the literature review of relevant studies. Section three represents the description of the data and research methodology used for analysis. Section four shows empirical findings and discussion. Section five gives a brief account of the conclusion and future scope of this study. 2. Literature review The literature review is divided into two sections, section 2.1 list down the studies on ANN models, whereas section 2.2 list down the studies on macroeconomic variables. 2.1 Artificial neural network (ANN) models Precise prediction of stocks is an imperative phenomenon as investors thrive for gaining higher profits. Therefore, to fulfill the need of investors, academicians and researchers across the globe have developed several models for predicting the stock market. However, models can be bifurcated into two categories, i.e. statistical models such as the Auto-Regressive Integrated Moving Average (ARIMA), Generalized Autoregressive Conditional Heteroskedasticity (GARCH), etc. and the models based on artificial intelligence such as ANNs. Ariyo, Adewumi, and Ayo (2014) forecasted the New York Stock Exchange (NYSE) and Nigeria Stock Exchange (NSE). Their empirical findings reveal that the ARIMA model is a strong candidate for the short-term stock market prediction than the most popular ANN models. Similarly, Mondal, Shit, and Goswami (2014) also used ARIMA to forecasting the closing price of fifty-six companies from seven sectors listed on the NSE. The authors report that ARIMA achieved 85% accuracy in predicting stock prices of the chosen companies. Therefore, a conclusion can be made that statistical models such as ARIMA have achieved a reasonably good amount of accuracy in predicting stock market time series data especially in the case of short-term prediction. However, no final conclusions can be made without looking at the literature on ANNs that have shown potential in precise prediction of stock prices particularly when the predictions have to be made for the long term. The research on ANN models started in the year 1969 when Minsky and Papert discovered two critical issues with the Artificial Neural Network technique. The first one was the ability of the machine to solve complex problems and the second was the incapability of the computers to run large ANN models efficiently. This brought a slowdown in research on ANNs till the machines got fast processing circuit boards. However, these critical issues were resolved automatically with the advent of technology as fast computers came into the picture. In 2001, Chen et al. showed that Probability Neural Networks (PNNs) have shown great potential in forecasting stock price movement as compared to the GMM (Gaussian mixture model)-kalman filter and the random walk model. Moreover, the results of their study reveal that Probability Neural Network (PNN)-guided trading strategies have obtained higher returns in comparison to strategies suggested by other models. They also recommend that PNNs capability can be increased by including the threshold levels (Chen, Daouk, & Leung, 2001). Three years later, Kim and Lee (2004) proposed a genetically transformed ANN for stock market prediction. Their results reveal that the proposed methodology is significantly better than the models considered for comparison in this study. A few years later, Zhang and Wu (2009) proposed an integrated model consisting of Improved Bee Colony Optimization (IBCO) and Back Propagation Neural Network (BPNN) for the prediction of various stock ECON 24,1 136 indices. They used the IBCO algorithm to adjust the weights of the BPNN network and achieved better results than the traditional BPNN model. One year later, Hadavandi, Shavandi, and Ghanbari (2010) proposed a novel methodology that was based on Genetic Fuzzy System and Self-Organizing Maps (SOM) clustering for predicting stock price. In their study, the authors used the three-stage method to model the proposed structure. In the first stage, they used stepwise regression to choose significant variables then in the second stage they categorized the data into k clusters by SOM method and in the last stage, they fed the clusters into a genetic fuzzy network to build the proposed model and validated the results using real-life datasets. In the end, they concluded that the proposed method outperforms all other models held for comparison. As time progressed and technology moved at a faster pace, the literature on ANN models became wide. Researchers combined the ANN model with a variety of algorithms. For instance, Ghasemiyeh, Moghdani, and Sana (2017) combined the ANN model and various other metaheuristic algorithms for predicting the stock market. The empirical results indicate the swarm optimization algorithm outperformed all other algorithms considered for study. Moreover, the authors deploy various ANN model architectures for improving the predictive ability of proposed ANN technique. Similarly, Alonso, Batres-Estrada, and Moulin (2018) used various ANN models to predict the time series data. The findings reveal that the LSTMs outperformed all other models under study. However, Altman’s ANN model performed good but LSTMs were found to be the best in predicting time series data. Later, Menon et al. employed Convolutional Neural Network (CNN) and various other ANN models for predicting the NSE and NYSE. However, the empirical results reveal that the CNN model outperformed all other techniques under study. Selvamuthu, Kumar, and Mishra (2019) compared three different algorithms, i.e. Levenberg–Marquardt (LM), SCG and Bayesian Regularization (BR) for predicting the stock market. The findings of the study indicate that all three algorithms were able to achieve 99.9% accuracy using tick data. However, the prediction accuracy dropped to 96.2%, 97% and 98.9% for LM, SCG and BR respectively. In the same year, Chopra, Yadav, and Chopra (2019) also employed LM algorithm for predicting the Indian stock market pre and post demonetization. The empirical findings indicated that the ANN model with the LM algorithm was able to produce reasonably good amount of accuracy in the pre and post demonetization scenario. Mehtab, Sen, and Dutta (2020) used a hybrid model for predicting the Nifty 50 index. The findings reveal the proposed model outperformed all other models under study. However, the proposed technique is not appropriate for multivariate analysis. Yadav, Jha, and Sharan (2020) examined the prediction accuracy of the stateful and stateless Long Short-Term Memory (LSTM) model. Their empirical findings revealed that the stateless LSTM model was more accurate than the stateful LSTM model because of higher stability. Moreover, the authors experimented with different hidden layers from one to seven. Their results showed that the model with one hidden layer was able to produce the best forecasting results. With this backdrop, we conclude that ANNs have great potential in predicting the stock market. However, no specific model or algorithm can be best suited for predicting the stock market. Researchers have to adopt trial and error approach for finding the best model and architecture for their data. Anand (2021) predicted the Indian stock market using linear models such as ARIMA and non-linear models such as CNN, LSTM etc. The finding of the study reveal that the CNN model outperformed all other models under study. Moreover, the model trained with one data set was applicable to other markets due to the presence of cointegration factor between them. Similarly, Ajoku, Nwokonkwo, John-Otumu, and Oleji (2021) used ensemble ANN model to predict the stock market. The study reports that the proposed predictive model outperformed four traditional algorithms of ANN model under study. The data was applied through Neurophstudio Stock market prediction and COVID-19 137 software. One year later, Al-Najjar (2022) investigated the relationship between Amman Stock Exchange Index (ASEI) and the other international indices such as S&P 500 (Standard & Poor’s 500), NASDAQ (National Association of Securities Dealers Automated Quotations), Nikkei, DAX (Deutscher Aktienindex), CAC and HSI (Hang Seng Index). The authors employed various tools such as correlation, stepwise regression and ANN model. However, ANN model achieved highest accuracy in finding the relationship between markets. In the same year, Fuchs, Wahl, Zagst, and Zheng (2022) predicted the financial crisis by incorporation micro, macro and financial factors as input variables. The findings of the study reveal that the proposed methodology for selecting the significant variables of the ANN model outperformed the model with set of input factors taken from the literature. Sharma, Hota, Brown, and Handa (2022) introduced a hybrid methodology by combining the Genetic Algorithm (GA) and ANN model. The finding of the study the proposed model was better in forecasting stock indices in comparison to conventional BPNN. 2.2 Literature review on macroeconomic variables Macroeconomic variables are the most significant factors in determining the movement of the stock market. However, apart from macroeconomic variables there are technical indicators as well that impact the stock market. But, this study employs macroeconomic variables for predicting the Indian stock market as none of the studies in the literature have used macroeconomic variables as input variables in ANN model. Mensi et al. (2016) examined the relationship between country risk ratings, macroeconomic factors and GCC countries. Their results revealed that the MSCI global Islamic index and oil prices had a positive impact on the GCC countries. On the contrary, gold prices, the 3-month US Treasury bill rate and the US Treasury bond rate had a negative impact on the GCC countries’stock markets. Later, using Autoregressive Distributed Lag (ARDL) bound test, Vector Error Correction Model (VECM) and variance decomposition, Giri and Joshi (2017) documented that economic growth, inflation and the exchange rate has a positive impact on the stock market. Moreover, short run and long run unidirectional causality was running from economic growth and exchange rate to the Indian stock market. Using correlation and multiple regression tests, Mohammed and Rumman (2018) examined the impact of macroeconomic indicators on the Qatar Stock Exchange Index (QEI) and Al Rayyan Islamic Index (RII). Their results suggested that the interest rate had a negative significant relationship with both the indices. Moreover, gas prices and money supply had a negative relationship with QEI. However, the oil price had a positive relationship and the producer price index had a negative relation with RII. They documented that in the long-run exchange rate had a significant and positive impact on the select stock markets. However, inflation was found to have a negative and insignificant impact on the markets under study. However, in the short, no significant relationship existed between the select variables and stock indices. To search for more macroeconomic variables that impact the stock market, more literature was searched. Using structural Vector Autoregression (VAR) and Impulse Response Function (IRF) Basher et al. (2011) reported that positive shock to crude oil prices led to a decrease in the stock price of emerging markets and exchange rates. Also, an increase in crude oil production tended to decrease oil prices and an increase in emerging market stock prices increases oil prices. However, later on, data was divided into three phases to have better insights. The phase wise results showed cointegration in phase III. Furthermore, the results of the causality test revealed unidirectional causality running from crude oil to the Indian stock market. On the contrary, Nath Sahu, Bandopadhyay, and Mondal (2014) documented the existence of significant long-run cointegration and causality between the oil and Indian stock market. However, no short run causality was found between the aforesaid variables. ECON 24,1 138 Jain and Biswal (2016) examined the linkages among gold, crude oil and Sensex. Their results indicated that the decrease in the commodities, i.e. gold and crude oil led to the depreciation of the Indian rupee (INR) and Sensex. The results of the symmetric causality test reflect that the one-way causality was running from gold price to exchange rate and exchange rate to Sensex. Furthermore, the asymmetric causality test showed unidirectional causality running between crude oil and INR and crude oil and Sensex and bidirectional causality between gold and Sensex. Similarly, Singh and Sharma (2018a,b) also examined the relationship between gold, crude oil, exchange rate and the stock market in the pre, post and during crisis periods. They found that long-run cointegration exists between GODS (Gold, Oil, Dollar, and Stock Market) in the pre and during crisis periods. Moreover, their results of VECM and Granger causality showed evidence of long-run and short-run causality respectively in the pre-crisis period. Using ARDL bound test and the Kyrtsou-Labys symmetric and asymmetric causality test Bouri et al. (2017) reported the presence of cointegration between the selected implied volatilities. Also, significant one-way causality was running from gold and oil implied volatilities to the implied volatility of the Indian stock market. On the contrary, vice versa was not true. Later, Shahani and Bansal (2020) concluded that India VIX can act as a safe haven or hedge against Nifty while gold fails to do so. However, their results provided evidence that gold and India VIX may act as a safe haven against different instruments. Furthermore, India VIX and gold may act as a hedge against crude oil and Nifty respectively. Using Johansen’s cointegration, Akter et al. (2020) reported that the macroeconomic variables namely the Exchange rate, Index of Industrial production and reserve have significant cointegration with the Dhaka Stock Exchange (DSE). However, they did not find any significant long-run relationship between the chosen macroeconomic variables and the DSE. They reported that the sampled stock indices lead to inflation and industrial production in all four countries. On the contrary, no significant lead lag relationship was found between the interest rate and stock indices. However, interest rates and money supply led to the stock indices of Germany, France and Portugal. Their findings indicated that the exchange rate had a positive impact on the stock market, whereas the consumer price index had a negative impact. However, oil prices were found to be insignificant. Later, Baranidharan and Dhivya (2020) reported that the macroeconomic indicators had a positive impact on the BSE (Bombay stock index) Sensex in the long run. However, no significant relationship was found in the short run. Therefore, they quote Investor’s community of manufacturing sectors are required to consider macroeconomic indicators before making investments. It is evident from the literature that the majority of studies have used technical indicators for predicting the stock market. Moreover, a few studies have employed the ANN model to predict the Indian stock market. Therefore, the study tends to fill this research gap by forecasting the Indian stock market using ANN by employing macroeconomic indicators as input variables. 3. Data and research methodology 3.1 Data Data has been collected from various secondary sources. Monthly data spanning a period of last ten years starting from July 2011 to June 2021 has been considered for the empirical investigation. Data on Nifty 50 has been downloaded from the NSE official website; data on inflation, foreign institutional investors and exchange rate has been retrieved from the official website of the Reserve Bank of India. Data on industrial production and the interest rate has been retrieved from Organization for Economic Co-operation and Development (OECD) official website and data on the MSCI World Index and MSCI emerging market index has Stock market prediction and COVID-19 139 been obtained from the official website of MSCI. Data on crude oil and gold have been retrieved from the official website of Multi Commodity Exchange (MCX). Artificial Neural Network (ANN) is capable of modeling a predictive model for the dependent variable based on the function of predictor or explanatory variables (Singh, Som et al., 2021). NSE’s Nifty 50 index is considered as the dependent variable and the proxy for the stock market, whereas IIP, Consumer Price Index (CPI), MSCI world index, FIIs, FX, LTINT, gold, crude oil and India VIX (IVIX) and MSCI emerging market index which has been as new variable are the explanatory variables in this study. These are the most common macroeconomic and world stock market factors impacting the stock market that have been identified from the literature (see Table 1). 3.2 Scaled conjugate gradient algorithm (SCG) In the backpropagation algorithm, the weights are adjusted in the steepest descent direction as the performance rapidly decreases in this direction. But the rapid reduction in performance does not necessarily imply the fastest convergence always. Therefore, unlike the backpropagation algorithm, the search is done along with the conjugate in the majority of the conjugate gradient algorithms thereby producing faster convergence than the steepest descent direction. Moreover, most of the algorithms employ the learning rate to modify the step size. On the contrary, conjugate algorithms modify the step size in each iteration (Selvamuthu et al., 2019). A Scaled Conjugate Algorithm (SCG) is a type of conjugate algorithm which is supervised fully automated algorithm designed by Moller (1993). It does not require prior user dependent critical parameters. This algorithm can be used on any data set if the weights, input and activation function have a derivative function. The biggest advantage of SCG is that it does not line search iteration wise, unlike other conjugate algorithms. In the line search, the responses of each network of all training inputs are computed for every search which is computationally expensive. “For each iteration there is one call or Eðe wÞand two calls of Eðe wÞ which gives a calculation complexity per iteration of O(7N 2 ). When the algorithm is implemented, this complexity can be reduced to O(6N 2 ) because the calculation of Eðe wÞcan be built into one of the calculations of Eðe wÞ. In comparison with BP, SCG involves twice as much calculation work per iteration since BP has a calculation complexity of O(3N 2 ) per iteration. Where, we assume that a global error function Eðe wÞdepending on all the weights and biases S.No. Variable Authors 1 Foreign Exchange rate (FX) Srivastava (2010),Akter et al. (2020) 2 Index of Industrial Production (IIP) Srivastava (2010),Camilleri et al. (2019) 3 Consumer Price Index (CPI) Megaravalli et al. (2018),Areli Bermudez Delgado et al. (2018) 4 Long-Term Interest Rates (LTINT) Srivastava (2010),Mohammed and Rumman (2018) 5 Morgan Stanley Capital International World Index (MSCI-WI) Srivastava (2010),Mensi et al. (2016) 6 Crude Oil Basher et al. (2011),Ghosh and Kanjilal (2016),Nath Sahu et al. (2014),Jain and Biswal (2016),Bouri et al. (2017) 7 Gold Jain and Biswal (2016),Bouri et al. (2017),Shahani and Bansal (2020),Singh and Sharma (2018a,b) 8 India VIX Shahani and Bansal (2020) 9 Foreign Institutional Investors (FIIs) Baranidharan and Dhivya (2020) 10 Morgan Stanley Capital International Emerging Market Index (MSCI –EMI) New Variable Added Source(s): Authors’own compilation Table 1. Variables identified from the literature ECON 24,1 140 is attached to the neural network. Eðe wÞcould be the standard least square function or any other appropriate error function. Eðe wÞcan be calculated with one forward pass and the gradient Eðe wÞwith one forward and one backward pass and N represents the number of weights and biases”(Moller, 1993). Therefore, to avoid the time-consuming line search scaled conjugate algorithm was employed. 4. Empirical findings Forecasting is done for pre-COVID-19 (June 2011 –February 2020) and during COVID-19 (March 2020 –June 2021) for the Indian stock market. In the end, a comparison has been done to check which period gives you the most appropriate accuracy. Figure 1 represents the architecture of the ANN model. It is visible that the ANN model consists of 3 consecutive layers Input, Hidden and Output layer. The input layer has ten nodes which imply there are ten input variables or predictor variables (macroeconomic variables identified from the literature). The hidden layer comprises ten nodes which are chosen at random. The output layer comprises one node which is the target or dependent variable, NSE’s flagship index Nifty 50. The architecture remains the same for all sub periods. 4.1 Performance plots The performance plot helps to identify the total number of epochs or iterations at which the performance function, i.e. mean squared error (MSE) becomes least or stops changing. The number of epochs does not represent the time required to train the network. The blue line represents the training dataset which is approximately 70% of the total dataset, green line represents the validation dataset which 15% of the total data. Similarly, red line represents the test data which is the rest 15%. Figure 2 reveals the results of performance plots of SCG algorithm in both pre and during COVID-19 periods. Scaled conjugate gradient algorithm gives best results in 9 epochs in the pre-COVID-19 period. On the contrary, SCG algorithm provides provide best results in 17 epochs in the during COVID-19 period. However, epochs don’t represent the time taken by the model for training, testing and validation purpose. 4.2 Regression plots The network performance is validated using the regression plots shown in Figure 3. The regression plots show the accuracy percentage of training, validation, testing and overall datasets. The performance of LM was measured by one performance measure, i.e. Mean Squared Error (MSE). SCG algorithm shows 96.99% accuracy in overall dataset, 96.32% accuracy in test dataset, 97.61% accuracy in validation dataset and 97.16% accuracy in Figure 1. Architecture of neural network model Stock market prediction and COVID-19 141