Skip to main content

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.

Python 3.10+ License: MIT Documentation

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

fractime-0.1.0.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fractime-0.1.0-py3-none-any.whl (177.6 kB view details)

Uploaded Python 3

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

Hashes for fractime-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9858e2883e4e5969bcfdf84a59dfe5399ab3f943a66cce52eba3ff8997507987
MD5 56dbcad24c7791c6456ee27441667b0d
BLAKE2b-256 864944ae0919022b1d0171036212eb8406a23b98462a15abc21192f5da5c764b

See more details on using hashes here.

Provenance

The following attestation bundles were made for fractime-0.1.0.tar.gz:

Publisher: publish.yml on Wayy-Research/fracTime

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for fractime-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9b1a45fe74a2d5b2d1d814ffabb9110e1433192b8fd06e0f1ebf92695a57c16
MD5 711521a738fa7176ddebb3503b86cf7c
BLAKE2b-256 f313246bc2c35172fb7762497b92181242ca194fe33724f182ad04711254d62a

See more details on using hashes here.

Provenance

The following attestation bundles were made for fractime-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Wayy-Research/fracTime

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page