Support for complex data in stats.pearsonr

"Christopher Cowden" <[email protected]>
Newsgroups gmane.comp.python.scientific.devel
Message-ID <[email protected]>
Hi,

A recent issue [1] brought up the idea of adding support for complex data in stats.pearsonr.  It seems like this would be a useful feature, especially for folks working in signal processing.  It wouldn't be too difficult to implement, see [2].  The current estimation of p-values, however, seems to underestimate the significance.  That is, the error rate tends to be lower than the p-value.  It would be possible to introduce a permutation test to estimate the p-value of the correlation between complex numbers.  

Is this something worth pursuing?  What do you think of introducing an alternative p-value estimation method?

Cheers,
Chris

[1] https://github.com/scipy/scipy/issues/17518
[2] https://en.wikipedia.org/wiki/Complex_random_variable
_______________________________________________
SciPy-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/scipy-dev.python.org/
Member address: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.