Testing the difference between two data samples is of a particular interest in statistics. Precisely, given two samples and , with and being unknown continuous cumulative distribution functions, we wish to test the null hypothesis . In this paper, we propose an effective and convenient Bayesian nonparametric approach to assess the equality of two unknown distributions. The method is based on the Kolmogorov distance and approximate samples from the Dirichlet process centered at the standard normal distribution and a concentration parameter 1. Our results show that the proposed test is robust with respect to any prior specification of the Dirichlet process. We provide simulated examples to illustrate the workings of the method. Overall, the proposed method performs perfectly in many cases.
View on arXiv