简体   繁体   English

shapiro 和 normaltest 在 python 中可以互换使用吗?

[英]Can shapiro and normaltest be used interchangeably in python?

I used to use scipy.stats.shapiro to test normality of data but seems like我曾经使用scipy.stats.shapiro来测试数据的正态性,但似乎

 scipy.stats.normaltest 

does the same.做同样的事情。 Can they be used interchangeably without much difference?它们可以互换使用而没有太大区别吗?

In this answer Shapiro seems to be generally better than D'Agostino-Pearson test used in normaltest .这个答案中, Shapiro 似乎通常比normaltest使用的 D'Agostino-Pearson 测试更好。

The ultimate reason why the Shapiro Wilk is popular has, I think, less to do with Pubmed or NIST but rather with its excellent power in a wide variety of situations of interest (which would in turn lead to wider implementation and hence, popularity);我认为,Shapiro Wilk 受欢迎的最终原因与 Pubmed 或 NIST 无关,而是与它在各种感兴趣的情况下的出色功能有关(这反过来会导致更广泛的实施并因此而受欢迎); it generally comes out toward the top against a wide variety of non-normal distributions in power comparisons with other possible choices.在与其他可能选择的功效比较中,它通常在各种非正态分布中排名靠前。 I wouldn't claim it's the best possible omnibus test of normality, but it's a very solid choice.我不会声称这是最好的正态性综合测试,但它是一个非常可靠的选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM