Skip to content
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

Resolve CCA Incorrect Statistics #413 #419

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mattbrwnn
Copy link

Reference issue

Closes CCA Incorrect Statistics #413

Type of change

Bug fix

What does this implement/fix?

Fixed bug in statistic method CCA implementation where it was incorrectly calculating the correlation statistic for 1-D data. Now, when the input only has one dimension, it uses Pearson's correlation instead of SVD.

Additional information

This was an assignment for a course to get familiar with open source. I'm sure I missed a lot with the development process, but hopefully this helps !(?)

Copy link

netlify bot commented Oct 3, 2024

Deploy Preview for hyppo ready!

Name Link
🔨 Latest commit de4f37f
🔍 Latest deploy log https://app.netlify.com/sites/hyppo/deploys/66feb486d49d8d000855cd58
😎 Deploy Preview https://deploy-preview-419--hyppo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@sampan501
Copy link
Member

Thanks for the contribution. Do you have unit tests showing that this change is right? That would involve ensuring that the change is the same as pearsonr in SciPy when d = 1 and the stat an p-value is same as a reference implementation (I believe it is in MATLAB) for d > 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants