key: cord-0044794-neqsup40 authors: Grzegorzewski, Przemyslaw title: Two-Sample Dispersion Problem for Fuzzy Data date: 2020-05-16 journal: Information Processing and Management of Uncertainty in Knowledge-Based Systems DOI: 10.1007/978-3-030-50153-2_7 sha: fd3f5d2f8411a4b57834bf856b8fe7a4ca1572cd doc_id: 44794 cord_uid: neqsup40 The problem of comparing variability of two populations with fuzzy data is considered. A new permutation two-sample test for dispersion based on fuzzy random variables is proposed. A case-study illustrating the applicability of the suggested testing procedure is also presented. Various two-sample statistical tests are designed to determine whether given two populations differ significantly. In such case we assume that the universe of discourse consists of two populations, say X and Y , with cumulative distribution functions F and G, respectively. Then, having a random sample of size n drawn from the X population and another random sample of size m drawn from the Y population, we consider the null hypothesis that these two samples are actually drawn from the same population, i.e. H 0 : F = G. One may verify H 0 against the general alternative hypothesis that the populations just differ in some way. The Kolmogorov-Smirnov test or the Wald-Wolfowitz run test are often used in this context (see e.g. [5] ). However, they are really useful in preliminary studies only since affected by any type of difference between distributions, they are not very efficient in detecting any specific type of the difference like difference in location or difference in variablity. Other tests, like the Mann-Whitney-Wilcoxon test, the median test, etc. (see e.g. [5] ) are particularly sensitive to differences in location when the populations are identical otherwise and hence cannot be expected to perform extremely well against other alternatives. However, sometimes we need statistical procedures designed to detect differences in variability or dispersion instead of location. Indeed, comparison of variability might be of interest in many areas including social sciences, biology, clinical trials, engineering, manufacturing and quality control, etc. Moreover, tests for the equality of variances are often required as a preliminary tool for the analysis of variance (ANOVA), dose-response modeling, discriminant analysis, etc. It is important to emphasize that comparing variability is much harder than comparing measures of location. The famous F test assumes that both underlying populations are normally distributed and is not robust to departures from normality even asymptotically. Thus many nonparametric two-sample tests based on the ranks have been proposed for the scale problem. The best-known tests are the Ansari-Bradley test, the Mood test, the Siegel-Tukey test, the Klotz normal-scores test, the Sukhatme test, etc. Designing tests for the dispersion problem turns out to be much more difficult in the case of imprecise or vague data which appear quite often in the real-life problems. In particular, human ratings based on opinions or associated with perceptions often lead to data that cannot be expressed in a numerical scale because they consist of intrinsically imprecise or fuzzy elements. Since they are also realizations of some random experiment, we are faced with random fuzzy structures that cannot be analyzed with classical statistical methods. Obviously, one may try to neglect, hide or remove imprecision but the most recommended approach is to consider it as a challenge for modeling and developing new inferential tools. A general framework for such modeling is given by fuzzy random variables. However, besides mathematical elegence they also bring some fundamental difficulties. For instance, random fuzzy numbers are not linearly ordered so the aforementioned tests based on ranks cannot be directly applied in fuzzy environment. Depending on the context various test constructions have been proposed in the literature (for the overview we refer the reader e.g. to [7, 8, [11] [12] [13] [14] 16, 18, 19, 21, 26] ). However, the dispersion problem with imprecise data has not beed considered very often. Ramos-Guajardo and Lubiano [26] proposed the bootstrap generalization of the Levene test for random fuzzy sets to examine homoscedasticity of k populations. Grzegorzewski [15] introduced two generalizations of the Sukhatme test for interval-valued data. In this paper we suggest a permutation test for fuzzy data to compare variability of two populations. For motivations we turned back to the classical inference showing that permutation tests, like the bootstrap, require extremly limited assumptions. Indeed, permutation tests are totally distribution-free and require only exchangeability (i.e., under the null hypothesis we can exchange the labels on the observations without affecting the results). Classical permutation test are often more powerful than their bootstrap counterparts (see [9] ). Permutation test are exact if all permutation are considered, while bootstrap tests are exact only for very large samples. Moreover, asymptotically permutation tests are usually as powerful as the most powerful parametric tests (see [1] ). Keeping this in mind we combine the Pan test [22] and the Marozzi test [20] and then generalize them into the permutation testing procedure that handle fuzzy data. The paper is organized as follows: in Sect. 2 we recall basic concepts related to fuzzy data modeling and operations on fuzzy numbers. Section 3 is devoted to fuzzy random variables. In Sect. 4 we introduce the two-sample test for the dispersion dedicated to fuzzy data. Next, in Sect. 5 we present some results of the simulation study and the case study with the proposed test. Finally, conclusions and some indications for the futher research are given in Sect. 6. A fuzzy number is an imprecise value characterized by a mapping A : R → [0, 1], called a membership function), such that its α-cut defined by is a nonempty compact interval for each α ∈ [0, 1]. Operator cl in (1) denotes for the closure. Thus every fuzzy number is completely characterized both by its memberschip function A(x) or by a family of its α-cuts {A α } α∈ [0, 1] . Two α-cuts are of special interest: A 1 = core(A) known as the core, which contains all values which are fully compatible with the concept described by the fuzzy number A and A 0 = supp(A) called the support, which are compatible to some extent with the concept modeled by A. The most often used fuzzy numbers are trapezoidal fuzzy numbers (sometimes called fuzzy intervals) with membership functions of the form where a 1 , a 2 , a 3 , a 4 ∈ R such that a 1 a 2 a 3 a 4 . A trapezoidal fuzzy number (2) is often denoted as Tra(a 1 , a 2 , a 3 , a 4 ). Obviously, a 1 = inf supp(A), a 2 = inf core(A), a 3 = sup core(A) and a 4 = sup supp(A), which means that each trapezoidal fuzzy numbers is completely described by its support and core. A fuzzy number A is said to be a triangular fuzzy number if a 2 = a 3 , while if a 1 = a 2 and a 3 = a 4 we have the so-called interval (or rectangular) fuzzy number. The families of all fuzzy numbers, trapezoidal fuzzy numbers, triangular fuzzy number and interval fuzzy numbers will be denoted by F(R), Basic arithmetic operations in F(R) are defined through natural α-cut-wise operations on intervals. In particular, the sum of two fuzzy numbers A and B is given by the Minkowski addition of corresponding α-cuts, i.e. for all α ∈ [0, 1]. Similarly, the product of a fuzzy number A by a scalar θ ∈ R is defined by the Minkowski scalar product for intervals, i.e. for all α ∈ [0, 1] It is worth noting that a sum of trapezoidal fuzzy numbers is also a trapezoidal fuzzy number: if A = Tra(a 1 , a 2 , a 3 , a 4 ) and B = Tra Moreover, the product of a trapezoidal fuzzy number A = Tra(a 1 , a 2 , a 3 , a 4 ) by a scalar θ is a trapezoidal fuzzy number Unfortuntely, F(R), +, · has not linear but semilinear structure since in general A + (−1 · A) = 1 {0} . Consequently, the Minkowski-based difference does not satisfy, in general, the addition/subtraction property that (A+(−1·B))+B = A. To overcome this problem the so-called Hukuhara difference was defined as follows: hold but the Hukuhara difference does not always exist. Therefore, one should be aware that subtraction in F(R) generally leads to critical problems and should be avoided, if possible. At least some of the problems associated with the lack of a satisfying difference in constructing statistical tools for reasoning based on fuzzy observations could be overcome by using adequate metrics defined in F(R) -for the general overview see [2] . Obviously, one can define various metrics in F(R) but perhaps the most often used in statistical context is the one proposed by Gil et al. [6] and by Trutschnig et al. [27] . Let λ be a normalized measure associated with a continuous distribution having support in [0, 1] and let θ > 0. Then for any A, B ∈ F(R) we define a metric D λ θ as follows denote the mid-point and the radius of the α-cut A α , respectively. Both λ and θ correspond to some weighting: λ allows to weight the influence of each α-cut, while by a particular choice of θ one may weight the impact of the distance between the mid-points of the α-cuts (i.e. the deviation in location) in contrast to the distance between their spreads (i.e. the deviation in vagueness). In practice, the most common choice of λ is the Lebesgue measure on [0, 1]), while the most popular choice is θ = 1 or θ = 1 3 . It is worth noting that assuming θ = 1 we obtain i.e. the metric which weights uniformly the two squared Euclidean distances and is equivalent to the distance considered in [4, 10] . One may also notice that assuming θ = 1 3 we obtain where A aggregates uniformly the squared Euclidean distances between the convex combination of points in α-cuts representing A and B. It should be stressed that whatever (λ, θ) is chosen D λ θ is an L 2 -type metric in F(R) having some important and useful properties. is a separable metric space and for each fixed λ all D λ θ are topologically equivalent. Suppose that the result of an experiment consists of random samples of imprecise data described by fuzzy numbers. To cope with such problem we need a model which grasps both aspects of uncertainty that appear in data, i.e. randomness (associated with data generation mechanism) and fuzziness (connected with data nature, i.e. their imprecision). To handle such data Puri and Ralescu [24] introduced the notion of a fuzzy random variable (also called a random fuzzy number). In other words, X is a random fuzzy variable if and only if X is a Borel measurable function w.r.t. the Borel σ-field generated by the topology induced by D λ θ . Puri and Ralescu [24] defined also the Aumann-type mean of a fuzzy random variable X as the fuzzy number E(X) ∈ F(R) such that for each α ∈ [0, 1] the α-cut E(X) α is equal to the Aumann integral of X α . It is seen that To characterize dispersion of a fuzzy random variable X we can also define (see [17] ) the D λ θ -Fréchet-type variance V(X), which is a nonnegative real number such that Given a sample of random fuzzy numbers X = (X 1 , . . . , X n ) a natural estimator of E(X) is the average X ∈ F(R) such that for each α ∈ [0, 1] while the estimator of V(X) is the D λ θ -type sample variance S 2 ∈ R given by Although aforementioned constructions preserve many properties known from the real-valued inference, one should be aware of the problems typical of statistical reasoning with fuzzy data. As it was noted in Sect. 2, there are problems with subtraction of fuzzy numbers. Similar problems appear in the case of division of fuzzy numbers. Hence, it is advisable to avoid both operations wherever it is possible. Moreover, some difficulties in fuzzy data analysis is caused by the lack of universally accepted total ranking between fuzzy numbers. Another source of possible problems that appear in conjunction of randomness and fuzziness is the absence of suitable models for the distribution of fuzzy random variables. Even worse, there are not yet Central Limit Theorems for fuzzy random variables which can be applied directly in statistical inference. The disadvantages mentioned above make the straightforward generalization of the classical statistical methodology into the fuzzy context either difficult or, sometimes, even impossible. For instance, in most cases we are not able to find the null distribution of a test statistic based on fuzzy data and, consequently, to find either the critical value or to compute the p-value required for rejection or acceptance of the hypothesis under study. To break through that problem some researchers propose to use the bootstrap [7, 8, 18, 19, 21, 25, 26] . In this paper we suggest another methodology based on permutations. For motivations we turn back to the classical inference which shows that permutation tests, like the bootstrap, require extremly limited assumptions. Bootstrap tests usually rely on assumption that successive observations are independent, while permutation tests require only exchangeability, i.e. under the null hypothesis we can exchange the labels on the observations without affecting the results (obviously, if the observations in a sample are independent and identically distributed then they are exchangeable). In the real-valued framework one can also indicate two advantages of the permutation tests over the bootstrap tests. Firstly, permutation test are often more powerful than their bootstrap counterparts (see [9] ). Secondly, permutation test are exact if all permutation are considered, while bootstrap tests are exact only for very large samples. Moreover, asymptotically permutation tests are usually as powerful as the most powerful parametric tests (see [1] ). For more information on classical permutation tests we refer the reader to [9, 23] . All these reasons indicate that the permutation test applied to fuzzy random variables might be also a competitive tool useful in statistical inference for imprecise data. Suppose, we observe independently two fuzzy random samples X = (X 1 , . . . , X n ) and Y = (Y 1 , . . . , Y m ) drawn from populations with unknown distributions function F and G, respectively. We want to verify the null hypothesis that both samples come from the same distribution, i.e. against the alternative hypothesis that the dispersion of the distributions F and G differ (or against the one-sided alternative that the indicated distribution is more dispersed that the other one). Most of the tests for scale assume that the distributions under study do not differ in location since possible location differences may mask differences in dispersion. Otherwise, the sample observations should be adjusted by subtrating the respective location parameters, like means or medians. If the true characteristics of location are not known we usually subtract their estimators. Following remarks of Marozzi [20] on the resampling version of the Pan test [22] and the resampling framework for scale testing described by Boos and Brownie [3] , we'll try to eliminate the location effects with sample means. However, keeping in mind problems with subtratiion in fuzzy environment described in Sect. 2, contrary to the crisp case, we do not consider the differences but the distances between sample observations and corresponding sample means calculated as in (8) . Therefeore, further on instead of X = (X 1 , . . . , X n ) and Y = (Y 1 , . . . , Y m ) we consider the adjusted samples V = (V 1 , . . . , V n ) and W = (W 1 , . . . , W m ), respectively, where . . , m. Now let us consider the following test statistics where S 2 V and S 2 W denote sample variances of V and W, respectively, calculated by (9) . Obviously, too big or too small values of (11) indicate that the null hypothesis should be rejected since the considered distributions differ in dispersion. In the original Pan test [22] the decision whether to reject the null hypothesis is based on the test statistic valued with respect to some quantile from the t-Student distribution. However, Marozzi [20] showed that the resampling version of the Pan test should be rather preferred to the original one. In the case of fuzzy data any assumptions on the type of the underlying distribution of the samples are much more dubious than in the crisp case. For this reason we also consider here the permutation version of the Pan test. To carry out such a test we adapt the general idea of permutation tests to our fuzzy context. The crucial idea of the proposed test construction is that the null hypothesis implies total exchangeability of observed data with respect to groups. Indeed, if H 0 holds then all available observations may be viewed as if they were randomly assigned to two groups but they come from the same population. Let Z = X Y, where stands for the vector concatenation, so that the two samples are pooled into one, i.e. Now, let Z * denote a permutation of the initial dataset Z. More formally, if ν = {1, 2, . . . , N} and π ν is a permutation of the integers ν, then Z * i = Z πν (i) for i = 1, . . . , N. Then the first n elements of Z * is assigned to the first sample Z * and the remaining m elements to Z * . In other words, it works like a random assignment of elements into two samples of the size n and m, respectively. Each permutation corresponds to some relabeling of the combined dataset Z. Please, note that if H 0 holds then we are completely free to exchange the labels X or Y attributed to particular observations. As a consequence of elements' exchangeability in Z * under H 0 we can estimate the distribution of the test statistic T by considering all permutations of the initial dataset Z and computing a value of T (Z * ) corresponding to each permutation. Namely, given Z = z, where z = x y, we take its permutation z * and determine its adjustment with respect to sample means, i.e. we create two samples v * = (v * 1 , . . . , v * n ) and w * = (w * 1 , . . . , w * m ) as follows Next, following (11) we compute its actual value corresponding to given permutation z * , i.e. Finally, assuming K denotes a fixed number of drawings (usually not smaller than 1000), we calculate the p-value of our test. In the case on the one-sided upperer-tail test, i.e. when verifying H 0 : F = G vs. H 1 stating that F is more disperded than G, we obtain where each z * k ∈ P(z), z * k = x * k y * k , and t 0 = T (x, y) stands for the test statistic value obtained for the original fuzzy samples x and y. For the one-sided lower-tail test, i.e. when verifying H 0 : F = G vs. H 1 : F is less disperded than G, we have while for the two-sided test, i.e. when verifying H 0 : F = G vs. H 1 : F and G differ in dispersion, we obtain We conducted some simulations to illustrate the behavior of the proposed test. To generate fuzzy samples from a trapezoidal-valued fuzzy random variable X = Tra(ξ 1 , ξ 2 , ξ 3 , ξ 4 ), where ξ 1 , ξ 2 , ξ 3 , ξ 4 are real-valued random variables such that ξ 1 ξ 2 ξ 3 ξ 4 , the following characterization appears to be useful (see [19] ): c = 1 2 (ξ 3 + ξ 2 ) = mid 1 X, s = 1 2 (ξ 3 − ξ 2 ) = spr 1 X, l = ξ 2 − ξ 1 and r = ξ 4 − ξ 3 . Conversely, we have Tra c, s, l, r = Tra(c − s − l, c − s, c + s, c + s + r). In our study we generated fuzzy observations x = (x 1 , . . . , x n ) and y = (y 1 , . . . , y m ) by simulating the four real-valued random variables x i = c Xi , s Xi , l Xi , r Xi and y i = c Y j , s Y j , l Y j , r Y j , respectively, with the last three ones random variables in each quartet being nonnegative. In particular, we generated trapezoidal-valued fuzzy random variables using the following real-valued random variables: c Xi , c Y j from the normal distribution and s Xi , s Y j , l Xi , l Y j , r Xi and r Y j from the uniform or chi-square distribution. An illustration how the test works, is shown in Fig. 1 and Fig. 2 . Figure 1 shows a histogram made for the test statistic (11) null distribution obtained for two fuzzy samples of sizes n = 10 and m = 12. Both samples were generated as follows: c X and c Y came from the standard normal distribution N(0, 1) and s X , s Y , l X , l Y and r X , r Y from the uniform distribution U(0.0.5). In this case we have obtained t 0 = 0.3088, which is illustrated by a vertical line, while p-value = 0.384. A decision suggested by our test is: do not reject H 0 . On the other hand, in Fig. 2 we have a histogram made for the test statistic (11) null distribution obtained for two fuzzy samples of the same samle sizes as before but which differ in dispersion. Namely, c X was generated from the standard normal distribution N(0, 1), but c Y from N(0, 2), while s X , s Y , l X , l Y and r X , r Y were, as befor, uniformly distributed from U(0.0.5). In this case we have obtained t 0 = −3.5373, illustrated by a vertical line, and p-value = 0.007, leading to the decision: reject H 0 . We also examined the proposed permutation test with respect to its size. Therefore, 1000 simulations of the test performed on independent fuzzy samples comming from the same distribution were generated at the significance level 0.05. In each test K = 1000 permutations were drawn. Then empirical percentages of rejections under H 0 were determined. The results both for equal and nonequal sample sizes are gathered in Table 1 . It is seen that our test is conservative. Moreover, this tendency deepens significantly as the imbalance of the sample sizes increases. These interesting results of the preliminary study of the proposed test properties indicate that further and more extensive study is highly recommended. Some statistical analyses of fuzzy data related to the Gamonedo cheese quality inspection was performed by Ramos-Guajardo and Lubiano [26] and Ramos-Guajardo et al. [25] . The Gamonedo cheese is a kind of a blue cheese produced Asturias, Spain. It experiences a smoked process and later on is let settle in natural caves or a dry place. To keep the quality of a cheese the experts (or tasters) usually express their subjective perceptions about different characteristics of the cheese, like visual parameters (shape, rind and appearance), texture parameters (hardness and crumbliness), olfactory-gustatory parameters (smell intensity, smell quality, flavour intensity, flavour quality and aftertaste) and their overall impression of the cheese. Recently some of the tasters were proposed to express their subjective perceptions about the quality of the Gamonedo cheese by using trapezoidal fuzzy numbers. These fuzzy sets were determined in the following way: the set of values considered by the expert to be fully compatible with his/her opinion led to α = 1-cut, while the set of values that he/she considered to be compatible with his/her opinion at some extent (i.e., the taster thought that it was not possible that the quality was out of this set) led to α = 0-cut of a fuzzy number. Then these two α-cuts were linearly interpolated to get the trapezoidal fuzzy set representing exppert's personal valuation. For more details on the data aquisition and analysis we refer the reader to Ramos-Guajardo et al. [25] . Here we utilize some data given in [25] to compare the opinions of the two experts about the overall impression of the Gamonedo cheese (the trapezoidal fuzzy sets corresponding to their opinions are gathered in Table 2 ). Thus we have two independent fuzzy samples of sizes n = 40 and m = 38 comming from the unknown distributions F and G, respectively. Our problem is to check whether there is a general agreement between these two experts. To reach the goal we verify the following null hypothesis H 0 : F = G, stating there is no significant difference between experts' opinions, against H 1 : ¬H 0 that their opinions on the cheese quality differ. Substituting data from Table 2 into formula (11) we obtain t 0 = 1.355. Then, after combining samples and generating K = 10 000 random permutations we have obtained the p-value of 0.082. Hence, assuming the typical 5% significant level we may conclude that there is no significant difference between the dispersion of experts' opinion on the overal impression of the Gamonedo cheese. In Fig. 3 one can find the empirical null distribution of the permutation test with red vertical line indicating the value t 0 of the test statistic. Hypothesis testing with samples which consist of random fuzzy numbers is neither easy nor straightforward. Most of statistical tests developed in this area are based on the bootstrap. In this paper another approach for constructing tests for fuzzy data is proposed. Namely, the two-sample permutation test for dispersion is suggested. Some simulations to illustrate its behavior and to examine its properties are given. Moreover, the case study dedicated to fuzzy rating problem is performed. The results obtained seem to be promissing, but further research including power studies and a comparison with other tests are still intended in the nearest future. In particular, the behavior of the test under strong imbalance in the sample sizes is worth of further examination. Next, we would like to perform an extensive simulation study to compare the performance of our permuatation test and the bootstrap test for the dispersion. Moreover, some other topics related to the dispersion problem with fuzzy data seem to be of interest. Firstly, we plan to design other two-sample tests for scale, like the permutation test for fuzzy data based on the classical O'Brien test, as well as a permutation test for the homogeneity of more than two fuzzy samples. Secondly, a permutation test for fuzzy data to compare jointly the central tendency and variability of two populations would be of desirable. Asymptotic expansion for the power of distributionfree tests in the two-sample problem A distance-based statistic analysis of fuzzy numbervalued data (with Rejoinder) Comparing variances and other measures of dispersion Metric spaces of fuzzy sets Nonparametric Statistical Inference Least squares fitting of an affine function and strength of association for interval-valued data Bootstrap techniques and fuzzy random variables: synergy in hypothesis testing with fuzzy data. Fuzzy Sets Syst Fuzzy data treated as functional data. A one-way ANOVA test approach Permutation, Parametric and Bootstrap Tests of Hypotheses Metrics and orders in space of fuzzy numbers Statical inference about the median from vague data Testing statistical hypotheses with vague data. Fuzzy Sets Syst Fuzzy tests -defuzzification and randomization. Fuzzy Sets Syst K-sample median test for vague data Two-sample dispersion tests for interval-valued data Goodness-of-fit tests for fuzzy data The λ-mean squared dispersion associated with a fuzzy random variable Hypothesis testing for means in connection with fuzzy rating scale-based data: algorithms and applications Hypothesis testing-based comparative analysis between rating scales for intrinsically imprecise data Levene type tests for the ratio of two scales Asymptotic and Bootstrap techniques for testing the expected value of a fuzzy random variable On a Levene type test for equality of two variances Multivariate Permutation Tests Fuzzy random variables Applying statistical methods with imprecise data to quality control in cheese manufacturing K-sample tests for equality of variances of random fuzzy sets A new family of metrics for compact, convex (fuzzy) sets based on a generalized concept of mid and spread