Research Article  Open Access
A Simple Empirical Likelihood Ratio Test for Normality Based on the Moment Constraints of a HalfNormal Distribution
Abstract
A simple and efficient empirical likelihood ratio (ELR) test for normality based on moment constraints of the halfnormal distribution was developed. The proposed test can also be easily modified to test for departures from halfnormality 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 wellknown existing goodnessoffit (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.
1. Introduction
Testing for distributional assumptions for normality is of paramount importance in applied statistical modelling. Several wellknown 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 KolmogorovSmirnov (KS) test [1], the Lilliefors (LL) test [2], the AndersonDarling (AD) test [3, 4], the ShapiroWilks (SW) test [5], the JarqueBera (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 wellknown goodnessoffit (GoF) test is the SW test but it was originally restricted to small sample sizes (i.e., ). 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 wellknown 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 halfnormal 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.
2. ELR Test Development
Let us assume we have independent and identically distributed nonordered random variables . The intention being to assess whether the observed data is normally distributed. Thus we intend testing the following null hypothesis:where and are considered to be unknown parameters. We proposed using the standardized random variables of the normal distribution by using the following transformations: where and is the standard deviation to be estimated by an unbiased quantity . One can also decide to use the maximum likelihood estimate (MLE) , where and . Both quantities and are known to converge to 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 , , and . As gets large the standardized data points become asymptotically independent. If , then the absolute value . It also follows that if , then the modulus of the standardized normal random variables, and , follows a standardized halfnormal random variable with mean = and variance = 1. The standardized form of the halfnormal distribution is also known as the distribution with . The standardized halfnormal random variable has a PDF that is given byand we denote it as . Following Prudnikov et al. [18], the moment of the standardized halfnormal variable for some integer is as outlined in the proposition below.
Proposition 1. Let , for k = 1, 2,..., n, and then the moments are given bywhere denotes the gamma function.
We then derived the first four moments using the function given in (5). These moments are easily obtained as follows.
Corollary 2. Let . The first two moments of , that is and are given by
Corollary 3. Let . The skewness and kurtosis coefficients of are given by
In this study we used the first four moment constraints of the standardized halfnormal distribution.
2.1. 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 against the alternative (). In order to achieve this, we constructed our test statistic as follows. Let us consider nonordered observations 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 are consistent with a normal distribution. Now consider that the random variables are absolute standardized normal variables from the random variables . 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 bywhere ’s satisfy the fundamental properties of probability; that is and . 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 and the probability parameters (’s) are elements of the EL function. Under , the four unbiased empirical moment equations have the formThe composite hypotheses for the ELR test are given byAlternatively considering the above unbiased empirical moment equations, the hypotheses for the ELR test can be written asThe nonparametric empirical likelihood function corresponding to the given hypotheses has the form:where the unknown probability parameters and ’s are attained under and . Under the EL function is maximized with respect to the ’s subject to two constraintsFollowing this, the weights of ’s are identified aswhere , for . If we then use the Lagrangian multipliers technique, it can be shown that the maximum EL function under can be expressed by the given form:where is a root ofUnder the alternative hypothesis, is not required to identify the weights, , in order to maximize the EL function but only . Thus under the nonparametric EL function is given byNow let us consider to be 2 log likelihood test statistic for the hypotheses . It should be noted that, under , minus two times the log ELR has an asmymptotic limiting distribution [19]. Thus considering the null and alternative hypotheses, the above test statistic will simply be transformed toWith simple substitution the above can be simplified toWe used the likelihood ratio to compare to size adjusted critical values in order to decide whether or not to reject . We then proposed to reject the null hypothesis ifwhere is the test threshold and is percentile of the 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 . In this study we used the abbreviation to refer to the first test where we transformed data using (2) and we used the abbreviation to refer to the second alternative test where we transformed data using (3). Our test statistic is a CUSUMtype 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 ShiryaevRoberts (SR) statistic in replacement of the CUSUMtype statistic (see, for example, [21, 22]). In our case the classical SR statistic was of the form . Vexler, Liu, and Pollak [23] showed that the classical SR statistic and the simple CUSUMtype statistic have almost equivalent optimal statistical properties due to their common nullmartingale basis. Moreover, the classical SR statistic is adapted from the CUSUMtype statistic.
Shan et al. [13] used Monte Carlo experiments to compare the CUSUMtype statistic for their ELR test for normality with an equivalent classical SR statistic and based on the relative simplicity of the CUSUMtype 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 CUSUMtype 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 CUSUMtype statistic for our Monte Carlo comparisons. Also, from the results, outperformed , hence was our preferred test. For all further comparisons, 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 has the potential to be superior to under certain alternatives. Further investigations to uncover the alternatives in which is superior to 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.
3. 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 (). 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.
3.1. 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., 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 , size adjusted critical values.
3.2. ELR Test Assessment
The power of the proposed test () was compared to that of common existing GoF tests that include the AndersonDarling (AD) test [3, 4] test, the modified KolmogorovSmirnov (KS) test [2] the Cramervon Mises (CVM) test [24–26], the JarqueBera (JB) test [6], the ShapiroWilk (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 (), we conducted a bootstrap study using some real data.
4. 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 outperformed all other studied tests against the considered alternative distributions but slightly inferior to the JB test. For symmetric distributions defined on our proposed test () was comparable to the DB test and significantly outperformed other alternate tests studied. However, when the alternative is Beta (0.5, 0.5), the 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 , 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 test was comparable to the SEELR test at low sample sizes (i.e., ) for the noncentral 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 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 and the SW tests are generally the most powerful tests given symmetric alternatives defined on , whilst the DB and the tests are the most powerful tests for symmetric alternatives defined on . On the other hand, the SEELR and the SW tests are the most powerful tests for asymmetric alternatives defined on , whereas, the JB and SW tests are the most powerful tests for asymmetric alternatives defined on .
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 i54210U 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 . 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.

5. A Real Data Example
In this example we used baby boom data from an observational study with records of fortyfour (44) babies born at a 24hour 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 goodnessoffit 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.
 
Note. Data appeared in the newspaper the Sunday Mail on December 21, 1997 [15]. 
The goal of this example was to carry out a bootstrap study in assessing the robustness and applicability of our proposed test () 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 (). 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 () proved to be more powerful for symmetric alternative distributions which are defined on (0, 1).

 
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 level of significance using 5,000 simulations. is the sample size. Bold represents the powerful test statistic for the given simulation scenarios. 
 
 
 
 
6. Conclusion
An empirical likelihood ratio test for normality based on moment constraints of the halfnormal distribution has been developed. Overall, the proposed ELR test has good power properties and significantly outperformed the considered wellknown 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 () 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 test 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 halfnormal distribution. It will be of interest for one to use the raw moments (nonstandardized data points) of the halfnormal 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 goodnessoffit 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 halfnormality.
Data Availability
The data appeared in an article entitled “Babies by the Dozen for Christmas: 24Hour Baby Boom” in the newspaper the Sunday Mail on December 21, 1997 [15]. One can get the data in the package ‘dbEmpLikeGOF’ in R.
Conflicts of Interest
The authors declare that they have no conflicts of interest.
Acknowledgments
The authors would like to extend their gratitude to Professor Albert Vexler for his patience and assistance in attending to our questions and queries on research gate. They would also like to thank the National Research Foundation of South Africa and the Govan Mbeki Research Unit of the hosting University for sponsoring this study.
References
 A. N. Kolmogorov, “Sulla determinazione empirica di una legge di distribuzione,” Giornalle dell'Instituto Italiano degli Attuari, vol. 4, pp. 83–91, 1933. View at: Google Scholar
 H. W. Lilliefors, “On the KolmogorovSmirnov test for normality with mean and variance unknown,” Journal of the American Statistical Association, vol. 62, no. 318, pp. 399–402, 1967. View at: Publisher Site  Google Scholar
 T. W. Anderson and D. A. Darling, “Asymptotic theory of certain goodness of fit criteria based on stochastic processes,” Annals of Mathematical Statistics, vol. 23, pp. 193–212, 1952. View at: Publisher Site  Google Scholar  MathSciNet
 T. W. Anderson and D. A. Darling, “A test of goodness of fit,” Journal of the American Statistical Association, vol. 49, pp. 765–769, 1954. View at: Publisher Site  Google Scholar  MathSciNet
 S. S. Shapiro and M. B. Wilk, “An analysis of variance test for normality: Complete samples,” Biometrika, vol. 52, pp. 591–611, 1965. View at: Publisher Site  Google Scholar  MathSciNet
 C. M. Jarque and A. K. Bera, “A test for normality of observations and regression residuals,” International Statistical Review, vol. 55, no. 2, pp. 163–172, 1987. View at: Publisher Site  Google Scholar  MathSciNet
 R. DAgostino and E. S. Pearson, “Tests for departure from normality. Empirical results for the distributions of b2 and b1,” Biometrika, vol. 60, no. 3, pp. 613–622, 1973. View at: Google Scholar
 P. Royston, “Approximating the ShapiroWilk Wtest for nonnormality,” Statistics and Computing, vol. 2, no. 3, pp. 117–119, 1992. View at: Publisher Site  Google Scholar
 S. S. Shapiro and R. S. Francia, “An approximate analysis of variance test for normality,” Journal of the American Statistical Association, vol. 67, no. 337, pp. 215216, 1972. View at: Publisher Site  Google Scholar
 L. Chen and S. S. Shapiro, “An alernative test for normality based on normalized spacings,” Journal of Statistical Computation and Simulation, vol. 53, no. 34, pp. 269–287, 1995. View at: Publisher Site  Google Scholar
 M. M. Rahman and Z. Govindarajulu, “A modification of the test of Shapiro and Wilk for normality,” Journal of Applied Statistics, vol. 24, no. 2, pp. 219–235, 1997. View at: Publisher Site  Google Scholar
 L. B. Dong and D. E. Giles, “An empirical likelihood ratio test for normality,” Communications in Statistics—Simulation and Computation, vol. 36, no. 1–3, pp. 197–215, 2007. View at: Publisher Site  Google Scholar  MathSciNet
 G. Shan, A. Vexler, G. E. Wilding, and A. D. Hutson, “Simple and exact empirical likelihood ratio tests for normality based on moment relations,” Communications in Statistics—Simulation and Computation, vol. 40, no. 1, pp. 129–146, 2010. View at: Publisher Site  Google Scholar  MathSciNet
 A. B. Owen, Empirical Likelihood, Chapman and Hall, New York, NY, USA, 2001.
 S. Steele, Babies by the Dozen for Christmas: 24Hour Baby Boom, The Sunday Mail (Brisbane), 1997.
 A. Vexler and G. Gurevich, “Empirical likelihood ratios applied to goodnessoffit tests based on sample entropy,” Computational Statistics & Data Analysis, vol. 54, no. 2, pp. 531–545, 2010. View at: Publisher Site  Google Scholar  MathSciNet
 C. C. Lin and G. S. Mudholkar, “A simple test for normality against asymmetric alternatives,” Biometrika, vol. 67, no. 2, pp. 455–461, 1980. View at: Publisher Site  Google Scholar  MathSciNet
 A. P. Prudnikov, Y. A. Brychkov, and O. I. Marichev, Integrals and Series, vol. 1, Gordon and Breach Science Publishers, 1986.
 A. B. Owen, “Empirical likelihood ratio confidence intervals for a single functional,” Biometrika, vol. 75, no. 2, pp. 237–249, 1988. View at: Publisher Site  Google Scholar  MathSciNet
 A. Vexler and C. Wu, “An optimal retrospective change point detection policy,” Scandinavian Journal of Statistics, vol. 36, no. 3, pp. 542–558, 2009. View at: Publisher Site  Google Scholar  MathSciNet
 G. Lorden and M. Pollak, “Nonanticipating estimation applied to sequential analysis and changepoint detection,” The Annals of Statistics, vol. 33, no. 3, pp. 1422–1454, 2005. View at: Publisher Site  Google Scholar  MathSciNet
 A. Vexler, “Guaranteed testing for epidemic changes of a linear regression model,” Journal of Statistical Planning and Inference, vol. 136, no. 9, pp. 3101–3120, 2006. View at: Publisher Site  Google Scholar  MathSciNet
 A. Vexler, A. Liu, and M. Pollak, “Transformation of changepoint detection methods into a ShiryayevRoberts form,” Tech. Rep., Department of Biostatistics, The New York State University at Buffalo, 2006. View at: Google Scholar
 H. Cramér, “On the composition of elementary errors: first paper: mathematical deductions,” Scandinavian Actuarial Journal, vol. 11, pp. 13–74, 1928. View at: Publisher Site  Google Scholar
 R. Von Mises, “Wahrscheinlichkeitsrechnung und Ihre Anwendung in der Statistik und Theoretischen Physik,” F. Deuticke, Leipzig, Vol. 6.1, 1931. View at: Google Scholar
 N. V. Smirnov, “Sui la distribution de w2 (Criterium de M.R.v. Mises),” Comptes Rendus Mathematique Academie des Sciences, Paris, vol. 202, pp. 449–452, 1936. View at: Google Scholar
 J. C. Miecznikowski, A. Vexler, and L. Shepherd, “DbEmpLikeGOF: An R package for nonparametric likelihood ratio tests for goodnessoffit and twosample comparisons based on sample entropy,” Journal of Statistical Software, vol. 54, no. 3, pp. 1–19, 2013. View at: Google Scholar
 P. K. Dunn, “A simple data set for demonstrating common distributions,” Journal of Statistics Education, vol. 7, no. 3, 1999. View at: Google Scholar
 R. C. Mittelhammer, G. G. Judge, and D. Miller, Econometric Foundations, Cambridge University Press, 2000. View at: MathSciNet
Copyright
Copyright © 2018 C. S. Marange and Y. Qin. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.