Two sample Cramer-von Mises hypothesis test
by Juan Cardelino
15 Dec 2006
(Updated 16 Nov 2011)
A non parametric test to determine if to independent samples were drawn from the same distribution.
|
Watch this File
|
| File Information |
| Description |
This was inspired by kstest2 from the matlab statistics toolbox.
Works from medium to large sample sizes, look at the references in the code. |
| Required Products |
Statistics Toolbox
|
| MATLAB release |
MATLAB 7 (R14)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 09 Jan 2007 |
Description was incomplete. |
| 26 May 2009 |
The boolean output of the test was reversed. Although the probability was correctly computed, the test rejected the null hypothesis when it had to accept it and vice versa. |
| 16 Nov 2011 |
Corrected a bug in the rejection rule, as pointed out in the comments. Now it works as intented. Added an example along with an extensive test. |
| 16 Nov 2011 |
Corrected a bug in the rejection rule, as pointed out in the comments. Now it works as intented. Added an example along with an extensive test and comparison with the Kolgomorov-Smirnov test. |
|
Contact us at files@mathworks.com