Let
be the variance of sample
and
is the hypothetical variance, this function tests the hypotheses:
vs
vs
vs
To compare the variance, we firstly compute the Chi-square value by:
where
is the sample variance. For a given significance level,
, we will reject the null hypothesis
when:
, for two tailed test
, for upper tailed test
, for lower tailed test
And the confidence interval for the sample variance can be generated by:
| Null Hypothesis | Confidence Interval |
|---|---|
|
|
|
|
|
|