A Simple Empirical Likelihood Ratio Test for Normality Based on the Moment Constraints of a Half-Normal Distribution

A simple and efficient empirical likelihood ratio (ELR) test for normality based on moment constraints of the half-normal distribution was developed.The proposed test can also be easily modified to test for departures from half-normality and is relatively simple to implement in various statistical packages with no ordering of observations required. Using Monte Carlo simulations, our test proved to be superior to other well-known existing goodness-of-fit (GoF) tests considered under symmetric alternative distributions for small to moderate sample sizes. A real data example revealed the robustness and applicability of the proposed test as well as its superiority in power over other common existing tests studied.


Introduction
Testing for distributional assumptions for normality is of paramount importance in applied statistical modelling.Several well-known numerical tests for normality are widely used by investigators to supplement the graphical techniques in assessing departures from normality.Amongst others, these tests include the Kolmogorov-Smirnov (KS) test [1], the Lilliefors (LL) test [2], the Anderson-Darling (AD) test [3,4], the Shapiro-Wilks (SW) test [5], the Jarque-Bera (JB) test [6], and the DAgostino and Pearson (DP) test [7].These tests differ on certain characteristics of the normal distribution on which they focus.That is, some focus on the empirical distribution function (EDF), some are moment based, and some are based on regression as well as correlation.Of these tests, some use normalized sample data whilst some use observed values.However, though these tests are commonly used in practice they do have major drawbacks.For example, some of these tests require complete specification of the null distribution, some require computation of critical values to be done for each specified null distribution, and some require ordering of the sample data when computing the test statistic.Generally, most of these tests are not supported when certain combinations of parameters of a specified distribution are estimated.
Of these, the most well-known goodness-of-fit (GoF) test is the SW test but it was originally restricted to small sample sizes (i.e.,  ≤ 50).Several modifications have been proposed by several researchers.These include Royston [8] who suggested a normalized transformation for the test in order to resolve the limitations on the sample size, Shapiro and Francia [9] who also modified the test so that it can be ideal for large sample sizes, Chen and Shapiro [10] who proposed normalized spacings for an alternative test of the SW test, and Rahman and Govindarajulu [11] who defined new weights for the SW test statistic.However, the major drawback of the SW test is computation time in dealing with large samples when computing the covariance matrix that corresponds to order statistics of the vector of weights and the standard normal distribution.
However, we also have GoF tests that are based on moment constraints such as the skewness and kurtosis coefficients and these are well known to be efficient tools for evaluating normality.These moment based tests include the skewness test, the kurtosis test, the DP test, and the JB test.These tests combine moment constraints to check for deviations from normality.They are often referred to as omnibus tests because of their ability to detect departures from normality whilst not depending upon the parameters of the normal distribution.The adoption of the use of moment based tests coupled with the empirical likelihood methodology has recently attracted the attention of researchers in developing GoF tests for normality [12,13].Dong and Giles [12] proposed an empirical likelihood ratio (ELR) test utilizing the empirical likelihood (EL) methodology of Owen [14].They monitored the first four moment conditions of the normal distribution and their test outperformed alternate common existing tests studied against several alternative distributions.Our study followed from the works of Shan et al. [13] who proposed a simple ELR test for normality based on moment constraints using a standardized normal variable.Their test proved to be more powerful than other well-known GoF tests on small to moderate sample sizes for several alternative distributions.In this study we adopted their approach and focused on the construction of a simple ELR test for normality using the moment constraints of the half-normal distribution.The next section will outline the development of our proposed test followed by Monte Carlo simulations.A real data example will be presented.Discussions and conclusion of the findings as well as potential areas of future research will be highlighted.

