mqr.inference.nonparametric.quantile.

test_1sample#

mqr.inference.nonparametric.quantile.test_1sample(x, H0_quant=None, q=0.5, alternative='two-sided')#

Hypothesis test for the quantile of a sample.

Null-hypothesis

quantile(x, q) == H0_quant.

Calls scipy..quantile_test.

Parameters:
xarray_like

Test quantile of this sample.

H0_quantfloat, optional

Null-hypothesis value associated with q. Default is the q th quantile of x.

qfloat, optional

Test the value associated with this quantile.

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

Sense of alternative hypothesis.

Returns:
mqr.inference.hyptest.HypothesisTest