COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Pearson Correlation of two distance matrices

• Follow

```Hello,

I want to calculate the Pearson correlation coefficient of two distance matrices. Both of them are 47x47. I tried RHO = partialcorr(TrigPairA,TrigPairB); which gives me the partial correlation coefficients between pairs of variables in TrigPairA controlling for the variables in TrigPairB. I would like to calculate the overall Pearson correlation of these two matrices.

Can anyone give any idea of how can i do it!!

Makrina

PS. I apologize for my english!
```
 0

```"Makrina Kosti" wrote in message <ign6m1\$lin\$1@fred.mathworks.com>...
> Hello,
>
> I want to calculate the Pearson correlation coefficient of two distance matrices. Both of them are 47x47. I tried RHO = partialcorr(TrigPairA,TrigPairB); which gives me the partial correlation coefficients between pairs of variables in TrigPairA controlling for the variables in TrigPairB. I would like to calculate the overall Pearson correlation of these two matrices.
>
> Can anyone give any idea of how can i do it!!
>
>
> Makrina
>
> PS. I apologize for my english!

One correction to my post.
I ment i used corr(TrigPairA,TrigPairB) and not partialcorr.

Thanks
```
 0

```On 1/13/2011 10:45 AM, Makrina Kosti wrote:
> I want to calculate the Pearson correlation coefficient of two distance
> matrices. Both of them are 47x47.

I think that depends on what you mean.  You may simply want
corr(TrigPairA(:),TrigPairB(:), which will return a single correlation
coefficient.
```
 0

```Peter Perkins <Peter.Perkins@MathRemoveThisWorks.com> wrote in message <ignbhg\$17l\$2@fred.mathworks.com>...
> On 1/13/2011 10:45 AM, Makrina Kosti wrote:
> > I want to calculate the Pearson correlation coefficient of two distance
> > matrices. Both of them are 47x47.
>
> I think that depends on what you mean.  You may simply want
> corr(TrigPairA(:),TrigPairB(:), which will return a single correlation
> coefficient.

Yep, that was what i was looking for!! Thank you!

Makrina
```
 0

3 Replies
505 Views

Similiar Articles:

7/16/2012 5:58:32 AM