Filter löschen
Filter löschen

What is the formula implemented in "corr" function?

1 Ansicht (letzte 30 Tage)
A R Sachin
A R Sachin am 9 Aug. 2016
Beantwortet: Jonathan Kwang am 12 Aug. 2016
I'm measuring rank correlation between two real vectors of same dimensions, without Nan entries, with Pearson method. I want to confirm whether internal formulas for "corr" and "corr2" are same in this case.
  1 Kommentar
Adam
Adam am 9 Aug. 2016
Can't you just open the code? It is available to open, though I haven't checked if part of it gets delegated off to a mex file.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Jonathan Kwang
Jonathan Kwang am 12 Aug. 2016
I understand you would like to know if "corr" and "corr2" use the same internal formulas.
They both implement the Pearson correlation. However the "corr2" function implements it to 2D arrays so the internal code and functionality is different.
The Pearson correlation definition used can be found in: K. Pearson, "Mathematical contributions to the theory of evolution. III. Regression, heredity and panmixia" Philos. Trans. Royal Soc. London Ser. A , 187 (1896) pp. 253–318

Kategorien

Mehr zu Biomechanics finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by