Citation: Janková, Z.; Rakovská, E. Comparison Uncertainty of Different Types of Membership Functions in T2FLS: Case of International Financial Market. Appl. Sci. 2022,12, 918. https://doi.org/10.3390/ app12020918 Academic Editors: Aida Valls and Karina Gibert Received: 3 December 2021 Accepted: 10 January 2022 Published: 17 January 2022 Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. Copyright: © 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/). applied sciences Article Comparison Uncertainty of Different Types of Membership Functions in T2FLS: Case of International Financial Market Zuzana Janková1,* and Eva Rakovská2 1Institute of Informatics, Faculty of Business and Management, Brno University of Technology, 61200 Brno, Czech Republic 2Faculty of Economic Informatics, University of Economics in Bratislava, 85235 Bratislava, Slovakia; [email protected] *Correspondence:
[email protected] Abstract: This article deals with the determination and comparison of different types of functions of the type-2 interval of fuzzy logic, using a case study on the international financial market. The model is demonstrated on the time series of the leading stock index DJIA of the US market. Type-2 Fuzzy Logic membership features are able to include additional uncertainty resulting from unclear, uncertain or inaccurate financial data that are selected as inputs to the model. Data on the financial situation of companies are prone to inaccuracies or incomplete information, which is why the type-2 fuzzy logic application is most suitable for this type of financial analysis. This paper is primarily focused on comparing and evaluating the performance of different types of type-2 fuzzy membership functions with integrated additional uncertainty. For this purpose, several model situations differing in shape and level or degree of uncertainty of membership functions are constructed. The results of this research show that type-2 fuzzy sets with dual membership functions is a suitable expert system for highly chaotic and unstable international stock markets and achieves higher accuracy with the integration of a certain level of uncertainty compared to type-1 fuzzy logic. Keywords: computational finance; fuzzy logic; membership function; Type-1 fuzzy sets; T1FLS; Type-2 fuzzy sets; T2FLS 1. Introduction Fuzzy set theory was first introduced by Lotfi Zadeh in the 1960s as a way to capture the uncertainty and ambiguity often overlooked in complex systems. It can be considered as a generalization of the theory of classical sets. As research into fuzzy logic continues, fuzzy sets (FS) are gradually being refined to better reflect the original idea of modeling linguistic variables, which builds on the pillars of inaccuracy, vagueness and ambiguity that arise in language variables. This resulted in three main streams of fuzzy set representation: (a) type-1 fuzzy set (T1FS); (b) general type-2 fuzzy sets (GT2FS); (c) interval type-2 fuzzy sets (IT2FS). However, the computations with type-2 fuzzy sets are complex [ 1 ]. To solve this, simplification of type-2 is conducted through a special kind of type-2 fuzzy set called interval type-2 fuzzy set. Interval type-2 fuzzy sets manage uncertainty in membership functions, but computations are less intense, keeping the capabilities to process uncertainties [ 2 , 3 ]. The first mentioned fuzzy sets are considered to be a very simplified form of representation of linguistic variables, which is able to integrate exclusively a certain degree of uncertainty according to [ 4 , 5 ], while type-2 interval fuzzy sets are able to integrate uncertainty in the form of intervals, thus not limiting the level of uncertainty. Although IT2FS are more computationally intensive and more complex to design, according to [ 6 ], these sets are better able to deal with the additional noise and the nonlinear and chaotic environment of input data from various disciplines. The reason for the widespread use and ever-increasing popularity of fuzzy logic in many scientific fields lies in the fact that it is able to better understand human thinking Appl. Sci. 2022,12, 918. https://doi.org/10.3390/app12020918 https://www.mdpi.com/journal/applsci
Appl. Sci. 2022,12, 918 2 of 21 and, above all, is able to process uncertain, ambiguous and incomplete data. The selection and setting of the correct membership functions and the determination of the relevant fuzzy rules on the basis of which the model provides outputs is absolutely essential for the correct and accurate functionality of the fuzzy model. While setting fuzzy rules can be solved using a team of experts or through neural networks, such as the ANFIS model, the construction of fuzzy membership functions and the adequate setting of their parameters is a demanding task and prone to errors [ 7 ]. Thanks to the possibility of the parameterization of standard and widely used fuzzy functions (for example triangular, trapezoidal or Gaussian) it is possible to directly and consistently compare the performance of these functions in type-1 and type-2 fuzzy models. As described by [ 6 ], in addition to these standard functions, less common fuzzy functions can be found; however, these can also be easily converted from type-1 to type-2 by parameterization. As [ 8 ] point out, the choice of the correct fuzzy function, including the appropriate setting of parameters, thus plays a fundamental and indispensable role in the design, implementation, performance and subsequent interpretation of the fuzzy model. The authors add that these parameters of fuzzy functions are possibilistic in nature and depend on the specific area or domain in which the model is applied. Expert research or other sophisticated methods that set the parameters are necessary for the correct selection and setting of fuzzy functions. Study in [ 9 ] emphasizes that the correct choice of fuzzy functions depends to a large and not negligible extent on the subjective perception of inaccurate or vague data. In other words, there are no criteria or consensus to determine the appropriate fuzzy functions for a particular area, although, as [10] points out, these functions play a central role in the high performance of the fuzzy model. Thus, fuzzy functions can be considered as building blocks of fuzzy set theory. However, fuzzy functions must satisfy the necessary condition that they must be in the range 0 to 1. If this condition is met, fuzzy functions can take various shapes and forms. It can thus be concluded that the correct choice of fuzzy functions is a specific problem, and many researchers and experts have justifiably given the attention of this issue. The next part provides an overview of the literature dealing with finding a suitable fuzzy function. When using different MFs for a given problem, it has usually been found that Gaussian and triangular MFs have very good results, better than other types of MFs. Research in [ 11 ] compared the response of the system with different MFs and expressed the view that a triangular MF is better than other MFs. In fact, if one does not have priority for the MF shape, triangular or trapezoidal shapes are easy to implement and calculate quickly. However, if someone has certain priorities for their shapes (e.g., from histograms on sampled data), it may be interesting to create MFs with shapes derived from these apriori shapes after some smoothing, if necessary, according to [ 10 ]. In their research, paper [ 12 ] used the Gaussian membership function in the ANFIS model to test data on investment instruments. The fuzzy model is applied to the Tehran stock exchange index (TEPIX). The created model was able to predict the development of the stock index with high accuracy. A similar recommendation can be found in [ 13 ], which also recommends Gaussian membership functions. The authors further emphasize that this feature best reflects the nature of stock market data. [ 14 ] modified the conventional adaptive neurofuzzy inference model (ANFIS) using Gaussian functions of layer 4 membership instead of standard polynomial functions. The modified model achieved better computational performance for stock market prediction tasks. In contrast, in the study by [ 15 ] integrated technical indicators into the fuzzy system as input variables broken down into seven attributes, which they described using triangular fuzzy functions. Fuzzy sets are used to express ambiguities in the member function of fuzzy sets. However, so far, as follows from the above, there is no consensus on the geometry of the membership functions. These member functions are usually constructed using numeric data or a range of classes. However, there is uncertainty about the form of membership, i.e., whether it is a function of membership in a triangle or a function of trapezoidal membership, or other. When creating any fuzzy model, strong emphasis should be placed on membership functions, which are neglected and insufficiently researched in most re-
Appl. Sci. 2022,12, 918 3 of 21 search papers, which can cause significant problems with the functionality of the model. The expression of membership functions depends on both the subject (how deep the researcher’s experience is) and the context (where the problem is). For this reason, the present research focuses on the use of membership functions with varying degrees of uncertainty, which is gradually increasing. Furthermore, not only one type of membership function is used, as is usual in the vast majority of studies, but triangular, trapezoidal, Gaussian and bell membership functions are gradually created. Not to rely solely on one membership function is intentional, because in addition to the knowledge base, membership functions are essential for the proper functioning of the model. Incorrect description of input data through membership functions can provide incorrect outputs. Especially when applied to the stock market, incorrect description of fuzzy functions can cause significant differences in the profitability of the investment strategy and can cause generating incorrect investment signals, which can cause losses to potential investors. The paper is organized as follows: Section 1introduction the subject matter, including the identification of the urgency of the problem and the definition of the aim of the work; Section 2provides the theoretical background and examines already published works; Section 3is focused on the theory of fuzzy mathematical background of fuzzy system type-1 and type-2; Section 4is devoted to the methodology and experiments on the data of the international stock market; Section 5discusses obtained results and evaluation of the created model; Finally, Section 6summarizes outputs of the paper, recognized limits and suggestions for the subsequent research. 2. Theoretical Background Numerous papers and research focused on the prediction of financial time series of stock indices using type-1 fuzzy logic can be found in the literature. However, classical type-1 fuzzy sets are not able to fully capture the additional uncertainty that is a feature of stock markets. For this reason, in recent years, research has focused on the application of type-2 fuzzy logic in economic areas. The latest research in this area is described below. The aim was to select research studies, taking into account the membership functions used, but there are not many articles focused on this topic. The type of function is not specified, as the vast majority of researchers do not pay much attention to choosing the appropriate membership function, but the accuracy of fuzzy model outputs and researchers state the function they use in their fuzzy models. Authors in [ 16 ] use several stock indices to predict market trends: Bombay Stock Exchange; CNX Nifty; and S&P 500. The authors chose the type-1 fuzzy model, which integrates ANFIS, to predict them. The authors used fuzzy sets in the Gaussian fuzzy model. However, the authors point out that the integration of neural networks through the ANFIS model significantly reduces the interpretability of the created system. Researches [ 17 , 18 ] apply triangular fuzzy functions to the moving average prediction and the obtained forecast is implemented on the share at Bombay Stock Exchange. Paper [ 19 ] develops a fuzzy trading system integrating technical indicators on the basis of which they predict the development of the stock index. [ 20 ] predict the stock price of the State Bank of India (SBI) and the Dow-Jones Industrial Average (DJIA) using a fuzzy model. As part of fuzzification, the authors use a triangular fuzzy function, which is very simple and widespread, as the authors note. Other paper [ 21 ] integrates technical indicators into the model in order to improve the portability of the Athens Stock Exchange stock price forecast. The output of the strategy are signals to buy or sell a specific share. Authors [ 22 ] use two US stock indices, the DOW30 and the NASDAQ100 modified ANFIS model to predict. According to their empirical results, the bell functions of membership outperform trapezoids in performance. The authors also draw attention to a fundamental finding: the numbers and types of fuzzy functions have a fundamental and substantial influence in the process of predicting for financial time series. Paper [ 23 ] proposes a type-2 fuzzy model for stock index forecasting: Taiwan Stock Exchange Capitalization Weighted Stock Index, the Dow Jones Industrial Average and the National Association of Securities Dealers Automated
Appl. Sci. 2022,12, 918 4 of 21 Quotation. As an input variable, they use a time series delayed by one day in the fuzzy model. [ 24 ] predict the closing prices of TAIEX and NASDAQ stock indices. They also note that membership functions are an important aspect of prediction. The authors use triangular MF, because according to their knowledge and experience they provide better performance than Gaussian. Authors [ 25 ] use T2FLS to form a profit analysis decision support model. The authors apply type-2 fuzzy sets because type-1 is too noisy. [ 26 ] in their research suggest the creation of T2FLS to improve and refine the effectiveness of the TAIEX and COVID-19 stock index prediction model. As is mentioned above, the stock market, and therefore the entire financial system, is characterized by a highly unstable environment that is constantly changing. This is also one of the reasons why it is not possible to choose a universal form of membership functions within decision-making models or stock market prediction (see Table 1). However, this is a crucial area, as incorrect description of input data through membership functions results in incorrect output. In this case, incorrect investment signals or the indication of false signals to buy or sell, which may ultimately lead to the loss of investors or the impairment of their funds. The above literature review of scientific and research papers shows the following: 1. there is no consensus on the choice of fuzzy model membership functions in the stock market. Different authors choose different membership functions, mostly resorting to the simplest ones without deeper examination and deeper links to the nature of the input data sources; 2. it has been shown that type-2 fuzzy logic, the respective dual functions of this type of fuzzy sets, are insufficiently explored in the stock market, as this is an area that has only been widely applied in recent years; 3. in the case of dual membership functions, the uncertainty or degree of uncertainty contained between these functions is insufficient or not fully examined to provide more accurate outputs of the respective more accurate predictions. Table 1. Summary of literature background. Author Fuzzy Sets Type Problem [16] Gaussian T1FS stock index prediction [23] Triangular T2FS stock index prediction [17] Triangular T1FS stock index prediction [18] Triangular T1FS stock index prediction [19] Trapezoidal T2FS stock index prediction [20] Triangular T1FS stock index prediction [22] Bell ANFIS stock index prediction [21] Bell T1FS stock prediction [24] Triangular T1FS; T2FS stock index prediction [25] Triangular T2FS profit prediction [26] Triangular T2FS stock index prediction For this reason, the authors of this paper consider this area to be very important, especially a detailed examination of membership functions in terms of not only their appropriate shape (T1FL and T2FL) resulting from the nature of the selected dataset, but also the appropriate degree of uncertainty between dual membership functions (T2FLS) resulting from the nature of the stock market. 3. Type-2 Fuzzy Logic The fuzzy inference is very similar for type-1 and type-2 fuzzy logic. First, a fuzzification process is performed, in which the measured real data are transformed into language variables. Authors [ 27 ] state that these language variables are represented by attributes, while the number of these attributes is normally in the range from 3 to 7. The degrees of attributes are then graphically represented by a mathematical function (see Figure 1). Within the higher level of fuzzy logic, there are three possible variants of fuzzification:
Appl. Sci. 2022,12, 918 5 of 21 (a) sharp set; (b) type-1 fuzzy set; (c) type-2 fuzzy set. The former is used if the input data is perfect, i.e., it does not contain noise. Otherwise, fuzzy sets are selected. It is necessary to note that data with stationary noise are modeled as type-1 fuzzy sets and data with non-stationary noise are modeled as type-2 fuzzy sets. Figure 1. The difference between (a) T1FS and (b) T2FS. The distribution function, which represents type-2 fuzzy set, can be according to [ 28 , 29 ] write as: e A=ZxeXZueJx µe A(x,µ) x,u=ZxeXZueJx µe A(x,µ)/(x,u)/x, (1) where x is the primary variable Jxe[0,1] is the primary membership of x , u is the second variable, and RueJxµe A(x,µ)/(x,u)is secondary possibility distribution at x. Paper [ 30 ] generalized the fuzzy set interval and defined the term IT2FLS. The requirement for secondary possibility distribution is a condition of normality, which means that the Xelements are fully distributed for x, which are defined as follows. IT2FLS is: e A=ZxeXZueJx 1 x,u=ZxeXZueJx 1/(x,u)/x, (2) where x is the primary variable, Jxe[0,1] is the primary membership of x , u is the second variable, and RueJx1/(x,u)is secondary possibility distribution at x. For interval type-2 fuzzy set e X are upper possibility distribution defined as µ(x) and lower possibility distribution defined as µ(x) type-1 possibility distribution. According to Mendel et al., 2006 the footprint uncertainty of e X(FOU(g X)) is defined as: FOUe X=[x∈XJs=n(x,y):JX=hµ(x),µ(x)io, (3) Interval type-2 fuzzy set e X=hµ(x),µ(x)i=a,b,d;hU,e,b,f;hL , where µ(x) and µ(x) are type-1 fuzzy sets of a , b , d , e , f are reference points of the IT2FLS, hU indicates the reference point of a , b , d in the upper possibility function, hL indicates the reference point of e , b , f in lower possibility function, hUe[0,1] , and hLe[0,1] . From a mathematical point of view, the lower and upper possibility distribution can be written as follows: µU(x)= µU(x−a) b−a,a≤x≤b µU(d−x) d−b,b≤x≤d 0, otherwise , (4)
Appl. Sci. 2022,12, 918 6 of 21 µL(x)= µL(x−e) b−e,e≤x≤b µL(f−x) f−b,b≤x≤f 0, otherwise , (5) Subsequently, a comparative approach based on the possibility of uncertain mean and variation coefficient for IT2FLS is introduced, as described below. As stated by [ 31 ], for all IT2FLS e X=a,b,d;hU,e,b,f;hL , whose possibility uncertainty mean value are as follows: Me X=M(^ XU) + M(g XL) 2, (6) where possibility uncertainty means of the upper membership function M(g XU) and lower membership function M(g XL)are respectively written as: Mf XU=1/2 ZhU 0XU(α)+XU(α)+2bf(α)dα, (7) Mf XL=1/2 ZhL 0XL(α)+XL(α)+2bf(α)dα, (8) f(r)is an increasing function satisfying f(0)=0, f(1)=1 and RhU 0f(α)dα=1/2. Authors [ 31 ] further describe that the variation coefficient is written for all IT2FLS as: VC(f X) = D(f X) M(e X),i f Me X6=0 D(e X) e,i f Me X=0 , (9) where e is very small value to present the approximate Me X , De X is the variation values. The De Xis mathematically written as: D( ^ X) = rD(g XU)Df XL, D(g XU) = 1/4 RhU 0XU(α)−XU(α)2 f(α)dα, D(g XL) = 1/4 RhL 0XL(α)−XL(α)2 f(α)dα, (10) where f(α)is an increasing function satisfying f(0)=0, f(1)=1 and RhU 0f(α)dα=1/2. According to [ 31 ], two IT2FLS e X and e Y are considered, whose benchmarks are defined as follows: I f Me X<Me Y,then e X≺e Y, I f Me X>Me Y,then e Xe Y, I f Me X=Me Y,then, i f VC(f X)<VCe Y,then e X≺e Y, i f VC(f X)>VCe Y,then e Xe Y, else e X∼e Y, (11) It expresses that > means “larger than”, < means “less than” and ∼ means “ same order ”.
Appl. Sci. 2022,12, 918 7 of 21 3.1. Probability Information and Its Measure Assume that x is a variable that expresses the value of X . The probability distribution is modeled as: P:X→[0,1] . Here, for each xeX , p(x) indicates the probability x , that the value is in X, and satisfies ∑xj∈XPxj=1. Consequently, it can be stated that for each fuzzy subset A also has its probability, which indicates that x lies in A , that is Prob(A)=∑xjeXPxj . This is written as Prob(X)=1 and Prob(∅)=0. The calculation of the probability of a fuzzy set was proposed by [ 32 ]. Let B be a fuzzy subset of X such that Bxj is membership grade of (xj) in B . It is recommended, according to Wu and Mendel (2009), that: Prob(B)=∑n j=1BBxjPxj, (12) Obviously, Bis a crisp set if Bxj=1 if xjeBand Bxj=0 if xj/∈B. Let x be a prime variable from the X=(x1,x2, . . . , xn) with the corresponding probabilities P=(p1,p2, . . . , pn) . Subsequently, the entropy of the distribution can be written as follows: H(x)=−∑n i=1Pilog2Pi,i=1, 2, . . . , n, (13) 3.2. Combining Information about Possibilities and Probabilities Considers a variable X taking values from X=(x1,x2, . . . , xn) , (p1,p2, . . . , pn) provides probabilistic information, and (π1,π2, . . . , πn) provides information on the distribution of options. Author [ 32 ] originally proposed a probability for a fuzzy subset of F . Suppose that F is a fuzzy subset of Xfor xi∈X, then the probability for fuzzy subset Fis defined as: P(F)=∑n i=1F(xi)pi=∑n i=1πipi, (14) where πi is the value of the uncertainty of the possibilities with respect to the fuzzy set theory, piis the probability value for the fuzzy event xi. A few years later, [ 33 ] generalized the probability theory and constructed a mathematical notation for calculating the probability of fuzzy event A, which is shown as: P(A)=RµA(x)f(x)dx,i f x is continuous ∑iµA(xi)f(xi),i f x is discrete , (15) where µA(x) represents the probability distribution of X , f(xi) indicates the distribution function of the probability X. Suppose that x is a variable that takes values in space X , the probability of uncertainty is modeled by P=(p1,p2, . . . , pn) , F is a fuzzy subset of X with represented possibility of distribution Π=(π1,π2, . . . , πn) . For each xieX the conditional probability distribution e Pibased on conditioning Pwith Πcan be denoted as: e Pi=P(xi|F)=P((xi)∩F) P(F)=piπi ∑n j=1pjπj , (16) where pi indicates probability that x is taken of the V , and satisfying requirements ∑n i=1pi=1 . 4. Data and Methodology Stock market price change is a dynamic system that is constantly changing, and these sudden changes and movements of stock price movements doubles the complication of successful stock price prediction. In addition, stock markets are characterized by their highly non-linear nature that makes it difficult for investors to make quick decisions about the right investments. It is essential to develop an intelligent system for obtaining real-time price information, reducing one investor obsession and helping them maximize their profits.
Appl. Sci. 2022,12, 918 8 of 21 However, financial time series show relatively complicated and non-stationary behavior, with the variable not having a linear trend or clear tendency to move to a fixed value according to [ 34 ]. Mainly for the reasons described above, researchers are increasingly focusing on the use of alternative techniques that can be used to predict the development of financial time series. These techniques certainly include fuzzy logic, which is able to include the uncertainty, nonlinearity and noise that occur in financial time series. The Dow Jones Industrial Average (DJIA) is one of the best-known indicators of developments in the US stock market. The DJIA is named after its founder, Charles Dow, and its business partner, Edward Jones. The index was first calculated on 26 May 1896. At that time, it contained 12 exclusively industrial companies focused on areas such as the railway industry, cotton, tobacco, sugar cane, natural gas, etc. Today, the DJIA consists of 30 American companies, many of these are the largest and the most traded (blue-chip companies). The historical development of the DJIA index for the observed period is shown in Figure 2. Figure 2. Historical development of the DJIA stock index. Table 2shows the basic statistics of selected stock index. The average price of the DJIA index for the selected period from January 2015 to January 2020 was 21,736.94. The price of the index rose to a maximum value of 28,645.26 and fell to a minimum value of 15,660.8. The standard deviation is a simple measure of the volatility of stock indices. For the DJIA index, the price fluctuated 3718.25. Skewness is a measure of asymmetry, or, more precisely, a lack of symmetry. Based on the values, it can be stated that the stock index has a positive asymmetric distribution of price probabilities. Furthermore, Kurtosis values show that it does not have a value close to 3, which is a theoretical value for the Gaussian probability distribution. This suggests that none of the probability distributions of this time series appear to be normally distributed. To confirm this assumption, the Jarque-Bera test was conducted with a zero hypothesis that the respective probability distribution was Gaussian (chi-square with 2 degrees of freedom). The reported values led to the rejection of the null hypothesis for all stock indices. This lack of normality is in line with the well-known “stylized facts” of market returns, as pointed out in previous studies [35].
Appl. Sci. 2022,12, 918 9 of 21 Table 2. Summary statistics of DJIA index for the observed period. Statistics DJIA Index Mean 21,736.94 Standard deviation 3718.25 Minimum 15,660.18 Maximum 28,645.26 Skewness 0.08 Kurtosis −1.52 Jarque-Bera test 122.98 ** ** indicates p-value lower than 0.01. Daily stock index closing rates for the selected period January 2015 to January 2020 are used, a medium-term period of 5 years. It is also clear from the Figure 2that this is a bullish trend or a rising trend without long-term bearish trends. The time period is deliberately ended in January 2020, before a sharp decline due to the COVID-19 pandemic situation. This is a sudden event that would significantly distort the output of the fuzzy model. Real data are processed through standard procedures applied in [ 36 , 37 ]. This step is purposeful, as the value of the stock index shows large fluctuations, which would not have to provide relevant outputs without pre-processing. yt=xt−m M−m(17) where xt is the closing daily price of the stock index at time t , M=max{xt} and m=min{xt} . Delayed data of the selected index are then selected as the input vector for the fuzzy model, up to a delay of three days, as described here: (yt−3,yt−2,yt−1,yt)(18) The delay of up to three days proved to be the most accurate in an earlier survey by [38], which is why the application is also performed here. The whole practical part is processed using MATLAB 2021a software and a special fuzzy logic toolbox was used to create the fuzzy model. The fuzzy model for stock market research consists of three input variables (value at time t-3, t-2 and t-1), one rule block and one output variable (value at time t). 5. Results and Evaluations As previously described, fuzzy logic has a number of advantages, in particular being able to work with vague terms, chaotic and dynamic environments and nonlinear behaviors that are typical of everyday use in stock market analysis. Specifically, this paper applies a higher level of fuzzy logic known as type-2 fuzzy logic, whose milked fuzzy functions are able to include additional uncertainty. The Mamdani fuzzy inference method has been widely applied in processing fuzzy rule-based systems. The Mamdani model is suitable if the modeled area is described using natural language. The input data is converted into fuzzy sets as part of the fuzzification process using mathematical functions. A total of nine models are created for each of the four shapes of the fuzzy sets: L—low, M—medium and H—high. Triangular, trapezoidal, Gaussian and bell member functions in the range [0; 1] were used to create fuzzy models and to examine the degrees of uncertainty in each of these MFs. A total of nine models were created for each MF, which differ in the magnitude of the uncertainty contained in the duplicate membership functions. Examined MF with varying levels of uncertainty are graphically illustrated in Appendix A. When compiling fuzzy sets, the parameters lower membership function scaling factor, specified as a positive scalar less than or equal to 1, are used. Next, the lag value is set. This delay defines the point at which the lower membership function value starts increasing from zero based on the value of the upper membership function. For example,
Appl. Sci. 2022,12, 918 16 of 21 3 Appl. Sci. 2022, 12, x FOR PEER REVIEW 16 of 21 3 4 Appl. Sci. 2022, 12, x FOR PEER REVIEW 16 of 21 3 4 Appl. Sci. 2022, 12, x FOR PEER REVIEW 16 of 21 3 4 Appl. Sci. 2022, 12, x FOR PEER REVIEW 16 of 21 3 4 4 Appl. Sci. 2022, 12, x FOR PEER REVIEW 16 of 21 3 4 Appl. Sci. 2022, 12, x FOR PEER REVIEW 16 of 21 3 4 Appl. Sci. 2022, 12, x FOR PEER REVIEW 16 of 21 3 4 Appl. Sci. 2022, 12, x FOR PEER REVIEW 16 of 21 3 4
Appl. Sci. 2022,12, 918 17 of 21 5 Appl. Sci. 2022, 12, x FOR PEER REVIEW 17 of 21 5 6 Appl. Sci. 2022, 12, x FOR PEER REVIEW 17 of 21 5 6 Appl. Sci. 2022, 12, x FOR PEER REVIEW 17 of 21 5 6 Appl. Sci. 2022, 12, x FOR PEER REVIEW 17 of 21 5 6 6 Appl. Sci. 2022, 12, x FOR PEER REVIEW 17 of 21 5 6 Appl. Sci. 2022, 12, x FOR PEER REVIEW 17 of 21 5 6 Appl. Sci. 2022, 12, x FOR PEER REVIEW 17 of 21 5 6 Appl. Sci. 2022, 12, x FOR PEER REVIEW 17 of 21 5 6
Appl. Sci. 2022,12, 918 18 of 21 7 Appl. Sci. 2022, 12, x FOR PEER REVIEW 18 of 21 7 8 Appl. Sci. 2022, 12, x FOR PEER REVIEW 18 of 21 7 8 Appl. Sci. 2022, 12, x FOR PEER REVIEW 18 of 21 7 8 Appl. Sci. 2022, 12, x FOR PEER REVIEW 18 of 21 7 8 8 Appl. Sci. 2022, 12, x FOR PEER REVIEW 18 of 21 7 8 Appl. Sci. 2022, 12, x FOR PEER REVIEW 18 of 21 7 8 Appl. Sci. 2022, 12, x FOR PEER REVIEW 18 of 21 7 8 Appl. Sci. 2022, 12, x FOR PEER REVIEW 18 of 21 7 8
Appl. Sci. 2022,12, 918 19 of 21 9 Appl. Sci. 2022, 12, x FOR PEER REVIEW 19 of 21 9 Appl. Sci. 2022, 12, x FOR PEER REVIEW 19 of 21 9 Appl. Sci. 2022, 12, x FOR PEER REVIEW 19 of 21 9 Appl. Sci. 2022, 12, x FOR PEER REVIEW 19 of 21 9
Appl. Sci. 2022,12, 918 20 of 21 References 1. Pincay, J.; Portmann, E.; Terán, L. Fuzzifying Geospatial Data to Identify Critical Traffic Areas. In Proceedings of the 19th World Congress of the International Fuzzy Systems Association, The 12th Conference of the European Society for Fuzzy Logic and Technology (IFSA-EUSFLAT 2021), Bratislava, Slovakia, 19–24 September 2021. 2. Li, R.; Jiang, C.; Zhu, F.; Chen, X. Traffic flow data forecasting based on interval type-2 fuzzy sets theory. IEEE/CAA J. Autom. Sin. 2016,3, 141–148. 3. Mendel, J.M. Type-2 fuzzy sets and systems: An overview. IEEE Comput. Intell. Mag. 2007,2, 20–29. [CrossRef] 4. Eren, M. Forecasting of the Fuzzy Univariate Time Series by the Optimal Lagged Regression Structure Determined Based on the Genetic Algorithm. Econ. Comput. Econ. Cybern. Stud. Res. 2018,52, 201–215. 5. Puška, A.; Kozar, S.; Stevic, Ž.; Stovrag, J. A New Way of Applying Interval Fuzzy Logic in Group Decision Making For Supplier Selection. Econ. Comput. Econ. Cybern. Stud. Res. 2018,52, 217–234. 6. Castro, J.R.; Sanchez, M.A.; Gonzalez, C.I.; Melin, P.; Castillo, O. A New Method for Parameterization of General Type-2 Fuzzy Sets. Fuzzy Inf. Eng. 2018,10, 31–57. [CrossRef] 7. Yankova, T.; Ilieva, G.; Klisarova, S. The bezier curve as a fuzzy membership function shape. Math. Appl. Ann. Acad. Rom. Sci. 2018,10, 245–265. 8. Wijayasekara, D.; Manic, M. Data Driven Fuzzy Membership Function Generation for Increased Understandability. In Proceedings of the IEEE International Conference on Fuzzy Systems, Beijing, China, 6–11 July 2014; pp. 133–140. 9. Kayacan, E.; Sarabakha, A.; Coupland, S.; John, R.; Khanesar, M.A. Type-2 fuzzy elliptic membership functions for modeling uncertainty. Eng. Appl. Artif. Intell. 2018,70, 170–183. [CrossRef] 10. Sadollah, A. Introductory Chapter: Which Membership Function is Appropriate in Fuzzy System? In Fuzzy Logic Based in Optimization Methods and Control Systems and Its Applications; Sadollah, A., Ed.; IntechOpen: London, UK, 2018. 11. Zhao, J.; Bose, B.K. Evaluation of membership functions for fuzzy logic controlled induction motor drive. In Proceedings of the 28th Annual IEEE Conference of the Industrial Electronics Society, Sevilla, Spain, 5–8 November 2002. 12. Esfahanipour, A.; Aghamiri, W. Adapted Neuro-Fuzzy Inference System on indirect approach TSK fuzzy rule base for stock market analysis. Expert Syst. Appl. 2010,37, 4742–4748. [CrossRef] 13. Talpur, N.; Salleh, M.N.M.; Hussain, K. An investigation of membership functions on performance of ANFIS for solving classification problems. IOP Conf. Ser. Mater. Sci. Eng. 2017,226, 012103. [CrossRef] 14. Vlasenko, A.; Vynokurova, O.; Vlasenko, N.; Peleshko, M. A Hybrid Neuro-Fuzzy Model for Stock Market Time-Series Prediction. In 2018 IEEE Second International Conference on Data Stream Mining & Processing (DSMP); IEEE: New York, NY, USA, 2018; pp. 352–355. 15. Ghandar, A.; Michalewicz, Z.; Schmidt, M.; To, T.; Zurbrugg, R. Computational intelligence for evolving trading rules. IEEE Trans. Evol. Comput. 2009,13, 71–86. [CrossRef] 16. Rajab, S.; Sharma, V. An interpretable neuro-fuzzy approach to stock price forecasting. Soft Comput. 2017 ,23, 921–936. [CrossRef] 17. Gautam, S.S.; Abhishekh. A Novel Moving Average Forecasting Approach Using Fuzzy Time Series Data Set. J. Control Autom. Electr. Syst. 2019,30, 532–544. [CrossRef] 18. Abhishekh, G.S.S.; Singh, S.R. A New Type 2 Fuzzy Time Series Forecasting Model Based on Three-Factors Fuzzy Logical Relationships. Int. J. Uncertain. Fuzziness Knowl.-Based Syst. 2019,27, 251–276. [CrossRef] 19. Pinto, É.A.N.; Schnitman, L.; Reis, R.A. A Fuzzy Based Recommendation System for Stock Trading. In Fuzzy Information Processing, Proceedings of the NAFIPS 2018: Communications in Computer and Information Science, West Lafayette, IN, USA, 7–9 June 2018; Barreto, G., Coelho, R., Eds.; Springer: Cham, Switzerland, 2018; Volume 831. 20. Liu, Z.; Zhang, T. A second-order fuzzy time series model for stock price analysis. J. Appl. Stat. 2019,46, 2514–2526. [CrossRef] 21. Chourmouziadis, K.; Chourmouziadou, D.K.; Chatzoglou, P.D. Embedding Four Medium-Term Technical Indicators to an Intelligent Stock Trading Fuzzy System for Predicting: A Portfolio Management Approach. Comput. Econ. 2021 ,57, 1183–1216. [CrossRef] 22. Sharma, D.K.; Hota, H.S.; Rababaah, A.R. Forecasting US stock price using hybrid of wavelet transforms and adaptive neuro fuzzy inference system. Int. J. Syst. Assur. Eng. Manag. 2021. [CrossRef] 23. Jiang, J.-A.; Syue, C.-H.; Wang, C.-H.; Wang, J.-C.; Shieh, J.-S. An Interval Type-2 Fuzzy Logic System for Stock Index Forecasting Based on Fuzzy Time Series and a Fuzzy Logical Relationship Map. IEEE Access 2018,6, 69107–69119. [CrossRef] 24. Bhattacharya, D.; Konar, A. Self-adaptive type-1/type-2 hybrid fuzzy reasoning techniques for two-factored stock index timeseries prediction. Soft Comput. 2018,22, 6229–6246. [CrossRef] 25. Lathamaheswari, M.; Nagarajan, D.; Kavikumar, J.; Broumi, S. Triangular interval type-2 fuzzy soft set and its application. Complex Intell. Syst. 2020,6, 531–544. [CrossRef] 26. Zare, A.; Shoeibi, A.; Shafaei, N.; Moridian, P.; Alizadehsani, R.; Halaji, M.; Khosravi, A. Accurate Prediction Using Triangular Type-2 Fuzzy Linear Regression. arXiv 2021, arXiv:2109.05461. 27. Janková, Z.; Dostál, P. Type-2 Fuzzy Expert System Approach for Decision-Making of Financial Assets and Investing under Different Uncertainty. Math. Probl. Eng. 2021,2021, 3839071. [CrossRef] 28. Sang, X.; Zhou, Y.; Yu, X. Uncertain possibility-probability information fusion method under interval type-2 fuzzy environment and its application in stock selection. Inf. Sci. 2019,504, 546–560. [CrossRef]
Appl. Sci. 2022,12, 918 21 of 21 29. Mendel, J.M.; John, R.I.; Liu, F. Interval type-2 fuzzy logic systems made simple. IEEE Trans. Fuzzy Syst. 2006 ,14, 808–821. [CrossRef] 30. Mendel, J.M. Uncertain Rule-Based Fuzzy Logic Systems; Prentice Hall: Los Angeles, CA, USA, 2001. 31. Sang, X.; Liu, X. Possibility mean and variation coefficient based ranking methods for type-1 fuzzy numbers and interval type-2 fuzzy numbers. J. Intell. Fuzzy Syst. 2016,30, 2155–2168. [CrossRef] 32. Zadeh, L.A. Probability measures of fuzzy events. J. Math. Anal. Appl. 1968,23, 421–427. [CrossRef] 33. Zimmermann, H.J. Possibility Theory, Probability Theory, and Fuzzy Set Theory; Springer: Dordrecht, The Netherlands, 1996. 34. Chang, P.C.; Liu, C.H. A TSK type fuzzy rule based system for stock price prediction. Expert Syst. Appl. 2008 ,34, 135–144. [CrossRef] 35. Polanco-Martínez, J.M.; Fernández-Macho, J.; Neumann, M.B.; Faria, S.H. A pre-crisis vs. crisis analysis of peripheral EU stock markets by means of wavelet transform and a nonlinear causality test. Phys. A Stat. Mech. Appl. 2018 ,490, 1211–1227. [CrossRef] 36. Li, R.J.; Xiong, Z.B. Forecasting stock market with fuzzy neural networks. In Proceedings of the 2005 International Conference on Machine Learning and Cybernetics, Guangzhou, China, 18–21 August 2005; Volume 6, pp. 3475–3479. 37. Zhai, F.; Wen, Q.; Yang, Z.; Song, Y. Hybrid forecasting model research on stock data mining. In Proceedings of the 4th International Conference on New Trends in Information Science and Service Science, Gyeongju, Korea, 11–13 May 2010; pp. 630–633. 38. Janková, Z.; Dostál, P. Prediction of European Stock Indexes Using Neuro-fuzzy Technique. Trendy Ekon. Manag. 2020 ,14, 45–57. [CrossRef] 39. Janková, Z.; Janková, Z.; Jana, D.K.; Dostál, P. Investment Decision Support Based on Interval Type-2 Fuzzy Expert System. Inz. Ekon.-Eng. Econ. 2021,32, 118–129.