Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Coudl You please Implement this for me?

1 回表示 (過去 30 日間)
Alvaro Silvino
Alvaro Silvino 2014 年 8 月 18 日
閉鎖済み: John D'Errico 2015 年 1 月 6 日
for I=1:500 % or any other large number you like
1. Calculate the autocorrelation function of randn(1,N) where N is the
length of the ICE time series
2. Sort the 2*N-1 absolute values and find the value at index
M = floor(0.95*(2*N-1))
3. Store the value in sigthresh95(I)
end
sigthresh = mean(sigthresh95)
Obtain the autocorrelation function of the ICE time series and find the significant positive lags where abs(autocorrt(N+1:end)) > sigthresh.
I'm new in this area so I'm a true newbie.
I'm looking for a way to get the best lags of a timeserie data using autocorrelation or Partial autocorrelation, that's why I found this answer of yours.
I did not understand the 2*N-1, how the autocorrelation will provide more output than the series itself? You can use any timeseries just to explain.
By the way I become a big fan of your work, and if you have any better way to find the significant lags of a time series I will appreciate very much!
Thank for your attention
  4 件のコメント
Greg Heath
Greg Heath 2014 年 10 月 1 日
The autocorrelation values are calculated by sliding the function through a mirror image of itself: f(t)*f(tau-t). Wikipedia probably has a good visual explanation.
Greg Heath
Greg Heath 2014 年 10 月 2 日
編集済み: Greg Heath 2015 年 1 月 6 日
There are many examples of mine posted in the NEWSGROUP and ANSWERS. Search using
greg narx nncorr
or
greg narxnet nncorr

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by