-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
analysis.stats.pearsonr and masked arrays #1534
Comments
@niallrobinson added the pearsonr functionality to Iris. I'd be interested in his thoughts. |
Its not something that I remember being aware of. My initial thoughts are that your statement
That said, the expected behaviour is probably what you describe, and what they landed on on the scipy discussion i.e. your effective datasets are arrays A and B both masked with maskA OR maskB. I'll make a PR |
Now that #1748 is merged I guess we can close this? |
Agreed. |
Suppose you have two matching sets of data, but with missing values in different places:
The correlation should be 1, but you get different values depending on which function you use:
The npma function gives 1.0, but the iris and scipy functions both give 0.963... The scipy function already has a lot of discussion over here: scipy/scipy#3645.
The text was updated successfully, but these errors were encountered: