neurom.statsΒΆ

Statistical analysis helper functions

Nothing fancy. Just commonly used functions using scipy functionality.

Functions

compare_two Compares two distributions of data and assess two scores: a distance between them and a probability they are drawn from the same distribution.
fit Calculate the parameters of a fit of a distribution to a data set
fit_results_to_dict Create a JSON-comparible dict from a FitResults object
get_test Returns the correct stat test
optimal_distribution Calculate the parameters of a fit of different distributions to a data set and returns the distribution of the minimal ks-distance.
scalar_stats Calculate the stats from the given numpy functions
total_score Calculates the p-norm of the distances that have been calculated from the statistical test that has been applied on all the paired datasets.

Classes

FitResults Create new instance of FitResults(params, errs, type)
StatTests Enum representing valid statistical tests of scipy