Right correlation formula to use

조회 수: 3 (최근 30일)
Carlotta Fabris
Carlotta Fabris 2019년 3월 16일
댓글: Carlotta Fabris 2019년 3월 25일
Hi!
I have a 12x1 vector, and a value. I would like to find the correlation of each of the vector values with my variable. How can I do it?
I tried with corr, corrcoef, corr2 and I only got NaN, why is that?
To clarify my vector is
x = [0.0000827
0.000229
0.000358
0.000486
0.000561
0.000564
0.00483
133
167
178
213
386
];
and my value is y = 2.261133333.
Any suggestions?
Thank you,
Carlotta.
  댓글 수: 10
Image Analyst
Image Analyst 2019년 3월 17일
It is not clear. I'm not sure what DV is. Are the DV values the values in x? But x has only 12 continuous values, not 250. And only the fractional part seemed to be quantized into levels. And the value of x are not between 1 and 4. Please attach your data.
And I agree with the others in that it does not make sense to correlate a single value against a set of many other values - you can only correlate one set with another. Make another shot at trying to clearly explain things.
Carlotta Fabris
Carlotta Fabris 2019년 3월 25일
I am attaching you an Excel file with the DVs. What I talked about before was the mean I did of these DVs considering the ones I was interested in.
I have the peak values and these DVs, what I would like to understand is: is there a correlation between the peaks and the DVs? How can I calculate this correlation? If this is not possible, then what could I do?
Thank you.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by