# A Kolmogorov-Smirnov Test for r Samples

Böhm, Walter and Hornik, Kurt ORCID: https://orcid.org/0000-0003-4198-9911 (2010) A Kolmogorov-Smirnov Test for r Samples. Research Report Series / Department of Statistics and Mathematics, 105. WU Vienna University of Economics and Business, Vienna.

## Abstract

We consider the problem of testing whether r (>=2) samples are drawn from the same continuous distribution F(x). The test statistic we will study in some detail is defined as the maximum of the circular differences of the empirical distribution functions, a generalization of the classical 2-sample Kolmogorov-Smirnov test to r (>=2) independent samples. For the case of equal sample sizes we derive the exact null distribution by counting lattice paths confined to stay in the scaled alcove $\mathcal{A}_r$ of the affine Weyl group $A_{r-1}$. This is done using a generalization of the classical reflection principle. By a standard diffusion scaling we derive also the asymptotic distribution of the test statistic in terms of a multivariate Dirichlet series. When the sample sizes are not equal the reflection principle no longer works, but we are able to establish a weak convergence result even in this case showing that by a proper rescaling a test statistic based on a linear transformation of the circular differences of the empirical distribution functions has the same asymptotic distribution as the test statistic in the case of equal sample sizes.

Item Type: Paper Kolmogorov-Smirnov test / lattice path counting / reflection principle / affine Weyl groups / asymptotics distribution AMS 05A15, 05A16, 62G10, 62G20 Departments > Finance, Accounting and Statistics > Statistics and Mathematics Submitted Not applicable Josef Leydold 12 Jan 2011 14:21 24 Oct 2019 13:41 https://epub.wu.ac.at/id/eprint/2960

### Actions

 View Item