PTRRupprecht / GenHurst

Calculates the generalized Hurst exponent of a time series

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GenHurst

The Hurst exponent

Calculates the generalized Hurst exponent of a time series. The Hurst exponent gives a value indicating the long-term memory of a time-series, similar to the decay of a autocorrelation function: https://en.wikipedia.org/wiki/Hurst_exponent

See also in the code for some further references.

The implementation

This implementation is a more or less literal translation from Matlab to Python (3.6) of the following Matlab code written by Tomaso Aste in 2013: https://www.mathworks.com/matlabcentral/fileexchange/30076-generalized-hurst-exponent

How to use the code

A function mH = genhurst(S,q) is defined, with S the time series to be analyzed and q the Hurst exponent to be used, yielding a numerical (mean) value mH.

About

Calculates the generalized Hurst exponent of a time series

License:MIT License


Languages

Language:Python 100.0%