Kolmogorov-Smirnov test

27 sec read

KS test is like T test; but it tests not only the mean but also the distribution. The null hypothesis for this test is that the two data sets are drawn from the same continuous distribution. In matlab, you can use function kstest2 to perform two-sample KS test.

[H,P,ksstat] = kstest2(x1, x2);

While T test requires the sample to come from a normal distribution, KS test doesn’t require that. It’s a non-parametric test (or distribution free). The process is:
1. plot cumulative distribution of the two datasets on a single figure
2. find the max vertical distance between the two curves
3. find the p-value based on the max distance and Kolmogorov distribution.

(from http://www.physics.csbsju.edu/stats/KS-test.html)
KS on wiki | KS online test

nirs2img, create an image file from NIRS data

Update 2021/2/27: If you find griddata3 not working, try to change griddata3 to griddata. I was asked where to get nirs2img script. Here it...
Xu Cui
51 sec read

mergefile.m – a MatLab script to merge CSV files

My wife asked me to write a script to merge some csv files she has. Usually this can be accomplished by a simple command in...
Xu Cui
35 sec read

xjview 9.6 released

In this version, we modified the templates for 3-D render view and use a high-resolution template. It also includes a few scalp view. You...
Xu Cui
31 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *

Loading