mqr.inference.nonparametric.median.
test_1sample#
- mqr.inference.nonparametric.median.test_1sample(x, H0_median=0.0, alternative='two-sided', method='sign')#
Hypothesis test for the median of a sample.
- Null-hypothesis
median(x) == H0_median
- Parameters:
- xarray_like
Test the median of this sample.
- H0_medianfloat, optional
Null-hypothesis median.
- alternative{‘two-sided’, ‘less’, ‘greater’}, optional
Sense of alternative hypothesis.
- method{‘sign’, ‘wilcoxon’}, optional
- Returns: