wavelet coherence significance test

조회 수: 8 (최근 30일)
yx z
yx z 2019년 6월 2일
답변: Prasanna 2024년 11월 4일
I am using wcoherence to get the wavelet coherence of two signals.
how can i evaluate the significance (eg. 95%) ??
  댓글 수: 1
Saeed Soleimani
Saeed Soleimani 2023년 6월 18일
You should use R programming language :-(

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

답변 (1개)

Prasanna
Prasanna 2024년 11월 4일
Hi yx,
To evaluate the significance of wavelet coherence when using the ‘wcoherence’ function in MATLAB, refer the following:
  • First, compute the wavelet coherence between your two signals using the ‘wcoherence’ function.
  • Create surrogate data to estimate the significance level. Surrogate data can be generated by randomizing one of the signals while preserving its power spectrum.
  • Calculate the wavelet coherence for each surrogate dataset.
  • Use the distribution of coherence values from the surrogate data to determine the significance threshold (e.g., the 95th percentile).
A sample MATLAB code to evaluate is as below assuming two example random signals:
% Example signals
x = randn(1, 1000);
y = randn(1, 1000);
% Compute wavelet coherence
[wcoh, ~, ~, ~] = wcoherence(x, y);
% Number of surrogates
numSurrogates = 1000;
surrogateCoherence = zeros(size(wcoh, 1), size(wcoh, 2), numSurrogates);
% Generate surrogate data and compute coherence
for i = 1:numSurrogates
ySurrogate = y(randperm(length(y))); % Randomize y
[wcohSurrogate, ~, ~, ~] = wcoherence(x, ySurrogate);
surrogateCoherence(:, :, i) = wcohSurrogate;
end
% Determine the 95th percentile threshold
significanceThreshold = prctile(surrogateCoherence, 95, 3);
% Plot the wavelet coherence and significance threshold
figure;
subplot(2, 1, 1);
imagesc(wcoh);
title('Wavelet Coherence');
colorbar;
subplot(2, 1, 2);
imagesc(significanceThreshold);
title('95% Significance Threshold');
colorbar;
The output of the above sample code is as follows:
The surrogate data is generated by randomizing one of the signals. This helps in creating a distribution of coherence values under the null hypothesis. For more information regarding the functions used, refer the following documentations:

카테고리

Help CenterFile Exchange에서 Wavelet Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by