| Literature DB >> 29420584 |
Hongjun Guan1, Zongli Dai1, Aiwu Zhao2, Jie He1.
Abstract
In this paper, we propose a hybrid method to forecast the stock prices called High-order-fuzzy-fluctuation-Trends-based Back Propagation(HTBP)Neural Network model. First, we compare each value of the historical training data with the previous day's value to obtain a fluctuation trend time series (FTTS). On this basis, the FTTS blur into fuzzy time series (FFTS) based on the fluctuation of the increasing, equality, decreasing amplitude and direction. Since the relationship between FFTS and future wave trends is nonlinear, the HTBP neural network algorithm is used to find the mapping rules in the form of self-learning. Finally, the results of the algorithm output are used to predict future fluctuations. The proposed model provides some innovative features:(1)It combines fuzzy set theory and neural network algorithm to avoid overfitting problems existed in traditional models. (2)BP neural network algorithm can intelligently explore the internal rules of the actual existence of sequential data, without the need to analyze the influence factors of specific rules and the path of action. (3)The hybrid modal can reasonably remove noises from the internal rules by proper fuzzy treatment. This paper takes the TAIEX data set of Taiwan stock exchange as an example, and compares and analyzes the prediction performance of the model. The experimental results show that this method can predict the stock market in a very simple way. At the same time, we use this method to predict the Shanghai stock exchange composite index, and further verify the effectiveness and universality of the method.Entities:
Mesh:
Year: 2018 PMID: 29420584 PMCID: PMC5805297 DOI: 10.1371/journal.pone.0192366
Source DB: PubMed Journal: PLoS One ISSN: 1932-6203 Impact factor: 3.240
Fig 1BP neural network structure.
Fig 2Flowchart of our proposed forecasting model.
Forecasting results from 1 November1999 to 30 December 1999.
| Date (MM/DD/YYYY) | Actual | Forecast | (Forecast–Actual)2 | Date (MM/DD/YYYY) | Actual | Forecast | (Forecast–Actual)2 |
|---|---|---|---|---|---|---|---|
| 11/1/1999 | 7,814.89 | 7869.81 | 3015.71 | 12/1/1999 | 7,766.20 | 7658.73 | 11550.01 |
| 11/2/1999 | 7,721.59 | 7767.25 | 2085.04 | 12/2/1999 | 7,806.26 | 7797.15 | 83.04 |
| 11/3/1999 | 7,580.09 | 7737.17 | 24674.73 | 12/3/1999 | 7,933.17 | 7926.84 | 40.01 |
| 11/4/1999 | 7,469.23 | 7505.08 | 1285.54 | 12/4/1999 | 7,964.49 | 8041.65 | 5952.94 |
| 11/5/1999 | 7,488.26 | 7405.53 | 6844.71 | 12/6/1999 | 7,894.46 | 8061.73 | 27978.96 |
| 11/6/1999 | 7,376.56 | 7405.23 | 821.78 | 12/7/1999 | 7,827.05 | 7907.67 | 6499.29 |
| 11/8/1999 | 7,401.49 | 7400.98 | 0.26 | 12/8/1999 | 7,811.02 | 7761.22 | 2480.17 |
| 11/9/1999 | 7,362.69 | 7464.39 | 10343.58 | 12/9/1999 | 7,738.84 | 7719.02 | 393.01 |
| 11/10/1999 | 7,401.81 | 7471.79 | 4896.83 | 12/10/1999 | 7,733.77 | 7750.31 | 273.52 |
| 11/11/1999 | 7,532.22 | 7391.31 | 19854.75 | 12/13/1999 | 7,883.61 | 7843.78 | 1586.65 |
| 11/15/1999 | 7,545.03 | 7581.21 | 1309.10 | 12/14/1999 | 7,850.14 | 7919.10 | 4755.54 |
| 11/16/1999 | 7,606.20 | 7535.24 | 5034.73 | 12/15/1999 | 7,859.89 | 7744.21 | 13382.87 |
| 11/17/1999 | 7,645.78 | 7583.48 | 3880.77 | 12/16/1999 | 7,739.76 | 7832.19 | 8542.56 |
| 11/18/1999 | 7,718.06 | 7665.95 | 2715.32 | 12/17/1999 | 7,723.22 | 7698.15 | 628.71 |
| 11/19/1999 | 7,770.81 | 7711.19 | 3554.60 | 12/18/1999 | 7,797.87 | 7639.44 | 25101.33 |
| 11/20/1999 | 7,900.34 | 7833.44 | 4475.04 | 12/20/1999 | 7,782.94 | 7801.32 | 337.75 |
| 11/22/1999 | 8,052.31 | 7924.00 | 16463.38 | 12/21/1999 | 7,934.26 | 7796.21 | 19056.81 |
| 11/23/1999 | 8,046.19 | 8083.08 | 1360.55 | 12/22/1999 | 8,002.76 | 7932.06 | 4999.04 |
| 11/24/1999 | 7,921.85 | 8037.94 | 13476.54 | 12/23/1999 | 8,083.49 | 7998.60 | 7205.82 |
| 11/25/1999 | 7,904.53 | 7935.50 | 992.02 | 12/24/1999 | 8,219.45 | 8099.29 | 14439.44 |
| 11/26/1999 | 7,595.44 | 7833.93 | 56879.02 | 12/27/1999 | 8,415.07 | 8252.86 | 26313.12 |
| 11/29/1999 | 7,823.90 | 7632.06 | 36802.23 | 12/28/1999 | 8,448.84 | 8452.34 | 12.24 |
| 11/30/1999 | 7,720.87 | 7858.64 | 18981.79 | Root Mean Square Error(RMSE) | 96.77 | ||
Fig 3Forecasting results from 1 November1999 to 30 December 1999.
Based on the method presented in this paper, the data of 1999 is predicted.
Comparison of forecasting errors for different nth-orders.
| 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Average | |
|---|---|---|---|---|---|---|---|---|---|---|
| RMSE | 99.19 | 98.25 | 95.50 | 98.17 | 94.71 | 98.95 | 99.57 | 96.77 | 96.88 | 97.55 |
Fig 4The stock market fluctuation for TAIEX test dataset (1997–2005).
Based on the method presented in this paper, the results of Taiwan stock market data from 1999 to 2005 are predicted.
RMSEs of forecast errors for TAIEX 1997 to 2005.
| Year | 1997 | 1998 | 1999 | 2000 | 2001 | 2002 | 2003 | 2004 | 2005 |
|---|---|---|---|---|---|---|---|---|---|
| RMSE | 142.99 | 112.51 | 96.77 | 126.85 | 120.12 | 66.39 | 54.87 | 58.10 | 54.7 |
A comparison of RMSEs for different methods for forecasting the TAIEX1999.
| Methods | RMSE | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| I | II | III | IV | V | VI | VII | VIII | IX | ||
| 1997 | 1998 | 1999 | 2000 | 2001 | 2002 | 2003 | 2004 | 2005 | ||
| A | Chen and Chang’s Method[ | N | N | 131.1 | 115.08 | 73.06 | 66.36 | 60.48 | N | |
| B | Chen and Chen’s Method[ | N | N | 129.87 | 123.12 | 71.01 | 65.14 | 61.94 | N | |
| C | Chen et al.’s Method[ | N | N | 131.25 | 113.62 | 65.77 | 52.23 | 56.16 | N | |
| D | Cheng et al.’s method[ | N | N | 125.62 | 113.04 | 62.94 | 51.46 | 54.24 | N | |
| E | Chen and Kao’s method[ | N | N | 125.34 | 114.57 | 76.86 | 54.29 | 58.17 | N | |
| F | Guan S’s Method[ | N | N | 127.47 | 114.19 | 61.92 | 53.05 | 53.07 | N | |
| G | Jia’s method[ | 143.60 | 115.34 | 125.70 | 115.91 | 70.43 | 54.26 | 57.24 | 54.68 | |
| H | Guan H J’s method[ | 141.89 | 119.85 | 128.62 | 125.64 | 66.29 | 53.2 | 56.11 | 55.83 | |
| I | The proposed | 142.99 | 112.51 | 126.85 | 120.12 | 66.39 | 54.87 | 58.10 | 54.7 | |
RMSEs of forecast errors for SHSECI from 2007 to 2015.
| Year | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| 2007 | 2008 | 2009 | 2010 | 2011 | 2012 | 2013 | 2014 | 2015 | |
| RMSE | 123.89 | 57.44 | 48.92 | 47.34 | 28.37 | 25.84 | 21.43 | 50.59 | 59.69 |
The sorting of different prediction methods based on RMSE for forecasting the TAIEX1999.
| A | B | C | D | E | F | G | H | I | |
|---|---|---|---|---|---|---|---|---|---|
| III | 123.64(9) | 119.32(8) | 102.34(7) | 100.74(5) | 87.63(1) | 101.11(6) | 99.12(4) | 99.03(2) | 96.77(3) |
| IV | 131.1(8) | 129.87(7) | 131.25(9) | 125.62(2) | 125.34(1) | 127.47(5) | 125.7(3) | 128.62(6) | 126.85(4) |
| V | 115.08(5) | 123.12(8) | 113.62(2) | 113.04(1) | 114.57(4) | 114.19(3) | 115.91(6) | 125.64(9) | 120.12(7) |
| VI | 73.06(8) | 71.01(7) | 65.77(3) | 62.94(2) | 76.86(9) | 61.92(1) | 70.43(6) | 66.29(4) | 66.39(5) |
| VII | 66.36(9) | 65.14(8) | 52.23(2) | 51.46(1) | 54.29(6) | 53.05(3) | 54.26(5) | 53.2(4) | 54.87(7) |
| VIII | 60.48(8) | 61.94(9) | 56.16(4) | 54.24(2) | 58.17(7) | 53.07(1) | 57.24(5) | 56.11(3) | 58.1(6) |
| average rank | 7.83 | 7.83 | 4.5 | 2.17 | 4.67 | 3.17 | 4.83 | 4.67 | 5.33 |