Introduction

Testing hypotheses is one of the most important problems in performing nonparametric statistics. Various nonparametric statistics have been shown to be a locally most powerful rank test (LMPRT) for a specific distribution over the course of many years. For example, [9] obtained the LMPRTs for comparing two possibly censored samples for a given alternative, by deriving scores for censored and uncensored observations. In finance literature, the Lévy distribution arises as a special case for describing security price returns by mixtures of distributions. Runde [13] derived the score functions of LMPRTs for the location and scale parameters with the Lévy distribution. Hájek et al. [5] discussed the LMPRTs for various distributions. The most powerful test for correlation is well-known, and the LMPRT uses Fisher-Yates expected normal scores. However, the bivariate normal distribution does not fit some types of data. Conover [2] considered the LMPRTs for correlation with four examples. Pandit [11] investigated the LMPRT for testing independence against a weighted contamination alternative. Few studies have discussed the LMPRT when only a fraction of treated subjects respond to treatment; however, [12] examined the LMPRT for several of these case types.

Let { X i j ; i = 1 , 2 , j = 1 , , n i } be two random samples of size n 1 and n 2 independent observations, each of which have a continuous distribution described as F 1 and F 2 , respectively. Assume that X i j is distributed according to a log-logistic distribution (LLD); see e.g., [14], with the probability density function (pdf) f ( x ) and the cumulative distribution function (cdf) F ( x ) as follows:

f i ( x ) = β i { ( x - μ i ) / α i } β i - 1 α i [ 1 + { ( x - μ i ) / α i } β i ] 2 , F i ( x ) = ( x - μ i ) β α β + ( x - μ i ) β , α i , β i > 0 , x > μ i ,

respectively. The parameters μ , α and β denote the location, scale and shape parameters, respectively. Note that the median of the LLD is α + μ . This distribution is a special case of Burr’s type-XII distribution; see e.g., [1]. In addition, the LLD is a special case of the kappa distributions introduced by [6]. The LLD is often applied to economics as a simple model for wealth or income distribution [3]. Note that the LLD is known as the Fisk distribution in economics. Additionally, the LLD is used in survival analysis as a parametric model for events whose hazard rate increases initially and decreases later.

On the basis of these data types, we proposed the following hypothesis:

H 0 : F 1 ( x ) = F 2 ( x ) against H L : F 1 ( x ) = F 2 ( x - μ ) , μ 0

or

H 0 : F 1 ( x ) = F 2 ( x ) against H S : F 1 ( x ) = F 2 ( x / α ) , α > 0 , α 1 .

For a recent comparison study of many nonparametric tests for scale, see [8]. To test these hypotheses, we developed a linear rank statistic. Let V j = 0 if the jth smallest of the N = n 1 + n 2 observations is from X 1 j ; otherwise, V j = 1 . This provides a general two-sample linear rank statistic, as follows:

T = j = 1 N a ( j ) V j = j = 1 n 2 a ( R j ) .

Herein, R j denotes the rank of sample X 2 j . In Sect. 2, we derive a LMPRT for H L and H S . Since finite sample sizes are used in practice, we investigate a small sample power of the linear rank tests for the LLD in Sect. 3. Finally, conclusions are presented in Sect. 4.

Locally most powerful linear rank test

In this section, we derive the LMPRT for H L and H S . Assume that f is absolutely continuous and that

f ( x ) d x < .

The LMPRT for H L is given by [5], as follows:

T L = j = 1 N a N ( j , f ) V j = j = 1 N E ψ L ( U ( j : N ) , f ) V j = j = 1 N E - f ( F - 1 ( U ( j : N ) ) ) f ( F - 1 ( U ( j : N ) ) ) V j ,

where U ( 1 : N ) < < U ( N : N ) are ordered statistics from the uniform distribution in the interval [ 0 , 1 ] . In addition, the LMPRT for H S is given by [5] as

T S = j = 1 N a N ( j , f ) V j = j = 1 N E ψ S ( U ( j : N ) , f ) V j = j = 1 N E - 1 - F - 1 ( U ( j : N ) ) f ( F - 1 ( U ( j : N ) ) ) f ( F - 1 ( U ( j : N ) ) ) V j .

