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
Release history Release notifications | RSS feed
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.3.tar.gz
(16.5 kB
view details)
Built Distribution
tradeflow-0.0.3-py3-none-any.whl
(17.8 kB
view details)
File details
Details for the file tradeflow-0.0.3.tar.gz
.
File metadata
- Download URL: tradeflow-0.0.3.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73262a7f2a5bcac57e3a1e555bc4ea39c2b09f8334015aaec24717c8328ba713 |
|
MD5 | cfa889cce48600beb4ea83aaca0b6872 |
|
BLAKE2b-256 | af9ad1533254ec7c2888ad7bbb0eac141a6d1262cd18fcc56b27e1fd3a63fac9 |
File details
Details for the file tradeflow-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: tradeflow-0.0.3-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef3aa9eea005ca5294ef7634b96443fcc76a45f4b37c862215bbf55f7f433d46 |
|
MD5 | bb56f589c9489e38a9524d2fbad5d641 |
|
BLAKE2b-256 | 81db7f1400aa56bd348cf5429bff9af3f026e2a3476f69ff3760ec59872e585a |