# Analyzing the Association between Pattern and Returns Using Goodman–Kruskal Prediction Error Reduction Index (λ)

Authors: Parmod Kumar Paul; Om Prakash Mahela; Baseem Khan
Journal: Complexity
 (2022)

---

## Abstract

For selecting and interpreting appropriate behaviour of proportion between buy/neutral/sell patterns and high/moderate/low returns, the prediction error reduction index is a very useful tool. It is operationally interpretable in terms of the proportional reduction in error of estimation. We first obtain the buy/sell pattern using an Optimal Band. The analysis of the association between patterns and returns is based on the Goodman–Kruskal prediction error reduction index (λ). Empirical analysis suggests that the prediction of returns from patterns is more impressive or of less error as compared to the prediction of patterns from returns. We demonstrated the prediction index for Index NIFTY 50, BANK-NIFTY, and NIFTY-IT of NSE (National Stock Exchange), for the period 2010–2020.


---

## Body

## 1. Introduction

In the domain of the stock market, there have been several studies well formulated on the relationship between two financial variables. In this domain, the association or relation is very important. With the help of one known variable, one can predict/estimate other unknown variables. There are a number of literature studies on the association between different kinds of financial variables, like exchange rates, stock prices, returns, volatility, and many more factors. Here, we discussed some of the literature.


### 1.1. Related Work

The relationship between market sentiment index and stock rates of returns in the Brazilian market is explored in [1]. The relation between common stock returns, trading activity, and market value is explored in [2]. There are relationships between strange variables such as Quantile relationships between oil and stock return is presented in [3], which is evidence from emerging and frontier stock markets. Further, the relationship between music sentiment and stock returns presented in [4]. Moreover, when the market drives investors crazy, the relationship between stock market returns and fatal car accidents is presented in [5]. Firm efficiency and stock returns during the COVID-19 crisis are discussed in [6]. Football sentiment and stock market returns are expounded in [7]. Apart from these, there are many more association between investor sentiments and market returns as in [8]. In [9], authors discussed the relationship between firm size and international content of earnings, while in [10], authors discussed the relationship between transaction cost and small firm effect.


### 1.2. Motivation

In the above literature, there is some gap of relation between patterns and returns. Based on some known pattern of a particular index, we predict the future returns of the index. In most back-testing processes, returns is a known variable for us, and based on this variable, we predict pattern or combination of different patterns that depend on the price series of the index. We test our pattern by back-testing used in the current market that is combination of pattern and returns. This is the major gap of research on relation between these two variables based on different price series. In this research article, we try to fill this gap. This is our main motivation behind this study.


### 1.3. Objective

In this research paper, we discuss the association between pattern and returns with prediction error reduction index on either side of prediction, pattern from returns and returns from pattern. These two variables play a very important role in the stock market. When developing an investment strategy and selecting index or stocks for our portfolio, the association can be a very helpful tool. There are various algorithms and models available in the literature, for predicting the pattern of financial time series [11–14]. In the modern era, the most trendy pattern prediction technique is artificial intelligence. There is a lot of research analysis of pattern prediction using AI algorithm [15–19]. Each model has its own advantages and limitations associated with it and also shows an error when we execute it. For example, these models have prediction errors while predicting the buy/sell pattern. We can use appropriate preprocessing techniques which can help in reducing the prediction error significantly. We construct such a method by using the Goodman–Kruskal index [20]. Goodman–Kruskal’s lambda has been widely used in applications. Jaroszewicz et al. used the lambda for constructing a minimal classifier for cancer data [21, 22]. Taha and Hadi used it to compare the performance of a new measure of association [23].Here, we initially constructed a two-dimension contingency table using the count of elements of pattern (buy/neutral/sell) and returns (high/moderate/low). The count of contingency tables depends on the trading/investing way or strategy. There are a number of strategies and trading styles to construct contingency. In this paper, analysis is done using Optimal Band to classify the financial data into patterns and returns; for more details see reference [24]. Some details of Optimal Band and the construction of the contingency table are as follows:(i)
The construction of Optimal Band is based on the global and local extremums of given financial time series data.(ii)
This gives a two-dimensional contingency table which consists of two variables, returns and pattern.(iii)
The table can be constructed in two different ways:(1)
Optimal Band divides the pattern data into three categories of sell, neutral, and buy and then uses each of these categories for prediction of returns (high, moderate, and low)(2)
Optimal Band divides the returns data into categories of high, moderate, and low and then uses each of these categories for prediction of patterns (sell, neutrals and buy).With the help of these tables, we find the prediction error of the data with the help of the Goodman–Kruskal index of prediction proportion (λ) [25–27]. Based on different values of λ, we decide which way is better: prediction of pattern from returns or prediction of returns from pattern, that is, whether to categorize the pattern data first or to categorize the returns data first.Here, we proposed a noble method to find the perfect pattern using given returns in back-testing data based on Goodman–Kruskalλ. And then, we use the same pattern to find returns in the live market. We defined the different kinds of pattern and returns as in the research article by Vijay and Paul [24]. We analyze the statistical significance of λ, using errors defined as(1)λ=ε1−ε2ε1.The remaining part of the paper is structured as follows: Section2 contains the algorithm for construction of a contingency table and uses it to obtain the prediction error reduction index proportion (λ). The methodology is demonstrated with empirical analysis and their results for Index NIFTY 50, BANK-NIFTY, and NIFTY-IT data from 2010 to 2020 in Sections 3–6. Conclusion of the work for all index data from 2010 to 2020 is provided in Section 7.


## 1.1. Related Work

The relationship between market sentiment index and stock rates of returns in the Brazilian market is explored in [1]. The relation between common stock returns, trading activity, and market value is explored in [2]. There are relationships between strange variables such as Quantile relationships between oil and stock return is presented in [3], which is evidence from emerging and frontier stock markets. Further, the relationship between music sentiment and stock returns presented in [4]. Moreover, when the market drives investors crazy, the relationship between stock market returns and fatal car accidents is presented in [5]. Firm efficiency and stock returns during the COVID-19 crisis are discussed in [6]. Football sentiment and stock market returns are expounded in [7]. Apart from these, there are many more association between investor sentiments and market returns as in [8]. In [9], authors discussed the relationship between firm size and international content of earnings, while in [10], authors discussed the relationship between transaction cost and small firm effect.


## 1.2. Motivation

In the above literature, there is some gap of relation between patterns and returns. Based on some known pattern of a particular index, we predict the future returns of the index. In most back-testing processes, returns is a known variable for us, and based on this variable, we predict pattern or combination of different patterns that depend on the price series of the index. We test our pattern by back-testing used in the current market that is combination of pattern and returns. This is the major gap of research on relation between these two variables based on different price series. In this research article, we try to fill this gap. This is our main motivation behind this study.


## 1.3. Objective

