SkillAgentSearch skills...

GenHurst

Calculates the generalized Hurst exponent of a time series

Install / Use

/learn @PTRRupprecht/GenHurst
About this skill

Quality Score

0/100

Supported Platforms

Zed

README

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 as a numpy array and q the Hurst exponent to be used, yielding a numerical (mean) value mH.

View on GitHub
GitHub Stars39
CategoryDevelopment
Updated1mo ago
Forks17

Languages

Python

Security Score

90/100

Audited on Feb 5, 2026

No findings