Python library for advanced time series forecasting using fractal geometry and chaos theory
Project description
FracTime
Fractal-based time series forecasting with ensemble methods and rigorous backtesting.
Installation
pip install fractime
All dependencies (ARIMA, GARCH, Prophet, PyMC, XGBoost) are included.
Quick Start
import fractime as ft
import numpy as np
# Load or create data
prices = np.random.randn(500).cumsum() + 100
# Analyze fractal properties
analyzer = ft.FractalAnalyzer()
hurst = analyzer.compute_hurst(prices)
print(f"Hurst: {hurst:.3f} ({'trending' if hurst > 0.5 else 'mean-reverting'})")
# Forecast
forecaster = ft.FractalForecaster()
forecaster.fit(prices)
result = forecaster.predict(n_steps=30)
print(f"Forecast: {result['forecast'][-1]:.2f}")
print(f"95% CI: [{result['lower'][-1]:.2f}, {result['upper'][-1]:.2f}]")
# Visualize
fig = ft.plot_forecast(prices, result['forecast'], result['paths'])
fig.show()
Features
- Fractal Forecasting: Hurst exponent, fractal dimension, long-term memory
- Baseline Models: ARIMA, ETS, GARCH, Prophet, VAR, LSTM
- Ensemble Methods: Stacking and boosting
- Backtesting: Walk-forward validation with comprehensive metrics
- Model Selection: Automatic selection with statistical testing
Documentation
Full documentation: https://wayy-research.github.io/fracTime
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fractime-0.1.0.tar.gz.
File metadata
- Download URL: fractime-0.1.0.tar.gz
- Upload date:
- Size: 1.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9858e2883e4e5969bcfdf84a59dfe5399ab3f943a66cce52eba3ff8997507987
|
|
| MD5 |
56dbcad24c7791c6456ee27441667b0d
|
|
| BLAKE2b-256 |
864944ae0919022b1d0171036212eb8406a23b98462a15abc21192f5da5c764b
|
Provenance
The following attestation bundles were made for fractime-0.1.0.tar.gz:
Publisher:
publish.yml on Wayy-Research/fracTime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fractime-0.1.0.tar.gz -
Subject digest:
9858e2883e4e5969bcfdf84a59dfe5399ab3f943a66cce52eba3ff8997507987 - Sigstore transparency entry: 732891952
- Sigstore integration time:
-
Permalink:
Wayy-Research/fracTime@b7bfcfae872248f3d7942ace04e27ac469f4b941 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Wayy-Research
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b7bfcfae872248f3d7942ace04e27ac469f4b941 -
Trigger Event:
release
-
Statement type:
File details
Details for the file fractime-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fractime-0.1.0-py3-none-any.whl
- Upload date:
- Size: 177.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9b1a45fe74a2d5b2d1d814ffabb9110e1433192b8fd06e0f1ebf92695a57c16
|
|
| MD5 |
711521a738fa7176ddebb3503b86cf7c
|
|
| BLAKE2b-256 |
f313246bc2c35172fb7762497b92181242ca194fe33724f182ad04711254d62a
|
Provenance
The following attestation bundles were made for fractime-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on Wayy-Research/fracTime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fractime-0.1.0-py3-none-any.whl -
Subject digest:
d9b1a45fe74a2d5b2d1d814ffabb9110e1433192b8fd06e0f1ebf92695a57c16 - Sigstore transparency entry: 732892120
- Sigstore integration time:
-
Permalink:
Wayy-Research/fracTime@b7bfcfae872248f3d7942ace04e27ac469f4b941 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Wayy-Research
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b7bfcfae872248f3d7942ace04e27ac469f4b941 -
Trigger Event:
release
-
Statement type: