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

Circular correlation for uniform marginals #64

Merged
merged 1 commit into from Sep 3, 2019
Merged

Circular correlation for uniform marginals #64

merged 1 commit into from Sep 3, 2019

Conversation

@dominikstrb
Copy link
Contributor

@dominikstrb dominikstrb commented Sep 3, 2019

According to Jammalamadaka & Sengupta (2001, pg. 177) the circular means are not well defined if the marginal distribution of one of the angles is uniform. This leads to wrong estimates of circular correlations in these cases. There is an alternative formulation of the circular correlation coefficient that deals with this problem (see equation 8.2.4 in Jammalamadaka & Sengupta, 2001). This implementation can also lead to slightly different values for the coefficient in other cases, though.

References:

  • Jammalamadaka, S. R., & Sengupta, A. (2001). Topics in circular statistics (Vol. 5). world scientific.

screenshot of the relevant page

@codecov
Copy link

@codecov codecov bot commented Sep 3, 2019

Codecov Report

Merging #64 into develop will decrease coverage by 0.17%.
The diff coverage is 28.57%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #64      +/-   ##
===========================================
- Coverage     99.3%   99.13%   -0.18%     
===========================================
  Files           17       17              
  Lines         2889     2894       +5     
  Branches       483      484       +1     
===========================================
  Hits          2869     2869              
- Misses           7       11       +4     
- Partials        13       14       +1
Impacted Files Coverage Δ
pingouin/circular.py 94.5% <28.57%> (-5.5%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b1ac975...0c4ecd6. Read the comment docs.

Copy link
Owner

@raphaelvallat raphaelvallat left a comment

Thanks for the PR!

@raphaelvallat raphaelvallat merged commit 3479e79 into raphaelvallat:develop Sep 3, 2019
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants