quantify difference between discrete distributions

조회 수: 7 (최근 30일)
John
John 2013년 2월 14일
Hello,
I am trying to quantify the difference between two discrete distributions. I have been reading online and there seems to be a few different ways such as a Kolmogorov-Smirnov test and a chi squared test.
My first question is which of these is the correct method for comparing the distributions below?
The distributions are discrete distributions with 24 bins.
My second question is that, it pretty obvious looking at the distributions that they will be statistically significantly different, but is there a method to quantify how different they are? I'm not sure, but a percentage or distance perhaps?
I appreciate any help and comments
Kind Regards

채택된 답변

Thorsten
Thorsten 2013년 2월 14일
Use the Two-sample Kolmogorov-Smirnov test from the Statistics Toolbox.
  댓글 수: 8
John
John 2013년 2월 16일
편집: John 2013년 2월 16일
In the example in the documentation, doc kstest2, p is less than k and the hypothesis is not rejected. You say "could not be rejected if p >= k"
In your previous post you said "A measure of how different they are will be the p-value", but in my case P is very small??
José-Luis
José-Luis 2013년 2월 16일
편집: José-Luis 2013년 2월 16일
The smaller p , the larger the difference between distributions. It's consistent with what I said before, methinks. It is a comparative measure, and you need to know what you are comparing against (in this case k). How to define k is a different story, for that you need to read the paper of those who came up with the statistic.
Also, you should be careful how you phrase the results from an hypothesis test. In this case, I should have said: "if _p>=k then the hypothesis that both samples come from the same distribution cannot be rejected".

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Hypothesis Tests에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by