Skip to main content

A package to simulate autocorrelated time series of signs

Project description

tradeflow : generate autocorrelated time series of signs

tradeflow lets you generate autocorrelated time series of signs.

Installation

pip install tradeflow

How to use

You can create an autoregressive model from a training time series of signs time_series_signs:

>>> import tradeflow
>>>
>>> ar_model = tradeflow.AR(signs=time_series_signs, max_order=50, order_selection_method='pacf', information_criterion=None)

To fit the model parameters, you have to call the fit function:

>>> ar_model.fit(method='yule_walker')

You can then easily simulate an autocorrelated time series of signs by calling the simulate function:

>>> simulated_signs = ar_model.simulate(size=15, seed=1)
>>> print(simulated_signs)

Documentation

Read the full documentation here.

License

Copyright (c) 2024 Martin Gangand

Distributed under the terms of the MIT license.

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

tradeflow-0.0.6.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

tradeflow-0.0.6-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file tradeflow-0.0.6.tar.gz.

File metadata

  • Download URL: tradeflow-0.0.6.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for tradeflow-0.0.6.tar.gz
Algorithm Hash digest
SHA256 747b6e8cbbb0f150bf4c31fca7ac441b917977bd7c74a26e333fffff4fd32cc7
MD5 1ef25c3c4e294b3b0704fc8cefbde1c0
BLAKE2b-256 0c58e9835b09fb23abd1a0ff9311e7f245619b0e11e2ababafcc0018969a7c0f

See more details on using hashes here.

File details

Details for the file tradeflow-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: tradeflow-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for tradeflow-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3276332a00073c680e7345653d9d1cfa298a67fc1a8c9ac460054a7685be048a
MD5 ff6873ea3cb908a28b7e1ebfb7dd43d2
BLAKE2b-256 5e412c600f011e6714727e870d0a7ce7bbee6f5f30d2c883cb382062dd9b07f5

See more details on using hashes here.

Supported by

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