How to calculate pearson correlation coefficient for more than one sample?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
soni
am 20 Mär. 2014
Kommentiert: Star Strider
am 25 Mär. 2014
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159105/image.png)
Hi,
I want to calculate Pearson correlation coefficient of "1000_at" with other samples in the given example, How I should do it? I searched relevant questions but getting results for data sets in which only two samples are present. I am new to statistics and programming, please help me to calculate or redirect me to relevant posts, Thank you.
0 Kommentare
Akzeptierte Antwort
Star Strider
am 20 Mär. 2014
If M is your matrix, the column-wise correlations are in vector Rc:
Rm = corrcoef(M);
Rc = Rm(1,:)
The first entry of Rc is 1 because it is perfectly correlated with itself.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!