| Literature DB >> 27974883 |
Montri Inthachot1, Veera Boonjing2, Sarun Intakosum1.
Abstract
This study investigated the use of Artificial Neural Network (ANN) and Genetic Algorithm (GA) for prediction of Thailand's SET50 index trend. ANN is a widely accepted machine learning method that uses past data to predict future trend, while GA is an algorithm that can find better subsets of input variables for importing into ANN, hence enabling more accurate prediction by its efficient feature selection. The imported data were chosen technical indicators highly regarded by stock analysts, each represented by 4 input variables that were based on past time spans of 4 different lengths: 3-, 5-, 10-, and 15-day spans before the day of prediction. This import undertaking generated a big set of diverse input variables with an exponentially higher number of possible subsets that GA culled down to a manageable number of more effective ones. SET50 index data of the past 6 years, from 2009 to 2014, were used to evaluate this hybrid intelligence prediction accuracy, and the hybrid's prediction results were found to be more accurate than those made by a method using only one input variable for one fixed length of past time span.Entities:
Mesh:
Year: 2016 PMID: 27974883 PMCID: PMC5126459 DOI: 10.1155/2016/3045254
Source DB: PubMed Journal: Comput Intell Neurosci
The number of up and down movements of SET50 index during 2009–2014.
| Year | Up (times) | Up (%) | Down (times) | Down (%) | Total |
|---|---|---|---|---|---|
| 2009 | 137 | 56.38 | 106 | 43.62 | 243 |
| 2010 | 138 | 57.02 | 104 | 42.98 | 242 |
| 2011 | 119 | 48.77 | 125 | 51.23 | 244 |
| 2012 | 140 | 57.14 | 105 | 42.86 | 245 |
| 2013 | 126 | 51.43 | 119 | 48.57 | 245 |
| 2014 | 135 | 55.10 | 110 | 44.90 | 245 |
| Total | 795 | 54.30 | 669 | 45.70 | 1,464 |
The number of up and down movements of the whole set of daily index in 5 cross-validation runs.
| Year | Five runs of cross-validation | Total | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1st run | 2nd run | 3rd run | 4th run | 5th run | |||||||
| Up | Down | Up | Down | Up | Down | Up | Down | Up | Down | ||
| 2009 | 27 | 22 | 31 | 18 | 24 | 25 | 32 | 16 | 23 | 25 | 243 |
| 2010 | 28 | 20 | 30 | 18 | 37 | 11 | 17 | 32 | 26 | 23 | 242 |
| 2011 | 26 | 23 | 25 | 24 | 27 | 22 | 22 | 27 | 19 | 29 | 244 |
| 2012 | 30 | 19 | 22 | 27 | 30 | 19 | 24 | 25 | 34 | 15 | 245 |
| 2013 | 28 | 21 | 27 | 22 | 23 | 26 | 24 | 25 | 24 | 25 | 245 |
| 2014 | 26 | 23 | 23 | 26 | 36 | 13 | 19 | 30 | 31 | 18 | 245 |
| Total | 165 | 128 | 158 | 135 | 177 | 116 | 138 | 155 | 157 | 135 | 1,464 |
Technical indicators used in this study and their equations [2, 18].
| Indicator name | Equation | Level ( | Total |
|---|---|---|---|
| Simple |
| 3, 5, 10, 15 | 4 |
| Weighted |
| 3, 5, 10, 15 | 4 |
| Momentum |
| 3, 5, 10, 15 | 4 |
| Stochastic K% |
| 3, 5, 10, 15 | 4 |
| Stochastic D% |
| 3, 5, 10, 15 | 4 |
| Relative Strength Index (RSI) |
| 3, 5, 10, 15 | 4 |
| Moving Average Convergence Divergence (MACD) |
| 3, 5, 10, 15 | 4 |
| Larry William's R% |
| 3, 5, 10, 15 | 4 |
| Commodity Channel Index (CCI) |
| 3, 5, 10, 15 | 4 |
| Rate of change |
| 3, 5, 10, 15 | 4 |
| Average Directional Index (ADX) |
| 3, 5, 10, 15 | 4 |
| Total | 44 | ||
Note: n is n-day period times ago; C is closing price; L is low price at time t; H is high price at time t; DIFF = EMA(12) − EMA(26); EMA is exponential moving average; EMA(k) = EMA(k) + ∝(C − EMA(k)); ∝ is smoothing factor = 2/(1 + k); k = 10 in k −day exponential moving average; LL and HH are the lowest low and highest high in the last t days, respectively; M = (H + L + C )/3; SM = ∑ M /n; D = ∑ |M − SM |/n; UP is upward index change at time t, DW is downward index change at time t; +DI is plus directional indicator and −DI is minus directional indicator.
Figure 1Steps of operation of ANN and GA hybrid intelligence.
Figure 2Fitness values in each generation (predicting SET50 index in 2009).
Figure 3Fitness values in each generation (predicting SET50 index in 2010).
Figure 4Fitness values in each generation (predicting SET50 index in 2011).
Figure 5Fitness values in each generation (predicting SET50 index in 2012).
Figure 6Fitness values in each generation (predicting SET50 index in 2013).
Figure 7Fitness values in each generation (predicting SET50 index in 2014).
Prediction performances of Inthachot et al. [12] model and this study's model.
| Year | Accuracy | ||
|---|---|---|---|
| Inthachot et al. [ | This study | Percentage increase | |
| 2009 | 0.5602 | 0.6293 | 12.3349% |
| 2010 | 0.5257 | 0.6000 | 14.1335% |
| 2011 | 0.5986 | 0.6887 | 15.0518% |
| 2012 | 0.5592 | 0.6041 | 8.0293% |
| 2013 | 0.5714 | 0.6531 | 14.2982% |
| 2014 | 0.5796 | 0.6408 | 10.5590% |
| Average | 0.5658 | 0.6360 | 12.4011% |