In this research paper, we discuss the association between pattern and returns with prediction error reduction index on either side of prediction, pattern from returns and returns from pattern. These two variables play a very important role in the stock market. When developing an investment strategy and selecting index or stocks for our portfolio, the association can be a very helpful tool. There are various algorithms and models available in the literature, for predicting the pattern of financial time series [11–14]. In the modern era, the most trendy pattern prediction technique is artificial intelligence. There is a lot of research analysis of pattern prediction using AI algorithm [15–19]. Each model has its own advantages and limitations associated with it and also shows an error when we execute it. For example, these models have prediction errors while predicting the buy/sell pattern. We can use appropriate preprocessing techniques which can help in reducing the prediction error significantly. We construct such a method by using the Goodman–Kruskal index [20]. Goodman–Kruskal’s lambda has been widely used in applications. Jaroszewicz et al. used the lambda for constructing a minimal classifier for cancer data [21, 22]. Taha and Hadi used it to compare the performance of a new measure of association [23].Here, we initially constructed a two-dimension contingency table using the count of elements of pattern (buy/neutral/sell) and returns (high/moderate/low). The count of contingency tables depends on the trading/investing way or strategy. There are a number of strategies and trading styles to construct contingency. In this paper, analysis is done using Optimal Band to classify the financial data into patterns and returns; for more details see reference [24]. Some details of Optimal Band and the construction of the contingency table are as follows:(i)
The construction of Optimal Band is based on the global and local extremums of given financial time series data.(ii)
This gives a two-dimensional contingency table which consists of two variables, returns and pattern.(iii)
The table can be constructed in two different ways:(1)
Optimal Band divides the pattern data into three categories of sell, neutral, and buy and then uses each of these categories for prediction of returns (high, moderate, and low)(2)
Optimal Band divides the returns data into categories of high, moderate, and low and then uses each of these categories for prediction of patterns (sell, neutrals and buy).With the help of these tables, we find the prediction error of the data with the help of the Goodman–Kruskal index of prediction proportion (λ) [25–27]. Based on different values of λ, we decide which way is better: prediction of pattern from returns or prediction of returns from pattern, that is, whether to categorize the pattern data first or to categorize the returns data first.Here, we proposed a noble method to find the perfect pattern using given returns in back-testing data based on Goodman–Kruskalλ. And then, we use the same pattern to find returns in the live market. We defined the different kinds of pattern and returns as in the research article by Vijay and Paul [24]. We analyze the statistical significance of λ, using errors defined as(1)λ=ε1−ε2ε1.The remaining part of the paper is structured as follows: Section2 contains the algorithm for construction of a contingency table and uses it to obtain the prediction error reduction index proportion (λ). The methodology is demonstrated with empirical analysis and their results for Index NIFTY 50, BANK-NIFTY, and NIFTY-IT data from 2010 to 2020 in Sections 3–6. Conclusion of the work for all index data from 2010 to 2020 is provided in Section 7.


## 2. Proposed Methodology

