如何使用 Mathematica 中的 Shapiro-Wilk 检验来检验二元正态性?
我已经计算了两个列表之间的皮尔逊相关系数,现在正在尝试验证这两个数据集是否呈正态分布,以确定相关性的有效性。
从我在文档中读到的内容来看,我应该能够将多元数据与 ShapiroWilkTest 函数一起使用,但到目前为止我无法获得输出。我没有收到错误,但该过程似乎无限期地挂起。然而,我几乎可以立即通过对因变量或自变量进行单变量夏皮罗-威尔克检验来获得输出。
这是我尝试过的:
data1 = {x1,x2,x3,x4,x5,x6,x7}
data2 = {y1,y2,y3,y4,y5,y6,y7}
ShapiroWilkTest[{data1,data2}]
I've computed the Pearson correlation coefficient between two lists and am now trying to verify whether these two data sets are normally distributed in order to ascertain the validity of the the correlation.
From What I've read in the documentation, I should be able to use multivariate data with The ShapiroWilkTest function, but so far I have been unable to obtain an output. I do not receive an error, but the process hangs seemingly indefinitely. I am, however, able to obtain an output with univariate Shapiro-Wilk tests of either my dependent or independent variable almost instantly.
Here's what I've tried:
data1 = {x1,x2,x3,x4,x5,x6,x7}
data2 = {y1,y2,y3,y4,y5,y6,y7}
ShapiroWilkTest[{data1,data2}]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否偶然尝试过:
我没有该功能,所以我不知道结果。
Have you by chance tried:
I don't have that function, so I have no idea of the result.