examples: Try the K-S test on random numbers generated by sddsprocess
sddssequence -pipe=out -define=i,type=long -sequence=begin=0,end=9999,delta=1 |
sddsprocess -pipe -define=column,gaussRN,grnd -define=column,uniformRN,rnd |
sddsdistest -pipe -test=ks -gaussian -column=gaussRN -column=uniformRN |
sddsprintout -pipe -column=ColumnName -column=distestSigLevel
The result is
ColumnName distestSigLevel
-------------------------------------
gaussRN 4.019061e-01
uniformRN 1.598565e-32
which shows that the K-S test accurately distinguishes between numbers drawn from the two
distributions. The probability that the numbers in column uniformRN are from a gaussian
distribution is very small, whereas the probability that the numbers in column gaussRN are from a
gaussian distribution is 40%.