| Literature DB >> 24782659 |
Yonghui Dai1, Dongmei Han2, Weihui Dai3.
Abstract
The stock index reflects the fluctuation of the stock market. For a long time, there have been a lot of researches on the forecast of stock index. However, the traditional method is limited to achieving an ideal precision in the dynamic market due to the influences of many factors such as the economic situation, policy changes, and emergency events. Therefore, the approach based on adaptive modeling and conditional probability transfer causes the new attention of researchers. This paper presents a new forecast method by the combination of improved back-propagation (BP) neural network and Markov chain, as well as its modeling and computing technology. This method includes initial forecasting by improved BP neural network, division of Markov state region, computing of the state transition probability matrix, and the prediction adjustment. Results of the empirical study show that this method can achieve high accuracy in the stock index prediction, and it could provide a good reference for the investment in stock market.Entities:
Mesh:
Year: 2014 PMID: 24782659 PMCID: PMC3982277 DOI: 10.1155/2014/124523
Source DB: PubMed Journal: ScientificWorldJournal ISSN: 1537-744X
Sample data.
| Days | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| Opening price | 1044.29 | 1075.83 | 1089.77 | 1055.60 | 1063.00 | 1074.48 | 1070.73 | 1049.10 | 1021.02 | 1027.05 |
| Highest price | 1073.78 | 1091.25 | 1090.16 | 1067.03 | 1078.46 | 1086.33 | 1074.82 | 1049.26 | 1038.03 | 1031.36 |
| Lowest price | 1044.29 | 1075.83 | 1055.64 | 1053.18 | 1059.83 | 1068.07 | 1050.21 | 1011.40 | 1021.02 | 1020.83 |
| Closing price | 1073.78 | 1089.72 | 1059.00 | 1065.96 | 1073.87 | 1073.02 | 1052.14 | 1022.46 | 1032.76 | 1022.13 |
| Trading volume | 15023082 | 16132262 | 15413445 | 11569457 | 12702507 | 14032823 | 12668299 | 12745388 | 9397943 | 9843383 |
|
| ||||||||||
| Days | 11 | 12 | 13 | 14 | 15 |
| 55 | 56 | 57 | 58 |
|
| ||||||||||
| Opening price | 1022.56 | 1019.47 | 1029.93 | 1074.53 | 1073.31 |
| 1161.49 | 1175.63 | 1177.85 | 1158.96 |
| Highest price | 1039.65 | 1029.28 | 1069.81 | 1091.91 | 1078.53 |
| 1180.61 | 1186.29 | 1184.40 | 1178.84 |
| Lowest price | 1018.45 | 986.05 | 1029.93 | 1068.61 | 1053.33 |
| 1151.68 | 1160.02 | 1165.77 | 1131.44 |
| Closing price | 1030.14 | 1029.28 | 1068.15 | 1073.69 | 1072.93 |
| 1172.33 | 1180.66 | 1167.09 | 1132.09 |
| Trading volume | 10557897 | 9936156 | 11803687 | 13475017 | 11576013 |
| 13353812 | 16202467 | 15192214 | 15946678 |
Data source: the above data are from Wind information database.
Error of repeated training.
| Number of neuron | 9 | 10 | 11 | 12 | 13 | 14 |
|---|---|---|---|---|---|---|
| Network error | 1,8710 | 0.9392 | 0.2689 | 0.5924 | 0.3357 | 0.7099 |
Figure 1The dependence of MSE on epochs.
Algorithm 1Part of the code of MATLAB.
Figure 2Simulation of actual value and predicted value.
Normalization of absolute residual rate.
| Days | Actual value | Prediction value | Error of absolute residual rate | Normalization value |
|---|---|---|---|---|
| 1 | 1148.81 | 1089.72 | 5.27% | 0.6797 |
| 2 | 1133.16 | 1207.61 | −4.25% | 0.2457 |
| 3 | 1136.40 | 1198.35 | −5.40% | 0.1978 |
| 4 | 1095.65 | 1143.73 | −1.75% | 0.3648 |
| 5 | 1117.34 | 1043.10 | 8.02% | 0.8214 |
| 6 | 1135.45 | 1217.55 | −2.31% | 0.3326 |
| 7 | 1187.31 | 1046.42 | 11.98% | 1.0000 |
| 8 | 1182.54 | 1291.15 | −7.34% | 0.0985 |
| 9 | 1200.69 | 1242.76 | −2.56% | 0.3251 |
| 10 | 1173.26 | 1280.88 | −8.95% | 0.0397 |
| 11 | 1165.32 | 1223.61 | −3.17% | 0.2956 |
| 12 | 1153.45 | 1273.66 | −8.63% | 0.0478 |
| 13 | 1146.02 | 1254.19 | −7.95% | 0.0789 |
| 14 | 1151.68 | 1204.72 | −2.76% | 0.3153 |
| 15 | 1160.02 | 1266.82 | −7.30% | 0.1037 |
| 16 | 1165.77 | 1279.64 | −9.64% | 0.0000 |
Markov state transition.
| State | (1) | (2) | (3) | (4) | Total |
|---|---|---|---|---|---|
| (1) | 2 | 3 | 0 | 0 | 5 |
| (2) | 3 | 2 | 0 | 2 | 7 |
| (3) | 0 | 1 | 0 | 0 | 1 |
| (4) | 1 | 1 | 0 | 0 | 2 |
| Total |
|
|
|
|
|
Probability of step state vector.
| State | Step 1 | Step 2 | Step 3 | Step 4 |
|---|---|---|---|---|
| (1) | 0.0000 | 0.4286 | 0.4367 | 0.4219 |
| (2) | 1.0000 | 0.2857 | 0.4816 | 0.4405 |
| (3) | 0.0000 | 0.0000 | 0.0000 | 0.0000 |
| (4) | 0.0000 | 0.2857 | 0.0816 | 0.1376 |
|
| ||||
| State | Step 5 | Step 6 | Step 7 | Step 8 |
|
| ||||
| (1) | 0.4264 | 0.4254 | 0.4256 | 0.4255 |
| (2) | 0.4478 | 0.4467 | 0.4468 | 0.4468 |
| (3) | 0.0000 | 0.0000 | 0.0000 | 0.0000 |
| (4) | 0.1258 | 0.1279 | 0.1276 | 0.1277 |
|
| ||||
| State | Step 9 | Step 10 | Step 11 | Step 12 |
|
| ||||
| (1) | 0.4255 | 0.4255 | 0.4255 | 0.4255 |
| (2) | 0.4468 | 0.4468 | 0.4468 | 0.4468 |
| (3) | 0.0000 | 0.0000 | 0.0000 | 0.0000 |
| (4) | 0.1277 | 0.1277 | 0.1277 | 0.1277 |
|
| ||||
| State | Step 13 | Step 14 | Step 15 | Step 16 |
|
| ||||
| (1) | 0.4255 | 0.4255 | 0.4255 | 0.4255 |
| (2) | 0.4468 | 0.4468 | 0.4468 | 0.4468 |
| (3) | 0.0000 | 0.0000 | 0.0000 | 0.0000 |
| (4) | 0.1277 | 0.1277 | 0.1277 | 0.1277 |
Prediction result.
| Days | Actual value | Value of improved BPNN forecast | Markov prediction interval | Probability | Adjustment value | Error of absolute residual rate (improved BPNN) | Error of absolute residual rate (adjustment) |
|---|---|---|---|---|---|---|---|
| (1) | (2) | (3) | (4) | (5) | (6) | (7) | (8) |
| 1 | 1150.39 | 1089.72 | [985.6, 1030.6] | 0.0000 | 1064.72 | 5.27% | 7.45% |
|
| |||||||
| 2 | 1158.35 | 1207.61 | [1092.2, 1142.1] | 0.4286 | 1117.18 | −4.25% | 3.55% |
|
| |||||||
| 3 | 1136.98 | 1198.35 | [1083.8, 1133.3] | 0.4367 | 1170.85 | −5.40% | −2.98% |
|
| |||||||
| 4 | 1124.10 | 1143.73 | [1034.4, 1081.7] | 0.4219 | 1117.48 | −1.75% | 0.59% |
|
| |||||||
| 5 | 1134.02 | 1043.10 | [943.4, 986.5] | 0.4263 | 1019.17 | 8.02% | 10.13% |
|
| |||||||
| 6 | 1190.11 | 1217.55 | [1101.2, 1151.5] | 0.4254 | 1189.61 | −2.31% | 0.04% |
|
| |||||||
| 7 | 1188.85 | 1046.42 | [946.4, 989.7] | 0.4256 | 1084.58 | 11.98% | 8.77% |
|
| |||||||
| 8 | 1202.83 | 1291.15 | [1167.8, 1221.1] | 0.4255 | 1261.51 | −7.34% | −4.88% |
|
| |||||||
| 9 | 1211.78 | 1242.76 | [1124.0, 1175.4] | 0.4255 | 1214.24 | −2.56% | −0.20% |
|
| |||||||
| 10 | 1175.70 | 1280.88 | [1158.5, 1211.4] | 0.4255 | 1251.48 | −8.95% | −6.45% |
|
| |||||||
| 11 | 1185.96 | 1223.61 | [1106.7, 1157.2] | 0.4255 | 1195.53 | −3.17% | −0.81% |
|
| |||||||
| 12 | 1172.52 | 1273.66 | [1151.9, 1204.6] | 0.4255 | 1244.43 | −8.63% | −6.13% |
|
| |||||||
| 13 | 1161.87 | 1254.19 | [1134.3, 1186.1] | 0.4255 | 1225.40 | −7.95% | −5.47% |
|
| |||||||
| 14 | 1172.33 | 1204.72 | [1089.6, 1139.4] | 0.4255 | 1177.07 | −2.76% | −0.40% |
|
| |||||||
| 15 | 1180.66 | 1266.82 | [1145.7, 1198.1] | 0.4255 | 1237.75 | −7.30% | −4.84% |
|
| |||||||
| 16 | 1167.09 | 1279.64 | [1157.3, 1210.2] | 0.4255 | 1250.28 | −9.64% | −7.13% |