LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you calculater correlation coefficients for data?

I would like to calculate the correlation coefficient for data which has a linear correlation. I can calculate the linear fit, but how do you calculate the correlation coefficient from this data. Any help would be greatly appreciated.
0 Kudos
Message 1 of 5
(3,749 Views)
Hi,
AutoCorrelation and CrossCorrelation VIs callculate correlation of the input signals. They are located under Signal Processing>>Time Domain palette.

Zvezdana S.
0 Kudos
Message 2 of 5
(3,749 Views)
See how this VI works for you...
0 Kudos
Message 3 of 5
(3,749 Views)
Hi Greg,
Your answer for Cross Corellation is helpful to me. I downloaded the vi and try to run the vi you attached with your online answer. Looks like I am missing "Greg's Mean G01.vi". Could you please e-mail me that vi so I can run whole program to see how CC works.

Thanks,

kishorham@yahoo.com
0 Kudos
Message 4 of 5
(3,749 Views)
If you're just looking for the correlation coefficient (r^2 or r) of a linear regression, you can use the method described HERE earlier.
0 Kudos
Message 5 of 5
(3,749 Views)