In this section, Monte Carlo simulations are used to compare the finite sample performance of the newly proposed test to the following existing goodness-of-fit tests for the Rayleigh distribution:
Here, we test for the Rayleigh distribution by testing for exponentiality of the transformed data (using the well known property that the square of a Rayleigh distributed random variable follows an exponential distribution). The estimated powers of and are functions of a tuning parameter, a. For both and we report the results for .
4.1. Simulation Setting
A significance level of 5% is used throughout. Critical values of all the tests are obtained using 50,000 independent Monte Carlo replications drawn from a standard Rayleigh distribution (all the test statistics are invariant with respect to scale transformations). Power estimates are calculated and reported for sample sizes
and
using 10,000 independent Monte Carlo replications obtained from various alternative distributions. These include some ‘local’ alternatives as well as those given in
Table 1. These alternative distributions were chosen since they are frequently used alternatives for the Rayleigh distribution, which has an increasing hazard rate. The hazard rates of the considered alternative distributions include constant hazard rates (CHR), increasing hazard rates (IHR), decreasing hazard rates (DHR) and non-monotone hazard rates (NMHR). These alternatives all have support in
and are used in many other empirical studies for goodness-of-fit tests of lifetime distributions (see, e.g., [
10,
21,
27]). In
Table 1, all scale parameters are set to one due to the scale transformation
. All simulations and calculations are done in Ref. [
28]. The tables are produced using the
package, see [
29].
We first consider some local power estimates. Here, we consider a mixture distribution, which is obtained by sampling with probability
p from a standard exponential distribution (
) and with probability
from a
distribution. The value
corresponds to the standard Rayleigh distribution, whereas increasing values of
p implies a larger deviation from the null distribution. These estimated powers are given in
Table 2 and the estimated powers for the exponentiality tests based on the transformed data are given in
Table 3. The estimated powers for sample sizes 20 and 30 against every alternative distribution in
Table 1 are given in
Table 4 and
Table 5, respectively. The estimated powers, obtained using the tests for exponentiality based on the transformed data, for sample sizes 20 and 30 are given in
Table 6 and
Table 7, respectively. The entries in these tables are the percentages of 10,000 independent Monte Carlo samples that resulted in the rejection of the null hypothesis (rounded to the nearest integer). For the reader’s convenience, the highest estimated power for each alternative distribution among the existing tests, as well as the tests for exponentiality based on the square of the data, are displayed separately in bold in each of their respective tables. The last column of
Table 2,
Table 4 and
Table 5 contain the highest estimated powers from the corresponding exponentiality tests based on the transformed data (i.e., the highest powers obtained from
Table 3,
Table 6 and
Table 7 are also reported in the last column of
Table 2,
Table 4 and
Table 5); this will make comparison easier.
4.2. Simulation Results
We will now present some general conclusions regarding the tabulated estimated powers of the different tests considered. Since the performance of the tests are affected by the type of hazard rate of the alternative distribution, we will discuss the overall performance as well as the performance when the results are grouped according to the type of hazard rate.
First, we will consider the estimated local powers, presented in
Table 2 and
Table 3. We find that
and
exhibit poor power performance, displaying the lowest powers among the tests for the majority of the choices of the mixture probability,
p. We note that
and
are tied for the best test for the majority of mixture proportions.
Figure 1 displays the local powers of
,
,
and
over the complete range of mixture probabilities. The superior performance of
and
, for this mixture distribution, is clear from this figure.
For the transformed data, exhibits the lowest powers overall and has the highest overall powers for the majority of the alternatives considered.
We will now consider the performance of the tests, developed specifically for the Rayleigh distribution, in general against all of the general alternative distributions listed in
Table 1. From both
Table 4 and
Table 5 we see that, in general, the powers of
and
are lower for the majority of the alternatives considered and perform unfavourably in comparison to the other tests, for both sample sizes. On the other hand,
and
perform quite well as we find that they outperform the other tests, having the highest estimated power for the majority of the alternatives considered. All tests considered perform quite well against the standard exponential distribution (which has a constant hazard rate) for both sample sizes.
Shifting our attention now to results associated with alternatives with increasing hazard rates, one finds, once again, that and have lower powers for both sample sizes considered. For most of the alternatives in this category and have the highest power, only being outperformed, or equaled, for a handful of these alternatives by other tests.
Moving our attention to alternatives with a decreasing hazard, we see that all the tests considered perform very well and, since there are such minor differences in the power performance between all the tests, it is difficult to identify a single ‘best’ test for this set of alternatives. However, for the smaller sample size, still attains powers that are slightly lower than the rest of the tests.
We now observe the results associated with alternatives with non-monotone hazard rates. The tests that generally perform well are , and . However, the test that exhibits the highest power for the majority of the alternatives, for both sample sizes, is .
Finally, we consider the performance of the tests for exponentiality based on the transformed data. The tests with the lowest powers are and . and perform very well, exhibiting high powers for most of the alternatives considered, especially for alternatives with decreasing or non-monotone hazard rates. displays the highest overall powers for the majority of the alternatives considered. However, the highest estimated power, against all alternative distributions considered, is obtained by one of the tests specifically developed for the Rayleigh distribution and not by any of the exponentiality tests based on the transformed data. Therefore, we recommend that the tests proposed specifically for the Rayleigh distribution is used when goodness-of-fit testing is performed for the Rayleigh distribution.
To conclude, we provide a brief demonstration of how the choice of the tuning parameter,
a, influences the powers of the newly proposed test. In order to visualise the behaviour of the powers for different values of
a,
Figure 2 present the powers for
over a grid of
a values and six different alternative distributions. This figure is also used to motivate the choice of
a values included in the study.
The choice of was made since it is the point where the powers for most of the alternative distributions start to stabilize and reach a plateau. The choice for is due to the fact that it is the point where the powers for most of the alternative distributions reach their maximum value.