neurom.stats.compare_two

neurom.stats.compare_two(data1, data2, test=<StatTests.ks: 1>)[source]
Compares two distributions of data
and assess two scores: a distance between them and a probability they are drawn from the same distribution.
Parameters:
  • data1 – numpy array of dataset 1
  • data2 – numpy array of dataset 2
  • test – Stat_tests Defines the statistical test to be used, based on the scipy available modules. Accepted tests: ks_2samp, wilcoxon, ttest
Returns:

float High numbers define high dissimilarity between the two datasets p-value: float Small numbers define high probability the data come from same dataset.

Return type:

dist