如何用matlab进行F检验 如何用excel做f检验
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 scalar.
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).
[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))
更多阅读
Excel教程:如何在Excel中自动生成人民币大写
Excel教程:如何在Excel中自动生成人民币大写——简介在Excel中使用单元格设置--特殊--中文大写数字生成的中文大写,不符合中国人对人民币大写数额的书写习惯。比如132.57,使用该设置生成的是:壹佰叁拾贰.伍柒,如何才能生成符号中国人书写
如何用EXCEL 批量发送邮件批量发送工资条 excel批量发送邮件
如何用EXCEL 批量发送邮件批量发送工资条——简介每个月工资条如何发放给大家是一个头疼的事情,因为工资涉及到保密问题,用邮件吧,每个人的邮件内容都有些不一样的地方,人一多就特别容易出错;光这个发工资条就够让人忙活好长时间的了;现在
如何在excel表格中设置冻结某一行或几行窗口 excel表格中冻结窗口
如何在excel表格中设置冻结某一行或几行窗口——简介利用Excel工作表的冻结功能可以达到固定窗口的效果,虽然冻结窗口里有“冻结首行”和“冻结首列”的选项,但是怎样才能根据我们的需要,冻结某一行或几行几列窗口呢?下面小编教给大家具
个人简历表格怎么做 如何用excel做简历表格
个人简历表格怎么做——简介找工作之前毫无疑问我们需要给自己制作一份个人简历表格!一个简洁大方的个人简历表格也会对个人找工作带来一个很好的第一印象。今天小编就为大家介绍一个简单的制作个人简历表格的方法!个人简历表格怎么
如何用ps做印章效果 在ps中怎样做印章文字
如何用ps做印章效果——简介印章是很有中国特色的艺术,那么如何用photoshop来做一个个性的印章图呢?现在就为大家介绍一下如何用ps做印章效果——工具/原料photoshop CS6如何用ps做印章效果——方法/步骤如何用ps做印章效果 1、首先