 Research
 Open Access
 Published:
An integrated new threshold FCMs Markov chain based forecasting model for analyzing the power of stock trading trend
Financial Innovation volume 5, Article number: 35 (2019)
Abstract
This paper explores the power of stock trading trend using an integrated New Threshold Fuzzy Cognitive Maps (NTFCMs) Markov chain model. This new model captures the positive as well as the negative jumps and predicts the trend for different stocks over 4 months which follow an uptrend, downtrend and a mixed trend. The mean absolute per cent error (MAPE) tolerance limits, the root mean square error (RMSE) tolerance limits are determined for various stock indices over a multitimeframe period and observed for the existing methods lying within the defined limits. The results show for every ‘n’ number of predictions made, the predicted close value of the day’s stock price was within tolerance limit with 0 % error and with 100% accuracy in predicting the future trend.
Introduction
Stock market is a place where uncertainty, vagueness, ambiguity, inconsistency and unpredictability prevail and persist. Price movements are observed daily in our day to day life. The behavior of stock prices appears to be rather odd. However, the price movements are not totally random in nature. Stock values are numerical values having uncertainty. Building a model for a problem involving uncertainty is no easy task. There are numerous forecasting tools and techniques available for predicting the stock market prices. Statistical models do not employ all available data for manipulation. The problem arises in handling unequally spaced, available historical high frequency data. Hence to address and resolve all the above challenges arising out of uncertainty and to achieve a better prediction accuracy, robust algorithms based on Markov chain and Fuzzy logic have been developed. Incidents of jumps are determined from the observations of the stock market data. This being an integrated model, it is more robust than the classical one and is well suited for analysis of high frequency data of observations.
A Markov chain is a stochastic process characterized by memoryless property. According to Markov chain concept, the probability distribution of the future state depends only on the present state and not on the sequence of happenings that precedes it. Markov chains are used in the area of finance to model a variety of different phenomena including stock indices and market crashes. In 1974, Markov chains were used for modeling finance market behavior. Later, in 1989, they were used for modeling switches between periods of high volatility and low volatility of asset returns. A recent development is a Markov switching multi fractal model using Markov chains. In addition to these, Fuzzy logic analysis can be a very efficient tool in predicting stock market trend. Fuzzy models have the capability to analyze the datasets of linguistic values. Fuzzy set is a versatile tool for both linguistic and numerical modeling. For a randomly changing dynamic system, prediction of state of a Markov chain at a given point in the future is noted for uncertainty. In order to overcome this difficulty, the current model merges fuzzy logic tool with Markov concept for prediction and analysis.
The main purpose of this study is to integrate two major models, viz., the Markov chain model and the fuzzy model in an efficient way to obtain a solution for ambiguous situations like external factors affecting the stock market. A fuzzy approach has been developed, for analysis and study of the moving trends of the stock market leading to a generalized mathematical model called NTFCMs interrelated model and an integrated NTFCMs Markov chain model with internal threshold indicating the lower bound, upper bound and the exact threshold value, to enable palpable benefits to investors.
The model predicts the MAPE and RMSE tolerance limit for various stock indices. Comparisons are made with the other existing models measuring the effectiveness of the model for a multitimeframe approach. The advantage of the model lies in the study of the positive, negative and mixed jumps for prediction analysis and for considering the most ambiguous situations in getting optimum solutions. Ambiguous situations are made possible for consideration since the historical price data are numerical values preprocessed and used for addressing the error tolerance effect and predicting the trend in the developed model. The interest here is to develop a low complexity, accurate prediction model which is better suited for real life situations. This study focuses on construction of an optimum solution using the interval partition in the Universe of discourse. Knowledge of the error tolerance limit, helps in taking reliable decisions predicting the trend of stock price index over varying timeframe. The estimates can be quite different depending on the frequency of the dataset.
This paper contains five sections. The First section provides the introduction. The Second section presents a review of literature. In the third and fourth sections, Markov chain and Fuzzy interrelated jump analysis prediction model, an integrated NTFCMs Markov chain model are defined respectively. Section 5 deals with applications of integrated NTFCMs Markov chain model to stock market moving trend analysis. Section 6 provides conclusions.
Review of literature
In recent years, fuzzy logic has been widely used as an efficient forecasting tool for solving problems of uncertainty prevailing in stock markets. Fuzzy set theory was first proposed by Zadeh in 1965. Kosko (1986) introduced the concept of fuzzy cognitive maps based on the structure of cognitive maps. Vasantha Kandasamy and Smarandache (2003) have analyzed the social problems in their book on fuzzy cognitive maps. Many models based on the concept of fuzzy time series were developed by researchers for forecasting the stock indices. Yu (2005), Yu and Huarng (2008), and Yu and Huarng (2010) have proposed various fuzzy time series models for improvement of forecasting for Taiwan Futures Exchange (TAIEX). Chen and Chang (2010), Chen and Chen (2011), Chen et al. (2012), and Chen and Kao (2013) have developed various forecasting models for TAIEX based on fuzzy time series, fuzzy variation groups, fuzzy clustering, fuzzy rule interpolation technique, particle swarm optimization techniques and support vector machines. Wei et al. (2014) have proposed a hybrid ANFIS based on nperiod moving average model to forecast TAIEX stock.
Huarng et al. (2007) have proposed a multivariate heuristic model for fuzzy timeseries forecasting. Wahab et al. (2013) have developed an interval type2 fuzzy logic system model for measuring the index value of underground economy in Malaysia. Chen and Chen (2015) have proposed a hybrid fuzzy time series model based on granular computing for stock price forecasting. Hung (2011) has applied a combined fuzzy system and GARCH model to adaptively forecast stock market volatility. The concept of hybrid neuro fuzzy model for forecasting was developed by Madhoushi and Aliabadi (2012). Pritpal and Bhogeswar (2013) have proposed a highorder fuzzyneuro expert system for time series forecasting. Hassan et al. (2012) has developed a hybrid fuzzy time series for forecasting. Li et al. (2010) has proposed a deterministic vector longterm forecasting for fuzzy time series. Crone et al. (2011) have made a ‘Corrigendum to advances in forecasting with neural networks? Empirical evidence from the NN3 competition on time series prediction’.
The Hidden Markov Model (HMM) defined by Rabiner and Juang (1993) helps in tackling the situations involved in the consideration of the probability of the state caused by the previous state in forecasting. Rabiner (1993) provided a tutorial on Hidden Markov Model and selected applications in speech recognition. Rafiul et al. (2006), Hassan (2009), Hassan and Nath (2005), and Hassan et al. (2007) have proposed stock market for analyzing and predicting time series phenomena’s using Hidden Markov Model (HMM), fuzzy model and extended their work with a fusion model of HMM, Artificial Neural Network (ANN) and Genetic Algorithm (GA) for forecasting. This study investigates the effectiveness of a hybrid approach. Cheng and Li (2012) combined fuzzy time series forecasting with a probabilistic smoothing hidden Markov model. Denkena and Nemeti (2013) have developed stock market related pricing mechanisms for the tool and mould manufacturing industry. Gharehchopogh et al. (2013) have provided a case study on linear regression approach for prediction of stock market trading volume. Makridakis and Hibon (2000) have discussed the M3competition: results, conclusions and implications. Weron (2014) proposed electricity price forecasting: A review of the state of theart with a look into the future. Park et al. (2016) have demonstrated a predicting market impact costs using nonparametric machine learning models. Iyer et al. (2015) have proposed a stock market prediction device using digital signal processing models. Xue et al. (2015) have introduced stock market trading rules based on the biclustering method. Guo et al. (2015) have proposed a stock market forecasting model combining a twodirectional twodimensional principal component analysis and a radial basis function neural network. Another effort towards the development of a new fuzzy time series forecasting model combined with ant colony optimization and autoregression models for stock markets has been made by Cai et al. (2015). Gray et al. (2015) analyzed change, preferred states, and perceived resilience of socialecological systems using fuzzy cognitive mapping as a participatory approach. Li et al. (2016) proposed a group decision making model for integrating heterogeneous information. A new Fuzzy Cognitive Map learning Algorithm for Speech emotion recognition was developed by Zhang et al. (2017). Ceska et al. (2019) developed Shepherding Hordes of Markov Chains. Chao et al. (2019) have proposed behavior monitoring methods for tradebased money laundering integrating macro and micro prudential regulation: a case from china. Kou et al. (2019) has developed machine learning methods for systemic risk analysis in financial sectors. Zhang et al. (2019) has developed soft consensus cost models for group decision making and economic interpretations.
The existing literature review reveals employment of various tools for developing prediction models for different stock indices. These models have their own merits and demerits in solving problems of various domains. Expert knowledge is required for developing fuzzy systems. Recent advancements in research have provided new perspectives in the field of financial forecasting. According to the present study, a New Threshold Fuzzy Cognitive Maps (NTFCMs) Interrelated Model and an integrated NTFCMs Markov Chain Model, exhibiting an interval varying parameter dependent new threshold value are used in the very construction of the nodes of the dynamic system of the Fuzzy Cognitive Maps (FCMs). The first objective is to introduce a threshold parameter ‘φ’ for model development. The second is to show the computational efficiency of the current model in providing the prediction performances within the tolerance range. The main objective is to develop an accurate forecasting model indicating lower bound, upper bound and the exact threshold values which can provide the best expected and the most optimal solution. For every ‘n’ number of predictions made the predicted value is within tolerance limit with zero percent error and 100% accuracy. The results show the outcome of the new model, getting a forecasting accuracy per cent equivalent to other existing models. These features make the model well suited for financial market applications.
Markov chain and fuzzy interrelated jump analysis prediction model
Consider the states S_{1}, S_{2}, …, S_{n} such that S_{i} takes a value in the interval (a_{i}, a_{i + 1}) for 1 ≤ i ≤ n. So our Concepts or nodes C_{1}, C_{2}, …, C_{n} of the FCMs [5,14] do not take the usual form of adjective terminology expressing the nature of the concepts in a new linguistic way but they take the values at any point in the interval (a_{i}, a_{i + 1}). So, at this juncture we define nodes S_{i}(i = 1, 2, …, n) which take values in the interval as Interval Nodes. This is the marked difference between the usual FCMs and the NTFCMs with entries from an interval.
These concepts in our new model take values in intervals, where these intervals are themselves varying states like Very Low, Minimum Low, Low, Moderate Low, Minimum High, High, Moderate High, Very High etc. which take their values from the stipulated intervals. So, now with this S_{1}, S_{2}, …, S_{n} as the concepts or nodes, a like of FCMs called as NTFCMs interrelated model is built. This new model caters to the need of the prefixed or preassumed values from an interval, where the preassumed values vary in this interval.
The states of the stock market can be taken according to expert decision and framed as the main coordinates for our dynamic system. For instance, for a dynamic system having six nodes that is n = 6; the states can be defined as S_{1} Very Low, S_{2} Low, S_{3} Moderate Low, S_{4} Moderate High, S_{5} High, S_{6} Very High. There may be need for another expert to consider a dynamic system having 8 nodes say; S_{1} Very Low, S_{2} Minimum Low, S_{3} Low, S_{4} Moderate Low, S_{5} Minimum High , S_{6} High, S_{7}Moderate High, S_{8} Very High. The NTFCMs can take any number of nodes depending on the expert’s wishes.
This method works on positive leaps or jumps as in the case of Markov Chains. When the leaps or jumps are in the anticlockwise direction, these jumps or leaps are dissolved as inconsistent or disobedient. Hence, this is not taken into consideration when a trend prediction is performed. This method is a judicious amalgam of both FCMs and Markov Chain models to enable the close value prediction of the actual trend in any problem. When a prediction of any trend in the problem is attempted, there cannot be any fixed value. Henceforth, we proceed to describe the dynamic system setup at the outset by using the concepts or attributes or nodes as intervals which, in turn, are very carefully defined describing a minute transition of one state to another indicating the jumps are analytically tractable.
The closing price for ‘N ’ number of days is used as input parameter for analyzing the stockmarket trend. The observations of the closing price are denoted by c_{1}, c_{2}, …, c_{t}, …, c_{N}. The difference variable defined by c_{diff} = c_{t} − c_{t − 1} is computed between every two consecutive t^{th} and (t − 1)^{th} day closing price stock value. The nonstationary values are transformed into stationary values. When the nonstationary closing price values undergo transformation, there will be only (N − 1) stationary values for the ‘N ‘days considered. Determine the range ‘R ‘for the stationary values. The range has an upper bound (UB) and the lower bound (LB). UB is given by maximum range R_{max} = max(c_{diff}values) and LB denotes minimum range R_{min} = min(c_{diff}values). Divide the range R into n equal number of sub intervals. Each coordinate (a_{t}, a_{t + 1}) of the subinterval is used to define our states considered. Now find the midpoint x_{t}, 1 ≤ t ≤ n of each sub interval. This range of values of the dynamic system, determines the observed frequencies. With a view to determine the expected frequencies of the range, we give deviations called varying parameters ‘φ’ in the interval [−α, α] to the midpoints of the defined range which will give the best impact on the dynamic system. A special type of NTFCMs described earlier in this section is used in the very construction of the states of the dynamic system of the FCMs. Midpoints x_{i} ' s undergo a change of scale in the threshold value with respect to a small arbitrary parameter in the interval [−α, α], denoted by ‘φ’ and produce an output ‘Y ’. The output ‘Y ‘thus formed is a sequence of pattern comprising of Decreasing symbol ‘D’ and Increasing symbol ‘I’ depending upon whether the output is negative or positive of the dynamic system.
Positioning of each x_{i} at each stage is described as under:

(i)
Construction of an interval

(ii)
Obtaining the interval points

(iii)
Uniform jumps are only valid

(iv)
Clockwise jumps are valid

(v)
Anticlockwise jumps are disobedient jumps or danger jumps in this problem of moving stock market.
The ‘n’ states and their corresponding intervals are defined in Table 1. Midpoint of the state S_{t} is defined by \( {x}_t=\frac{a_t+{a}_{t+1}}{2},1\le t\le n. \) The collection of all midpoints put together forms a set, called the MidX set, given by MidX = {x_{1}, x_{2}, x_{3}, x_{4}, …, x_{n}}. The output ‘Y’ after undergoing a change with respect to the varying parameter ‘φ’ is the set denoted by Y = {y_{1}, y_{2}, y_{3}, y_{4}, …, y_{n}} and is defined by y_{i} = x_{i} ± φ, i = 1, 2, …, n where ‘φ’ is a small arbitrary parameter in the interval [−α, α] depending on the problem on hand (α, a real number chosen after the analysis of the problem). The framework design and the technical details of each stage of the current study are described as shown in Fig. 1.
The working of the model is now discussed. The assumptions indicated here are due to the merging of the Markov chain model with FCMs. Let S_{1}, S_{2}, …, S_{r}, S_{r + 1}, …, S_{n − 1}, S_{n} be the coordinates of the New FCM with internal threshold model constructed. An instantaneous state vector ‘S ‘given by S = (S_{1}, S_{2}, …, S_{i}, …, S_{n}) where S_{i} ∈ {0, 1} as represented in (1) is considered as an initial state vector, denoting the ONOFF positions of the states.
Consider a dynamic system. A Pseudo code has been developed for fitting the defined model. The level of the pseudo code determines the fitness of the optimization or the nature of the solution for the current method. The solution can be given ranks, the rank ranging from 5 to 0 as shown in Table 2.
Integrated NTFCMs Markov chain model
Under unusual cases, jumps or leaps can be on the other side. Such jumps are referred to as unnatural jumps. Concepts involving these jumps are ignored and avoided. Since we are using Markov chains, we call anticlockwise jumps as Disobedient jumps.
The negative jumps or leaps are always found in a dynamic system indicating a downward trend or a Bear State which shows the danger of falling. But, they are discarded or dissolved for the sake of convenience. But, one should consider the Disobedience Zone or Danger Zone to give a better model. The Danger Zone or the anticlockwise trend is the most important study because one can be cautious during that period.
In order to explain the Markov chain model, in addition to pseudo code 1 mentioned earlier, pseudo code 2 has been designed and it determines the nature of the solution.
There can also be a combination of pseudo code 1 and pseudo code 2, considering the possibility of both positive and negative trends being followed.
The Markov chain denoted by ‘mc’ is defined using the conditions specified below:
The trend, rank and growth arrow corresponding to the mc values are indicated in Table 3.
Experimental result and discussion of integrated NTFCMs Markov chain model to the stock market moving trend problem
As a general strategy, it is best to trade with trends, indicating the need for caution when the general trend of the market is headed up. The caution relates to taking any positions that rely on the trend going in the opposite direction. A Bull Market Trend is an Upward Trend associated with a long term climb with increasing investor confidence, and increased investment in anticipation of future price increases. It symbolizes charging ahead with excessive confidence. Price rise indicates a strong economy and a low level of unemployment. Market returns are good. A Bear Market Trend is a Downward Trend associated with long term decline with increasing investor fear level. It is a transition from high investor optimism to a widespread investor fear. It symbolizes lazy or cautious movers. Falling prices show a dull economy. In Recession, unemployment rates are high. Market^{’}s returns are bare. Analysis of the efficacy of the stock market moving trend for the methods developed, involves the consideration of three different stocks, one following an upward trend, a second showing a downward trend and the third a mixed trend to indicate this method works well under all circumstances  this is shown in Fig. 2. The results are compared with the existing trend and the accuracy of the model for various trends is found out. The current model is a multitrend multitimeframe model where the forecasting performance is tested for a time period of 1day, 1week, 2weeks, 1month, 2months, 4 months ahead. There are two phases namely training and a testing phase. The data obtained for the stock indices consisted of close price in each day.
The stock prices for IBM, APPLE INC, UNG sectors at the close of every day for a period of one month are collected from the historical dataset available in www.finance.yahoo.com. In order to study the moving trend, the daily close value of the stock price of the IBM data set for a period of 1 month is collected. One day difference in close value is found out. The lower bound of the given range is found out. The upper bound of the given range is also found out by using the formula \( h=\frac{ba}{n} \) . For the dataset considered, it is found out to be [ 2.2, 1.88]. Similarly, the raw data of the various other sectors considered are also transformed into a corresponding range of values. The dataset considered is split into 6 subintervals, for instance, n = 6. Each subinterval is given a name as S_{1}, S_{2}, S_{3}, S_{4}, S_{5}, S_{6}. The Midpoints of the subintervals are found and it is given by \( MidX=\left\{1.86,\kern0.5em 1.18,\kern0.5em 0.5,\kern0.5em 0.18,\kern0.5em 0.86,\kern0.5em 1.54\right\} \)_{.}
The midpoints of the subintervals are found out considering the possibility of accuracy in working each model. Instead of considering points from the full subinterval, midpoints are chosen in order to give a reliable working model. The midpoints thus obtained, form a state vector \( \left\{{X}_1,\kern0.5em {X}_2,\kern0.5em {X}_3,\kern0.5em {X}_4,\kern0.5em {X}_5,\kern0.5em {X}_6\right\} \). The state vector is made to undergo an arbitrary change with respect to a small arbitrary parameter ‘φ’ in the interval [ 2.2, 1.88 ] , in order to determine the expected frequencies of the range and produce an OutputY . Various outputs are obtained for varying ‘φ’ . When ‘φ’ is assumed a value 1 and added to the MidX state vector, the change in MidX state vector is noted. It is given by \( OutputY=\left\{0.86,\kern0.5em 0.18,\kern0.5em 0.5,\kern0.5em 1.18,\kern0.5em 1.86,\kern0.5em 2.54\right\} \)_{.}
The change in the changed MidX i.e., OutputY is noted, for each corresponding values of MidX. When the change is positive, the trend arrow is indicated with a symbol denoted by ' ↑ ' and defined as increasing. If the change is negative, the trend arrow is indicated with a symbol denoted by ' ↓ ' and defined as decreasing. The hidden pattern from the MidX and OutputY can be determined. For instance the pattern vector is given by \( \left\{\downarrow \kern0.5em \downarrow \kern0.5em \uparrow \kern0.5em \uparrow \kern0.5em \uparrow \kern0.5em \uparrow \right\} \) . We determine the connection matrix ‘CM’ for the OutputY. Table 4 gives the one day difference in close value for the IBM dataset considered:
The range is determined for Table 4 and is found to be [ 2.2, 1.88 ]. The data set considered is split into 6 subintervals, say. Then for N = 6, \( MidX=\left\{1.86,\kern0.5em 1.18,\kern0.5em 0.5,\kern0.5em 0.18,\kern0.5em 0.86,\kern0.5em 1.54\right\} \)_{.}
Also, the same study was done for N = 8, the MidX obtained was \( MidX=\left\{1.945,\kern0.5em 1.435,\kern0.5em 0.925,\kern0.5em 0.415,\kern0.5em 0.095,\kern0.5em 0.605,\kern0.5em 1.115,\kern0.5em 1.625\right\} \). The midpoints undergo a change with respect to a small arbitrary parameter ‘φ’ in the interval [ 2.2, 1.88], in order to determine the expected frequencies of the range and produce an OutputY. The OutputY in turn determines the hidden pattern of the dynamic system. The pattern depending on φ chosen is given by Y (i.e.,) the value of Y depends upon the positive or negative value of the output value y_{i}. For varying φ, we get varying patterns as shown in Table 5 from which conclusions are drawn. The Connection Matrix ‘CM’ Vasantha Kandasamy and Smarandache (2003) is formed for the y_{i}’s, i = 1, 2, … , n using fuzzy cognitive mappings for the set considered. This pattern undergoes threshold and updation and the trend is analyzed.
Now for illustration, when φ = − 0.25
Thresholding and updation has been done for the vectors as shown in Fig. 3. For the dynamic system starting with S_{1} switched ON, there are 3 jumps or leaps in the clockwise direction. After going through threshold and updation, S_{2}, S_{3}, S_{4} are all ON from S_{1} indicating the observed solution is in Rank 5 giving a Most Optimal Solution. Similarly, switching ON different S_{i}, many different solutions are observed as explained above in the Pseudo code of the current model and the trend of the stock market can be analysed. Using the Pseudo codes defined in “Markov chain and fuzzy interrelated jump analysis prediction model” and “Integrated NTFCMs Markov chain model” sections, the following results are obtained for the datasets considered. The predicted close price value c_{t} on t^{th} day is obtained using the formula given below.
Predicted value on the current t^{th} day = the observed value on the previous (t 1)^{th} day + c_{diff} (t, t 1).
The forecasting accuracy is measured in terms of the Root mean square error (RMSE), Mean absolute per cent error (MAPE). The following is the procedure to calculate the RMSEmin , RMSEmax , MAPEmin and MAPEmax.
In the above defined formulas, ‘n’ denotes the total number of test data sequence; Actualclose_{i} indicates the actual close value of the stock price on day i; Predictedmin_{i} and Predictedmax_{i} indicates the predicted minimum close value, predicted maximum close value of the stock price on day i.
For every ‘n’ number of predictions made, the predicted maximum and the predicted minimum are taken to ensure it sticks on to the accurate one. When it is within tolerance limit, error is assumed to be zero. Table 6 gives the sample data for actual close price of the index on each day of the forecasting period, predicted close value, tolerance, observed trend, existing trend and error for various stocks considered. It is found that the observed trend and the existing trend obtained were same with Zero per cent Error and accuracy was found to be 100%.
Stock prices of firms in the IT sector have been used for demonstrating the authenticity of the proposed model: the daily stock price of Apple Computer Inc., International Business Machines Corporation (IBM) and Dell Inc., collected from www.finance.yahoo.com.
Table 7 shows the comparison of the current method with other existing methods for a time frame of 4 months. Figure 4 shows the Existing methods of Hassan, showing MAPE tolerance for dataset of various stocks and the outcome of the current jump analysis method showing MAPE tolerance for dataset of various stocks studied by Hassan. Indices of close price from 1997 to 2004 as shown in Table 8 are used for verification of the daily TAIEX dataset. Table 8 summarizes various methods developed for forecasting the TAIEX index. The performance is compared with that of the existing models as shown in Fig. 5. The data from January to October for each year have been used as training dataset and November, December data for forecasting. The first 10 months have been used as training the model and the last two months for testing the model. Extensive analysis has been carried out for various stock indices with a multitimeframe approach to ensure it as the best eff ective model predicting the trend. There is considerable uncertainty in decision making problems. But the current model helps in successful prediction of patterns, trends using error tolerance limits giving optimum solutions.
Conclusion
A stock market moving trend is a tendency of a financial market to move in a specific direction over time. Buyers and sellers move markets based on expectations and emotions (fear and greed). In this current study, a NTFCMs interrelated model and integrated NTFCMs Markov chain model in which hidden threshold values have been used in the very construction of the nodes of the dynamic system of the FCMs. The study of the movements in the stock markets is based upon the use of this model. The current model has helped with the prediction of the trend indicating its lower bound, upper bound and the exact threshold values giving the best expected most optimal solution. The main objective is to illustrate the efficacy of the current model with extensive analysis of three different stocks namely IBM, UNG, APPLE INC which followed an upward trend, a downward trend and a mixed trend respectively. The contribution of the current research work is finding the error tolerance limit for various errors like MAPE, RMSE errors for various stock indices using a multitimeframe approach. The predicted minimum and predicted maximum of the errors help in enhancement of the decision making process for achievement of reliable forecasts. All the existing methods reveal the error as being within the range of tolerance limits. Results showed the predicted value within tolerance limit for every ‘n’ number of predictions made with nil error and 100% accuracy. Even if many more tools and techniques are developed in future to enhance forecast accuracy, all those developed would still have an error within this tolerance range. There is no possibility for deviation from the defined range. Predicting the close price for next one day, one week, one month, two months, and four months ahead can never be so accurate and satisfactory. We therefore ensure accurate prediction of the range of tolerance predicting the minimum and maximum error giving an optimum solution and thereby enhancing successful trend prediction model. The future research work and plan is to develop a system for improvement of accuracy in the error tolerance limit.
Availability of data and materials
The stock prices for IBM, APPLE INC, UNG sectors at the close of every day for a period of one month are collected from www.finance.yahoo.com. The authors declare that they have no competing interests.
Abbreviations
 NTFCMs:

