Skip to main content

A package for time series data processing and modeling using ARIMA and GARCH models

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Generalized Timeseries

CI/CD readthedocs.io PyPI codecov Codacy Badge

A package for timeseries data processing and modeling using ARIMA and GARCH models.

Features

  • Price series generation for simulation.
  • Data preprocessing including missing data handling and scaling.
  • Stationarity testing and transformation.
  • ARIMA and GARCH models for time series forecasting.

Installation

Install from pypi:

python -m venv venv
source venv/bin/activate
pip install generalized-timeseries

Install from github:

python -m venv venv
source venv/bin/activate
pip install git+https://github.com/garthmortensen/generalized-timeseries.git

Usage

from generalized_timeseries import data_generator, data_processor, stats_model

# generate price series data
price_series = data_generator.generate_price_series(length=1000)

# preprocess the data
processed_data = data_processor.preprocess_data(price_series)

# fit ARIMA model
arima_model = stats_model.fit_arima(processed_data)

# fit GARCH model
garch_model = stats_model.fit_garch(processed_data)

# forecast using ARIMA model
arima_forecast = stats_model.forecast_arima(arima_model, steps=10)

# forecast using GARCH model
garch_forecast = stats_model.forecast_garch(garch_model, steps=10)

print("ARIMA Forecast:", arima_forecast)
print("GARCH Forecast:", garch_forecast)

Publishing Maintenance

Reminder on how to manually push to pypi. This step, along with autodoc build, is automated with CI/CD.

pypi

pip install --upgrade build
pip install --upgrade twine
python -m build  # build the package
twine check dist/  # check it works
twine upload dist/

rm -rf dist build *.egg-info # restart if needed

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

generalized_timeseries-0.1.9.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

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

generalized_timeseries-0.1.9-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file generalized_timeseries-0.1.9.tar.gz.

File metadata

  • Download URL: generalized_timeseries-0.1.9.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for generalized_timeseries-0.1.9.tar.gz
Algorithm Hash digest
SHA256 300372ab6300311c69a48da47ed3c1482d9b4794e2bb02196f4508d862b165cf
MD5 0f8c55e693b7826e57159aa0fdf0e8d2
BLAKE2b-256 513eb1b368ebf6cb4ad3e616a8dfabd7421f15f926aa96e08500bfadc1726383

See more details on using hashes here.

Provenance

The following attestation bundles were made for generalized_timeseries-0.1.9.tar.gz:

Publisher: execute_CICD.yml on garthmortensen/generalized-timeseries

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

File details

Details for the file generalized_timeseries-0.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for generalized_timeseries-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b2cac0dea5495c56239bffac305cc0e76e0354a8093d29587940f0d4aadd3293
MD5 87e6cededbae5f82a3dd44e74dc6177e
BLAKE2b-256 cc563170e0547c3b8fcd5f9f96bfbb1af378980990822d12ff6b561d40afc7fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for generalized_timeseries-0.1.9-py3-none-any.whl:

Publisher: execute_CICD.yml on garthmortensen/generalized-timeseries

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