Skip to content

Clarifications-requests #14

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

Open
francescoveri opened this issue Jul 21, 2020 · 6 comments
Open

Clarifications-requests #14

francescoveri opened this issue Jul 21, 2020 · 6 comments

Comments

@francescoveri
Copy link

Hi Dave,
just to clarify and add:

  1. Intersubjective correlation in each pair for Q and P is a Spearman rho value? I have slightly different results when I am employing SPSS or R.
  2. is it possible to add the orthogonal distance of each pairs d=(∣x-y∣)/√2 between Intersubjective correlation Q and P?
  3. then we should calculate the arithmetic mean of such distances D=1/n ∑d for each stage of the deliberation process
  4. then normalize the distance as follows:
    a) IC=1-D;
    b) IC_min=(1-(√2/2))
    b) IC_norm=2*((IC-IC_min)/(1-IC_min))-1
    Please let me know whether you have any question in relation to the above
@davidmoten
Copy link
Contributor

Hi Francesco,

  1. Spearman's is used in the latest version as the default correlation coefficient. The code used in its calculation is https://github.com/DeliberativeAnalysis/DeliberateQ/blob/master/src/main/java/com/github/deliberateq/util/math/CorrelationCoefficient.java and unit tests are in https://github.com/DeliberativeAnalysis/DeliberateQ/blob/master/src/test/java/com/github/deliberateq/util/math/CorrelationCoefficientTest.java.

The unit test used is this:

@Test
    public void testSpearmansCorrelation() {
        Vector a = new Vector(56, 75, 45, 71, 62, 64, 58, 80, 76, 61);
        Vector b = new Vector(66, 70, 40, 60, 65, 56, 59, 77, 67, 63);
        assertEquals(1 - 324.0 / 990.0, CorrelationCoefficient.SPEARMANS.apply(a, b), 0.0000001);
    }

If you disagree with the expectation of this unit test then let me know and we'll investigate!

@francescoveri
Copy link
Author

francescoveri commented Jul 21, 2020 via email

@davidmoten
Copy link
Contributor

Re 2-4, we can add whatever calculation you like. Where do you want to see it used or displayed?

@davidmoten
Copy link
Contributor

Hey Franceso, got an answer for my last question?

@francescoveri
Copy link
Author

Hi Dave,
Sorry I am in holiday and I forgot to reply. if it is possible the orthogonal distance should appear when you scroll the mouse over each point and add a column into the tables with the correlations.
The arithmetic mean of such distances should be added in the box analyse (with the PCA) and work in the same way of PCA now (i.e., display the result under first stage, and third stage).
Both measures should be add in First stage, third stage of deliberation process.
Have a good weekend
Francesco

@davidmoten
Copy link
Contributor

davidmoten commented Aug 1, 2020 via email

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

2 participants