Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to compare the distribution (unknown) of a set of data to the distribution of another one (unknown). In particular, I want to check for equality of the two distributions.

What are some statistical tests for this?

share|cite|improve this question
Essentially the same question as… – jbowman Jun 18 '12 at 17:31

A huge subject! The standard all-purpose test is Kolmogorov-Smirnov.

share|cite|improve this answer
There is chi-square also. Most nonparametric tests compare the empirical cdfs. For examp[le the Kolmogorov-Smirnov test looks at the maximum difference of the two ecdfs. – Michael Chernick Jun 18 '12 at 20:53
@André Nicolas I was going to use Kolmogorov-Smirnov, but then I read this: "# Perhaps the most serious limitation is that the distribution must be fully specified. That is, if location, scale, and shape parameters are estimated from the data, the critical region of the K-S test is no longer valid. It typically must be determined by simulation." This is a problem for me, right? – Ricky Robinson Jun 19 '12 at 9:46
Depends on what you want to determine. If you are interested in determining whether the distributions have the same mean, and don't care about the rest, then K-S is not best. K-S is very good for determining whether two samples in essence come from the same population. – André Nicolas Jun 19 '12 at 12:49
No, I need a non-parametric test. I don't know the distribution of either data set and I want to compare one with the other. What are good solutions for this? Mann whitney u test, for instance? – Ricky Robinson Jun 27 '12 at 11:50
From your description, it is K-S that seems to fit your description best. If you are interested mainly in comparing locations, then Mann-Whitney is the standard non-parametric test. – André Nicolas Jun 27 '12 at 13:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.