Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculation of Correlation (Scaled Pearson's R)

TO WHOM IT MAY CONCERN,

 

 

I am trying to find the Pearson r correlation between two signals and also shift on of the signal.

Can someone please show me where I am screwing up? I have an expected velocity and a measure velocity.

When I get smaller distances the correlation is all mess up. Not sure when my error is?

 

Can you please tell me if I am doing the correlation calculation right? Also explain why graph is wrong. The main problem is the correlation, you can answer graph question if you are feeling generous

 

 

Your help is greatly appreciated!!!!

0 Kudos
Message 1 of 3
(6,571 Views)

Can someone tell me how to determine if there is a correlation between two signals? I need to find if they are correlated with a positive correlation close to 1 or opposite one close to -1.

 

In addition I need to find the correlation scaled Pearsons’s R.

 

How do I normalize the cross-correlation coefficient when the 2 signals have different lengths?

Would I perform a cross correlation of two finite length arrays?

 

 

 

FYI: one signal is calculated using labview. The other is measured from an motor encoder using National Instruments (“NI”) PCI-6250 DAQ.

0 Kudos
Message 2 of 3
(6,547 Views)

Hi sticyfinger,

 

I would take a look statisitics Solver.vi in the ni example finder. This shows you how to take the covariance of your signals and then all you haveto do is divide by the std dev of the signals.

 

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....
0 Kudos
Message 3 of 3
(6,539 Views)