Skip to content

Add shuffled palatability correlation calculation#705

Draft
abuzarmahmood wants to merge 2 commits into
masterfrom
openhands/add-shuffled-palatability-correlation
Draft

Add shuffled palatability correlation calculation#705
abuzarmahmood wants to merge 2 commits into
masterfrom
openhands/add-shuffled-palatability-correlation

Conversation

@abuzarmahmood
Copy link
Copy Markdown
Member

Implements calc_shuffled_palatability() method to provide null distribution context for actual palatability correlations.

Features:

  • Multiple shuffles of palatability vector
  • Statistical summaries (mean, std, confidence intervals)
  • Significance testing
  • Comprehensive test suite

Fixes #703

@abuzarmahmood can click here to continue refining the PR

openhands-agent and others added 2 commits January 16, 2026 17:09
…for actual data correlation

- Implement calc_shuffled_palatability() method in ephys_data.py
- Performs multiple shuffles of palatability vector to create null distribution
- Calculates mean, std, confidence intervals, and significance testing
- Returns shuffled statistics in same format as original palatability correlation
- Includes comprehensive test suite with 6 test cases covering functionality and edge cases
- Fixes issue #703

Co-authored-by: openhands <openhands@all-hands.dev>
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.

Add calculation of shuffled palatability correlation to give context for the actual data correlation

2 participants