Consider the daily close price time seriesY1,Y2,…,Yn of a stock. We define the process of construction of contingency table for two variables, returns and pattern, of financial time series. We divide the data into three categories, sell, neutral, and buy, of patterns using the classifier, Optimal Band [24]. In this section, a brief summary of the construction of an Optimal Band is given; for more details, see [24]:Step 1: define(2)α=MaxY1,Y2,…,Yn;δ=MinY1,Y2,…,Yn;βi=MaxYi,Yi+1,…,Yi+5,1≤i≤n−5;γi=MinYi,Yi+1,…,Yi+5,1≤i≤n−5.Step 2: define the linear function as(3)f=a∗α+b∗β¯+c∗γ¯+d∗δ,whereβ¯=meanβ1,β2,…,βn−5=1n−5∑i=1n−5βi,γ¯=meanγ1,γ2,…,γn−5=1n−5∑i=1n−5γi.Step 3: the following optimization problem is now solved to estimate the parameters a, b, c, and d:(4)Max︸a,b,c,dfα,β¯,γ¯,δ=a∗α+b∗β¯+c∗γ¯+d∗δ,such thatf>0,f<α−β¯2,wherea,b,c,d∈R.Step 4: define the bands, for 1≤i≤n − 5,UpperBandUB1=βi+fα,β¯,γ¯,δUpperBandUB2=βi−fα,β¯,γ¯,δMiddleLayerML=fα,β¯,γ¯,δLowerBandLB1=γi+fα,β¯,γ¯,δLowerBandLB2=γi−fα,β¯,γ¯,δThese bands are used to divide the pattern data into three of its categories, sell, neutral, and buy, as shown in Table1, that is,(5)Yi∈YS,ifUB1≤Yi<UB2,Yi∈YN,ifUB2≤Yi<LB1,Yi∈YB,ifLB1≤Yi≤LB2,for1≤i≤n−5.where YS, YN, and YB are, respectively, the sell, neutral, and buy categories.Table 1
Table of pattern counts.
PatternCountProportionSellYSp1NeutralYNp2BuyYBp3Let us define new variables as follows:YS is the cardinality of the subsets of sellYN is the cardinality of the subsets of neutralYB is the cardinality of the subsets of buyNow, we find the prediction error of single variable of pattern [22].(6)ε1=1−maxYS,YN,YBTotal.We further divide each categories of sell, neutral, and buy of patterns using the same classification technique into subcategories (high, moderate, and low) of returns [24]. We construct Table 2 which is the 2-dimensional contingency table [28].Table 2
2-dimensional frequency table.
PatternReturnsHighModerateLowSellYSHYSMYSLNeutralYNHYNMYNLBuyYBHYBMYBLFrom the table,YSH is the cell corresponding to pattern (sell) and returns (high). The error of prediction for Table 2, where column I = C-I, Maximum = M, sum = S, and Total = T is given by(7)ε2=1−SMC−I,MC−II,MC−IIIT.Goodman–Kruskal prediction error reduction index (λ): Goodman and Kruskal introduced the idea of proportional reduction in error (PPE) of prediction [25]. The value of λ measures the association of nominal variables for cross tabulations. The value of λ depends upon the proportions of the constructed model. The value of measure of association λ represents the reduction of error of dependent variables (pattern or returns) for a given value of independent variables (returns or pattern). For any given data of a nominal independent variable and dependent variable, it indicates the extent to which the model categories and frequencies for each value of the independent variable differs from the overall model category and frequency, denoted by λ. It can be calculated using the following equation:(8)λ=ϵ1−ϵ2ϵ1,where ϵ1 and ϵ2 are defined in equations (6) and (7), respectively.The range ofλ varies between 0 (zero association) and 1 (compete association).


## 3. Experiments and Results

