^{1}

^{*}

^{1}

The wavelet neural network has been widely applied in the forecasting field. However, due to its disadvantages of local minimal and slow convergence speed, its forecasting precision is limited in some extent. A forecasting model for stock index future price based on wavelet analysis and the improved PSO-based neural network would be put forward in this essay using the improved PSO-based algorithm to optimize the neural network. By using the Shanghai and Shenzhen 300 stock index futures’ statistics as the samples, the sym 8 wavelet transformation techniques to denoise the statistics and then use the denoised stats to train and test the improved PSO-based neural networks. The study results show that t he model in this essay could efficiently improve the forecasting quality of the stock index futures price.

The stock index futures mean a kind of future with the stock index as the buying-and-selling basis. It’s of great significance to carry out the forecasting for the stock index futures. It could not only avoid the systematic risk of the stock markets, but could also promote the rational fluctuation of the stock price [

As a non-linear dynamic system, the stock market possesses high complexity. Currently there are some effective methods for the forecasting of it, such as the neural networks [

The neural network is based on the minimal sample point error in the training process, and therefore the learning phenomena are inevitable and the restriction of the model’s generalization ability would appear, which both greatly affect the forecasting quality [

Based on the problems appeared in the previous studies, this essay puts forward a forecasting model for stock index futures using the wavelet analysis and the improved PSO-based neural network. Firstly, we use the sym 8 wavelet transformation to denoise the chosen statistics, then optimize the neural network using the improved PSO-based neural network and use the denoised statistics to train and test. The study result shows that this model could effectively improve the forecasting results of the stock index futures, which proves the efficiency and practicality of this method.

The article is organized as follows. The first chapter is the introduction, which introduces the research background, the research situation at home and abroad, and puts forward the research contents and structure arrangement of the paper. The second chapter is the theoretical basis and model framework of the paper. The intelligent algorithm adopted in this paper is introduced in detail, and the algorithm is improved. The third chapter mainly describes the process of data analysis, the result of the model solution and the discussion of the results. First, the sym 8 wavelet transform is applied to denoise the selected data. The improved PSO neural network is used to optimize the neural network, and then trained and tested by noise reduction data pairs. The results show that the model proposed in this paper can effectively improve the prediction effect of stock index futures, and also shows the effectiveness and feasibility of the method. The fourth chapter is the summary of the paper and the prospect of the next step.

The wavelet analysis is an effective method of joint time-frequency analysis. Different wavelets functions have different denoise effect on the financial statistics. For example Yang (2012) put forward the denoising requirements of the symN wavelet for the futures prices’ time sequence in the orthogonal, the compact support and symmetry aspects, and repeatedly proved that the sym 8 has the best denoise effect [

The PSO algorithm is a swarm intelligence based algorithm, using the swarm intelligent directed searching appeared in the swarm particles’ cooperation and competition [

The basic formula for the PSO’s particle optimization is as below [

v i d t + 1 = w v i d t + c 1 × r 1 × ( p i d t − x i d t ) + c 2 × r 2 ( p g d t − x i d t )

x i d t + 1 = x i d t + v i d t + 1

where, d = 1, 2, …, n, I = 1, 2, …, m, n stands for the dimensions of the searching space, m stands for the number of population particles, w stands for the inertia factor; r_{1} and r_{2} stands for the random numbers obeying the equidistribution in the interval of (0, 1), c_{1} and c_{2} stands for the learning factor, t stands for the iterations, x i n stands for the space position of the particle i in the t-th iteration, v i n stands for the speed of the particle i in the t-th iteration, p i t and p g t stands for the individual and global extreme value appeared in the particles’ searching from the start to the current iteration.

In order to avoid the low searching precision and low iteration efficiency, we improve the PSO-based algorithm. We add in the mutation operator, which means after each update, if the random possibility is greater than 0.85, we will randomly initialize the population, and otherwise we don’t initialize it. The mutation operation widen the decreasing population search space in the iterations, making the particles able to jump out of the previous search into the optimized position, ensuring the variety of the population.

Meanwhile, we improved the PSO’s inertia weight factor ω ( k ) in order to better balance the algorithm’s searching ability, because this factor could influence the particles’ speed and could attribute to either global search or local search based on whether it’s greater or smaller.

ω ( k ) = ω max − ( ω max − ω min ) × k k max

where, ω max stands for the maximum of the inertia weight, is generally set as 0.8 - 0.9; ω min stands for the minimum of the inertia weight, is generally set as 0.3 - 0.4; k stands for the iterations; k min stands for the maximum iterations.

This essay would choose the three-level BP neural network, where the input units respectively correspond to the stock indexes and forecasted stock indexes, the hidden-level neural units use the LSTF (Logarithmic sigmoid transfer function), and the neural units in the output-level use the pure linear transform function. The function for the evaluation of network training’s average errors is as below:

S S E = 1 2 p ∑ j = 1 p ∑ i = 1 n ( t i − o i ) 2

where, o stands for the output of the network forecasting result, t stands for the expected network output result, SSE stands for the total neural network learning errors after the unification, n stands for the unit number, p stands for the sample number.

We would also combine the improved PSO and the BP algorithms based on the BP neural network model, using the improved PSO to search for the network’s initial weight and threshold, then we use the BP neural network algorithm to train the improved PSO algorithm to find the optimized initial weight and threshold in order to find those of the model and eventually form the final model. This improved PSO-based neural network could overcome the shortcomings of low learning stability, low reliability and tendency of falling into local minimal problem, and also it provides better approaching quality and faster convergence speed.

The Shanghai and Shenzhen 300 Stocks Index is basically used for China’s stock index futures forecasting, its current month contract would be the most typical study object [^{th}, 2015’s closing prices as the study data, and we select 1000 copies as time order sequence. Then we construct a 6 × 1000 matrix, with every line of 6 statistics as a group, making the first 900 groups of statistics as the model training samples, and the last 100 groups as the testing samples. Because of the different dimensions of the indexes, the removal of dimensions of the statistics is firstly done in order to compare the data, and also we must formalize the evaluation indexes and transform the range to get the result matrix X = ( x i j ) m × n , which is

x i j = r i j − min i { r i j } max i { r i j } − min i { r i j } , i = 1 , 2 , ... m ; j = 1 , 2 , ⋅ ⋅ ⋅ , n

where, r i j stands for the corresponding indexes’ value, x i j stands for the value of no dimension and x i j ∈ [ 0 , 1 ] , i = 1 , 2 , ⋅ ⋅ ⋅ , m ; j = 1 , 2 , ⋅ ⋅ ⋅ , n .

We use the MATLAB programing to realize our goal in this section. First we use the neural network to roughly forecast the statistics after we unify all the data, with the BP neural network as the input with 5 input level nodes, 4 hidden level nodes, 1 output level node, 0.001 object error rate, 200 training steps. Use the pre-settlement price, the pre-closing price, the opening price, the highest price of a day as well as the lowest input price of a day as input training set and the closing price as the output test set. Then we use the sym8 wavelet as the statistics processing tools and the wavelet transformation to denoise the statistics. At last, we use the ordinary PSO-based neural network and the improved PSO-based neural network to respectively forecast the statistics and then compare the results.

We use the neural networks, the wavelet neural networks, the wavelet PSO-based neural network, and the wavelet improved PSO-based neural network to respectively make a forecast for statistics. We could see the results (portion) and comparison of the forecasting mean square error are in

As we could see in

Actual value | BP | W-BP | W-PSO-BP | W-improved PSO-BP | ||||
---|---|---|---|---|---|---|---|---|

Forecasting | Errors | Forecasting | Errors | Forecasting | Errors | Forecasting | Errors | |

2464.2 | 2517.99 | 2.18% | 2504.53 | 1.64% | 2477.95 | 0.56% | 2487.37 | 0.94% |

2504.4 | 2549.45 | 1.80% | 2497.90 | 0.26% | 2471.06 | 1.33% | 2480.05 | 0.97% |

2509 | 2531.36 | 0.89% | 2489.75 | 0.77% | 2463.80 | 1.80% | 2472.13 | 1.47% |

2487.2 | 2496.36 | 0.37% | 2479.96 | 0.29% | 2455.93 | 1.26% | 2463.45 | 0.95% |

2439.8 | 2500.78 | 2.50% | 2470.99 | 1.28% | 2448.34 | 0.35% | 2455.11 | 0.63% |

2476 | 2504.11 | 1.14% | 2463.40 | 0.51% | 2441.76 | 1.38% | 2447.49 | 1.15% |

2469.2 | 2531.42 | 2.52% | 2457.71 | 0.47% | 2436.40 | 1.33% | 2440.83 | 1.15% |

2498.2 | 2512.36 | 0.57% | 2458.31 | 1.60% | 2431.68 | 2.66% | 2486.53 | 0.50% |

2470.2 | 2488.21 | 0.73% | 2455.62 | 0.59% | 2424.24 | 1.86% | 2430.21 | 1.62% |

2427.4 | 2498.52 | 2.93% | 2436.99 | 0.40% | 2418.42 | 0.37% | 2418.51 | 0.37% |

2487.4 | 2455.26 | 1.29% | 2413.59 | 2.97% | 2399.01 | 3.55% | 2461.31 | 1.04% |

BP | W-BP | W-PSO-BP | W-improved PSO-BP | |
---|---|---|---|---|

Mean Square Error | 1919.36 | 1871.92 | 1960.08 | 1607.47 |

has better forecasting results than other methods and closer to the actual value. We could also see that the improved PSO-based neural network has the least forecasting mean square errors in

We put forward a forecasting model for stock index future price based on wavelet analysis and the improved PSO-based neural network, which could not only effectively denoise the statistics of the indexes, and could also improve the learning ability, avoid local optimization and faster the convergence speed of the BP neural networks using the improved PSO-based algorithm. Last but not the least, our experiments show that the model in this essay could well lower the error rate of the forecasting.

The main contributions of this paper are the model proposed in this paper that can effectively improve the prediction effect of stock index futures. In this study, the technique of wavelet analysis is applied to the original data. The technology of wavelet decomposition and reconstruction is used to extract the stock price trend hidden in the noise. In this paper, the PSO algorithm is optimized and PSO is used to optimize the neural network. The innovation of this paper is the application of the noise reduction financial data, and finally makes the price prediction.

In this paper, a prediction model of stock index futures based on wavelet analysis and improved PSO optimization neural network is greatly improved for the prediction of stock index futures. Compared with the existing models, the network model proposed in this paper has higher prediction accuracy, but the prediction stability and convergence speed are relatively poor, which is also a problem that we need to further solve in this research. Due to the time and length limitation of the thesis, there are still some aspects to be improved.

1) Although this paper aiming at shortcomings of the existing prediction model proposes a new model, the performance of BP neural network was improved, and the prediction accuracy was also improved, but the improved algorithm because some parameters are difficult to determine, there are poor stability problems in future research in this optimization problem.

2) Financial data types are complicated, this paper only selects the Shanghai and Shenzhen 300 stock index futures contract month from the date of listing to November 17, 2015 closing price time series as the research data, the research data is relatively small, but also does not take into account the problems such as periodic data, in the future research should consider the problem of periodic financial data which can be used at the same time, technical indicators to predict more optimized considering the story.

The authors acknowledge the financial support of this research by Natural Science Foundation of China under Grant 61201458.

Wang, W.B. and Nie, H. (2018) Comparative Study on Forecasting Model for Stock Index Future Price. Modern Economy, 9, 750-757. https://doi.org/10.4236/me.2018.94049