matlabf检验f值,如何用matlab进行F检验

matlabf检验f值,如何⽤matlab进⾏F检验
匿名⽤户
1级
2016-05-01 回答
The following explaination may help U:
Two-sample F-test for equal variances
Syntax
H = vartest2(X,Y)
H = vartest2(X,Y,alpha)
H = vartest2(X,Y,alpha,tail)
[H,P] = vartest2(...)
[H,P,CI] = vartest2(...)
[H,P,CI,STATS] = vartest2(...)
工商银行山东省分行[...] = vartest2(X,Y,alpha,tail,dim)
Description
H = vartest2(X,Y) performs an F test of the hypothesis that two independent samples, in the vectors X and Y, come from normal distributions with the same variance, against the alternative that they come from normal distributions with different variances. The result is H = 0 if the null hypothesis (variances are equal) cannot be rejected at the 5% significance level, or H = 1 if the null hypothesis can be rejected at the 5% level. X and Y can have different lengths. X and Y can also be matrices or n-dimensional arrays.
For matrices, vartest2 performs separate tests along each column, and returns a vector of results. X and Y must have the same number of columns. For n-dimensional arrays, vartest2 works along the first nonsingleton dimension. X and Y must have the same size along all the remaining dimensions.
H = vartest2(X,Y,alpha) performs the test at the significance level (100*alpha)%. alpha must be a sca
lar.
模糊聚类分析H = vartest2(X,Y,alpha,tail) performs the test against the alternative hypothesis specified by tail, where tail is one of the following single strings:
'both' — Variance is not Y (two-tailed test). This is the default.
九龙入海'right' — Variance is greater than Y (right-tailed test).
'left' — Variance is less than Y (left-tailed test).
钴60
[H,P] = vartest2(...) returns the p-value, i.e., the probability of observing the given result, or one more extreme, by chance if the null hypothesis is true. Small values of P cast doubt on the validity of the null hypothesis.
[H,P,CI] = vartest2(...) returns a 100*(1-alpha)% confidence interval for the true variance ratio var(X)/var(Y).
[H,P,CI,STATS] = vartest2(...) returns a structure with the following fields:
气囊止血带'fstat' — Value of the test statistic
'df1' — Numerator degrees of freedom of the test
'df2' — Denominator degrees of freedom of the test
[...] = vartest2(X,Y,alpha,tail,dim) works along dimension dim of X. To pass in the default values for alpha or tail use [].
Example
Is the variance significantly different for two model years, and what is a confidence interval for the ratio of these variances? load carsmall
[H,P,CI] = vartest2(MPG(Model_Year==82),MPG(Model_Year==76))
>索尼爱立信k850i

本文发布于:2024-09-23 02:30:39,感谢您对本站的认可!

本文链接:https://www.17tex.com/xueshu/433693.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:山东省   气囊   分行
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议