New Threshold Fuzzy Cognitive Maps
 MAPE:

Mean Absolute Percentage Error
 RMSE:

Root mean square error
 TAIEX:

Taiwan Futures Exchange
 HMM:

Hidden Markov Model
 ANN:

Artificial Neural Network
 GA:

Genetic Algorithm
 FCMs:

Fuzzy cognitive maps
 IBM:

International Business Machines Corporation
References
Cai Q, Zhang D, Zheng W, Stephen CH, Leung (2015) A new fuzzy time series forecasting model combined with ant colony optimization and autoregression. KnowlBased Syst 74:61–68
Ceska M, Jansen N, Junges S, Kataoen JP (2019) Shepherding hordes of Markov chains. In: Advances in knowledge discovery and data mining. https://doi.org/10.1007/978303017465110
Chao X, Kou G, Peng Y, Alsaadi FE (2019) Behavior monitoring methods for tradebased money laundering integrating macro and micro prudential regulation: a case from China. Technol Econ Dev Econ:1–16. https://doi.org/10.3846/tede.2019.9383
Chen MY, Chen BT (2015) A hybrid fuzzy time series model based on granular computing for stock price forecasting. Inform Sci 294:227–241
Chen SM, Chang YC (2010) Multivariable fuzzy forecasting based on fuzzy clustering and fuzzy rule interpolation techniques. Inform Sci 180:4772–4783
Chen SM, Chen CD (2011) TAIEX forecasting based on fuzzy time series and fuzzy variation groups. IEEE Trans Fuzzy Syst 19:1–12
Chen SM, Chu HP, Sheu TW (2012) TAIEX forecasting using fuzzy time series and automatically generated weights of multiple factors. IEEE Trans Syst Man Cybern Part A Syst Hum 42:1485–1495
Chen SM, Kao PY (2013) TAIEX forecasting based on fuzzy time series. Particle swarm optimization techniques and support vector machines. Inform Sci 247:62–71
Cheng YC, Li ST (2012) Fuzzy time series forecasting with a probabilistic smoothing hidden Markov model. IEEE Trans Fuzzy Syst 20:291–304
Crone SF, Hibon M, Nikolopoulos K (2011) Corrigendum to advances in forecasting with neural networks? Empirical evidence from the NN3 competition on time series prediction. Int J Forecast 27:635–660
Denkena B, Nemeti A (2013) Stock market related pricing mechanisms for the tool and moould manufacturing industry. In: Procedia CIRP 12, eighth CIRP conference on intelligent computing in manufacturing engineering, pp 414–419
Gharehchopogh FS, Bonab TH, Khaze SR (2013) A linear regression approach to prediction of stock market trading volume: a case study. Int J Manag Value Supply Chains 4(3):25
Gray SA, Gray S, de Kok JL et al (2015) Using fuzzy cognitive mapping as a participatory approach to analyze change, preferred states, and perceived resilience of socialecological systems. Ecol Soc 20(2). https://doi.org/10.5751/ES07396200211
Guo Z, Wang H, Yang J, Miller DJ (2015) A stock market forecasting model combining twodirectional twodimensional principal component analysis and radial basis function neural network. PLoS One 10(4):e0122385. https://doi.org/10.1371/journal.pone.0122385
Hassan MR, Nath B (2005) Stock market forecasting using hidden Markov model: a new approach. In: Proc. of the 2005 5^{th} international conference on intelligent systems, design and applications, 07695228606/05, IEEE
Hassan MR, Nath B, Kirley M (2007) A fusion model of HMM, ANN and GA for stock market forecasting. Expert Syst Appl 33(1):171–180
Hassan R (2009) A combination of hidden Markov model and fuzzy model for stock market forecasting. Neurocomputing 72:3439–3446
Hassan S, Jaafar J, Samir BB, Jilani TA (2012) A hybrid fuzzy time series model for forecasting. Eng Lett 20:1 EL20111
Huarng KH, Yu THK, Hsu YW (2007) A multivariate heuristic model for fuzzy timeseries forecasting. IEEE Trans Syst Man Cybern B Cybern 37:836–846
Hung JC (2011) Applying a combined fuzzy systems and GARCH model to adaptively forecast stock market volatility. Appl Soft Comput 11:3938–3945
Iyer S, Kamdar NR, Soparkar B (2015) Stock market prediction using digital signal processing models. Int J Comput Appl 6:35–39
Kosko B (1986) Fuzzy Cognitive Maps. Int J Man Mach Stud 24:65–75
Kou G, Chao X, Peng Y, Alsaadi FE, HerreraViedma E (2019) Machine learning methods for systemic risk analysis in financial sectors. Technol Econ Dev Econ:1–27. https://doi.org/10.3846/tede.2019.8740
Li G, Kou G, Peng Y (2016) A group decision making model for integrating heterogeneous information. IEEE Trans Syst Man Cybern Syst Hum PP(99):1–11. https://doi.org/10.1109/TSMC.2016.2627050
Li ST, Kuo SC, Cheng YC, Chen CC (2010) Deterministic vector longterm forecasting for fuzzy time series. Fuzzy Sets Syst 161:1852–1870
Madhoushi M, Aliabadi AN (2012) Forecasting stock exchange market using hybrid neuro fuzzy model. In: The sixth international conference on fuzzy Informations and engineering, pp 1–7
Makridakis S, Hibon M (2000) The M3competition: c xv results, conclusions and implications. Int J Forecast 16:451–476
Park S, Lee J, Son Y (2016) Predicting market impact costs using nonparametric machine learning models. PLoS One 11(2):e0150243. https://doi.org/10.1371/journal.pone.0150243
Pritpal S, Bhogeswar B (2013) Highorder fuzzyneuro expert system for time series forecasting. KnowlBased Syst 46:12–21
Rabiner L (1993) A tutorial on HMM and selected applications in speech recognition. Proc IEEE 77:267–296
Rabiner L, Juang B (1993) Fundamentals of speech recognition. PrenticeHall, Englewood Cliffs
Rafiul H, Baikunth N, Kirley M (2006) HMM based fuzzy model for time series prediction. In: IEEE international conference on fuzzy systems, pp 2120–2126
Vasantha Kandasamy WB, Smarandache F (2003) Book on fuzzy cognitive maps and Neutrosophic cognitive maps. American Research Press, Xiquan. arXiv:math/0311063[math.GM].
Wahab AF, Zulkiy M’d IE, Rahim HA, Akaria R (2013) Interval type2 fuzzy logic system model in measuring the index value of underground economy in Malaysia. Appl Math Sci 102:5011–5084
Wei LY, Cheng CH, Wu HH (2014) A hybrid ANFIS based on nperiod moving average model to forecast TAIEX stock. Appl Soft Comput 19:86–92
Weron R (2014) Electricity price forecasting: a review of the state of theart with a look into the future. Int J Forecast 30:1030–1081
Xue Y, Liu Z, Luo J, Ma Z, Zhang M, Hu X, Kuang Q (2015) Stock market trading rules discovery based on biclustering method. Math Probl Eng 2015:13. Article ID 849286. https://doi.org/10.1155/2015/849286.
Yu HK (2005) Weighted fuzzy time series models for TAIEX forecasting. Physica A 349:609–624
Yu THK, Huarng KH (2008) A bivariate fuzzy time series model to forecast the TAEIX. Expert Syst Appl 34:2945–2952
Yu THK, Huarng KH (2010) Corrigendum to “A bivariate fuzzy time series model to forecast the TAIEX”. [Expert Systems with Applications 34 (4), 29452952 (2010)]. Expert Syst Appl 37:5529
Zhang H, Kou G, Peng Y (2019) Soft consensus cost models for group decision making and economic interpretations. Eur J Oper Res 277(3):964–980
Zhang W, Zhang X, Sun Y (2017) A new fuzzy cognitive map learning algorithm for speech emotion recognition. Math Probl Eng 2017. https://doi.org/10.1155/2017/4127401
Acknowledgements
‘Not applicable’
Funding
‘Not applicable’.
Author information
Affiliations
Contributions
GK helped to conceive and design the study, conducted the data collection and analysis and drafted the manuscript. AU helped to conceive and design the study, coordinated the research activities. DN helped to draft and review the manuscript. All authors read and approved the final manuscript.
Corresponding author
Correspondence to Kavitha Ganesan.
Ethics declarations
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
About this article
Cite this article
Ganesan, K., Annamalai, U. & Deivanayagampillai, N. An integrated new threshold FCMs Markov chain based forecasting model for analyzing the power of stock trading trend. Financ Innov 5, 35 (2019) doi:10.1186/s4085401901504
Received
Accepted
Published
DOI
Keywords
 Financial markets
 Prediction intervals
 Price forecasting
 Comparative studies
 Decision making
 Fuzzy cognitive maps (FCMs)
 Markov chain