Answers are grounded in this paper and cite their sources.
We present the results of a large number of simulation studies regarding the power of various goodness-of-fit as well as nonparametric two-sample tests for multivariate data. In two dimensions this includes both continuous and discrete data, in higher dimensions continuous data only. In general no single method can be relied upon to provide good power: any one method may be quite good for some combination of null hypothesis and alternative and may fail badly for another. Based on the results of these studies we propose a fairly small number of methods chosen such that for any of the case studies included here at least one of the methods has good power, and we check these selections by leave-one-out cross-validation. In our case studies the aggregated MMD test as implemented in MD2sample is the best single method for the two-sample problem; it differs from the published MMDAgg test, and the result should not be assumed to carry over to it. For the goodness-of-fit problem in two dimensions, chi-square tests with a small number of bins are best, especially if the marginals are the same under the null hypothesis and the alternative. In five dimensions a hybrid test, a two-sample MMD test against a large Monte Carlo sample from the null hypothesis, has clearly higher power than the goodness-of-fit methods. The studies were carried out using the R packages MD2sample and MDgof, available from CRAN. All results, together with the true type I errors, are included in the packages, and the scripts that produce every table and figure are part of this paper.
No takes yet. Share an insight, caveat, or question.
Wolfgang Rolke (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: