Reputation: 257
I am using pearsonr to get statistical significance on some data. 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. 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)
Upvotes: 0
Views: 1101
Reputation: 2239
This: e-16 is the representation of exponential. In this case your number is to the MINUS 16, therefore your number is between 0-1.
4.500312000521201e-16 = 0.0000000000000004500312000521201
Upvotes: 1