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 exp_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
Metadata
Release files for exp-hurst 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| exp_hurst-0.0.2.tar.gz | 2.7 kB | Without provenance | Details for exp_hurst-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| exp_hurst-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for exp_hurst-0.0.2-py3-none-any.whl |
Total release size: 6.2 kB
Release files / exp_hurst-0.0.2.tar.gz
| Download URL | exp_hurst-0.0.2.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
570a5cfb590cabcea7df5a8f94bf44ee5366f7f97a032662b928f5bde7399643
|
|
BLAKE2b-256 checksum How to use checksums |
7ff538f1474ad3f2f39fe2ccc64195250862d332f7a61e6685b45de69f25fc19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.4
|
Release files / exp_hurst-0.0.2-py3-none-any.whl
| Download URL | exp_hurst-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
801554204582c59843ae551e3cd31404b4ad53cf56b4b68cbdce99a01ffa1083
|
|
BLAKE2b-256 checksum How to use checksums |
2d4e2e246e8d24886c1da287b1eacf82d5edd3b2e688585feca890f0c8ac4e9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.4
|
Security for exp-hurst 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.