Chi Squared Hypothesis 2 Tailed Test
3 次查看(过去 30 天)
显示 更早的评论
I have reviewed the previous questions and answers regard the Chi Squared test and can not find the answer to the following:
Test Statistic = (v1-v2)*((v_hat)/v)
C.I. = ((v1-v2), alpha/2) < Test Statistic < ((v1_v2), 1-(alpha/2))
Where, v1 = integer variable 1 v2 = integer variable 2
(v1 - v2 = degrees of freedom)
v_hat = variable 3 v = variable 4 alpha = Significance Level
回答(1 个)
Brendan Hamm
2015-7-27
Yes, the syntax you are using is testing both the upper and lower tails using the values you specified (0.01/2 and 1-0.01/2). So you are testing the null hypothesis that aposteriori*4 comes from a normal distribution with variance equal to 1, and supplying the alternative hypothesis that the data is from a normal distribution with a different variance. I should note there is no need to specify the 'Tail' property as 'both' is the default value.
Also your definition of the Chi-squared variance test is wrong. It is actually
(n-1)(sHat/sTest)^2,
where n is your sample size, sHat the sample estimate of the standard deviation and sTest is the hypothesized standard deviation.
2 个评论
Brendan Hamm
2015-7-27
Great, It was not clear from your original post that this is what you meant, so I figured I would clarify. I should point out in the case of a test for the variance, u = 1.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Hypothesis Tests 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!