{'fraction_non_alphanumeric': 0.025686977299880526, 'fraction_numerical': 0.0, 'mean_word_length': 5.273408239700374, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
A Neuro-Fuzzy Expert System Trained by Particle Swarm Optimization for Stock Price Prediction

In today’s competitive markets, prediction of financial variables has become a critical issue. Especially in stock market analysis where a wrong prediction may result in a big loss in terms of time and money, having a robust prediction is a crucial issue. To model the chaotic, noisy, and evolving behavior of stock market data, new powerful methods should be developed. Soft Computing methods have shown a great confidence in such environments where there are many uncertain factors. Also it has been observed through many experiments that the hybridization of different soft computing techniques such as fuzzy logic, neural networks, and meta-heuristics usually results in better results than simply using one method. This chapter presents an adaptive neuro-fuzzy inference system (ANFIS), trained by the particle swarm optimization (PSO) algorithm for stock price prediction. Instead of previous works that have emphasized on gradient base or least square (LS) methods for training the neural network, four different strategies of PSO are implemented: gbest, lbest-a, lbest-b, and Euclidean. In the proposed fuzzy rule based system some technical and fundamental indexes are applied as input variables. In order to generate membership functions (MFs), a robust noise rejection clustering algorithm is developed. The proposed neuro-fuzzy model is applied for an automotive part-making manufactory in an Asia stock market. The results show the superiority of the proposed model in comparison with the available models in terms of error minimization, robustness, and flexibility.