In this section, we implement the classification method, Optimal Band, and Goodman–Kruskal prediction error reduction index (λ), using the daily returns of Index NIFTY 50 for the year 2010. We use Optimal Band to classify the data into three categories of pattern (sell, neutral, and buy). We plot the data with Optimal Band to create the three categories of pattern as shown in Figure 1. For a detailed explanation of Figure 1, please refer to reference [24]. Each of these categories of pattern is further divided into three subcategories of returns (high, moderate, and low) using Optimal Band (Table 3).Figure 1
Optimal Band classification for NIFTY 50 of 2010.Table 3
Two-variable classification.
PatternReturnsTotalHighModerateLowSell211529146Neutral211417Buy4241184Total6811366247Table4 is the table of counts of different categories of patterns constructed by using the algorithm given in Section 2.Table 4
Single-variable classification of pattern of NIFTY 50.
PatternCountProportion = count/totalSell1460.5911Neutral170.0692Buy840.3401The highest proportion corresponding to sell implies that the best prediction of new instance of Index NIFTY 50 of year 2010 data might fall into the sell category as this category consists of the largest number of items in the observed data set. In this case, we are assuming the sample proportion to be an unbiased reflection of the general population of data set. The estimated probability proportion of correct prediction is 146/247 = 0.5911, and the estimated probability prediction error is(9)ϵ1=1−0.5911=0.4089.Now, these categories of pattern are concurrently divided into three further categories of returns (high, moderate, and low).In this case, the prediction error is refined. Table3 represents that the data set belongs to the sell category of pattern. The best category of returns is moderate. Similarly, if the data set belongs to neutral and buy categories, the respective best prediction of returns is moderate and high. The refined estimated probability of prediction is (42 + 115 + 29)/247 = 0.7530, and the estimated probability error is(10)ϵ2=1−0.7530=0.2470.The probability of prediction error isϵ1 = 0.4089, as the association between pattern and returns is not established. Once the association is established, the error reduces to ϵ2 = 0.2470. The Goodman–Kruskal prediction error index gives the measure of proportion by which the prediction error is reduced in aforementioned situations [27]. The following equation gives the value of lambda (λ1) for the case of predicting returns from pattern:(11)λ1=0.4089−0.24700.4089=0.3960.In equation (11), lambda is asymmetric in nature [25]. We turn things around so as to make categorical predictions of pattern from returns.Our best bet in the absence of information about pattern would be moderate, due to the returns category with the largest number of instances (see Table5). The initial estimated probability of error in this case would be 1 − (155/247) = 0.3723. Once we factor the relationship between pattern and returns, we could refine the guesses by predicting low when data are sell category; moderate when data are neutral category; and high when data are buy category. The estimated probability of correct prediction would now be (43 + 104 + 36)/247 = 0.7409 as shown in Table 6, the estimated probability of error would be 1 − 0.7409 = 0.2591, and the proportionate reduction in prediction error lambda (λ2) is(12)λ2=0.3723−0.25910.3723=0.3040.Table 5
Single-variable classification of returns.
ReturnsCountProportion = count/totalHigh420.1700Moderate1550.6275Low500.2024Table 6
Two-variable classification.
ReturnsPatternTotalSellNeutralBuyHigh243642Moderate2310428155Low435250Total6811366247Now, we extended our analysis for the Index NIFTY 50 from 2010 to 2020 to find the value ofλ of returns from pattern and pattern from returns for each year as shown in Table 7. Also, we extend the analysis for other indexes BANK-NIFTY and NIFTY-IT for same period of time 2010–2020 (see Tables 8 and 9).In Tables7–9, the values of λ1andλ2 represent the prediction error reduction index corresponding to Index NIFTY 50, BANK-NIFTY, and NIFTY-IT. Also, Table 10 shows the average value of λ1andλ2 representing the average prediction error reduction index corresponding to some stocks. These tables have column λ value prediction error reduction index for returns from pattern and pattern from returns. The value of λ is more in case returns from pattern than in pattern from returns. If this factor is more, it means prediction error is going to be reduced and prediction will be more perfect. Reduction indexes minimize the error that occurs during the analysis of data.Table 7
Prediction error reduction index of Index NIFTY 50 for the period 2010–2020.
YearReturns from patternPattern from returnsϵ1ϵ2λ1ϵ1′ϵ2′λ220100.40890.24700.39590.37230.25910.304020110.63270.48570.23230.48750.42560.127020120.20580.16460.20000.56210.51240.088420130.42040.34240.18450.62140.57460.075320140.43150.36100.16350.63210.54630.135720150.40890.31240.23600.52140.41250.208920160.63270.51240.19010.43650.33210.239220170.56480.36540.35300.36250.25470.297420180.48750.34270.29700.21540.17540.185720190.65840.54870.16660.36540.31540.136820200.54870.32580.40620.26140.23150.1144Table 8
Prediction error reduction index of Index BANK-NIFTY for the period 2010–2020.
YearReturns from patternPattern from returnsϵ1ϵ2λ1ϵ1′ϵ2′λ220100.52640.36120.31380.23560.17450.259320110.65410.48570.25750.24570.19560.203920120.78450.62130.20800.35640.29560.170620130.75410.62140.17600.45210.38740.143120140.54130.41250.23790.54780.32140.413320150.45210.38740.14310.63210.59610.057020160.32410.21450.33820.56470.48510.141020170.38740.26540.31490.74530.65410.122120180.23410.11450.51090.84510.63210.252020190.28740.12540.56370.74120.65210.120220200.12450.04780.61610.62140.51240.1754Table 9
Prediction error reduction index of Index NIFTY-IT for the period 2010–2020.
YearReturns from patternPattern from returnsϵ1ϵ2λ1ϵ1′ϵ2′λ220100.65470.53210.18730.65210.60120.078120110.32650.28560.12530.23140.20310.122320120.62140.51240.17540.32650.28540.125920130.87450.63210.27720.41520.32650.213620140.42360.32140.24130.36280.28560.212820150.56210.45210.19570.56210.50120.108320160.41270.39650.09930.32650.32150.015320170.23560.19650.16600.85620.79210.074920180.32610.27450.15820.63210.59320.061520190.12540.11540.07970.32610.14230.397320200.41260.31240.24290.31240.26540.1504Table 10
Average prediction error reduction index of stocks for the period 2010–2020.
StocksReturns from patternPattern from returnsϵ1ϵ2λ1ϵ1′ϵ2′λ2HDFC0.56740.48510.14500.61530.53240.1347SBI0.43650.39420.09690.41580.36540.1212REL0.61240.42150.31170.56210.53470.0487ICICI0.32650.29650.09190.32140.27290.1509TCS0.48510.38740.20140.51280.27410.4655INFY0.63140.32140.49100.41270.39410.0451LUPIN0.71310.52360.26570.53210.47520.1069ITC0.62540.47850.23490.69510.63540.0859CIPLA0.41250.29510.28460.42370.36840.1305NTPC0.32640.14520.55510.53120.40120.2447UPL0.51360.23450.54340.43560.37450.1403


