It computes the Hurst exponent of a time series.
Project description
Hurst Exponent Package
Description
The function hurst takes a np.array of numbers and returns the Hurst exponent of the time series. The Hurst exponent is a measure of randomness of a time series. It is used in the study of long-term memory of time series. The value of the Hurst exponent is between 0 and 1. A value of 0.5 indicates that the time series is random. A value greater than 0.5 indicates that the time series is trending. A value less than 0.5 indicates that the time series is mean reverting.
Installation
pip install hurst
Requirements
- numpy
- mmq
Usage
from coef_hurst import hurst
hurst(time_series)
Example
from exp_hurst import hurst
import numpy as np
# Create a time series of random numbers
rs = np.random.normal(0, 1, 100000)
# Evaluate the Hurst exponent
h = hurst(rs)
License
Author
[Igor Matheus Jasenovski]
Version
0.0.1
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
exp_hurst-0.0.1.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for exp_hurst-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e772e9dc5a2ad07a6031e01bc49a0d836596da3d849ce87469a0d4fb404171f |
|
MD5 | b90d3fe72902c9d595d2a21b8cffa9da |
|
BLAKE2b-256 | 0428a627ec4aeaab75f3dffceda23c31b9512ac59dbc7013b4d569cd85110aec |