-
大小: 2KB文件類型: .m金幣: 1下載: 0 次發(fā)布日期: 2021-06-07
- 語言: Matlab
- 標(biāo)簽: 趨勢(shì)預(yù)測(cè)??
資源簡(jiǎn)介
Hurst指數(shù)是描述非函數(shù)長(zhǎng)周期的重要指標(biāo)。它有別于傳統(tǒng)單位根檢驗(yàn),可以發(fā)現(xiàn)時(shí)間序列存在的超長(zhǎng)周期性,可以用于判斷市場(chǎng)風(fēng)險(xiǎn),但運(yùn)算相當(dāng)繁瑣
代碼片段和文件信息
%?The?Hurst?exponent
%--------------------------------------------------------------------------
%?The?first?20?lines?of?code?are?a?small?test?driver.
%?You?can?delete?or?comment?out?this?part?when?you?are?done?validating?the?
%?function?to?your?satisfaction.
%
%?Bill?Davidson?quellen@yahoo.com
%?13?Nov?2005
function?[]=hurst_exponent()
disp(‘testing?Hurst?calculation‘);
load?data;
plot(data);
hurst=estimate_hurst_exponent(data);
[serr]=sprintf(‘Hurst?exponent?=?%.2f‘hurst);disp(s);
%--------------------------------------------------------------------------
%?This?function?does?dispersional?analysis?on?a?data?series?then?does?a?
%?Matlab?polyfit?to?a?log-log?plot?to?estimate?the?Hurst?exponent?of?the?
%?series.
%
%?This?algorithm?is?far?faster?than?a?full-blown?implementation?of?Hurst‘s
%?algorithm.??I?got?the?idea?from?a?2000?PhD?dissertation?by?Hendrik?J?
%?Blok?and?I?make?no?guarantees?w
評(píng)論
共有 條評(píng)論