3

Since it is not easy to apply a Multivariate Kolmogorov-Smirnov test for two samples, I thought: is it possible to compare the different statistics with the univariate KS? For example:

Object 1: statistic 1, statistic 2, etc.

Object 2: statistic 1, statistic 2, etc.

If I want to check if these 2 objects are the same, can I just use the univariate KS test for two samples and compare first statistics 1, then 2, and so on? Then if all tests say that all the statistics are the same, does it mean that objects are the same?

Of course if the statistics have the same "number" it means that they measure the same thing.

1 Answers1

4

What you're doing is comparing marginal distributions.

Equality of marginal distributions doesn't imply equality of joint distribution.

Specifically, the copula can be different in each of the two cases, while the margins remain the same.

Some examples (for normal margins) are described here, but the issue applies much more generally.

Even having bivariate margins equal doesn't make a trivariate distribution the same. See here for an example.

Glen_b
  • 257,508
  • 32
  • 553
  • 939
  • Ok, thank you, I think I see the problem. Do you know which kind of two sample test for multivariate data could I apply? Suppose I know nothing beforehand about the distributions. – user3707249 Sep 21 '14 at 10:58
  • Added a couple of links you might find helpful. – Glen_b Sep 21 '14 at 11:00
  • Do you know about a test for non normal margins (non parametric test)? – user3707249 Sep 25 '14 at 09:52
  • Sure, any univariate goodness of fit test for normality. A common test for normality vs non-normality is the Shapiro-Wilk - but that invites the important question ... *why test that*? – Glen_b Sep 25 '14 at 09:55
  • I meant about a multivariate non parametric test for comparing two samples and test if they are the same or not. – user3707249 Sep 25 '14 at 09:57
  • The question about "test for non normal margins" doesn't mean that. You should probably ask about testing for equality of distribution for the multivariate case as a new question (try searching for *multivariate goodness of fit* first, in case it has already been answered). – Glen_b Sep 25 '14 at 10:06
  • Thank you very much! I will search for it before asking. – user3707249 Sep 25 '14 at 10:06