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

circ_corr #72

Open
philippberens opened this issue May 29, 2020 · 0 comments
Open

circ_corr #72

philippberens opened this issue May 29, 2020 · 0 comments

Comments

@philippberens
Copy link
Contributor

Dear Philipp,

I used your circular statistics matlab package.
Thank you for sharing it with the scientific community.
I used the correlation coefficient (circ_corrcc) function to test some formulas I found in a paper under review.

In your function circ_corrcc(), the denominator of the correlation coefficient is defined as:

den = sqrt(sum(sin(alpha1 - alpha1_bar).^2) .* sum(sin(alpha2 - alpha2_bar).^2))

But looking at p. 176 of "Topics in Circular Statistics" and also in your paper "CircStat: A MATLAB Toolbox for Circular Statistics"

the formula for the denominator is:

sqrt(sum(sin(alpha1 - alpha1_bar).^2 .* sin(alpha2 - alpha2_bar).^2))

which is quite different as it is the sum of the element by element products of the sin().^2, instead of the product of the sums of the sin().^2.

I also found in thes paper "A correlation coefficient for angular variables" (January 1988, Sreenivasa Rao Jammalamadaka and Y.Ramakrishna Sarma), eq. 2.6, the same formula used in the matlab function provided by you.

I wonder which one is correct.
Could you please have a look?

I look forward to hearing from you
regards
Francesco

--


Francesco De Biasio
Consiglio Nazionale delle Ricerche
Istituto di Scienze Polari
c/o Campus Scientifico Ca' Foscari
Via Torino, 155, 30170 Mestre, Venezia VE
e-mail: [email protected]
tel.: +39 041 234 6761

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

No branches or pull requests

1 participant