feat(correlation): multi-factor lagged correlation with partial correlation and directional analysis - #188
Merged
Him-an-shi merged 1 commit intoJul 24, 2026
Conversation
… and directional analysis - Add computeLaggedCorrelation: tests -7 to +7 day lags with optimal identification - Add computePartialCorrelation: controls for confounders via residualization - Add permutationTest: 1000-shuffle significance test (p < 0.05) - Add computeDirectionalAnalysis: Granger-causality-inspired direction detection - Add computeAdvancedCorrelation: unified entry point combining all methods - Add Pearson correlation with pairwise deletion for missing data - Add seeded PRNG (Mulberry32) for reproducible permutation tests - All functions handle sparse/irregular data gracefully Closes Him-an-shi#183
|
@Adit-Jain-srm is attempting to deploy a commit to the himanshipathak-240263-3015's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@Him-an-shi Heads up: @Adit-Jain-srm has opened 9 items in the last 24 hours. Flagging for review to check for potential bulk/automated submissions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add advanced correlation analysis to the mood-cycle module: lagged cross-correlation, partial correlation controlling for confounders, permutation-based significance testing, and Granger-causality-inspired directional analysis.
Changes (+356 lines)
Closes #183