This article has two objectives. The first is to develop an R script that performs Mardia’s K2 test for assessing multivariate normality (MVN), using both its original asymptotic formulation and a bootstrap method. Unlike previous studies that rely on Monte Carlo simulations to obtain critical values, the bootstrap approach focuses on resampling from sample data while preserving its correlational structure. The second objective is to compare both variants of K2 test with Royston’s H test in terms of hit rate and statistical power. A total of 200 samples were generated from MVN distributions and another 200 from multivariate t distributions with five degrees of freedom, varying sample size (7 levels), number of variables (5 levels), and homogeneous correlation among variables (5 levels). The script computes the K2 and H test statistics, their p-values, and statistical power, and also provides graphical representations of the sampling distribution of the K2 statistic. Two worked examples, one based on a randomly generated sample from an MVN distribution and another based on an empirical sample without an MVN distribution, demonstrate the script’s functionality. The sampling distribution of the bootstrap K2 statistic is less peaked and exhibits a heavier right tail than the distribution implied by the asymptotic approximation, which is defined by a weighted sum of correlated chi-squared variables. When the null hypothesis was retained (i.e., under multivariate normality), the H test showed slightly better performance in terms of correct retention. In contrast, when the null hypothesis was violated, both variants of Mardia’s K2 test outperformed the H test; in this context, the asymptotic variant generally performed better than the bootstrap variant. In samples drawn from a multivariate t distribution, as well as in analyses aggregated across both distributions, the asymptotic K2 variant achieved the highest mean power. In multivariate normal samples, however, the bootstrap K2 variant showed superior performance, followed by the asymptotic variant, with the H test performing worst. This new variant is a robust option for assessing MVN, and its use and further exploration are recommended.
References
[1]
Mardia, K.V. (1970) Measures of Multivariate Skewness and Kurtosis with Applications. Biometrika, 57, 519-530. https://doi.org/10.2307/2334770
[2]
Mardia, K.V. (1974) Applications of Some Measures of Multivariate Skewness and Kurtosis in Testing Normality and Robustness Studies. Sankhya: The Indian Journal of Statistics, Series B (1960-2002), 36, 115-128. https://www.jstor.org/stable/25051892
[3]
Mardia, K.V. (1980) 9 Tests of Unvariate and Multivariate Normality. HandbookofStatistics, 1, 279-320. https://doi.org/10.1016/s0169-7161(80)01011-5
[4]
Urzua, C.M. (1997) Omnibus Tests for Multivariate Normality Based on a Class of Maximum Entropy Distributions. In: Fomby, T.B. and Hill, R.C., Eds., ApplyingMaximumEntropytoEconometricProblems, Emerald Group Publishing Limited, 341-358. https://doi.org/10.1108/s0731-9053(1997)0000012016
[5]
Koizumi, K., Okamoto, N. and Seo, T. (2009) On Jarque-Bera Tests for Assessing Multivariate Normality. Journal of Statistics Advances in Theory and Applications, 1, 207-220.
[6]
Das, A. (2025) New Methods to Compute the Generalized Chi-Square Distribution. JournalofStatisticalComputationandSimulation, 95, 2608-2642. https://doi.org/10.1080/00949655.2025.2501401
[7]
Rousselet, G., Pernet, C.R. and Wilcox, R.R. (2023) An Introduction to the Bootstrap: A Versatile Method to Make Inferences by Using Data-Driven Simulations. Meta-Psychology, 7, 1-24. https://doi.org/10.15626/mp.2019.2058
[8]
R Core Team (2025) R: A language and Environment for Statistical Computing. R Foundation for Statistical Computing. https://www.R-project.org/
[9]
Royston, J.P. (1983) Some Techniques for Assessing Multivarate Normality Based on the Shapiro-Wilk W. AppliedStatistics, 32, 121-133. https://doi.org/10.2307/2347291
[10]
Braun, W.J. and Murdoch, D.J. (2021) A First Course in Statistical Programming with R. 3rd Edition, Cambridge University Press. https://doi.org/10.1017/9781108993456
[11]
Giorgi, F.M., Ceraolo, C. and Mercatelli, D. (2022) The R Language: An Engine for Bioinformatics and Data Science. Life, 12, Article 648. https://doi.org/10.3390/life12050648
[12]
Jobst, L.J., Bader, M. and Moshagen, M. (2023) A Tutorial on Assessing Statistical Power and Determining Sample Size for Structural Equation Models. PsychologicalMethods, 28, 207-221. https://doi.org/10.1037/met0000423
[13]
Anis, W., Kuntoro, K. and Melaniani, S. (2021) Difference of Power Test and Type II Error (β) on Mardia MVN Test, Henze Zikler’s MVN Test, And Royston’s MVN Test Using Multivariate Data Analysis. JurnalBiometrikadanKependudukan, 10, 153-161. https://doi.org/10.20473/jbk.v10i2.2021.153-161
[14]
Khatun, N. (2021) Applications of Normality Test in Statistical Analysis. OpenJournalofStatistics, 11, 113-122. https://doi.org/10.4236/ojs.2021.111006
[15]
Marchev Jr., A. and Marchev, V. (2023) Automated Algorithm for Multi-Variate Data Synthesis with Cholesky Decomposition. Proceedingsofthe 7thInternationalConferenceonAlgorithms, ComputingandSystems, Larissa, 19-21 October 2023, 1-6. https://doi.org/10.1145/3631908.3631909
[16]
Genz, A., Bretz, F., Miwa, T., Mi, X., Leisch, F., Scheipl, F., Bornkamp, B., Maechler, M. and Hothorn, T. (2025) MVTNORM: Multivariate Normal and t Distributions (Version 1.3-3). https://doi.org/10.32614/CRAN.package.mvtnorm
[17]
Newcombe, R.G. (1998) Two-Sided Confidence Intervals for the Single Proportion: Comparison of Seven Methods. StatisticsinMedicine, 17, 857-872. https://doi.org/10.1002/(sici)1097-0258(19980430)17:8<857::aid-sim777>3.0.co;2-e
[18]
Cochran, W.G. (1950) The Comparison of Percentages in Matched Samples. Biometrika, 37, 256-266. https://doi.org/10.1093/biomet/37.3-4.256
[19]
Serlin, R.C., Carr, J. and Marascuilo, L.A. (1982) A Measure of Association for Selected Nonparametric Procedures. PsychologicalBulletin, 92, 786-790. https://doi.org/10.1037/0033-2909.92.3.786
[20]
Sheskin, D.J. (2011) Handbook of Parametric and Non-Parametric Statistical Procedures. 5th Edition. Chapman and Hall. https://doi.org/10.1201/9780429186196
[21]
Barnett, M.J., Doroudgar, S., Khosraviani, V. and Ip, E.J. (2022) Multiple Comparisons: To Compare or Not to Compare, That Is the Question. ResearchinSocialandAdministrativePharmacy, 18, 2331-2334. https://doi.org/10.1016/j.sapharm.2021.07.006
[22]
Cohen, J. (1988) Statistical Power Analysis for Behavioral Sciences. 2nd Edition, Lawrence Erlbaum Associates.
[23]
IBM Corporation (2022) IBM SPSS Statistics for Windows, Version 27.0. IBM Corporation.
[24]
Mauchly, J.W. (1940) Significance Test for Sphericity of a Normal n-Variate Distribution. TheAnnalsofMathematicalStatistics, 11, 204-209. https://doi.org/10.1214/aoms/1177731915
[25]
Pillai, K.C.S. (1955) Some New Test Criteria in Multivariate Analysis. TheAnnalsofMathematicalStatistics, 26, 117-121. https://doi.org/10.1214/aoms/1177728599
[26]
Din, I.U. and Hayat, Y. (2021) ANOVA or MANOVA for Correlated Traits in Agricultural Experiments. SarhadJournalofAgriculture, 37, 1250-1259. https://doi.org/10.17582/journal.sja/2021/37.4.1250.1259
[27]
Hedges, L.V. and Olkin, I. (1985) Statistical Methods for Meta-Analysis. Academic Press.
[28]
Shapiro, S.S. and Wilk, M.B. (1965) An Analysis of Variance Test for Normality (Complete Samples). Biometrika, 52, 591-611. https://doi.org/10.2307/2333709
[29]
Royston, P. (1992) Approximating the Shapiro-Wilk W-Test for Non-normality. StatisticsandComputing, 2, 117-119. https://doi.org/10.1007/bf01891203
[30]
Friedman, M. (1937) The Use of Ranks to Avoid the Assumption of Normality Implicit in the Analysis of Variance. JournaloftheAmericanStatisticalAssociation, 32, 675-701. https://doi.org/10.1080/01621459.1937.10503522
[31]
Conover, W.J. (1999) Practical Nonparametric Statistics. 3rd Edition. John Wiley and Sons.
[32]
Kendall, M.G. and Smith, B.B. (1939) The Problem of m Rankings. TheAnnalsofMathematicalStatistics, 10, 275-287. https://doi.org/10.1214/aoms/1177732186
[33]
In, J. and Lee, D.K. (2024) Alternatives to the P Value: Connotations of Significance. KoreanJournalofAnesthesiology, 77, 316-325. https://doi.org/10.4097/kja.23630
[34]
JASP Team (2024) JASP Version 0.19.2 [Computer Software]. https://jasp-stats.org/download/
[35]
Lyubomirsky, S. and Lepper, H.S. (1999) A Measure of Subjective Happiness: Preliminary Reliability and Construct Validation. SocialIndicatorsResearch, 46, 137-155. https://doi.org/10.1023/a:1006824100041
[36]
Quezada, L., Landero, R. and González, M.T. (2016) A Validity and Reliability Study of the Subjective Happiness Scale in Mexico. TheJournalofHappinessandWell-Being, 4, 90-100.
[37]
Jammalamadaka, S.R., Taufer, E. and Terdik, G.H. (2020) On Multivariate Skewness and Kurtosis. SankhyaA, 83, 607-644. https://doi.org/10.1007/s13171-020-00211-6
[38]
Burgess, N. (2022) Correlated Monte Carlo Simulation Using Cholesky Decomposition. Social Science Research Network (SSRN). https://ssrn.com/abstract=4066115
[39]
Leisch, F. and Kostyshak, S. (2025) Package ‘Bootstrap’. https://cran.r-project.org/web/packages/bootstrap/bootstrap.pdf
[40]
Korteling, J.E., van de Boer-Visschedijk, G.C., Blankendaal, R.A.M., Boonekamp, R.C. and Eikelboom, A.R. (2021) Human-versus Artificial Intelligence. FrontiersinArtificialIntelligence, 4, Article 622364. https://doi.org/10.3389/frai.2021.622364
[41]
Moral De La Rubia, J. (2025) Refined Normality Test Based on the Parametric Seven-Number Summary. İstatistikveUygulamalıBilimlerDergisi, 11, 1-39. https://doi.org/10.52693/jsas.1670945
[42]
Quach, N.E., Yang, K., Chen, R., Tu, J., Xu, M., Tu, X.M., et al. (2022) Post-Hoc Power Analysis: A Conceptually Valid Approach for Power Based on Observed Study Data. GeneralPsychiatry, 35, e100764. https://doi.org/10.1136/gpsych-2022-100764
[43]
Mokhtar, S.F., Md Yusof, Z. and Sapiri, H. (2023) Confidence Intervals by Bootstrapping Approach: A Significance Review. MalaysianJournalofFundamentalandAppliedSciences, 19, 30-42. https://doi.org/10.11113/mjfas.v19n1.2660
[44]
Zhang, Z. and Yuan, K.H. (2018) Practical Statistical Power Analysis Using Web Power and R. ISDSA Press. https://doi.org/10.35566/power
[45]
Davidson, R. and MacKinnon, J.G. (2006) The Power of Bootstrap and Asymptotic Tests. JournalofEconometrics, 133, 421-441. https://doi.org/10.1016/j.jeconom.2005.06.002
[46]
Moral de la Rubia, J. (2023) Proposal and Pilot Study: A Generalization of the W or W’ Statistic for Multivariate Normality. OpenJournalofStatistics, 13, 119-169. https://doi.org/10.4236/ojs.2023.131008
[47]
Manly, B.F. and Navarro-Alberto, J.A. (2021) Randomization, Bootstrap and Monte Carlo Methods in Biology. 4th Edition, Chapman and Hall/CRC. https://doi.org/10.1201/9780429329203
[48]
Henze, N. and Zirkler, B. (1990) A Class of Invariant Consistent Tests for Multivariate Normality. CommunicationsinStatistics—TheoryandMethods, 19, 3595-3617. https://doi.org/10.1080/03610929008830400
[49]
Korkmaz, S. (2025) Package ‘MVN’. Multivariate Normality Tests. https://cran.r-project.org/web/packages/MVN//MVN.pdf