complex corelation and p-value

Versione 1.0.0 (2,06 KB) da KSSV
To find the complex correlation and its p-value between two complex vectors.
13 download
Aggiornato 24 gen 2025

Visualizza la licenza

The complex correlation coefficient is a measure of the relationship between two complex-valued datasets. It generalizes the Pearson correlation coefficient to handle the real and imaginary components of complex signals.
Let w1, w2 be two complex vectors.
w1 = u1+i*v1
w2 = u2+i*v2
Where:
  • u1,v1: Real and imaginary parts of the vector w1.
  • u2,v2: Real and imaginary parts of the vector w2.
The complex corelation between w1, w2 is igven by:
Formula:
The complex correlation ρ is given by:
Where:
  • ⟨⋅⟩: Mean or expected value.
Interpretation of complex corelation ρ:
1. Magnitude Analysis: The magnitude of ρ, given by |ρ|, indicates the strength of the correlation between the two vectors:
If : The two signals are perfectly correlated (linear relationship exists).
If : The two signals are uncorrelated.
Intermediate values ()): Indicates partial correlation, where higher values suggest stronger correlation.
2. Phase Analysis: The phase of ρ, given by:
represents the phase shift between the two signals.
If : The signals are in phase (no delay).
If : Signal 2 leads Signal 1.
If : Signal 1 leads Signal 2.
Statistical Significance (p-value)
The statistical significance is calculated using Monte Carlo simulations.
If p-value < 0.05, the complex correlation ρ is statistically significant.
If p-value >= 0.05, the observed correlation might have occurred by chance.
Reference: Kundu, P. K. 1975. Ekman veering observed near the ocean bottom. J. Phys. Oceanogr. 6, 238-242.

Cita come

KSSV (2025). complex corelation and p-value (https://it.mathworks.com/matlabcentral/fileexchange/179589-complex-corelation-and-p-value), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2024b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0