Filter löschen
Filter löschen

How to find correlation length

45 Ansichten (letzte 30 Tage)
doruk isik
doruk isik am 23 Sep. 2022
Beantwortet: Piyush Dubey am 6 Sep. 2023
Hello all,
I have a signal measured at different spatial positions. I want to find the distance that they stay correlated. I initially thought I could take the first station as my reference, then calculate Pearson coefficient between the reference and others, fit a curve and find zero crossing and that would be the distance.
I then tried to change the reference station, when I do that the zero crossing changes, so I am not sure what would be a reasonable way to do it.
I am hoping someone could give me an idea or point me in the right direction.
An example is given below where 1D,2D,....,7D refers to different stations
R1_17=corrcoef(data_1D(:,7),data_7D(:,7));
R1_27=corrcoef(data_2D(:,7),data_7D(:,7));
R1_37=corrcoef(data_3D(:,7),data_7D(:,7));
R1_47=corrcoef(data_4D(:,7),data_7D(:,7));
R1_57=corrcoef(data_5D(:,7),data_7D(:,7));
R1_67=corrcoef(data_6D(:,7),data_7D(:,7));
R1_77=corrcoef(data_7D(:,7),data_7D(:,7));
R1_final=[R1_77(1,2),R1_67(1,2),R1_57(1,2),R1_47(1,2),R1_37(1,2),R1_27(1,2),R1_17(1,2)];
pos=-[0.23,0.22,0.21,0.1875,0.175,0.165,0.15];
curvefit100 = fit(pos',R1_final','poly3','normalize','on');

Antworten (1)

Piyush Dubey
Piyush Dubey am 6 Sep. 2023
I understand you have a signal measured at a different spatial position and you want them to be correlated but you are unable to find that distance successfully. Changing reference station causes zero crossing changes and defeats the objective.
You have already tried using cross correlation and Pearson coefficients to find the distance. You may establish an axis perpendicular to these signals to get the shortest distance to these signals from the axis plane. Furthermore, you can refer to the following steps to determine the distance at which signals will be measured such that they stay correlated:
  • Spatial autocorrelation: Calculate the spatial autocorrelation function (ACF) for each signal. The ACF measures the correlation between a signal and its shifted version at different lags. By analyzing the ACF for each signal, you can identify the lag at which the autocorrelation drops below a certain threshold. This lag can estimate the distance at which the signals become uncorrelated.
  • Mutual information: Mutual information is a measure of the mutual dependence between two signals. It captures both linear and nonlinear relationships. By calculating the mutual information between the reference signal and each of the other signals, you can identify the point at which the mutual information drops below a certain threshold. This can provide an estimate of the distance at which the signals lose their correlation.
  • Spatial correlation analysis: Instead of focusing on individual zero crossings or specific lag values, you can perform a spatial correlation analysis across all pairs of stations. This involves calculating the correlation coefficient or another similarity measure for each pair of stations and then examining the spatial pattern of correlations. By analyzing the spatial distribution of correlations, you may be able to identify a distance or spatial range at which the correlations consistently drop below a certain threshold.
Hope this helps.

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by