mqr.inference.variance.

test_2sample#

mqr.inference.variance.test_2sample(x, y, alternative='two-sided', method='f')#

Hypothesis test for the ratio of variances of two samples.

Null hypothesis

var(x) / var(y) == 1

Parameters:
x, yarray_like

Test ratio of variances of these two samples.

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

Sense of alternative hypothesis.

method{‘f’, ‘bartlett’}, optional
‘f’
F-test from the F distribution of the ratio of equal variances.
‘bartlett’
Bartlett’s test. Calls scipy..bartlett.
Returns:
mqr.inference.hyptest.HypothesisTest