Chi-square variance test
returns a test decision for the null hypothesis that the data in vectorh
= vartest(x
,v
)x
comes from a normal distribution with variancev
, using thechi-square variance test. The alternative hypothesis is thatx
comes from a normal distribution with a different variance. The resulth
是1
if the test rejects the null hypothesis at the 5% significance level, and0
otherwise.
performs the chi-square variance test with additional options specified by one or more name-value pair arguments. For example, you can change the significance level or conduct a one-sided test.h
= vartest(x
,v
,Name,Value
)
Usesampsizepwr
to calculate:
The sample size that corresponds to specified power and parameter values;
The power achieved for a particular sample size, given the true parameter value;
The parameter value detectable with the specified sample size and power.