Stock price prediction is an important and challenging research topic, which has wide application prospects. Correct forecasting results can provide valuable guidance to investors and thus reduce the ...investment risk. To improve the prediction accuracy and obtain better prediction results, a new stock price prediction model called VML is proposed in this paper. First, the VML model slices the stock price series to obtain multiple window series, then uses variational mode decomposition (VMD) to decompose the window series to obtain multiple subseries. Unlike existing decomposition-based methods, VML decomposes the window series to solve the data leakage problem. Next, model-agnostic meta-learning (MAML) algorithm and long short-term memory (LSTM) network are applied to predict the subseries. A method of dividing the decomposed subseries into multiple tasks is proposed for the purpose of utilizing the MAML algorithm to train the initial parameters of the LSTM with good generalization ability. The initial parameters enable LSTM to fine tune dynamically to fit the latest data distribution of stock price data, which mitigates the impact of concept drift on prediction accuracy. Finally, the VML model merges the prediction results of the subseries to obtain the final predicted stock price. Experimental results on stock datasets of the Chinese Stock Market and the American Stock Market demonstrate that the proposed method improves the accuracy of prediction.
Under the background of big data and Internet finance, quantitative investment is becoming more and more critical, and the prediction of the stock price has become the focus of investors’ concern and ...research. The purpose of this work is to apply neural network and BP algorithm onto the classification and prediction of stock price patterns. The method is to use the BP algorithm neural network for the transaction data of 5 consecutive days as input samples, so there are 20 input layer nodes. The final value of the next day is used as the output sample, and the number of nodes in the output layer is 1. The purpose of network training is to find 20 spline functions. After the training of the BP algorithm neural network, the test data (stock price data for 5 consecutive days) independent of the training data is leveraged as the input of the neural network, and the closing price of the next day is used as the target output of the network. Through the error between the actual output and the target output, the stock price prediction performance of the network model is analyzed. The results have shown that the prediction accuracy of the stock price is 62.12% under the prediction of deep learning fuzzy algorithm and 73.29% under the prediction of the BP algorithm neural network. When the prediction range is between 15 days, the error of 30 prediction values relative to the real value is within ± 10%, accounting for 90% of the total days, and the prediction effect is the best. By analyzing the prediction of the number of hidden layers on the stock price and different ranges, it can be concluded that the prediction of the stock price trend prediction model of BP algorithm neural network is better than that of the deep learning fuzzy algorithm prediction model. This algorithm provides investors with a certain value for stock forecasting, which makes government gain a more active position in macroeconomic regulation and control.
•This paper forecasts the stock price from the perspective of quantitative investment.•The comparative analysis of the errors of different algorithms.•The prediction model of the BP algorithm neural network in this study.
Fuzzy rough theory can describe real-world situations in a mathematically effective and interpretable way, while evolutionary neural networks can be utilized to solve complex problems. Combining them ...with these complementary capabilities may lead to evolutionary fuzzy rough neural network with the interpretability and prediction capability. In this article, we propose modifications to the existing models of fuzzy rough neural network and then develop a powerful evolutionary framework for fuzzy rough neural networks by inheriting the merits of both the aforementioned systems. We first introduce rough neurons and enhance the consequence nodes, and further integrate the interval type-2 fuzzy set into the existing fuzzy rough neural network model. Thus, several modified fuzzy rough neural network models are proposed. While simultaneously considering the objectives of prediction precision and network simplicity , each model is transformed into a multiobjective optimization problem by encoding the structure, membership functions, and the parameters of the network. To solve these optimization problems, distributed parallel multiobjective evolutionary algorithms are proposed. We enhance the optimization processes with several measures including optimizer replacement and parameter adaption. In the distributed parallel environment, the tedious and time-consuming neural network optimization can be alleviated by numerous computational resources, significantly reducing the computational time. Through experimental verification on complex stock time series prediction tasks, the proposed optimization algorithms and the modified fuzzy rough neural network models exhibit significant improvements the existing fuzzy rough neural network and the long short-term memory network.
Nonlinearity and high volatility of financial time series have made it difficult to predict stock price. However, thanks to recent developments in deep learning and methods such as long short-term ...memory (LSTM) and convolutional neural network (CNN) models, significant improvements have been obtained in the analysis of this type of data. Further, empirical mode decomposition (EMD) and complete ensemble empirical mode decomposition (CEEMD) algorithms decomposing time series to different frequency spectra are among the methods that could be effective in analyzing financial time series. Based on these theoretical frameworks, we propose novel hybrid algorithms, i.e., CEEMD-CNN-LSTM and EMD-CNN-LSTM, which could extract deep features and time sequences, which are finally applied to one-step-ahead prediction. The concept of the suggested algorithm is that when combining these models, some collaboration is established between them that could enhance the analytical power of the model. The practical findings confirm this claim and indicate that CNN alongside LSTM and CEEMD or EMD could enhance the prediction accuracy and outperform other counterparts. Further, the suggested algorithm with CEEMD provides better performance compared to EMD.
•We use technical indicators computed from historical prices to predict stock price movements.•The effect of choosing different values of the time frame for computing technical indicators called ...window size is examined.•We investigate how the performance of a machine-learning predictive system depends on a forecast horizon and a window size.•The novel pattern is revealed: the highest prediction performance is reached when the window size is equal to the horizon.•Several performance metrics are used: prediction accuracy, winning rate, return per trade and Sharpe ratio.
The creation of a predictive system that correctly forecasts future changes of a stock price is crucial for investment management and algorithmic trading. The use of technical analysis for financial forecasting has been successfully employed by many researchers. Input window length is a time frame parameter required to be set when calculating many technical indicators. This study explores how the performance of the predictive system depends on a combination of a forecast horizon and an input window length for forecasting variable horizons. Technical indicators are used as input features for machine learning algorithms to forecast future directions of stock price movements. The dataset consists of ten years daily price time series for fifty stocks. The highest prediction performance is observed when the input window length is approximately equal to the forecast horizon. This novel pattern is studied using multiple performance metrics: prediction accuracy, winning rate, return per trade and Sharpe ratio.
Stock price modeling and prediction have been challenging objectives for researchers and speculators because of noisy and non-stationary characteristics of samples. With the growth in deep learning, ...the task of feature learning can be performed more effectively by purposely designed network. In this paper, we propose a novel end-to-end model named multi-filters neural network (MFNN) specifically for feature extraction on financial time series samples and price movement prediction task. Both convolutional and recurrent neurons are integrated to build the multi-filters structure, so that the information from different feature spaces and market views can be obtained. We apply our MFNN for extreme market prediction and signal-based trading simulation tasks on Chinese stock market index CSI 300. Experimental results show that our network outperforms traditional machine learning models, statistical models, and single-structure(convolutional, recurrent, and LSTM) networks in terms of the accuracy, profitability, and stability.
In recent years, the implementation of machine learning applications started to apply in other possible fields, such as economics, especially investment. But, many methods and modeling are used ...without knowing the most suitable one for predicting particular data. This study aims to find the most suitable model for predicting stock prices using statistical learning with RNN, LSTM, and GRU deep learning methods using stock price data for 4 (four) major banks in Indonesia, namely BRI, BNI, BCA, and Mandiri, from 2013 to 2022. The result showed that the ARIMA Box-Jenkins modeling is unsuitable for predicting BRI, BNI, BCA, and Bank Mandiri stock prices. In comparison, GRU presented the best performance in the case of predicting the stock prices of BRI, BNI, BCA, and Bank Mandiri.
The stock market is a financial market where shares of publicly listed corporations are purchased and sold. It is an indicator of a country's economic health, reflecting the performance of companies ...and the overall business environment. The prices of stocks are determined by supply and demand. Investing in the stock market can be risky, but it can offer the potential for significant returns over the long term. Artificial intelligence, including the stock market, has become increasingly prevalent in the financial sector. Long Short-Term Memory (LSTM) is a type of artificial neural network that is often used in time series analysis. It can effectively predict stock market prices by handling data with multiple input and output timesteps. Metaheuristic algorithms, such as Artificial Rabbits Optimization algorithm (ARO), can be used to optimize the hyperparameters of an LSTM model and improve the accuracy of stock market predictions. In this paper, an optimized deep LSTM network with the ARO model (LSTM-ARO) is created to predict stock prices. DJIA index stocks are used as the dataset. LSTM-ARO is compared with one artificial neural network (ANN) model, three different LSTM models, and LSTM optimized by Genetic Algorithm (GA) model. All the models are tested on MSE, MAE, MAPE, and R2 evaluation criteria. The results show that LSTM-ARO overcomes the other models.
Stock price prediction is an important topic for investors and companies. The increasing effect of machine learning methods in every field also applies to stock forecasting. In this study, it is ...aimed to predict the future prices of the stocks of companies in different sectors traded on the Borsa Istanbul (BIST) 30 Index. For the study, the data of two companies selected as examples from each of the holding, white goods, petrochemical, iron and steel, transportation and communication sectors were analyzed. In the study, in addition to the share analysis of the sectors, the price prediction performances of the machine learning algorithm on a sectoral basis were examined. For these tests, XGBoost, Support Vector Machines (SVM), K-nearest neighbors (KNN) and Random Forest (RF) algorithms were used. The obtained results were analyzed with mean absolute error (MAE), mean absolute percent error (MAPE), mean squared error (MSE), and R2 correlation metrics. The best estimations on a sectoral basis were made for companies in the Iron and Steel and Petroleum field. One of the most important innovations in the study is the examination of the effect of current macro changes on the forecasting model. As an example, the effect of the changes in the Central Bank Governors, which took place three times in the 5-year period, on the forecast was investigated. The results showed that the unpredictable effects on the policies after the change of Governors also negatively affected the forecast performance