Scinovex
article Open Access

Comparing nonparametric tests of variances based on the simple tree alterative

Abstract

This paper compares four nonparametric tests for variances using based on the simple tree alternative. Various underlying distributions are considered including symmetric, symmetric heavy tailed, and skewed. Three versions of three of the tests are used with differences being in using the sample mean, sample median, or sample trimmed mean. Cases are considered in which the location parameters and equal and when they are not equal. Comments are made as to how the different location parameters affect the alpha values and powers of the tests. Recommendations are given.

Full Text

Tables and figures are in the full-text PDF.

Introduction

There are situations in which we have a control and various levels of a treatment in which we may want to test to see if there is any difference in variation between the control and at least one of the levels of the treatment while assuming if there is a difference the treatment level will have the larger variation. We are testing for the simple tree alternative as given below

𝐻𝐻 α: 𝜎𝜎 1 ≤ [𝜎𝜎 2 , … . . , 𝜎𝜎 𝑘𝑘 ] where at least one inequality is strict where population 1 is designated as the control. We will also assume that the underlying population distributions are unknown and will consider nonparametric tests. We will begin by examining some two-sample tests for differences in variances or spread. These two-sample tests will be extended to the simple tree alternative by defining population 1 as the control and the combined treatment population as population 2.

Moses Test

The Moses test is a nonparametric test for testing the null hypothesis of equality variances for two populations (Moses, 1963) [9] . The Moses test does not assume equality of location parameters (Azman, 2021, Daniel, 2016) [2,5] . It is a two-sample test for variances testing the following set of hypotheses.

The Moses test statistic is obtained by dividing two samples into 𝑚𝑚 1 and 𝑚𝑚 2 subsamples of equal size. For each of the subsamples, the mean of the subsample is calculated, followed by summing of squared deviations between each observation and the sample mean for each subsample. Furthermore, the sums of squared deviations for each of the 𝑚𝑚 1 subsets in the first sample are indicated as 𝐶𝐶 1 to 𝐶𝐶 𝑚𝑚 1 , and those of the second set of 𝑚𝑚 2 as 𝐷𝐷 1 to 𝐷𝐷 𝑚𝑚 2 .

The Mann-Whitney test (Mann and Whitney, 1947) [8] will be performed. The C values from the first sample and the D values from the second will be combined and then will be ranked from smallest to largest, and each value will be assigned a rank. The Moses test statistic (M) is the sum of the ranks associated with the 𝑚𝑚 1 C values from the first sample and then with a constant subtracted. It is given by

The standardized version of the Moses test is given by:

The asymptotic distribution of M* under 𝐻𝐻 0 is a standard normal distribution. Alsubie and Magel (2020) [1] extended the use of the Moses test to the simple tree alternative.

Conover Squared Ranks Test

The Conover Squared Ranks test is a nonparametric test that uses independent sample from two populations to test of the null hypothesis of equal variances (Conover, 1999) [4] .

To compute the Conover Squared Ranks test statistic (CSR), select two independent random sample from two populations 𝑋𝑋 1 , 𝑋𝑋 2 , … . 𝑋𝑋 𝑛𝑛 and 𝑌𝑌 1 , 𝑌𝑌 2 , … . 𝑌𝑌 𝑚𝑚 with sizes of n and m, correspondingly. For each sample, the absolute deviations between each observation and their actual mean will be computed as follows:

where, 𝜇𝜇 1 is the actual mean for population 1 and 𝜇𝜇 2 is the actual mean for population 2. If these population means are unknown, they can be substituted with sample means 𝑋𝑋 � and 𝑌𝑌 � , respectively and the test is approximate.

The 𝑈𝑈 𝑖𝑖 ′ s and 𝑉𝑉 𝑗𝑗 ′ s are combined into a single sample and ranks are assigned from 1 to N = n + m. When two or more observations are equal, the average of the ranks is assigned to all of these values. 𝑅𝑅( 𝑈𝑈 𝑖𝑖 ) and 𝑅𝑅( 𝑉𝑉 𝑖𝑖 ) denote the ranks of 𝑈𝑈 𝑖𝑖 𝑎𝑎𝑎𝑎𝑎𝑎 𝑉𝑉 𝑗𝑗 , respectively. The Conover Squared Ranks test statistic is defined by:

The standardized version of the Conover Squared Ranks test is given by:

Where: N = n + m. The Conover Squared Ranks test statistic CSR * has approximately a standard normal distribution under the null hypothesis when the means are known. When the means are unknown, it is recommended that this approximation holds by using sample means. For a one-sided alternative ( 𝐻𝐻 𝑎𝑎2: 𝜎𝜎 1 2 < 𝜎𝜎 2 2 ), H₀ is rejected when CSR * ≤ -𝑍𝑍 𝛼𝛼 .

Hollander test of extreme reaction

The Hollander test of extreme reaction is a non-parametric test designed to test for differences between the control and experimental subjects when some of the latter are predicted to behave in one way and the others in the opposite way (Hollander, 1963) [7] . The set of hypotheses is given below (Daniel, 2016) [5] .

𝐇𝐇 𝟎𝟎: The two samples represent the same population.

𝐇𝐇 𝟏𝟏: The experimental sample results in extreme reactions in both directions.

The Hollander test statistic (H) is computed by combining size 𝑎𝑎 1 (control) and 𝑎𝑎 2 (experimental) samples from two populations. These samples are pooled and arranged from smallest to largest, yielding a total of N = 𝑎𝑎 1 + 𝑎𝑎 2 observations. Each observation is assigned a rank and 𝑟𝑟 𝑖𝑖 denotes the rank of the ith X value. The Hollander test statistic (H), is calculated as:

The mean rank of the n₁ X values is denoted by 𝑟𝑟̅ .

The standardized version of Hollander statistic can be stated as:

The standardized Hollander test statistic H * has approximately a standard normal distribution under the null hypothesis. H₀ is rejected when H * ≤ -𝑍𝑍 𝛼𝛼 .

Mood test

Mood's test is a nonparametric test, which tests the null hypothesis of equality variances for two populations (Gogoi & Gogoi, 2016) [6] . The Mood test statistic based on independent samples of sizes n and m is defined by:

In this case 𝑅𝑅 𝑖𝑖 is the rank of the ith X value when all observations from both samples are pooled and sorted from least to greatest. The element with the lowest value is ranked 1, the next lowest ranked 2, and so on, until the highest value element occupies rank n + m. The standardized version of Mood statistic is expressed as follows:

The standardized Mood test statistic MD * has approximately a standard normal distribution under the null hypothesis. For a onesided alternative ( 𝐻𝐻 𝑎𝑎2: 𝜎𝜎 1 2 < 𝜎𝜎 2 2 ), H₀ is rejected when MD * ≤ -𝑍𝑍 𝛼𝛼 , where 𝑍𝑍 𝛼𝛼 is the (1-𝛼𝛼) 100% of the standard normal distribution.

Materials and Methods

The simple tree alternative given in (1) was tested based on k = 3 populations with equal sample sizes (𝑎𝑎 1 = 𝑎𝑎 2 = 𝑎𝑎 3 = 18), where the treatment samples were combined into a single treatment group, respectively. Hence, the four tests were compared: the Moses, Conover Squared Rank, Hollander, and Mood tests. We also considered subsamples of size 3 for the Moses test. The simulation study was conducted in SAS version 9.4, where random samples for each distribution were generated using the "RAND" function. Preceding the RAND function, required performing the starting seed by using "CALL STREAMINIT (seed)". The seed was equated to 0 in this study as a command for RAND to utilize on the system clock so that each run produces unique data (Bailer, 2010) [3] . The call functions to generate random number for each of the distributions in SAS are as follow:

