mqr.inference.variance.

test_1sample#

mqr.inference.variance.test_1sample(x, H0_var, alternative='two-sided', method='chi2')#

Hypothesis test for the varianve of a sample.

Null hypothesis

var(x) / H0_var == 1

Parameters:
xarray_like

Test variance of this sample.

H0_varfloat

Null-hypothesis variance.

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

Sense of alternative hypothesis.

method{‘chi2’}, optional

Only ‘chi2’ for an exact test based on the Chi-squared distribution.

Returns:
mqr.inference.hyptest.HypothesisTest