ELR Test Development
Let us assume we have independent and identically distributed (..) nonordered random variables  1 ,  2 , . . .,   .The intention being to assess whether the observed data is normally distributed.Thus we intend testing the following null hypothesis: where  and  2 are considered to be unknown parameters.We proposed using the standardized random variables of the normal distribution by using the following transformations: where  =  = (1/)∑  =1   and  is the standard deviation to be estimated by an unbiased quantity  2 = /(−1).One can also decide to use the maximum likelihood estimate (MLE) σ2 = /, where  = ∑  =1 (  − ) 2 and  = (1/) ∑  =1   .Both quantities  2 and σ2 are known to converge to  2 as  approaches ∞.We also used an alternative transformation following Lin and Mudholkar's [17] work which also eliminates the dependency that exists between  and  on the data distribution.Thus we also transformed our observations using where As  gets large the standardized data points  1 ,  2 , . . .,   become asymptotically independent.If  ∼ (0,  2 ), then the absolute value || ∼ (,  2 ).It also follows that if  ∼ (,  2 ), then the modulus of the standardized normal random variables,  ⋆ and  * , follows a standardized half-normal random variable with mean = √2/ and variance = 1.The standardized form of the half-normal distribution is also known as the  2distribution with ] = 1.The standardized half-normal random variable has a PDF that is given by and we denote it as  ∼ (,  2 ).Following Prudnikov et al. [18], the  th moment of the standardized half-normal variable for some integer  > 0 is as outlined in the proposition below.
We then derived the first four moments using the function given in (5).These moments are easily obtained as follows.
Corollary 2. Let  ∼ (,  2 ).The first two moments of , that is  and  are given by var Corollary 3. Let  ∼ (,  2 ).The skewness and kurtosis coefficients of  are given by In this study we used the first four moment constraints of the standardized half-normal distribution.

The ELR Based Test Statistic.
We used an empirical likelihood ratio test (ELR) to construct our test statistic.Our aim was to compare the GoF test under  0 against the alternative (  ).In order to achieve this, we constructed our test statistic as follows.Let us consider  nonordered observations  1 ,  2 , . . .,   that are independent and identically distributed and assumed to have unknown  and .The intention is to perform a GoF test for the distributional assumption that  1 ,  2 , . . .,   are consistent with a normal distribution.Now consider that the random variables  1 ,  2 , . . .,   are absolute standardized normal variables from the random variables  1 ,  2 , . . .,   .Thus the transformed/standardized observations have a moment function given in Proposition 1 above.Following the EL methodology we assigned   , which is a probability parameter to each transformed observation   , and then formulated the EL function that is given by where   's satisfy the fundamental properties of probability; that is 0 ≤   ≤ 1 and ∑  =1   = 1.Probability parameters,   's, will then be chosen subject to unbiased moment conditions and the EL method will utilize these   's in order to maximize the EL function.Following this EL technique, (  ) has sample moments ∑  =1      and the probability parameters (  's) are elements of the EL function.Under  0 , the four unbiased empirical moment equations have the form The composite hypotheses for the ELR test are given by Alternatively considering the above unbiased empirical moment equations, the hypotheses for the ELR test can be written as The nonparametric empirical likelihood function corresponding to the given hypotheses has the form: where the unknown probability parameters and   's are attained under  0 and   .Under  0 the EL function is maximized with respect to the   's subject to two constraints Following this, the weights of   's are identified as where 0 ≤   ≤ 1, for  = {1, 2, . . ., }.If we then use the Lagrangian multipliers technique, it can be shown that the maximum EL function under  0 can be expressed by the given form: where   is a root of Under the alternative hypothesis, ∑  =1      =   is not required to identify the weights,   , in order to maximize the EL function but only ∑  =1   = 1.Thus under   the nonparametric EL function is given by Now let us consider (−2)  to be -2 log likelihood test statistic for the hypotheses  0 : (  ) =   vs   : (  ) ̸ =   .It should be noted that, under  0 , minus two times the log ELR has an asmymptotic  2 limiting distribution [19].Thus considering the null and alternative hypotheses, the above test statistic will simply be transformed to With simple substitution the above can be simplified to We used the likelihood ratio to compare to size adjusted critical values in order to decide whether or not to reject  0 .
We then proposed to reject the null hypothesis if where   is the test threshold and is 100(1 − )% percentile of the  2 (1) distribution whilst  are integer values representing the set of moment constraints that maximizes the test statistic.As recommended by Dong and Giles [12], we used the first four moment constraints; that is, we set  = {1, 2, 3, 4}.In this study we used the abbreviation ELR 1 to refer to the first test where we transformed data using (2) and we used the abbreviation ELR 2 to refer to the second alternative test where we transformed data using (3).Our test statistic ELR  = max ∈ (−2)  is a CUSUM-type statistic as classified by Vexler and Wu [20].In their article, Vexler and Wu [20] stated that based on the change point literature, another common alternative is to utilize the Shiryaev-Roberts (SR) statistic in replacement of the CUSUM-type statistic (see, for example, [21,22]).In our case the classical SR statistic was of the form ∑ ∈ exp(−2)  .Vexler, Liu, and Pollak [23] showed that the classical SR statistic and the simple CUSUM-type statistic have almost equivalent optimal statistical properties due to their common null-martingale basis.Moreover, the classical SR statistic is adapted from the CUSUM-type statistic.Shan et al. [13] used Monte Carlo experiments to compare the CUSUM-type statistic for their ELR test for normality with an equivalent classical SR statistic and based on the relative simplicity of the CUSUM-type statistic, as well as its power properties, the authors opted to use the CUSUMtype statistic for their study.We conducted a numerical experiment to compare power for the CUSUM-type and SR statistic for our proposed test statistics with increased moment constraints and, based on the same reasons given by Shan et al. [13], we decided to use the CUSUM-type statistic for our Monte Carlo comparisons.Also, from the results, ELR 2 outperformed ELR 1 , hence ELR 2 was our preferred test.For all further comparisons, ELR 1 was excluded in this study.Findings for this Monte Carlo experiment are presented in Table 4.However, it should be noted from these findings that ELR 1 has the potential to be superior to ELR 2 under certain alternatives.Further investigations to uncover the alternatives in which ELR 1 is superior to ELR 2 are a potential area of future research which will not be further addressed in this study.The next section will outline the Monte Carlo simulation procedures using the R statistical package.

Monte Carlo Simulation Study
We used the R statistical package to implement our Monte Carlo simulation procedures in power comparisons as well as assessment of our preferred proposed test (ELR 2 ).It should be noted that other standard statistical packages can easily be used to implement our proposed tests.In order for us to conduct any assessments and evaluations of the proposed test, firstly we had to determine the size adjusted critical values.

Size Adjusted Critical
Values.Since the proposed ELR test is an asymptotic test, we therefore computed the unknown actual sizes for finite samples using Monte Carlo simulations with 50,000 replications.Motivated by practical applications, we considered critical values for relatively small sample sizes, i.e., 10 ≤  ≤ 200 because most applied statistical sciences datasets fall within this range.The actual rejection rate for a given sample size () is considered to be the total number of the rejections divided by the total number of replications.Data was simulated from a standard normal distribution.The stored ordered test statistics were then used to determine the percentiles of the empirical distribution.This makes it possible to obtain the 30%, 25%, 20%, . . ., 1%, size adjusted critical values.

ELR Test Assessment.
The power of the proposed test (ELR 2 ) was compared to that of common existing GoF tests that include the Anderson-Darling (AD) test [3,4] test, the modified Kolmogorov-Smirnov (KS) test [2] the Cramervon Mises (CVM) test [24][25][26], the Jarque-Bera (JB) test [6], the Shapiro-Wilk (SW) test [5], the density based empirical likelihood ratio based (DB) test [16], and the simple and exact empirical likelihood test based on moment relations (SEELR) [13] at the 5% significance level.Power simulations were done using 5,000 replications for all tests with varying sample sizes ( = 20, 30, 50 and 80) against different alternative distributions.We adopted alternative distributions used by Shan et al. [13] which covers a wide range of both symmetric and asymmetric applied distributions.To assess robustness and applicability of our proposed test (ELR 2 ), we conducted a bootstrap study using some real data.

Results of the Monte Carlo Simulations
This section presents the findings of the power comparisons for the different categories of the alternative distributions considered.The results of the power comparisons are presented in Tables 5-8.Under symmetric cases defined on (−∞, ∞) our new test ELR 2 outperformed all other studied tests against the considered alternative distributions but slightly inferior to the JB test.For symmetric distributions defined on (0, 1) our proposed test (ELR 2 ) was comparable to the DB test and significantly outperformed other alternate tests studied.However, when the alternative is Beta (0.5, 0.5), the ELR 2 test is comparable to the SW and SEELR tests whilst only outperforming the KS test, the CVM test and the JB test.
As for asymmetric distributions defined on (0, ∞), the SW and SEELR are the most powerful tests and should be the preferred tests under these cases.The AD and DB tests are comparable and they performed better than the proposed test as well as the KS and CVM tests.Lastly, in the category of asymmetric alternative distributions defined on (−∞, ∞) the ELR 2 test was comparable to the SEELR test at low sample sizes (i.e.,  = 20, 30) for the non-central -distributions.The SW test outperformed all the tests considered in this study under these asymmetric alternative distributions.For the ELR based tests only the SEELR test was comparable to the common existing tests studied, that is, the AD test, the KS  test, the CVM test, and the JB test.
Overall, when considering all the normality tests with respect to all of the alternative distributions considered, it can be seen that, the JB, the ELR 2 and the SW tests are generally the most powerful tests given symmetric alternatives defined on (−∞, ∞), whilst the DB and the ELR 2 tests are the most powerful tests for symmetric alternatives defined on (0, 1).On the other hand, the SEELR and the SW tests are the most powerful tests for asymmetric alternatives defined on (0, ∞), whereas, the JB and SW tests are the most powerful tests for asymmetric alternatives defined on (−∞, ∞).Note.Data appeared in the newspaper the Sunday Mail on December 21, 1997 [15].
It was of paramount importance for us to determine the computational cost of the new algorithms by focusing on the computation time of the proposed test as compared to that of the considered existing tests.To assess this, we used the R benchmark tool on a notebook installed with 64 Bit Windows 10 Home addition.Equipped with a 4th generation Intel Core i5-4210U processor which has a speed of 1.7 GHz cache and memory (RAM) of 4 GB PC3 DDR3L SDRAM, we set our simulations to 5,000 for each test with sample size set at  = 80.The results (see Table 1) show only a clear advantage of our proposed approach to that of the widely known JB test.Also from the results, our proposed methods are comparable to the SEELR test but inferior to the DB test.The SW, CVM, KS and AD tests are computationally more efficient in terms of time than the rest of the studied tests.

A Real Data Example
In this example we used baby boom data from an observational study with records of forty-four (44) babies born at a 24-hour hospital in Brisbane, Australia.We opted for this dataset because it can be used to demonstrate applicability of various statistical procedures to some common applied distributions which include the normal (by modelling the birth weights), the binomial (inferences in the number of boys/girls born), the geometric (by considering the number of births until a boy/girl is born), the Poisson (births per hour for each hour), and the exponential (inference on times between births).Recently, Miecznikowski et al. [27] used the baby boom dataset in a resampling study on the application of their ELR based goodness-of-fit test.For more information regarding this dataset one can refer to Dunn [28].For our application we opted to make use of the exponential distribution; thus we were interested in inference on the times between births.Table 2 shows the times between births which were computed by taking the differences between successive times of birth after midnight of birth times.The goal of this example was to carry out a bootstrap study in assessing the robustness and applicability of our proposed test (ELR 2 ) on uniformly distributed data.However, the times between births are known to be consistent with the exponential distribution (see Figure 1).By assessing the histogram one can easily see that the data resembles the exponential distribution revealing that the times between births are exponentially consistent.We used the inverse exponential distribution to transform the times between births so that they can be uniformly distributed.We then used the density based empirical likelihood ratio based test (dbEmpLikeGOF) to check if the transformed baby boom data are uniformly distributed.The dbEmpLikeGOF test returned a  value of 0.6950 suggesting that the transformed data are consistent with the uniform distribution.For the resampling study we performed a power simulation study by randomly removing 3, 8, and 13 observations from the transformed baby boom data at 5% significance level using 20,000 replications for each simulation.For comparison's sake we considered the AD test, the modified KS test, the CVM test, the JB test, the SW test, the DB test, the SEELR test, and our proposed test (ELR 2 ).The Monte Carlo bootstrap simulation results are presented in Table 3.It is undeniably clear that our test outperformed all the common existing tests and therefore suggests its robustness and applicability on real data.It should be noted that we opted for uniformly distributed data for our application since our proposed test (ELR 2 ) proved to be more powerful for symmetric alternative distributions which are defined on (0, 1).

Conclusion
An empirical likelihood ratio test for normality based on moment constraints of the half-normal distribution has been developed.Overall, the proposed ELR test has good power properties and significantly outperformed the considered well-known common existing tests against the studied alternative symmetric distributions.In our case, the attractive power properties of the proposed ELR test resulted from the EL method being able to integrate most of the available information by utilizing the first four moment constraints and also through the utilization of the EL function which leads to additional power benefits.We advocate for our proposed test (ELR 2 ) to be the preferred choice when one   is testing for departures from normality against symmetric alternative distributions for small to moderate sample sizes.However, our has low power in the considered asymmetric alternatives and further modifications in improving the power of the test under these alternatives would be much appreciated.
In this study we used the moment constraints of the standardized variables of the half-normal distribution.It will be of interest for one to use the raw moments (nonstandardized data points) of the half-normal distribution.However, according to Dong and Giles [12], the power of the ELR test using standardized observations is within the same range as it is when using nonstandardized data points.Also of interest are the findings by Mittelhammer et al. [29] where they suggested that the power of ELR based tests increases as the moment constraints increase.From our numerical experiment we did not extensively explore this conjecture and this is a potential area of future research and it might be interesting to carry out a more detailed investigation for the proposed tests.We focused on tests for normality, which is a common distribution to test in applied statistical modelling and we believe that our proposed test will assist investigators to use empirical likelihood approaches using moment constraints for goodness-of-fit tests of other applied distributions in practice.By simply ignoring the absolute values of the transformed observations and utilizing standardized halfnormal data points our proposed test will simply transform to a GoF test for assessing departures from half-normality.

Figure 1 :
Figure 1: Histogram for times between births for baby boom data.

Table 1 :
Comparisons of computational times (in seconds) for the studied tests.

Table 2 :
The baby boom data.

Table 3 :
Bootstrapping using the inverse transformed baby boom data.

Table 4 :
A numerical assessment on power using the Shiryaev-Roberts (S-R) and CUSUM-type (C-t) statistics for the proposed tests (ELR 1 and ELR 2 ) with increased moment constraints at  = 0.05.Note.Our proposed tests are maximized on  ∈ , where  can take any integer to represent the moment constraints used to maximise the test statistics for specified sample sizes at 5% level of significance using 5,000 simulations. is the sample size.Bold represents the powerful test statistic for the given simulation scenarios.

Table 6 :
Results of the Monte Carlo power comparisons based on samples with sizes () from symmetric alternative distributions defined on (0, 1) at  = 0.05.

Table 7 :
Results of the Monte Carlo power comparisons based on samples with sizes () from asymmetric alternative distributions defined on (0, ∞)  = 0.05.

Table 8 :
Results of the Monte Carlo power comparisons based on samples with sizes () from asymmetric alternative distributions defined on (−∞, ∞) at  = 0.05.