how to calculate significance value of lag correlation?

조회 수: 4 (최근 30일)
SONI SONI
SONI SONI 2015년 3월 30일
편집: Alex Backer 2020년 5월 7일
I have cross correlate the monthly rainfall and groundwater.
% code
[XCF, Lags, Bounds] = crosscorr(flipud((gw')), flipud((rainfall')),6,2);
end
The lag values of 6 months are given below
% code
end
-6 -0.19
-5 -0.49
-4 -0.68
-3 -0.68
-2 -0.47
-1 -0.11
0 0.31
1 0.67
2 0.79
3 0.72
4 0.49
5 0.16
6 -0.16
Now I want know that lag values are significant or not. how to calculate the p-value of each lag.

답변 (1개)

Alex Backer
Alex Backer 2020년 5월 7일
편집: Alex Backer 2020년 5월 7일
I wrote some code to estimate the p-value empirically:
Alex Backer (2020). xcorrpvalue (https://www.mathworks.com/matlabcentral/fileexchange/75403-xcorrpvalue), MATLAB Central File Exchange.
Hope it helps.

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by