Попробовать и Чтобы посмотреть, как работает предопределенная функция scipy.stats.kstest(), я сделал следующее:
Код: Выделить всё
import scipy.stats as stats
a=[1,2,3,4,5]
b=[2,3,3,4,6]
stat,p=stats.kstest(a,b,alternative='two-sided')
Код: Выделить всё
RuntimeWarning: ks_2samp: Exact calculation unsuccessful. Switching to method=asymp.
return ks_2samp(xvals, yvals, alternative=alternative, method=method)
Подробнее здесь: https://stackoverflow.com/questions/792 ... ll-samples