[英]SciPy Pearsonr p-value is returning value greater than 1
I am using pearsonr to get statistical significance on some data. 我正在使用pearsonr来获取某些数据的统计意义。 Below is the code I am using and also the output.
以下是我正在使用的代码以及输出。 The second value is the pvalue and should be between 0 and 1, so I'm confused as to how I am getting otherwise.
第二个值是pvalue,应该在0到1之间,因此我对如何获得其他结果感到困惑。 tis is also the case on other values with very high correlations.
在具有非常高相关性的其他值上也是如此。
stats.pearsonr(dataset['Vertical Velocity'],dataset['Drop Height'])
(-0.9944267653880902, 4.500312000521201e-16)
This: e-16 is the representation of exponential. 这:e-16是指数的表示。 In this case your number is to the MINUS 16, therefore your number is between 0-1.
在这种情况下,您的号码为减号16,因此您的号码在0-1之间。
4.500312000521201e-16 = 0.0000000000000004500312000521201
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.