By Theorem 3.1.2.4 in [5], the score function a N ( j , f ) can be rewritten as

a N ( j , f ) = N N - 1 j - 1 0 1 ψ ( u , f ) u j - 1 ( 1 - u ) N - j d u .
(1)

LMPRT for the location parameter

In this section, the score function of the LMPRT is derived for the LLD for the location parameter. The standard LLD is given as follows:

f ( x ) = 1 ( 1 + x ) 2 and F ( x ) = x 1 + x .
(2)

From (2), the first derivative of pdf and the inverse of cdf for the standard LLD are, respectively, given by

f ( x ) = - 2 ( 1 + x ) 3 and F - 1 ( x ) = x 1 - x .

The score function ψ L ( U ( j : N ) , f ) for H L is obtained from the following:

ψ L ( U ( j : N ) , f ) = 2 ( 1 - U ( j : N ) ) ,
(3)

and

j = 1 N a N ( U ( j : N ) , f ) V j = 2 N + 1 j = 1 n 2 ( N + 1 - R j )
(4)

using (1). (4) denotes the inverse function of R j . Thus, the Wilcoxon rank-sum test is the LMPRT for H L with LLDs.

Note that the LMPRT is valid in the neighborhood close to the null hypothesis. In many cases, the asymptotic efficiency of the LMPRT is the highest for the adjusted distribution. However, moderate to large sample sizes are required to assume a specific distribution for deriving the LMPRT. Herein, we consider the asymptotic efficiency of both the original and modified Wilcoxon rank-sum tests for the LLD. Tamura [15] proposed the modified Wilcoxon rank-sum test to raise the asymptotic relative efficiency as follows:

T ( p ) = i = 1 N i p V i = i = 1 n 2 R i p , p R + .
(5)

Note that the test statistic T ( p ) is the original Wilcoxon rank-sum test when p = 1 . By applying the idea of [15] to the score function (3), we can obtain the score function of the inverse rank test:

ψ L ( U ( j : N ) , f ) = ( p + 1 ) ( 1 - U ( j : N ) ) p .
(6)

The asymptotic efficiency of the score function (6) for the location parameter is given as follows:

AEL ( p , f ) = λ ( 1 - λ ) ( 2 p + 1 ) ( p + 1 ) 3 - f ( x ) 2 { 1 - F ( x ) } p - 1 d x 2 ,

where λ = lim N λ N = lim N n 1 / N . The asymptotic efficiency A E L ( p , f ) and asymptotic relative efficiency A R E ( p , 1 , f ) to the original Wilcoxon rank-sum test for the LLD are listed in Table 1.

Table 1 Asymptotic efficiency for the location parameter with the LLD

The results shown in Table 1 indicate that the asymptotic efficiency of the T ( p ) test is higher than that of the original Wilcoxon rank-sum test for LLDs when p > 1 .

LMPRT for the scale parameter

Consider the score function of the LMPRT for H S . Using a similar procedure as that applied to the location case, we obtain the score function, given below:

ψ S ( U ( i : N ) , f ) = 2 U ( i : N ) - 1 .

Therefore,

j = 1 N a N ( U ( j : N ) , f ) V j = 2 N + 1 j = 1 n 2 R i - n 2 ( N + 1 ) 2
(7)

using (1). Thus, (7) reveals that the Wilcoxon rank-sum test is the LMPRT for H S with a LLD. Note that the score function of the modified Wilcoxon rank-sum test is given as [4]:

ψ S ( U ( i : N ) , f ) = ( p + 1 ) U ( i : N ) p - 1 .

From this, the asymptotic efficiency of the modified Wilcoxon rank-sum test for the scale parameter is given by

A E S ( p , f ) = λ ( 1 - λ ) ( 2 p + 1 ) ( p + 1 ) 2 × - x f ( x ) 2 F ( x ) p - 1 d x 2 .

The asymptotic efficiency A E S ( p , f ) and the asymptotic relative efficiency ARE ( p , 1 , f ) to the original Wilcoxon rank-sum test for the LLD are listed in Table 2.

Table 2 Asymptotic efficiency for the scale parameter with the LLD