## 4. Recession Periods

A financial crisis is any of a number of scenarios in which certain financial assets lose a significant portion of their nominal value all of a sudden. Numerous financial crises were coupled with banking panics throughout the 19th and early twentieth centuries, and many recessions corresponded with these panics, as illustrated in Figure2. Stock market collapses and the bursting of other financial bubbles, currency crises, and sovereign defaults are examples of circumstances that are commonly referred to as financial crises. However, there is no agreement, and financial crises of the sort described in the following continue to occur from time to time:(i)
Banking crisis(ii)
Currency crisis(iii)
Speculative bubbles and crashes(iv)
International financial crisisFigure 2
Financial crisis.Here, we will discuss major financial crises such as the Asian Financial Crisis of 1997 (2 July 1997). This crisis arose as a result of investors fleeing emerging Asian stocks, notably Hong Kong’s inflated stock market. Crashes occurred in Thailand, Indonesia, South Korea, the Philippines, and elsewhere, with the mini-crash on October 27, 1997, serving as a high point. The Dot-com bubble burst on March 10, 2000, as a result of a technological bubble burst. The financial crisis of 2007-08 is the third (16 Sep 2008). Failures of large financial institutions in the United States, primarily due to exposure of securities of packaged subprime loans and credit default swaps issued to insure these loans and their issuers, quickly devolved into a global crisis on September 16, 2008, resulting in a number of bank failures in Europe and sharp drops in the value of equities (stocks) and commodities worldwide. The most recent stock market catastrophe happened in 2020 (24 Feb 2020). This crash was part of a worldwide recession caused by the COVID-19 pandemic.During these financial crises mentioned above, the mechanism of selecting pattern does not vary. However, pattern selection varies, and it may be biased toward short or long patterns. In back-testing during these financial crises, the error pattern from returns is as shown in Table11, which is much lower than the error pattern from return. Table 11 shows the yearly average prediction error index for patterns in terms of λ1 and λ2 in four financial crisis periods of 1997, 2000, 2008, and 2020 for NIFTY 50, NIFTY-IT, and BANK-NIFTY. In case of NIFTY-IT, the value of λ2 is higher than λ1 that means errors occur more in selection patterns from returns and all other patterns are selected smooth.Table 11
Yearly average prediction error reduction index of NSE indices.
IndexNIFTY 50NIFTY-ITBANK-NIFTYλ1λ2λ1λ2λ1λ219970.32840.28470.58470.61640.36450.284720080.41290.38450.34560.29630.31560.299920160.52470.49850.51290.42580.39540.338720200.47820.41110.47860.39650.42580.3859


## 5. Comparison with Related Work

