mqr.inference.variance.

power_1sample#

mqr.inference.variance.power_1sample(effect, nobs, alpha=0.05, alternative='two-sided', method='chi2')#

Calculate power for test of variance of a sample.

Null-hypothesis

effect = var / var_0 == 1

Parameters:
effectfloat

Effect size.

nobsfloat

Number of observations in sample.

alphafloat, optional

Significance level.

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

Sense of alternative hypothesis.

method{‘chi2’}, optional

Only the ‘chi2’ is available. Calculates the power directly from the Chi-squared distribution.

Returns:
mqr.inference.power.TestPower