Therefore, the results shown in Table 2 reveal that the original Wilcoxon rank-sum test is suitable for testing LLDs.

Herein, we consider another distribution, as follows:

f ( x ) = 2 q - 1 x q + 1 { 1 + ( 2 q - 1 ) x - q } ( 1 + q ) / q , F ( x ) = 1 { 1 + ( 2 q - 1 ) x - q } 1 / q , ( x > 0 ) .

For the case q = 1 , this distribution is equivalent to that of the standard LLD. Thus, f and F is another extension of the standard LLD. Using a procedure similar to the one presented earlier in this section, the score function ψ S ( U ( i : N ) , f ) is given by

ψ S ( U ( i : N ) , f ) = ( q + 1 ) U ( i : N ) q - 1 .

Therefore, the modified Wilcoxon rank-sum test is the LMPRT for H S with f . Additionally, we compared the asymptotic efficiency of the modified Wilcoxon rank-sum test with that of the original Wilcoxon rank-sum test for f in Table 3.

Table 3 Asymptotic efficiency for the scale parameter with the f

Table 3 shows that the modified Wilcoxon rank-sum test is more efficient than is the original Wilcoxon rank-sum test for f .

Powers of small sample sizes

In this section, we present our investigation of the behavior of the original Wilcoxon rank-sum test and the modified Wilcoxon rank-sum test for the LLD f ( x ) . In a previous section, we obtained asymptotic results. However, because finite sample sizes are used in practice, we investigated a small sample power of the original and modified Wilcoxon rank-sum tests. Generally, the location, scale, location–scale, and shape parameters of the X 1 j and X 2 j samples are unequal. Here, we considered a two-sample problem in which the hypothesis, H 0 : F 1 ( x ) = F 2 ( x ) , was tested against H 1 : F 1 ( x ) F 2 ( x ) . The following assumptions were made for LLDs, as follows:

  • LLD ( μ , α , β ) with location parameter μ, scale parameter α and shape parameter β.

Table 4 and Table 5 show the analysis results of the power of the T ( p ) for ( n 1 , n 2 ) = ( 10 , 10 ) and (5,10). The significance level was 5 % , and the simulations were repeated 1,000,000 times. In this study, we assumed p = 0.5 , 0.75 , 1 and 2. The exact probability of the original Wilcoxon rank-sum test T ( 1 ) is 0.044 for n 1 = n 2 = 10 under the null hypothesis. Thus, we adopted an exact probability of 0.044 for the T ( p ) test.

Table 4 Simulated power: n 1 = n 2 = 10 for α = 0.05
Table 5 Simulated power: n 1 = 5 , n 2 = 10 for α = 0.05

The results indicated that a smaller p in the T ( p ) test was more powerful than a larger p in the T ( p ) test for equal and unequal sample sizes, with β 1 for the shifted location, scale, and location–scale parameters. For the case of β > 1 , a larger p in the T ( p ) test was more efficient than a small p in the T ( p ) test for the changed scale parameter, but not the location and location–scale parameters. The results indicated T ( 0.5 ) and T ( 0.75 ) tests were suitable for a wide range of LLD. Therefore, a smaller p in the T ( p ) test is suitable for parameters associated with LLDs.

Conclusion and discussions

In this paper, we considered the LMPRT for the location and scale parameters with the LLD. We showed that the Wilcoxon rank-sum test is suitable for hypothesis testing with the LLD. In addition, the asymptotic efficiency of the modified Wilcoxon rank-sum test was higher than that of the original Wilcoxon rank-sum test for the location parameter with a LLD. For the scale parameter, the asymptotic efficiency of the original Wilcoxon rank-sum test was highest for the LLD. Additionally, the score function of another extension of the LLD was derived as the modified Wilcoxon rank-sum test. However, because finite sample sizes are used in practice, we investigated a small sample power of the original and modified Wilcoxon rank-sum tests. The results indicated that a smaller p in the T ( p ) test was suitable for parameters associated with LLDs. Future research directions should consider the two-sample location–scale problem—i.e., where two null hypotheses H 0 are simultaneously tested, see; e.g., [7, 10]—for the LLD.