Presently, there are lots of research works on association between two or more variables. Here, we define the association between returns and patterns based on back-testing and live trading prediction of returns. In back-testing, we have returns of the data and try to find patterns with the Goodman–Kruskal prediction error index, and in live trading, we have back-tested patterns and predicted returns of future data. Most research works concentrate on prediction of future data pattern without knowing back-testing data pattern accuracy. But here, we try to recommend strong back-testing patterns using Goodman–Kruskal prediction error index.


## 6. Scalability to Economic Significance and Practical Implications

Stock markets are critical to the economy’s functioning since they serve as the backbone of a contemporary nation’s economic infrastructure. Companies can use stock markets to obtain funds to expand, recruit more qualified employees, and repair or replace equipment. Individuals can also invest in businesses through these platforms.Stock exchanges provide companies the ability to raise capital to expand their businesses. When a company needs to raise money, they can sell shares of the company to the public. They accomplish this by listing their shares on a stock exchange. Annual reports help investors analyze the performance of companies listed on an exchange.Investors can purchase shares in public offerings, and the funds collected are deployed by the firm to expand operations, acquire another company, or hire extra employees. All of this contributes to an increase in economic activity, which serves to propel the economy forward. The banking sector, the information technology industry, the pharmaceutical business, and other manufacturing industries all contribute significantly to the country’s economic growth. In this study, we look at three NSE (National Stock Exchange) indices, NIFTY 50, BANK-NIFTY, and NIFTY-IT, which cover vital business stocks that are a large part of our economy’s growth, as shown in Figure3. Investors can use our research to determine the optimum pattern for investing in indexes (futures) or stocks. From 2010 to 2020, Table 12 displays the results of pattern selection based on returns in terms of average prediction error reduction index of indices. Table 12 shows that from 2010 to 2020, the error for pattern selection from returns will be decreased.Figure 3
NSE indices.Table 12
Average prediction error reduction index of NSE indices for the period 2010–2020.
StocksReturns from patternPattern from returnsϵ1ϵ2λ1ϵ1′ϵ2′λ2NIFTY 500.48750.41230.15430.69450.63450.0864BANK-NIFTY0.56890.39560.30460.52310.44820.1432NIFTY-IT0.46320.33480.27720.48960.41560.1511


## 7. Conclusions

Here, we conclude from the whole analysis that the prediction of association between two variables is very important, but the way you predict the association is also very important. In economic analysis, any economic factor has two ways, top to bottom and bottom to top. In a similar manner, we try to find the best way to predict the association from one known variable to an unknown variable, which has less prediction error.In the present analysis, we find prediction analysis error index of patterns of returns from seen data or back-testing data and patterns of returns from the unseen data or future data. The reduction error index of pattern from returns is less which helps to collect better patterns based on given returns that are used in live data to predict returns.Here, we use the classifier, Optimal Band, and the measure of association (λ) to find the Goodman–Kruskal prediction error reduction index. It works effectively to find the error in prediction. We did the analysis in two ways to classify the data for association, from returns to patterns, and in a reverse way from pattern to returns, using Optimal Band. We observe that the prediction error reduction index of returns from patterns is more than that of patterns from returns using Goodman–Kruskal index (λ) for all data sets. Data of Index NIFTY 50, BANK-NIFTY, NIFTY-IT, and stocks for 2010–2020 were used; if the prediction error reduction index lambda is more, error is less. This lambda that predicts the returns from pattern is better than that which predicts the patterns from returns in all three indices. The constituent (stocks) of the indices also follow the same pattern. The prediction of returns from this pattern is better. In 2014, BANK-NIFTY had a lower prediction error reduction index, followed by NIFTY 50 in 2016 and NIFTY-IT in 2014. Also, we make good selection of patterns in different financial crises for NIFTY 50, BANK-NIFTY, and NIFTY-IT.



---

*Source: 8196436-2022-01-15.xml*