mqr.inference.nonparametric.median.

test_nsample#

mqr.inference.nonparametric.median.test_nsample(*x, alternative='two-sided', method='kruskal-wallis')#

Hypothesis test for equality of medians amongst samples.

Null-hypothesis

median(x[i]) == median(x[j]), for all i, j

Parameters:
xarray_like

Test the medians of these samples.

alternative{‘two-sided’, ‘less’, ‘greater’}, optional

Sense of alternative hypothesis.

method{‘kruskal-wallis’, ‘mann-whitney’}, optional
‘kruskal-wallis’
Kruskal-Wallis test. A one-way ANOVA based on ranks. Calls scipy..kruskal.
‘mann-whitney’
Mann-Whitney U test for the differences between two samples. Calls scipy..mannwhitneyu.
Returns:
mqr.inference.hyptest.HypothesisTest