Normal Distribution: RAND ('Normal', 𝜇𝜇, 𝜎𝜎)

Where 𝜇𝜇 and 𝜎𝜎 are the mean and the standard deviation, respectively, for normal distribution.

Exponential Distribution: RAND ('Exponential', 𝜇𝜇)

Where 𝜇𝜇 and 𝜇𝜇 2 are the mean and the variance, respectively, for exponential distribution.

Cauchy Distribution: RAND ('Cauchy', 𝑥𝑥 0 , 𝛾𝛾) Where 𝑥𝑥 0 and 𝛾𝛾 are the location and scale parameters, respectively, for Cauchy distribution.

Double Exponential Distribution: RAND ('Laplace', 𝜇𝜇, 𝛽𝛽);

Where 𝜇𝜇 and 𝛽𝛽 are the location and scale parameters, respectively, for the double exponential distribution. The distribution has a mean of 𝜇𝜇 and a variance of 2(𝛽𝛽) 2 .

Logistic Distribution: RAND ('Logistic', 𝜇𝜇, s); Where 𝜇𝜇 is the location parameter, and s is a scale parameter proportional to the standard deviation for logistic distribution. The distribution has a mean of 𝜇𝜇 and a variance of s²π²/3. The alpha values of each test were estimated and compared to the stated alpha values for each simulation conducted. To verify that the test statistics preserved their Type I error rates, we created scenarios where the null hypothesis of equal scale parameters held. For instance, suppose that the observations in each group came from an identical normal distribution with equal means and variances; to examine the type 1 error rate based on 5,000 iterations, the statistical tests were conducted 5000 times and the counts of number of times the null hypothesis was rejected was divided by 5000 for each considered situation. These sample sets included cases with equal locations, unequal locations, as well as varied sample and subsample (in the Moses' test cases) sizes. The power was estimated by the number of times the null hypothesis was rejected when it was false divided by 5000 times. For instance, in the first part of the simulation study, we counted the number of times we rejected the hypothesis when our test confirmed unequal scale parameters, divided by the total number tests, which is 5000 for all tests of interest and their respective scenarios.

Results and Discussion

We evaluated the performance of each test by comparing their respective powers on samples from different distributions. We compared the powers of all test statistics using three sample measurements (mean, median and trimmed mean) except the Mood test which remained the same in all tables. All sample sizes considered in the simulation study were of size 18. The Moses test used subsamples of size 3. The following conditions were considered:

• The three populations have the equal location parameters and the equal scale parameters.

• The three populations have unequal location parameters and the equal scale parameters.

• The first and second populations have the equal scale parameters unequal than the third population.

• The second and third populations have the equal scale parameters unequal than the first population.

• The three populations have unequal location parameters and unequal scale parameters.

Results for the Normal Distribution

For underlying normal distributions, when three populations had the equal location and equal scale parameters, all tests maintained estimated alpha values around 0.05. Results were similar when the mean, median, and trimmed mean were used and therefore, only the results are given when the sample mean is used (Table 1). When the populations had unequal location parameters and equal scale parameters, the Conover Squared Ranks and Hollander tests had estimated alpha values greater than the stated alpha value, demonstrating their sensitivity to changes in location parameters. The Mood test also showed sensitivity to location changes, but in a different manner. As observed in the second and third rows of Table 1, the Mood test became increasingly conservative as the differences in location parameters grew, with estimated alpha values falling below 0.05. The Conover Squared Ranks test had the highest estimated powers when the scale parameters were different as seen in Table 1. It is noted however, that the only one of these tests not affected by location changes was the Moses test.

Results for Exponential Distribution

The results of the simulation study of the Moses, Conover Squared Ranks, Hollander, and Mood tests for three treatments under the exponential distribution are shown in Tables 23for the sample mean and median. When three populations had equal location and scale parameters, all tests maintained their estimated alpha values around 0.05, except for the Conover test, which consistently had estimated alpha values higher than the stated alpha in all scenarios, as shown in the first row of Tables 23. Therefore, it is not possible to compare it with the other tests. Due to this skewed distribution, when the populations had unequal location parameters and the equal scale parameters, both the Hollander and Mood tests showed sensitivity in changing the locations parameters, with the Mood test reported extremely low alpha values. The Moses test was the only test that maintained stable estimated alpha values when the location changed, as shown in the second row of Tables 23. When the first and second populations had scale parameters that differed from the third population, the Hollander test had greatest estimated powers, next was the Mood test, and lastly the Moses test as seen in the third row of Tables 23. As seen previously, the order for estimated powers was observed when the second and third populations had equal scale parameters which were different from the first population as seen in the fourth row of Tables 2-3 for the exponential distribution. When the three populations had different location and scale parameters, only the Moses test, as previously mentioned, achieved the highest estimated powers, as seen in the fifth row of Tables 23. In comparison of estimated powers for the three tests (the Moses, Hollander, and Mood) between the three measures, the sample mean produced the highest estimated powers.

Results for Cauchy Distribution

The results of the simulation study of the Moses, Conover Squared Ranks, Hollander, and Mood tests for three treatments under the Cauchy distribution are shown in Tables 45. All tests were calculated using different measures (sample mean, median, and trimmed mean), except the Mood test which remained constant in all tables. Tables are shown when using the sample mean and median. Results for the trimmed mean were similar to the results for the median. When the three populations had equal location and scale parameters, all tests maintained their estimated alpha values around 0.05, except for the Conover test, which showed very large estimated alpha value when using sample mean, but maintained accessible estimated alpha values around 0.05 when using sample median and trimmed mean, as shown in the first row of Tables 5 for the sample median. Hence, the power of Conover Squared Ranks test compared with other tests only in second and third scenarios (median and trimmed mean). When the populations had unequal location parameters and the equal scale parameters, the tests estimated alpha values greater than stated alpha value are Hollander and Conover tests, which show their sensitivity in changing the location parameters. However, it is not possible to compare them with other tests in the situation the locations differ. The Mood test showed sensitivity to location changes, with estimated alpha consistently below 0.05. As the location distances increased, the test became increasingly conservative, as shown in the second and third rows of Tables 45. When the first and second populations had equal scale parameters that differed from the third population, the Mood test had the highest estimated powers compared to Hollander and Moses tests when using sample mean scenarios. However, Conover had higher estimated power than all other tests when using the median or trimmed mean scenarios, as shown in the fourth row of Table (5) for the median. We received the same order for estimated powers when the second and third populations had equal scale parameters different from the first population in all scenarios, as shown in the fifth row of Table (5). When the three populations had different location and scale parameters, the Conover test had the highest estimated powers than Moses tests, as shown in the sixth row of Table (5).

Results for Double Exponential Distribution and Logistic

The results of the simulation study of the Moses, Conover Squared Ranks, Hollander, and Mood tests for three treatments under the double exponential distribution are shown in Table 6 for the sample mean which produced slightly higher powers than the trimmed mean or median. The results under the Logistic distribution are similar as far as which test statistic produced the higher powers and are not given here. All sample size considered in the simulations study were of an equal size of 18; and subsample of size 3 in Moses test only. When the three populations had equal location and scale parameters, all tests maintained their estimated alpha values around 0.05, as shown in the first row of Table 6. When the populations had unequal location parameters and equal scale parameters, the Conover Squared Ranks test and the Hollander test estimated alpha values greater than the stated alpha value. This is evident in the second and third rows of Table 6, demonstrating these tests' sensitivity to changes in location parameters. As a result, we could not compare their estimated power with that of other tests in situations where the locations differed. The Mood test also showed sensitivity to location changes, with estimated alpha below 0.05, becoming more conservative as location distances increased. When the first and second populations had equal scale parameters that differed from the third population, the Conover Squared Ranks test showed the highest estimated powers, followed by the Mood test, the Hollander test, and the Moses test, as shown in the fourth row of Table 6. We received the same order for estimated powers when the second and third populations had equal scale parameters different from the first population, as shown in the fifth row of Table 6. When the three populations had different location and scale parameters, the Mood test had greater estimated powers than the Moses test as seen in the sixth row for Table 6. In comparison of estimated powers for the three tests (the Moses, Hollander, and Mood) between the three measures, the sample mean produced the highest estimated powers, followed by the trimmed mean, and then the median. The trimmed mean and median were close in estimated powers.

Conclusion

This research examined the simple tree alternative, comparing a control group with different treatment levels, which only tests for changes in the scale parameter. We compared Moses, Conover Squared Ranks, Hollander, and Mood tests. The mean, median, and trimmed mean versions were considered for all tests but Mood. The Moses test was the only one unaffected by location variations. The objective of this research was to determine whether at least one of the treatment levels had a greater variance than the control. The simple tree alternative hypothesis for scale differences only is given by: 𝐻𝐻0:𝜎𝜎1=⋯..= 𝜎𝜎𝑘𝑘 𝐻𝐻α: 𝜎𝜎1≤[𝜎𝜎2, …..,𝜎𝜎k], where at least one inequality is strict.

For all symmetric distributions (Logistic, Double Exponential, and Normal), the results indicated that all tests maintained their estimated alpha values around 0.05 when location parameters were equal. Conover and Hollander had a significance level higher than the stated level of significance when the location parameters increased. The Mood test turned more conservative as location parameters increased. The Moses test maintained its alpha value regardless of an increase in location parameters. Regarding power, when the three populations had unequal scale parameters and equal location parameters, Conover had the greatest powers, followed by Mood, Hollander, and Moses. When the three populations had unequal location and scale parameters, the Mood test reported the highest estimated powers, followed by the Moses test. This could, however lead to misleading results if we only wanted to test for an increase in scale parameters. When the underlying distribution was Cauchy, the Conover test had inflated alpha values when the sample mean was used. For the Cauchy distribution, the Mood test (using the sample median) and the Conover Squared Ranks test (using the median or trimmed mean) are advised for testing for unequal scales. For non-symmetric distributions, such as the Exponential, Hollander's test is recommended to test for an increase in variance if the locations remain the same, and Moses' test when differences may be present in both location and scale.

References

  1. Ausbie A, Magel R. Proposed nonparametric tests using Moses test for location and scale testing. Journal of Progressive Research in Mathematics. 2020;16(2):2877-2887.
  2. Azman NA, Ahad NA, Okwonu FZ. Comparative analysis of classical and modified Moses' test. Journal of Statistical Modeling and Analytics. 2021;3(1):47-54.
  3. Bailer AJ. Statistical programming in SAS. Cary (NC): SAS Institute Inc.; 2010.
  4. Conover WJ. Practical nonparametric statistics. 3rd ed. New York: John Wiley & Sons; 1999.
  5. Daniel WW. Applied nonparametric statistics. 2nd ed. Boston (MA): Cole Cengage Learning; 2016.
  6. Gogoi P, Gogoi B. Performance of two sample scale tests: an empirical study. International Advanced Research Journal in Science, Engineering and Technology. 2016;3(11):7.
  7. Hollander M. A nonparametric test for the two-sample problem. Psychometrika. 1963;28(4):395-403.
  8. Mann HB, Whitney DR. On a test of whether one of two random variables is stochastically larger than the other. Annals of Mathematical Statistics. 1947;18(1):50-60.
  9. Moses LE. Rank tests of dispersion. Annals of Mathematical Statistics. 1963;34:973-983.
Citations
0
FWCI
0.00
field-weighted impact
References
0
Percentile
29%
vs. same field & year
Citation Network

How this paper connects to the literature. Drag to explore, click any node to open that paper.