sillymoon 发表于 2012-4-6 17:48 
信息我写在图片里了,传了两次才看到图,麻烦刷新一下。
呵呵!超乎想象
没有观测值哪有分布?没有分布如何测正态性
观测值的产生,应该有公式可寻吧,如果没有就卡住了.
撇开这个不谈.先谈方法
首先,看底下数据irisdata:X (50 x 4 matrix)
x1 x2 x3 x4
------------------------------
5.1 3.5 1.4 0.2
4.9 3.0 1.4 0.2
4.7 3.2 1.3 0.2
. . . .
. . . .
4.6 3.2 1.4 0.2
5.3 3.7 1.5 0.2
5.0 3.3 1.4 0.2
1.Shapiro-Wilk Normality Test
mshapiro.test 的确是测 Multivariate Normality Test
mshapiro.test(X)
但是准度应该是Generalized Shapiro-Francia test 比较好
mvsf(X) #package mvsf
2.Kolmogorov-Smirnov Tests
ks.test(x1,x2) or ks.test(x1,x3)
是
检验two-sample,x1 and x2两者是否有相同distribution,
不管是normal或不是normal
lillie.test(x1)
是
检验one-sample,x1 normality
另matlab 有个function Roystest(X,alpha)
Royston's Multivariate Normality Test,你也可以参考